]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Avoid double free in startup_inferior
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2
3 * fork-inferior.c (startup_inferior): Avoid double free.
4
5 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6
7 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
8 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
9
10 2020-09-10 Kamil Rytarowski <n54@gmx.com>
11
12 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
13 * netbsd-nat.c: Include <sys/ptrace.h>.
14 * (netbsd_nat::enable_proc_events): Add.
15
16 2020-09-10 Kamil Rytarowski <n54@gmx.com>
17
18 * netbsd-nat.h: Include "gdbsupport/function-view.h".
19 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
20 (netbsd_nat::for_each_thread): Add.
21 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
22 "gdbsupport/common-debug.h".
23 * (netbsd_nat::netbsd_thread_lister)
24 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
25 (netbsd_nat::for_each_thread): Add.
26
27 2020-09-10 Kamil Rytarowski <n54@gmx.com>
28
29 * netbsd-nat.h: Include <unistd.h>.
30 * (netbsd_nat::pid_to_exec_file): Add.
31 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
32 * (netbsd_nat::pid_to_exec_file) Add.
33
34 2020-09-10 Kamil Rytarowski <n54@gmx.com>
35
36 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
37
38 2020-09-10 Kamil Rytarowski <n54@gmx.com>
39
40 * netbsd-nat.h: New file.
41 * netbsd-nat.c: Likewise.
42
43 2020-09-09 Tom Tromey <tromey@adacore.com>
44
45 * ada-lang.c (remove_extra_symbols): Do not increment when
46 removing an element
47
48 2020-09-08 Tom Tromey <tromey@adacore.com>
49
50 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
51
52 2020-09-08 Tom Tromey <tromey@adacore.com>
53
54 PR win32/25302:
55 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
56 (gdb_bfd_init_data): New function.
57 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
58
59 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60
61 * infrun.c (fetch_inferior_event): Use
62 `switch_to_target_no_thread` to switch the target.
63
64 2020-09-06 Tom Tromey <tom@tromey.com>
65
66 * symfile.h (dwarf2_free_objfile): Don't declare.
67
68 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
69
70 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
71 to match 16 byte real/complex type generated by Flang compiler.
72
73 2020-09-03 Tom de Vries <tdevries@suse.de>
74
75 PR breakpoint/26546
76 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
77 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
78
79 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * maint.c (index_digits): New function.
82 (struct maint_print_section_data): Remove.
83 (print_bfd_section_info): Remove print_data parameter, add arg
84 and index_digits.
85 (print_objfile_section_info): Likewise.
86 (print_bfd_section_info_maybe_relocated): Likewise (plus
87 objfile).
88 (maintenance_info_sections): Adjust calls.
89
90 2020-09-02 Tom Tromey <tromey@adacore.com>
91
92 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
93 for null pointers.
94 (ada_varobj_adjust_for_child_access): Special-case null pointers.
95
96 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * bcache.h (struct bcache) <insert>: Change type of `added` to
99 pointer to bool.
100 * bcache.c (bcache::insert): Likewise.
101 * gdbtypes.c (check_types_worklist): Adjust.
102 * psymtab.c (add_psymbol_to_bcache): Adjust.
103
104 2020-08-31 Kevin Buettner <kevinb@redhat.com>
105
106 * corelow.c (unordered_set): Include.
107 (class core_target): Add field 'm_core_unavailable_mappings'.
108 (core_target::build_file_mappings): Print only one warning
109 per inaccessible file. Add unavailable/broken mappings
110 to m_core_unavailable_mappings.
111 (core_target::xfer_partial): Call...
112 (core_target::xfer_memory_via_mappings): New method.
113
114 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
117 type to bool.
118
119 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * dwarf2/read.c (struct field_info): Fix indentation.
122
123 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
124
125 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
126 ordering in comment.
127 * frame.c (frame_id_eq): Fix indentation.
128
129 2020-08-31 Scott Linder <scott@scottlinder.com>
130 Simon Marchi <simon.marchi@efficios.com>
131
132 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
133 inline frame ids in outer frame.
134
135 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
136
137 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
138 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
139 (outer_frame_id): Use FID_STACK_OUTER instead of
140 FID_STACK_INVALID.
141 (frame_id_p): Don't check for outer_frame_id.
142
143 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
144
145 * frame-unwind.c (frame_unwind_got_optimized): Don't set
146 regnum/frame in value. Call allocate_value_lazy.
147 * frame.c (frame_unwind_register_value): Use
148 val_print_not_saved.
149
150 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
151
152 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
153
154 2020-08-29 Pedro Alves <pedro@palves.net>
155
156 * progspace.c (print_program_space): Use all_inferiors. Switch to
157 the inferior before calling target_pid_to_str.
158
159 2020-08-28 Tom Tromey <tom@tromey.com>
160
161 * xcoffread.c (xcoff_end_psymtab): Update comment.
162 * dbxread.c (dbx_end_psymtab): Update comment.
163
164 2020-08-28 Tom de Vries <tdevries@suse.de>
165
166 PR breakpoint/26544
167 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
168 event_location.
169 (create_breakpoint): Same.
170 (base_breakpoint_decode_location): Same.
171 (bkpt_create_sals_from_location): Same.
172 (bkpt_decode_location): Same.
173 (bkpt_probe_create_sals_from_location): Same.
174 (bkpt_probe_decode_location): Same.
175 (tracepoint_create_sals_from_location): Same.
176 (tracepoint_decode_location): Same.
177 (tracepoint_probe_decode_location): Same.
178 (strace_marker_create_sals_from_location): Same.
179 (strace_marker_decode_location): Same.
180 (create_sals_from_location_default): Same.
181 (decode_location_default): Same.
182 * breakpoint.h (struct breakpoint_ops): Same.
183 (create_breakpoint): Same.
184 * linespec.h (decode_line_full): Same.
185 * linespec.c (decode_line_full): Same. Throw error if
186 result.size () == 0.
187
188 2020-08-27 Pedro Alves <pedro@palves.net>
189
190 PR gdb/26524
191 * breakpoint.c (until_break_fsm) <location_breakpoint,
192 caller_breakpoint>: Delete fields.
193 <breakpoints>: New field.
194 <until_break_fsm>: Adjust to save a breakpoint vector instead of
195 two individual breakpoints.
196 (until_break_fsm::should_stop): Loop over breakpoints in the
197 breakpoint vector.
198 (until_break_fsm::clean_up): Adjust to clear the breakpoints
199 vector.
200 (until_break_command): Handle location expanding into multiple
201 sals.
202
203 2020-08-27 Pedro Alves <pedro@palves.net>
204
205 PR gdb/26523
206 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
207 bp_until breakpoints user-specified locations. Update intro
208 comment.
209
210 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
213 gdb_bfd_sections): New.
214 * maint.c (print_bfd_section_info): Change param type to
215 maint_print_section_data.
216 (print_objfile_section_info): Likewise.
217 (print_bfd_section_info_maybe_relocated): Likewise.
218 (maintenance_info_sections): Use gdb_bfd_sections.
219
220 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
221
222 * MAINTAINERS: Add ARC target and maintainer.
223
224 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
225
226 * configure.tgt: ARC support for GNU/Linux.
227 * Makefile.in (ALL_TARGET_OBJS): Likewise.
228 * arc-linux-tdep.c: New file.
229 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
230 * arc-tdep.c (arc_write_pc): Use it.
231
232 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
233
234 * arc-tdep.c (arc_check_for_hardware_loop): New.
235 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
236
237 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
238
239 * arc-tdep.h: Include "gdbarch.h".
240
241 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
242
243 * arch/arc.h
244 (arc_gdbarch_features): New class to stir the selection of target XML.
245 (arc_create_target_description): Use FEATURES to choose XML target.
246 (arc_lookup_target_description): Use arc_create_target_description
247 to create _new_ target descriptions or return the already created
248 ones if the FEATURES is the same.
249 * arch/arc.c: Implementation of prototypes described above.
250 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
251 (arc_gdbarch_features_init): Initialize the FEATURES struct.
252 * arc-tdep.c (*_feature_name): Make feature names consistent.
253 (arc_register_feature): A new struct to hold information about
254 registers of a particular target/feature.
255 (arc_check_tdesc_feature): Check if XML provides registers in
256 compliance with ARC_REGISTER_FEATURE structs.
257 (arc_update_acc_reg_names): Add aliases for r58 and r59.
258 (determine_*_reg_feature_set): Which feature name to look for.
259 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
260 (mach_type_to_arc_isa): Convert from a set of binutils machine types
261 to expected ISA enums to be used in arc_gdbarch_features structs.
262 * features/Makefile (FEATURE_XMLFILES): Add new files.
263 * gdb/features/arc/v1-aux.c: New file.
264 * gdb/features/arc/v1-aux.xml: Likewise.
265 * gdb/features/arc/v1-core.c: Likewise.
266 * gdb/features/arc/v1-core.xml: Likewise.
267 * gdb/features/arc/v2-aux.c: Likewise.
268 * gdb/features/arc/v2-aux.xml: Likewise.
269 * gdb/features/arc/v2-core.c: Likewise.
270 * gdb/features/arc/v2-core.xml: Likewise.
271 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
272
273 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
274 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 PR m2/26372
277 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
278 an assert. Remove single element array indexing pattern as the
279 MULTI_SUBSCRIPT support will handle this case too.
280
281 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * value.h (valprint_check_validity): Move declaration from
284 here...
285 * valprint.h (valprint_check_validity): ... to here.
286
287 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
288
289 * debug.h: New file.
290 * debug.c (debug_prefixed_vprintf): New function.
291 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
292 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
293
294 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
295
296 * infrun.h (infrun_debug_printf_1): New function declaration.
297 (infrun_debug_printf): New macro.
298 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
299 throughout.
300 (infrun_debug_printf): New function.
301 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
302 (handle_jit_event): Likewise.
303
304 2020-08-21 Mark Wielaard <mark@klomp.org>
305
306 * ada-lex.l: Extend register warnings diagnostics comment for g++.
307
308 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
309
310 * frame.c (enum class frame_id_status): New.
311 (struct frame_info) <this_id::p>: Change type to frame_id_status.
312 (fprintf_frame): Update.
313 (compute_frame_id): Set frame id status to "computing" on entry.
314 Set it back to "not_computed" on failure and to "computed" on
315 success.
316 (get_frame_id): Assert the frame id is not being computed.
317 (create_sentinel_frame): Use frame_id_status::COMPUTED.
318 (create_new_frame): Likewise.
319 (frame_cleanup_after_sniffer): Update assert.
320
321 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * regcache.c (pid_ptid_regcache_map): New type.
324 (target_ptid_regcache_map): Remove.
325 (target_pid_ptid_regcache_map): New type.
326 (regcaches): Change type to target_pid_ptid_regcache_map.
327 (get_thread_arch_aspace_regcache): Update.
328 (regcache_thread_ptid_changed): Update, handle pid-like ptid
329 case.
330 (regcaches_size): Update.
331 (regcache_count): Update.
332 (registers_changed_ptid_target_pid_test): New.
333 (_initialize_regcache): Register new test.
334
335 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * regcache.c (regcache_count): New.
338 (struct regcache_test_data): New.
339 (regcache_test_data_up): New.
340 (populate_regcaches_for_test): New.
341 (regcaches_test): Remove.
342 (get_thread_arch_aspace_regcache_test): New.
343 (registers_changed_ptid_all_test): New.
344 (registers_changed_ptid_target_test): New.
345 (registers_changed_ptid_target_ptid_test): New.
346 (regcache_thread_ptid_changed): Remove regcache_count lambda.
347 (_initialize_regcache): Register new tests.
348
349 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
352 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
353 gdbarch and aspace parameter. Use current inferior's aspace.
354 Validate regcache's arch value.
355 (regcaches_test): Update.
356
357 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * regcache.c (regcaches_test): Call registers_changed.
360
361 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
362
363 * infrun.c (process_event_stop_test): Fix typo "breapoint".
364
365 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
366
367 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
368 to find the end of prologue for flang compiled binaries.
369 * arm-tdep.c (arm_skip_prologue): Likewise.
370 * i386-tdep.c (i386_skip_prologue): Likewise.
371 * producer.c (producer_is_llvm): New function.
372 (producer_parsing_tests): Added new tests for clang/flang.
373 * producer.h (producer_is_llvm): New declaration.
374
375 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
376
377 * linux-nat.c (linux_nat_debug_printf): New function.
378 (linux_nat_debug_printf_1): New macro. Use throughout the file.
379
380 2020-08-18 Aaron Merey <amerey@redhat.com>
381
382 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
383 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
384 (CLIBS): Add DEBUGINFOD_LIBS.
385
386 2020-08-17 Sergei Trofimovich <siarheit@google.com>
387
388 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
389 'gdbarch_num_regs'.
390
391 2020-08-17 Tom Tromey <tromey@adacore.com>
392
393 * ada-varobj.c (ada_varobj_decode_var): Handle case where
394 ada_get_decoded_value returns NULL.
395
396 2020-08-17 Tom Tromey <tromey@adacore.com>
397
398 * python/py-inferior.c (infpy_search_memory): Use
399 gdb_py_object_from_ulongest.
400 * python/py-infevents.c (create_inferior_call_event_object)
401 (create_memory_changed_event_object): Use
402 gdb_py_object_from_ulongest.
403 * python/py-linetable.c (ltpy_entry_get_pc): Use
404 gdb_py_object_from_ulongest.
405
406 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * loc.c (class symbol_needs_eval_context): Fix indentation.
409
410 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
413 bool.
414
415 2020-08-17 Tom de Vries <tdevries@suse.de>
416
417 PR gdb/26393
418 * gdbtypes.c (dump_dynamic_prop): New function.
419 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
420
421 2020-08-15 Tom de Vries <tdevries@suse.de>
422
423 PR backtrace/26390
424 * stack.c (print_frame_args): Temporarily set the selected
425 frame to FRAME while printing the frame's arguments.
426
427 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
428
429 PR breakpoints/26385
430 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
431 Always clear watchpoint with PTRACE_SET_DEBUGREG.
432
433 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
434
435 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
436 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
437 and >= to check return value instead of == -1 and != -1.
438
439 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * utils.h (class gdb_argv) <as_array_view>: New method.
442 * utils.c (gdb_argv_as_array_view_test): New.
443 (_initialize_utils): Register selftest.
444 * maint.c (maintenance_selftest): Use the new method.
445
446 2020-08-13 Kamil Rytarowski <n54@gmx.com>
447
448 * target.h (supports_dumpcore, dumpcore): New
449 function declarations.
450 * target.c (supports_dumpcore, dumpcore): New
451 functions.
452 * target-delegates.c: Rebuild.
453 * gcore.c (gcore_command): Use target_supports_dumpcore ()
454 and target_dumpcore ().
455
456 2020-08-13 Aaron Merey <amerey@redhat.com>
457
458 * debuginfod-support.c: Replace global variables with user_data.
459
460 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
461
462 * maint.c (maintenance_selftest): Split args and pass array_view
463 to run_tests.
464
465 2020-08-12 Luis Machado <luis.machado@linaro.org>
466
467 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
468 type's length.
469 Use %s and pulongest to print the length.
470
471 2020-08-12 Pedro Alves <palves@redhat.com>
472
473 * NEWS: Move "Multi-target debugging support" item to the
474 "Changes since GDB 9" section.
475
476 2020-08-12 Pedro Alves <palves@redhat.com>
477
478 PR gdb/26336
479 * progspace.c (program_space::remove_objfile): Invalidate the
480 frame cache.
481
482 2020-08-11 Tom de Vries <tdevries@suse.de>
483
484 * MAINTAINERS: Mark ms1 as deleted.
485
486 2020-08-10 Luis Machado <luis.machado@linaro.org>
487
488 PR gdb/26310
489
490 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
491 act accordingly.
492 (aarch64_analyze_prologue_test): Add more unit tests to exercise
493 movz/str/stur/stp skipping behavior.
494
495 2020-08-10 Luis Machado <luis.machado@linaro.org>
496
497 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
498 struct user_sve_header instead of struct sve_context.
499
500 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * read.h (dwarf2_fetch_die_loc_sect_off,
503 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
504 `void *` parameter with function_view.
505 * read.c (dwarf2_fetch_die_loc_sect_off,
506 dwarf2_fetch_die_loc_cu_off): Likewise.
507 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
508 (per_cu_dwarf_call): Adjust.
509 (get_frame_address_in_block_wrapper): Remove.
510 (indirect_synthetic_pointer): Adjust.
511 (get_ax_pc): Remove.
512 (dwarf2_compile_expr_to_ax): Adjust.
513
514 2020-08-08 Tom de Vries <tdevries@suse.de>
515
516 PR build/26344
517 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
518 constructor.
519 * regcache.c (get_thread_arch_aspace_regcache): Same.
520
521 2020-08-07 Tom Tromey <tromey@adacore.com>
522
523 * ravenscar-thread.c
524 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
525 New method.
526 (ravenscar_thread_target::wait): Check
527 runtime_initialized.
528 (ravenscar_thread_target::prepare_to_store)
529 (ravenscar_thread_target::stopped_by_sw_breakpoint)
530 (ravenscar_thread_target::stopped_by_hw_breakpoint)
531 (ravenscar_thread_target::stopped_by_watchpoint)
532 (ravenscar_thread_target::stopped_data_address)
533 (ravenscar_thread_target::core_of_thread): Use
534 scoped_restore_current_thread and
535 set_base_thread_from_ravenscar_task.
536
537 2020-08-07 Tom Tromey <tromey@adacore.com>
538
539 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
540
541 2020-08-07 Tom Tromey <tromey@adacore.com>
542
543 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
544 update_inferior_ptid before update_thread_list.
545 (temporarily_change_regcache_ptid): New class.
546 (ravenscar_thread_target::fetch_registers)
547 (ravenscar_thread_target::store_registers)
548 (ravenscar_thread_target::prepare_to_store): Use base thread when
549 forwarding operation.
550
551 2020-08-07 Tom Tromey <tromey@adacore.com>
552
553 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
554 "is_pid" case.
555
556 2020-08-07 Tom Tromey <tromey@adacore.com>
557
558 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
559 New methods.
560 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
561 first.
562 (ravenscar_thread_target::add_thread): Rename from
563 ravenscar_add_thread.
564 (ravenscar_thread_target::update_thread_list): Use a lambda.
565 (ravenscar_thread_target::xfer_partial): New method.
566
567 2020-08-07 Tom Tromey <tromey@adacore.com>
568
569 * ada-lang.h (ada_task_list_iterator_ftype): Now a
570 gdb::function_view.
571 (iterate_over_live_ada_tasks): Change type of argument.
572 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
573 of argument.
574
575 2020-08-07 Tom Tromey <tromey@adacore.com>
576
577 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
578 Remove.
579 (ravenscar_thread_target::extra_thread_info): Remove.
580 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
581 defer to target beneath for non-Ravenscar threads.
582
583 2020-08-07 Tom Tromey <tromey@adacore.com>
584
585 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
586 get_base_thread_from_ravenscar_task>: Now methods.
587 <m_cpu_map>: New member.
588 (ravenscar_thread_target::get_thread_base_cpu): Rename from
589 ravenscar_get_thread_base_cpu. Check m_cpu_map.
590 (ravenscar_thread_target::task_is_currently_active): Update.
591 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
592 Now a method.
593 (ravenscar_thread_target::add_active_thread): Put initial thread
594 into the m_cpu_map.
595
596 2020-08-07 Tom Tromey <tromey@adacore.com>
597
598 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
599 event_ptid.
600
601 2020-08-07 Tom Tromey <tromey@adacore.com>
602
603 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
604 runtime_initialized.
605
606 2020-08-07 Tom Tromey <tromey@adacore.com>
607
608 * ravenscar-thread.c (ravenscar_thread_target): Don't call
609 add_active_thread.
610 (ravenscar_thread_target::add_active_thread): Now public.
611 (ravenscar_inferior_created): Call add_active_thread after pushing
612 the target.
613
614 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * regcache.c (ptid_regcache_map): New type.
617 (target_ptid_regcache_map): New type.
618 (regcaches): Change type to target_ptid_regcache_map.
619 (get_thread_arch_aspace_regcache): Update to regcaches' new
620 type.
621 (regcache_thread_ptid_changed): Likewise.
622 (registers_changed_ptid): Likewise.
623 (regcaches_size): Likewise.
624 (regcaches_test): Update.
625 (regcache_thread_ptid_changed): Update.
626 * regcache.h (regcache_up): New type.
627 * gdbsupport/ptid.h (hash_ptid): New struct.
628
629 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
630
631 * observable.h (thread_ptid_changed): Add parameter
632 `process_stratum_target *`.
633 * infrun.c (infrun_thread_ptid_changed): Add parameter
634 `process_stratum_target *` and use it.
635 (selftests): New namespace.
636 (infrun_thread_ptid_changed): New function.
637 (_initialize_infrun): Register selftest.
638 * regcache.c (regcache_thread_ptid_changed): Add parameter
639 `process_stratum_target *` and use it.
640 (regcache_thread_ptid_changed): New function.
641 (_initialize_regcache): Register selftest.
642 * thread.c (thread_change_ptid): Pass target to
643 thread_ptid_changed observable.
644
645 2020-08-06 Caroline Tice <cmtice@google.com>
646
647 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
648 (struct dwp_sections): Update field comments. Add loclists and
649 rnglists fields.
650 (struct virtual_v2_dwo_sections): Rename struct to
651 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
652 size & offset fields for loclists and rnglists.
653 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
654 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
655 skipping dummy type units.
656 (create_dwp_hash_table): Update the large comment above the function to
657 discuss Version 5 DWP files as well, with references. Update all the
658 version checks in the function to check for version 5 as well. Add new
659 section at the end to create dwp hash table for version 5.
660 (create_dwp_v2_section): Rename function to
661 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
662 Add V5 to error message text.
663 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
664 into calls to create_dwp_v2_or_v5_section.
665 (create_dwo_unit_in_dwp_v5): New function.
666 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
667 check for version2; add else clause to handle version 5.
668 (open_and_init_dwo_file): Add code to check dwarf version & only call
669 create_debug_types_hash_table (with sections.types) if version is not 5;
670 else call create_debug_type_hash_table, with sections.info.
671 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
672 version 5.
673 (dwarf2_locate_v5_dwp_sections): New function.
674 (open_and_init_dwp_file): Add else-if clause for version 5 to call
675 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
676
677 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
678
679 * regcache.h (class regcache): Remove friend
680 registers_changed_ptid.
681 <regcache_thread_ptid_changed>: Remove.
682 <regcaches>: Remove.
683 * regcache.c (regcache::regcaches): Rename to...
684 (regcaches): ... this. Make static.
685 (get_thread_arch_aspace_regcache): Update.
686 (regcache::regcache_thread_ptid_changed): Rename to...
687 (regcache_thread_ptid_changed): ... this. Update.
688 (class regcache_access): Remove.
689 (regcaches_test): Update.
690 (_initialize_regcache): Update.
691 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
692 <forward_list>.
693
694 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
695
696 * regcache.h (class regcache) <current_regcache>: Rename to...
697 <regcaches>: ... this. Move doc here.
698 * regcache.c (regcache::current_regcache) Rename to...
699 (regcache::regcaches): ... this. Move doc to header.
700 (get_thread_arch_aspace_regcache): Update.
701 (regcache::regcache_thread_ptid_changed): Update.
702 (registers_changed_ptid): Update.
703 (class regcache_access) <current_regcache_size>: Rename to...
704 <regcaches_size>: ... this.
705 (current_regcache_test): Rename to...
706 (regcaches_test): ... this.
707 (_initialize_regcache): Update.
708
709 2020-08-06 Victor Collod <vcollod@nvidia.com>
710
711 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
712
713 2020-08-05 Kevin Buettner <kevinb@redhat.com>
714
715 * corelow.c (core_target::build_file_mappings): Don't output
716 null pathname in warning.
717
718 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
721 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
722 gdb.dwarf2/dw2-single-line-discriminators.exp,
723 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
724
725 2020-08-05 Tom Tromey <tromey@adacore.com>
726
727 PR rust/26197:
728 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
729 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
730 Fix off-by-one and type size errors in ordinary case.
731
732 2020-08-05 Tom de Vries <tdevries@suse.de>
733
734 * gdbtypes.c (type_not_allocated, type_not_associated): Use
735 "prop->const_val () == 0" instead of "prop->const_val () != 0".
736
737 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
738
739 * frame.h (frame_id_p): Return bool.
740 (frame_id_artificial_p): Return bool.
741 (frame_id_eq): Return bool.
742 (has_stack_frames): Return bool.
743 (get_selected_frame): Fix typo in comment.
744 (get_frame_pc_if_available): Return bool.
745 (get_frame_address_in_block_if_available): Return bool.
746 (get_frame_func_if_available): Return bool.
747 (read_frame_register_unsigned): Return bool.
748 (get_frame_register_bytes): Return bool.
749 (safe_frame_unwind_memory): Return bool.
750 (deprecated_frame_register_read): Return bool.
751 (frame_unwinder_is): Return bool.
752 * frame.c (struct frame_info) <prev_arch::p>: Change type to
753 bool.
754 <this_id::p>: Likewise.
755 <prev_p>: Likewise.
756 (frame_stash_add): Return bool.
757 (get_frame_id): Use bool.
758 (frame_id_build_special) Use bool.
759 (frame_id_build_unavailable_stack): Use bool.
760 (frame_id_build): Use bool.
761 (frame_id_p): Return bool, use true/false instead of 1/0.
762 (frame_id_artificial_p): Likewise.
763 (frame_id_eq): Likewise.
764 (frame_id_inner): Likewise.
765 (get_frame_func_if_available): Likewise.
766 (read_frame_register_unsigned): Likewise.
767 (deprecated_frame_register_read): Likewise.
768 (get_frame_register_bytes): Likewise.
769 (has_stack_frames): Likewise.
770 (inside_main_func): Likewise.
771 (inside_entry_func): Likewise.
772 (get_frame_pc_if_available): Likewise.
773 (get_frame_address_in_block_if_available): Likewise.
774 (frame_unwinder_is): Likewise.
775 (safe_frame_unwind_memory): Likewise.
776 (frame_unwind_arch): Likewise.
777
778 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
779
780 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
781 type to cached_copy_status.
782 (fprintf_frame): Adjust.
783 (get_frame_func_if_available): Adjust.
784 (frame_cleanup_after_sniffer): Adjust.
785
786 2020-08-04 Mark Wielaard <mark@klomp.org>
787
788 * MAINTAINERS (Write After Approval): Update email address.
789
790 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
793 dynamic_prop::const_val.
794
795 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
798 dynamic_prop::kind.
799
800 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
803
804 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
805
806 * configure.tgt: Set gdb_sim for bpf-*-* targets.
807
808 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
809 Jose E. Marchesi <jose.marchesi@oracle.com>
810
811 * configure.tgt: Add entry for bpf-*-*.
812 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
813 (ALLDEPFILES): Add bpf-tdep.c.
814 * bpf-tdep.c: New file.
815 * MAINTAINERS: Add bpf target and maintainer.
816 * NEWS: Mention the support for the new target.
817
818 2020-08-04 Tom de Vries <tdevries@suse.de>
819
820 PR symtab/23270
821 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
822 Error.
823
824 2020-08-03 John Baldwin <jhb@FreeBSD.org>
825
826 * syscalls/freebsd.xml: Regenerate.
827
828 2020-08-03 John Baldwin <jhb@FreeBSD.org>
829
830 * syscalls/update-freebsd.sh: Fix usage and year range.
831
832 2020-08-03 Tom de Vries <tdevries@suse.de>
833
834 PR symtab/26333
835 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
836 DW_LNE_lo_user/DW_LNE_hi_user range.
837
838 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
839
840 PR ada/26318
841 * ada-lang.c (ada_modulus): Return 0 if property is not of const
842 kind.
843
844 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
845
846 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
847
848 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
849
850 * breakpoint.c (set_breakpoint_condition): Update the condition
851 expressions after checking that the input condition string parses
852 successfully and does not contain junk at the end.
853
854 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
855
856 * breakpoint.c (set_breakpoint_condition): Update the
857 condition string after parsing the new condition successfully.
858
859 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
860
861 * proc-api.c (_STRUCTURED_PROC): Don't define.
862 * proc-events.c: Likewise.
863 * proc-flags.c: Likewise.
864 * proc-why.c: Likewise.
865 * procfs.c: Likewise.
866
867 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
868 * configure, config.in: Regenerate.
869
870 2020-07-30 Tom de Vries <tdevries@suse.de>
871
872 PR build/26320
873 * ui-style.h (struct ui_file_style::color): Wrap m_value and
874 m_red/m_green/m_blue in a union.
875
876 2020-07-29 Tom de Vries <tdevries@suse.de>
877
878 PR tdep/26280
879 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
880
881 2020-07-28 Tom Tromey <tromey@adacore.com>
882
883 PR symtab/26270:
884 * symtab.h (find_pc_partial_function_sym): Declare.
885 * cli/cli-cmds.c (disassemble_command): Use
886 find_pc_partial_function_sym. Check asm_demangle.
887 * blockframe.c (cache_pc_function_sym): New global.
888 (cache_pc_function_name): Remove.
889 (clear_pc_function_cache): Update.
890 (find_pc_partial_function_sym): New function, from
891 find_pc_partial_function.
892 (find_pc_partial_function): Rewrite using
893 find_pc_partial_function_sym.
894
895 2020-07-28 Tom Tromey <tromey@adacore.com>
896
897 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
898 help. Add usage.
899
900 2020-07-28 Tom Tromey <tromey@adacore.com>
901
902 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
903 <DW_OP_GNU_variable_value>: Cast to address type.
904
905 2020-07-28 Kamil Rytarowski <n54@gmx.com>
906
907 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
908 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
909 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
910 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
911 (nbsd_get_siginfo_type): New.
912 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
913 (_initialize_nbsd_tdep): New.
914
915 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
916
917 PR binutils/26301
918 * configure: Regenerated.
919
920 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
921
922 PR binutils/26301
923 * configure: Regenerated.
924
925 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * python/py-frame.c: Remove 'user-regs.h' include.
928 (frapy_read_register): Rewrite to make use of
929 gdbpy_parse_register_id.
930 * python/py-registers.c (gdbpy_parse_register_id): New function,
931 moved here from python/py-unwind.c. Updated the return type, and
932 also accepts register descriptor objects.
933 * python/py-unwind.c: Remove 'user-regs.h' include.
934 (pyuw_parse_register_id): Moved to python/py-registers.c.
935 (unwind_infopy_add_saved_register): Update to use
936 gdbpy_parse_register_id.
937 (pending_framepy_read_register): Likewise.
938 * python/python-internal.h (gdbpy_parse_register_id): Declare.
939
940 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * python/py-registers.c: Add 'user-regs.h' include.
943 (register_descriptor_iter_find): New function.
944 (register_descriptor_iterator_object_methods): New static global
945 methods array.
946 (register_descriptor_iterator_object_type): Add pointer to methods
947 array.
948
949 2020-07-27 John Baldwin <jhb@FreeBSD.org>
950
951 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
952 for all architectures on FreeBSD 11.3 and later.
953
954 2020-07-27 Tom Tromey <tromey@adacore.com>
955
956 * gcore.h (load_corefile): Don't declare.
957
958 2020-07-27 Tom de Vries <tdevries@suse.de>
959
960 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
961 * config.in: Regenerate.
962 * configure: Regenerate.
963
964 2020-07-26 Eli Zaretskii <eliz@gnu.org>
965
966 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
967 ws2tcpip.h. When checking whether socklen_t type is defined, use
968 ws2tcpip.h if it is available and sys/socket.h isn't.
969 * configure: Regenerate.
970 * config.in: Regenerate.
971
972 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 PR fortran/23051
975 PR fortran/26139
976 * valops.c (value_ind): Pass address to
977 readjust_indirect_value_type.
978 * value.c (readjust_indirect_value_type): Make parameter
979 non-const, and add extra address parameter. Resolve original type
980 before using it.
981 * value.h (readjust_indirect_value_type): Update function
982 signature and comment.
983
984 2020-07-25 Tom de Vries <tdevries@suse.de>
985
986 PR symtab/26243
987 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
988 entries.
989
990 2020-07-24 Aaron Merey <amerey@redhat.com>
991
992 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
993 * configure: Rebuild.
994
995 2020-07-23 Kevin Buettner <kevinb@redhat.com>
996
997 PR corefiles/26294
998 * corelow.c (_initialize_corelow): Add period to help text
999 for "maintenance print core-file-backed-mappings".
1000
1001 2020-07-23 Pedro Alves <pedro@palves.net>
1002
1003 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1004 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1005 meanwhile.
1006 * frame.c (frame_cache_generation, get_frame_cache_generation):
1007 New.
1008 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1009 (get_prev_frame_if_no_cycle): On exception, don't touch
1010 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1011 * frame.h (get_frame_cache_generation): Declare.
1012
1013 2020-07-23 Tom de Vries <tdevries@suse.de>
1014
1015 PR tui/26282
1016 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1017 New default constructor.
1018
1019 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1022 exclude non-statement entries.
1023
1024 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1025
1026 * NEWS (New commands): Mention new command
1027 "maintenance print core-file-backed-mappings".
1028
1029 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1030
1031 * corelow.c (gdbcmd.h): Include.
1032 (core_target::info_proc_mappings): New method.
1033 (get_current_core_target): New function.
1034 (maintenance_print_core_file_backed_mappings): New function.
1035 (_initialize_corelow): Add core-file-backed-mappings to
1036 "maint print" commands.
1037
1038 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1039
1040 * linux-tdep.c (dump_note_entry_p): New function.
1041 (linux_dump_mapping_p_ftype): New typedef.
1042 (linux_find_memory_regions_full): Add new parameter,
1043 should_dump_mapping_p.
1044 (linux_find_memory_regions): Adjust call to
1045 linux_find_memory_regions_full.
1046 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1047 call to linux_find_memory_regions_full.
1048
1049 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1050
1051 * corelow.c (solist.h, unordered_map): Include.
1052 (class core_target): Add field m_core_file_mappings and
1053 method build_file_mappings.
1054 (core_target::core_target): Call build_file_mappings.
1055 (core_target::~core_target): Free memory associated with
1056 m_core_file_mappings.
1057 (core_target::build_file_mappings): New method.
1058 (core_target::xfer_partial): Use m_core_file_mappings
1059 for memory transfers.
1060 * linux-tdep.c (linux_read_core_file_mappings): New
1061 function.
1062 (linux_core_info_proc_mappings): Rewrite to use
1063 linux_read_core_file_mappings.
1064 (linux_init_abi): Register linux_read_core_file_mappings.
1065
1066 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1067
1068 * arch-utils.c (default_read_core_file_mappings): New function.
1069 * arch-utils.c (default_read_core_file_mappings): Declare.
1070 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1071 * gdbarch.h, gdbarch.c: Regenerate.
1072
1073 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1074
1075 PR corefiles/25631
1076 * corelow.c (core_target:xfer_partial): Revise
1077 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1078 case after first checking the stratum beneath the core
1079 target.
1080 (has_all_memory): Return true.
1081 * target.c (raw_memory_xfer_partial): Revise comment
1082 regarding use of has_all_memory.
1083
1084 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1085
1086 * exec.h (section_table_xfer_memory): Revise declaration,
1087 replacing section name parameter with an optional callback
1088 predicate.
1089 * exec.c (section_table_xfer_memory): Likewise.
1090 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1091 of section_table_xfer_memory.
1092
1093 2020-07-22 Tom Tromey <tromey@adacore.com>
1094
1095 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1096 lookup_symbol_search_name.
1097
1098 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1101 redundant local variable.
1102 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1103 reference, not pointer, update code accordingly.
1104
1105 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1106 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107
1108 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1109 * jit.c (jit_breakpoint_re_set_internal): Use the
1110 `skip_jit_symbol_lookup` field.
1111
1112 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1113 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1114
1115 * jit.c (jit_read_descriptor): Define the descriptor address once,
1116 use twice.
1117 (jit_breakpoint_deleted): Move the declaration of the loop variable
1118 `iter` into the loop header.
1119 (jit_breakpoint_re_set_internal): Move the declaration of the local
1120 variable `objf_data` to the first point of definition.
1121 (jit_event_handler): Move the declaration of local variables
1122 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1123 Rename `objf` to `jited`.
1124
1125 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1128 Remove.
1129 * jit.c (get_jiter_objfile_data): Update.
1130
1131 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132 Simon Marchi <simon.marchi@polymtl.ca>
1133
1134 * jit.c (struct jit_program_space_data): Remove.
1135 (jit_program_space_key): Remove.
1136 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1137 stuff.
1138 (get_jit_program_space_data): Remove.
1139 (jit_breakpoint_deleted): Iterate on all of the program space's
1140 objfiles.
1141 (jit_inferior_init): Likewise.
1142 (jit_breakpoint_re_set_internal): Likewise. Also change return
1143 type to void.
1144 (jit_breakpoint_re_set): Pass current_program_space to
1145 jit_breakpoint_re_set_internal.
1146
1147 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * jit.h (struct jiter_objfile_data) <cached_code_address,
1150 jit_breakpoint>: Move to here from ...
1151 * jit.c (jit_program_space_data): ... here.
1152 (jiter_objfile_data::~jiter_objfile_data): Update.
1153 (jit_breakpoint_deleted): Update.
1154 (jit_breakpoint_re_set_internal): Update.
1155
1156 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1159 checks.
1160 (jit_read_descriptor): Remove NULL check.
1161 (jit_event_handler): Add an assertion.
1162
1163 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * jit.h (struct jit_objfile_data): Split into...
1166 (struct jiter_objfile_data): ... this ...
1167 (struct jited_objfile_data): ... and this.
1168 * objfiles.h (struct objfile) <jit_data>: Remove.
1169 <jiter_data, jited_data>: New fields.
1170 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1171 (jiter_objfile_data::~jiter_objfile_data): ... this.
1172 (get_jit_objfile_data): Rename to ...
1173 (get_jiter_objfile_data): ... this.
1174 (add_objfile_entry): Update.
1175 (jit_read_descriptor): Use get_jiter_objfile_data.
1176 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1177 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1178 (jit_inferior_exit_hook): Use objfile's jited_data field.
1179
1180 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * jit.h: Forward-declare `struct minimal_symbol`.
1183 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1184 constructor, destructor, and an objfile* field.
1185 * jit.c (jit_objfile_data): Remove.
1186 (struct jit_objfile_data): Migrate from here to jit.h.
1187 (jit_objfile_data::~jit_objfile_data): New destructor
1188 implementation with code moved from free_objfile_data.
1189 (free_objfile_data): Delete.
1190 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1191 (jit_find_objf_with_entry_addr): Ditto.
1192 (jit_inferior_exit_hook): Ditto.
1193 (_initialize_jit): Remove the call to
1194 register_objfile_data_with_cleanup.
1195 * objfiles.h (struct objfile) <jit_data>: New field.
1196
1197 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1198
1199 * jit.h: Forward-declare `struct objfile`.
1200 (jit_event_handler): Add a second parameter, the JITer objfile.
1201 * jit.c (jit_read_descriptor): Change the signature to take the
1202 JITer objfile as an argument instead of the jit_program_space_data.
1203 (jit_inferior_init): Update the call to jit_read_descriptor.
1204 (jit_event_handler): Use the new JITer objfile argument when calling
1205 jit_read_descriptor.
1206 * breakpoint.c (handle_jit_event): Update the call to
1207 jit_event_handler to pass the JITer objfile.
1208
1209 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1210
1211 * gdbarch.c: Regenerate.
1212 * gdbarch.h: Regenerate.
1213 * gdbarch.sh (handle_segmentation_fault): Remove method.
1214 * infrun.c (handle_segmentation_fault): Remove.
1215 (print_signal_received_reason): Remove call to
1216 handle_segmentation_fault.
1217
1218 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1219
1220 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1221 Rename to sparc64_linux_report_signal_info and add siggnal
1222 argument.
1223 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1224 instead of sparc64_linux_handle_segmentation_fault.
1225
1226 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1227
1228 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1229 i386_linux_report_signal_info instead of
1230 i386_linux_handle_segmentation_fault.
1231 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1232 to i386_linux_report_signal_info and add siggnal argument.
1233 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1234 of i386_linux_handle_segmentation_fault.
1235 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1236 to i386_linux_report_signal_info and add siggnal argument.
1237
1238 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1239
1240 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1241 hook if present.
1242
1243 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1244
1245 * gdbarch.c: Regenerate.
1246 * gdbarch.h: Regenerate.
1247 * gdbarch.sh (report_signal_info): New method.
1248 * infrun.c (print_signal_received_reason): Invoke gdbarch
1249 report_signal_info hook if present.
1250
1251 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * python/py-registers.c : Add 'unordered_map' include.
1254 (gdbpy_new_reggroup): Renamed to...
1255 (gdbpy_get_reggroup): ...this. Update to only create register
1256 group descriptors when needed.
1257 (gdbpy_reggroup_iter_next): Update.
1258
1259 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * python/py-registers.c (gdbpy_register_object_data): New static
1262 global.
1263 (gdbpy_register_object_data_init): New function.
1264 (gdbpy_new_register_descriptor): Renamed to...
1265 (gdbpy_get_register_descriptor): ...this, and update to reuse
1266 existing register descriptors where possible.
1267 (gdbpy_register_descriptor_iter_next): Update.
1268 (gdbpy_initialize_registers): Register new gdbarch data.
1269
1270 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * linux-nat.c (stopped_pids): Make static.
1273
1274 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 PR ada/26235
1277 * gdbtypes.c (ada_discrete_type_low_bound,
1278 ada_discrete_type_high_bound): Handle undefined bounds.
1279
1280 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1281
1282 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1283 declaration.
1284 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1285 function.
1286
1287 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1288
1289 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1290 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1291 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1292 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1293 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1294 method.
1295
1296 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1297
1298 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1299 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1300 which are deprecated in Guile 3.0.
1301 * configure.ac (try_guile_versions): Add "guile-3.0".
1302 * configure (try_guile_versions): Regenerate.
1303 * NEWS: Update entry.
1304
1305 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1306 Doug Evans <dje@google.com>
1307
1308 PR gdb/21104
1309 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1310 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1311 USING_GUILE_BEFORE_2_2.
1312 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1313 Change type to 'scm_t_port_type *'.
1314 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1315 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1316 parameter and honor it. Update callers.
1317 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1318 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1319 functions.
1320 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1321 USING_GUILE_BEFORE_2_2.
1322 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1323 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1324 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1325 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1326 and 'SCM_PORT_TYPE'.
1327 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1328 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1329 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1330 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1331 [!USING_GUILE_BEFORE_2_2]: New functions.
1332 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1333 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1334 'gdbscm_memory_port_read'.
1335 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1336 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1337 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1338 function.
1339 (ioscm_init_memory_port): Remove.
1340 (ioscm_init_memory_port_stream): New function
1341 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1342 function.
1343 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1344 Return scm_from_uint (0).
1345 (gdbscm_set_memory_port_read_buffer_size_x)
1346 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1347 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1348 Return scm_from_uint (0).
1349 (gdbscm_set_memory_port_write_buffer_size_x)
1350 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1351 * configure.ac (try_guile_versions): Add "guile-2.2".
1352 * configure: Regenerate.
1353 * NEWS: Add entry.
1354
1355 2020-07-18 Tom Tromey <tom@tromey.com>
1356
1357 * linux-nat.c (linux_multi_process): Remove.
1358 (linux_nat_target::supports_multi_process): Return true.
1359
1360 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1363 (riscv_lookup_target_description): Return pointer out of
1364 unique_ptr.
1365 * target-descriptions.c (allocate_target_description): Add
1366 comment.
1367 (target_desc_deleter::operator()): Likewise.
1368 * target-descriptions.h (struct target_desc_deleter): Moved to
1369 gdbsupport/tdesc.h.
1370 (target_desc_up): Likewise.
1371
1372 2020-07-17 Tom Tromey <tromey@adacore.com>
1373
1374 * linux-nat.c (linux_nat_target::supports_non_stop)
1375 (linux_nat_target::always_non_stop_p): Use "true".
1376 (linux_nat_target::supports_disable_randomization): Use "true" and
1377 "false".
1378
1379 2020-07-16 Caroline Tice <cmtice@google.com>
1380
1381 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1382 (RNGLIST_HEADER_SIZE64): New constant definition.
1383 (struct dwop_section_names): Add rnglists_dwo.
1384 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1385 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1386 (struct dwo_sections): Add rnglists field.
1387 (read_attribut_reprocess): Add tag parameter.
1388 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1389 (cu_debug_rnglists_section): New function (decl & definition).
1390 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1391 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1392 die whose range is being checked; get rnglist section from
1393 cu_debug_rnglists_section, to get from either objfile or dwo file as
1394 appropriate. Add cases for DW_RLE_base_addressx,
1395 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1396 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1397 test inside if-condition and updating complaint message.
1398 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1399 dwarf2_rnglists_process.
1400 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1401 dwarf2_ranges_process.
1402 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1403 need_ranges_base and update comment appropriately. Also pass die tag
1404 to dwarf2_ranges_read.
1405 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1406 need_ranges_base and update comment appropriately. Also pass die tag
1407 to dwarf2_ranges_process.
1408 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1409 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1410 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1411 need_ranges_base and update comment appropriately. Also pass die tag
1412 to read_attribute_reprocess and dwarf2_ranges_read.
1413 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1414 and update function comment appropriately.
1415 (read_loclist_index): Call read_loclists_rnglists_header instead of
1416 read_loclist_header.
1417 (read_rnglist_index): New function.
1418 (read_attribute_reprocess): Add tag parameter. Add code for
1419 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1420 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1421
1422 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1425 being resolved.
1426
1427 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * arch-utils.c (show_architecture): Update formatting of messages.
1430
1431 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1432
1433 * gdbtypes.h (struct type) <bounds>: Handle array and string
1434 types.
1435 * ada-lang.c (assign_aggregate): Use type::bounds on
1436 array/string type.
1437 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1438 * c-varobj.c (c_number_of_children): Likewise.
1439 (c_describe_child): Likewise.
1440 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1441 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1442 (f_type_print_base): Likewise.
1443 * f-valprint.c (f77_array_offset_tbl): Likewise.
1444 (f77_get_upperbound): Likewise.
1445 (f77_print_array_1): Likewise.
1446 * guile/scm-type.c (gdbscm_type_range): Likewise.
1447 * m2-typeprint.c (m2_array): Likewise.
1448 (m2_is_long_set_of_type): Likewise.
1449 * m2-valprint.c (get_long_set_bounds): Likewise.
1450 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1451 * python/py-type.c (typy_range): Likewise.
1452 * rust-lang.c (rust_internal_print_type): Likewise.
1453 * type-stack.c (type_stack::follow_types): Likewise.
1454 * valarith.c (value_subscripted_rvalue): Likewise.
1455 * valops.c (value_cast): Likewise.
1456
1457 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1458
1459 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1460 callers to use the equivalent accessor methods.
1461
1462 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1465 (struct type) <bit_stride>: New method.
1466 (TYPE_BIT_STRIDE): Remove.
1467 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1468
1469 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1470
1471 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1472 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1473 callers to use the equivalent accessor methods instead.
1474
1475 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1476
1477 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1478 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1479 callers to use the equivalent accessor methods instead.
1480
1481 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1484 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1485 to use dynamic_prop::kind.
1486
1487 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1488
1489 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1490 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1491 to get the bound property's kind and check against
1492 PROP_UNDEFINED.
1493
1494 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1497 all callers to use type::range_bounds followed by
1498 dynamic_prop::{low,high}.
1499
1500 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1503 const_val, set_const_val, baton, set_locexpr, set_loclist,
1504 set_addr_offset, variant_parts, set_variant_parts,
1505 original_type, set_original_type>: New methods.
1506 <kind>: Rename to...
1507 <m_kind>: ... this. Update all users to use the new methods
1508 instead.
1509 <data>: Rename to...
1510 <m_data>: ... this. Update all users to use the new methods
1511 instead.
1512
1513 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * gdbtypes.c (get_discrete_bounds): Return failure if
1516 the range type's bounds are not both defined and constant
1517 values.
1518 (get_array_bounds): Update comment. Remove undefined bound check.
1519
1520 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1523 the type::bounds method directly.
1524
1525 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1526
1527 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1528 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1529 are used to set the range type's bounds to use set_bounds.
1530
1531 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1532
1533 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1534
1535 2020-07-10 Pedro Alves <pedro@palves.net>
1536
1537 * gdbthread.h (inferior_ref): Define.
1538 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1539 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1540 * thread.c
1541 (scoped_restore_current_thread::restore):
1542 Adjust to gdb::ref_ptr.
1543 (scoped_restore_current_thread::~scoped_restore_current_thread):
1544 Remove manual decref handling.
1545 (scoped_restore_current_thread::scoped_restore_current_thread):
1546 Adjust to use
1547 inferior_ref::new_reference/thread_info_ref::new_reference.
1548 Incref the thread before calling get_frame_id instead of after.
1549 Let TARGET_CLOSE_ERROR propagate.
1550
1551 2020-07-10 Pedro Alves <pedro@palves.net>
1552
1553 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1554 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1555 NOT_AVAILABLE_ERROR.
1556 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1557 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1558
1559 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1560 Pedro Alves <pedro@palves.net>
1561
1562 PR gdb/26199
1563 * infrun.c (threads_are_resumed_pending_p): Delete.
1564 (do_target_wait): Remove threads_are_executing and
1565 threads_are_resumed_pending_p checks from the inferior_matches
1566 lambda. Update comments.
1567
1568 2020-07-10 Pedro Alves <pedro@palves.net>
1569
1570 PR gdb/26199
1571 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1572 executing threads.
1573
1574 2020-07-10 Pedro Alves <pedro@palves.net>
1575
1576 PR gdb/26199
1577 * infrun.c (handle_no_resumed): Handle multiple targets.
1578
1579 2020-07-10 Pedro Alves <pedro@palves.net>
1580
1581 PR gdb/26199
1582 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1583 target_is_async_p.
1584
1585 2020-07-10 Pedro Alves <pedro@palves.net>
1586
1587 PR gdb/26199
1588 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1589 threads, not all threads.
1590
1591 2020-07-10 Pedro Alves <pedro@palves.net>
1592
1593 PR gdb/26199
1594 * remote.c (remote_target::open_1): Pass remote target pointer as
1595 data to create_async_event_handler.
1596 (remote_async_inferior_event_handler): Mark async event handler
1597 before returning if the remote target still has either pending
1598 events or unacknowledged notifications.
1599
1600 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1601
1602 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1603 declaration.
1604 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1605 function.
1606
1607 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1608
1609 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1610 inferior_ptid.
1611
1612 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1613
1614 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1615 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1616 AT_FREEBSD_PS_STRINGS.
1617
1618 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1619
1620 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1621 of debugfile path on Windows.
1622
1623 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1624
1625 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1626 argument to 'data'.
1627
1628 2020-07-08 Tom Tromey <tromey@adacore.com>
1629
1630 * ada-lang.c (ada_exception_message_1): Use read_memory.
1631
1632 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 PR python/22748
1635 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1636 special handling for inline frames.
1637 * findvar.c (value_of_register_lazy): Skip inline frames when
1638 creating lazy register values.
1639 * frame.c (frame_id_computed_p): Delete definition.
1640 * frame.h (frame_id_computed_p): Delete declaration.
1641
1642 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * NEWS: Mention additions to Python API.
1645 * python/py-arch.c (archpy_register_groups): New function.
1646 (arch_object_methods): Add 'register_groups' method.
1647 * python/py-registers.c (reggroup_iterator_object): New struct.
1648 (reggroup_object): New struct.
1649 (gdbpy_new_reggroup): New function.
1650 (gdbpy_reggroup_to_string): New function.
1651 (gdbpy_reggroup_name): New function.
1652 (gdbpy_reggroup_iter): New function.
1653 (gdbpy_reggroup_iter_next): New function.
1654 (gdbpy_new_reggroup_iterator): New function
1655 (gdbpy_initialize_registers): Register new types.
1656 (reggroup_iterator_object_type): Define new Python type.
1657 (gdbpy_reggroup_getset): New static global.
1658 (reggroup_object_type): Define new Python type.
1659 * python/python-internal.h
1660
1661 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1664 * python/py-arch.c (archpy_registers): New function.
1665 (arch_object_methods): Add 'registers' method.
1666 * python/py-registers.c: New file.
1667 * python/python-internal.h
1668 (gdbpy_new_register_descriptor_iterator): Declare.
1669 (gdbpy_initialize_registers): Declare.
1670 * python/python.c (do_start_initialization): Call
1671 gdbpy_initialize_registers.
1672 * NEWS: Mention additions to the Python API.
1673
1674 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * NEWS: Mention new Python API method.
1677 * python/py-unwind.c (pending_framepy_architecture): New function.
1678 (pending_frame_object_methods): Add architecture method.
1679
1680 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * gdbarch.c: Regenerate.
1683 * gdbarch.h: Regenerate.
1684 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1685 (gdbarch_data): Use internal_error for the case where
1686 deprecated_set_gdbarch_data was originally needed.
1687 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1688 and use passed in obstack.
1689 (libunwind_frame_set_descr): Should no longer get back NULL from
1690 gdbarch_data.
1691 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1692 type.
1693 * user-regs.c (user_regs_init): Update parameters, and use passed
1694 in obstack.
1695 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1696 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1697
1698 2020-07-06 Tom de Vries <tdevries@suse.de>
1699
1700 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1701 End-Of-Sequence in lte_is_less_than.
1702 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1703 "gdb: Don't reorder line table entries too much when sorting".
1704
1705 2020-07-06 Tom de Vries <tdevries@suse.de>
1706
1707 PR tui/26205
1708 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1709
1710 2020-07-05 Tom de Vries <tdevries@suse.de>
1711
1712 PR build/26187
1713 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1714 std::uncaught_exceptions instead of deprecated
1715 std::uncaught_exception.
1716
1717 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * macroexp.h (macro_stringify): Return
1720 gdb::unique_xmalloc_ptr<char>.
1721 * macroexp.c (macro_stringify): Likewise.
1722 * macrotab.c (fixup_definition): Update.
1723
1724 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1727 (lex_one_token): Update.
1728 * macroexp.c (struct macro_buffer) <release>: Return
1729 gdb::unique_xmalloc_ptr<char>.
1730 (macro_stringify): Update.
1731 (macro_expand): Update.
1732 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1733 * macroexp.h (macro_expand_next): Likewise.
1734
1735 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * macroexp.h (macro_lookup_ftype): Remove.
1738 (macro_expand, macro_expand_once, macro_expand_next): Remove
1739 lookup function parameters, add scope parameter.
1740 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1741 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1742 * macroscope.h (standard_macro_lookup): Change parameter type
1743 to macro_scope.
1744 * macroscope.c (standard_macro_lookup): Likewise.
1745 * c-exp.y (lex_one_token): Update.
1746 * macrocmd.c (macro_expand_command): Likewise.
1747 (macro_expand_once_command): Likewise.
1748
1749 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * inf-loop.c (inferior_event_handler): Remove client_data param.
1752 * inf-loop.h (inferior_event_handler): Likewise.
1753 * infcmd.c (step_1): Adjust.
1754 * infrun.c (proceed): Adjust.
1755 (fetch_inferior_event): Remove client_data param.
1756 (infrun_async_inferior_event_handler): Adjust.
1757 * infrun.h (fetch_inferior_event): Remove `void *` param.
1758 * linux-nat.c (handle_target_event): Adjust.
1759 * record-btrace.c (record_btrace_handle_async_inferior_event):
1760 Adjust.
1761 * record-full.c (record_full_async_inferior_event_handler):
1762 Adjust.
1763 * remote.c (remote_async_inferior_event_handler): Adjust.
1764
1765 2020-07-01 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1768 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1769
1770 2020-07-01 Tom Tromey <tom@tromey.com>
1771
1772 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1773 tui_gen_win_info.
1774 (tui_win_info::make_window): Merge with
1775 tui_gen_win_info::make_window.
1776 (tui_win_info::make_visible): Move from tui_gen_win_info.
1777 * tui/tui-win.c (tui_win_info::max_width): Move from
1778 tui_gen_win_info.
1779 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1780 type.
1781 <window_factory>: Likewise.
1782 * tui/tui-layout.c (tui_win_info::resize): Move from
1783 tui_gen_win_info.
1784 (make_standard_window): Change return type.
1785 (get_locator_window, tui_get_window_by_name): Likewise.
1786 (tui_layout_window::apply): Remove a cast.
1787 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1788 (struct tui_win_info): Merge with tui_gen_win_info.
1789 (struct tui_gen_win_info): Remove.
1790
1791 2020-07-01 Tom Tromey <tom@tromey.com>
1792
1793 * tui/tui-stack.h (struct tui_locator_window): Derive from
1794 tui_win_info.
1795 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1796 <can_box>: New method.
1797
1798 2020-07-01 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1801
1802 2020-07-01 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-regs.c (tui_data_window::display_registers_from)
1805 (tui_data_window::display_registers_from)
1806 (tui_data_window::first_data_item_displayed)
1807 (tui_data_window::delete_data_content_windows): Update.
1808 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1809 Remove.
1810 (tui_data_window::check_register_values): Update.
1811 (tui_data_item_window::rerender): Add parameters. Update.
1812 (tui_data_item_window::refresh_window): Remove.
1813 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1814 virtual.
1815 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1816 tui_gen_win_info.
1817 <refresh_window, max_height, min_height>: Remove.
1818 <rerender>: Add parameters.
1819 <x, y, visible>: New members.
1820 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1821 <m_item_width>: New member.
1822
1823 2020-07-01 Tom Tromey <tom@tromey.com>
1824
1825 * tui/tui-regs.c (tui_data_window::show_register_group)
1826 (tui_data_window::check_register_values): Update.
1827 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1828 from item_no.
1829
1830 2020-07-01 Tom Tromey <tom@tromey.com>
1831
1832 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1833 useless "if".
1834
1835 2020-07-01 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1838 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1839
1840 2020-07-01 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1843 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1844 (struct tui_line_or_address): Move from tui-data.h.
1845 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1846 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1847 (tui_cmd_window, tui_source_window_base, tui_source_window)
1848 (tui_disasm_window): Don't declare.
1849 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1850 to tui-winsource.h.
1851 (SINGLE_KEY): Move to tui-stack.c.
1852
1853 2020-07-01 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1856 std::string.
1857 * tui/tui-regs.c (class tab_expansion_file): New.
1858 (tab_expansion_file::write): New method.
1859 (tui_register_format): Change return type. Use
1860 tab_expansion_file.
1861 (tui_get_register, tui_data_window::display_registers_from)
1862 (tui_data_item_window::rerender): Update.
1863 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1864 * tui/tui-io.c (tui_expand_tabs): Remove.
1865
1866 2020-07-01 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1869
1870 2020-07-01 Fangrui Song <maskray@google.com>
1871
1872 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1873
1874 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1875
1876 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1877 forms for DW_AT_associated and DW_AT_allocated attributes,
1878 which is already checked in function attr_to_dynamic_prop.
1879
1880 2020-06-30 Tom Tromey <tromey@adacore.com>
1881
1882 * dwarf2/read.c (quirk_rust_enum): Correctly call
1883 alloc_rust_variant for default-less enum.
1884
1885 2020-06-30 Tom Tromey <tromey@adacore.com>
1886
1887 PR build/26183:
1888 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1889 gdb::to_string.
1890
1891 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1894 * gdbarch.h: Re-generate.
1895
1896 2020-06-28 Tom Tromey <tom@tromey.com>
1897
1898 * command.h (cmd_types): Remove.
1899 (cmd_type): Don't declare.
1900 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1901 typedef.
1902 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1903 * cli/cli-decode.c (cmd_type): Remove.
1904
1905 2020-06-27 Pedro Alves <palves@redhat.com>
1906
1907 * fork-child.c (prefork_hook): Adjust.
1908 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1909 Delete.
1910 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1911 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1912 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1913 Remove declarations.
1914 (struct inferior) <set_tty, tty>: New methods.
1915 (struct inferior) <terminal>: Rename to ...
1916 (struct inferior) <m_terminal>: ... this and make private.
1917 * main.c (captured_main_1): Adjust.
1918 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1919 (mi_cmd_inferior_tty_show): Adjust.
1920 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1921 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1922
1923 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1924
1925 * configure.ac: Add --enable-libctf: handle --disable-static
1926 properly.
1927 * acinclude.m4: sinclude ../config/enable.m4.
1928 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1929 (LIBCTF): Substitute in.
1930 (CTF_DEPS): New, likewise.
1931 (CLIBS): libctf needs symbols from libbfd: move earlier.
1932 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1933 flags.
1934 * ctfread.c: Surround in ENABLE_LIBCTF.
1935 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1936 * configure: Regenerate.
1937 * config.in: Likewise.
1938
1939 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1942
1943 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1944
1945 * inferior.h (struct inferior) <terminal>: Change type to
1946 gdb::unique_xmalloc_ptr<char>.
1947 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1948 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1949 field, adjust to unique pointer.
1950 (get_inferior_io_terminal): Adjust to unique pointer.
1951
1952 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1955 registers, not just the known core set of registers.
1956
1957 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1960 fflags, frm, and fcsr registers.
1961 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1962 restore groups.
1963 (riscv_tdesc_unknown_reg): New function.
1964 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1965 tdesc_use_registers.
1966 * riscv-tdep.h (struct gdbarch_tdep): Add
1967 unknown_csrs_first_regnum, unknown_csrs_count,
1968 duplicate_fflags_regnum, duplicate_frm_regnum, and
1969 duplicate_fcsr_regnum fields.
1970
1971 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1974 callback, use the callback (when not null) to help number unknown
1975 registers.
1976 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1977 (tdesc_use_registers): Add extra parameter to declaration.
1978
1979 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1980
1981 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1982 in the file.
1983 (class riscv_pending_register_alias): Likewise.
1984 (riscv_register_feature::register_info): Change 'required_p' field
1985 to 'required', and change its type. Add 'check' member function.
1986 (riscv_register_feature::register_info::check): Define new member
1987 function.
1988 (riscv_xreg_feature): Change initialisation of 'required' field.
1989 (riscv_freg_feature): Likewise.
1990 (riscv_virtual_feature): Likewise.
1991 (riscv_csr_feature): Likewise.
1992 (riscv_check_tdesc_feature): Take extra parameter, the csr
1993 tdesc_feature, rewrite the function to use the new
1994 riscv_register_feature::register_info::check function.
1995 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1996
1997 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * features/Makefile: Remove all references to the deleted files
2000 below.
2001 * features/riscv/32bit-csr.c: Deleted.
2002 * features/riscv/32bit-csr.xml: Deleted.
2003 * features/riscv/64bit-csr.c: Deleted.
2004 * features/riscv/64bit-csr.xml: Deleted.
2005 * features/riscv/rebuild-csr-xml.sh: Deleted.
2006
2007 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2010 whitespace error for declaration of names member variable.
2011 (struct riscv_register_feature): Add new prefer_first_name member
2012 variable, and fix whitespace error in declaration of registers.
2013 (riscv_xreg_feature): Initialize prefer_first_name field.
2014 (riscv_freg_feature): Likewise.
2015 (riscv_virtual_feature): Likewise.
2016 (riscv_csr_feature): Likewise.
2017 (riscv_register_name): Expand on comments. Remove register name
2018 modifications for CSR and virtual registers.
2019
2020 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2021
2022 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2023 errors.
2024
2025 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2026
2027 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2028 riscv-opc.h.
2029 (class riscv_pending_register_alias): New class.
2030 (riscv_check_tdesc_feature): Take vector of pending aliases and
2031 populate it as appropriate.
2032 (riscv_setup_register_aliases): Delete.
2033 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2034 to riscv_check_tdesc_feature in all cases. Use the vector to
2035 create the register aliases.
2036
2037 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2038
2039 * sol2-tdep.c (sol2_static_transform_name): Remove.
2040 (sol2_init_abi): Don't register it.
2041 * gdbarch.sh (static_transform_name): Remove.
2042 * gdbarch.c, gdbarch.h: Regenerate.
2043
2044 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2045 gdbarch_static_transform_name.
2046 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2047 * stabsread.c (define_symbol) <'X'>: Remove.
2048 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2049 handling.
2050 <'V'>: Likewise.
2051 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2052 <'S'>: Remove call to gdbarch_static_transform_name.
2053
2054 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2055
2056 * procfs.c (procfs_pre_trace): New function.
2057 (procfs_target::create_inferior): Pass it to fork_inferior.
2058
2059 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2060
2061 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2062 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2063 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2064 sol2-tdep.o, sparc-sol2-tdep.o.
2065 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2066 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2067 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2068 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2069
2070 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2071
2072 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2073 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2074 Call sol2_init_abi.
2075 Remove calls to set_gdbarch_skip_solib_resolver,
2076 set_gdbarch_core_pid_to_str.
2077 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2078 (i386_sol2_static_transform_name): Remove.
2079 (i386_sol2_init_abi): Call sol2_init_abi.
2080 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2081 set_gdbarch_static_transform_name,
2082 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2083 Use sol2_sigtramp_p.
2084 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2085 (sol2_sigtramp_p): New function.
2086 (sol2_static_transform_name): New function.
2087 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2088 (sol2_init_abi): New function.
2089 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2090 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2091 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2092 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2093 (sparc_sol2_static_transform_name): Remove.
2094 (sparc32_sol2_init_abi): Call sol2_init_abi.
2095 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2096 set_gdbarch_static_transform_name,
2097 set_gdbarch_skip_solib_resolver,
2098 set_gdbarch_core_pid_to_str.
2099 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2100 (sparc_sol2_static_transform_name): Remove
2101 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2102 call sol2_sigtramp_p.
2103 (sparc64_sol2_init_abi): Call sol2_init_abi.
2104 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2105 set_gdbarch_static_transform_name,
2106 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2107
2108 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2109
2110 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2111 * exec.c (validate_exec_file): If from_tty, set both
2112 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2113 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2114 and from_tty, unconditionally ask a confirmation.
2115
2116 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * target-descriptions.c (tdesc_architecture_name): Protect against
2119 NULL pointer dereference.
2120 (maint_print_xml_tdesc_cmd): New function.
2121 (_initialize_target_descriptions): Register new 'maint print
2122 xml-tdesc' command and give it the filename completer.
2123 * NEWS: Mention new 'maint print xml-tdesc' command.
2124
2125 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * target-descriptions.c (class tdesc_compatible_info): New class.
2128 (struct target_desc): Change type of compatible vector.
2129 (tdesc_compatible_p): Update for change in type of
2130 target_desc::compatible.
2131 (tdesc_compatible_info_list): New function.
2132 (tdesc_compatible_info_arch_name): New function.
2133 (tdesc_add_compatible): Update for change in type of
2134 target_desc::compatible.
2135 (print_c_tdesc::visit_pre): Likewise.
2136
2137 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2140 whitespace to underscore.
2141 (maint_print_c_tdesc_cmd): Use fake filename for target
2142 descriptions that came from the target.
2143 (_initialize_target_descriptions): Add filename command completion
2144 for 'maint print c-tdesc'.
2145
2146 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2147
2148 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2149 lines.
2150
2151 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2152
2153 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2154 lines.
2155 (dwarf2_find_location_expression): Likewise.
2156 (call_site_parameter_matches): Likewise.
2157 (dwarf2_compile_expr_to_ax): Likewise.
2158 (disassemble_dwarf_expression): Likewise.
2159 (loclist_describe_location): Likewise.
2160
2161 2020-06-23 Pedro Alves <palves@redhat.com>
2162
2163 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2164 progspace-and-thread.h. Include scoped-mock-context.h instead.
2165 (register_to_value_test): Use scoped_mock_context.
2166 * regcache.c: Include "scoped-mock-context.h".
2167 (cooked_read_test): Don't error out if a target is already pushed.
2168 Use scoped_mock_context. Adjust.
2169 * scoped-mock-context.h: New file.
2170
2171 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2174 initializer.
2175 (ada_language::is_string_type_p): New member function.
2176 * c-lang.c (c_language_data): Delete la_is_string_type_p
2177 initializer.
2178 (cplus_language_data): Likewise.
2179 (asm_language_data): Likewise.
2180 (minimal_language_data): Likewise.
2181 * d-lang.c (d_language_data): Likewise.
2182 * f-lang.c (f_is_string_type_p): Delete function, implementation
2183 moved to f_language::is_string_type_p.
2184 (f_language_data): Delete la_is_string_type_p initializer.
2185 (f_language::is_string_type_p): New member function,
2186 implementation from f_is_string_type_p.
2187 * go-lang.c (go_is_string_type_p): Delete function, implementation
2188 moved to go_language::is_string_type_p.
2189 (go_language_data): Delete la_is_string_type_p initializer.
2190 (go_language::is_string_type_p): New member function,
2191 implementation from go_is_string_type_p.
2192 * language.c (language_defn::is_string_type_p): Define new member
2193 function.
2194 (default_is_string_type_p): Make static, add comment copied from
2195 header file.
2196 (unknown_language_data): Delete la_is_string_type_p initializer.
2197 (unknown_language::is_string_type_p): New member function.
2198 (auto_language_data): Delete la_is_string_type_p initializer.
2199 (auto_language::is_string_type_p): New member function.
2200 * language.h (language_data): Delete la_is_string_type_p field.
2201 (language_defn::is_string_type_p): Declare new function.
2202 (default_is_string_type_p): Delete desclaration, move comment to
2203 definition.
2204 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2205 moved to m2_language::is_string_type_p.
2206 (m2_language_data): Delete la_is_string_type_p initializer.
2207 (m2_language::is_string_type_p): New member function,
2208 implementation from m2_is_string_type_p.
2209 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2210 initializer.
2211 * opencl-lang.c (opencl_language_data): Likewise.
2212 * p-lang.c (pascal_is_string_type_p): Delete function,
2213 implementation moved to pascal_language::is_string_type_p.
2214 (pascal_language_data): Delete la_is_string_type_p initializer.
2215 (pascal_language::is_string_type_p): New member function,
2216 implementation from pascal_is_string_type_p.
2217 * rust-lang.c (rust_is_string_type_p): Delete function,
2218 implementation moved to rust_language::is_string_type_p.
2219 (rust_language_data): Delete la_is_string_type_p initializer.
2220 (rust_language::is_string_type_p): New member function,
2221 implementation from rust_is_string_type_p.
2222 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2223 is_string_type_p.
2224
2225 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * ada-lang.c (ada_language_data): Delete la_print_typedef
2228 initializer.
2229 (ada_language::print_typedef): New member function.
2230 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2231 (cplus_language_data): Likewise.
2232 (asm_language_data): Likewise.
2233 (minimal_language_data): Likewise.
2234 * d-lang.c (d_language_data): Likewise.
2235 * f-lang.c (f_language_data): Likewise.
2236 (f_language::print_typedef): New member function.
2237 * go-lang.c (go_language_data): Delete la_print_typedef
2238 initializer.
2239 * language.c (language_defn::print_typedef): Define member
2240 function.
2241 (unknown_language_data): Delete la_print_typedef initializer.
2242 (unknown_language::print_typedef): New member function.
2243 (auto_language_data): Delete la_print_typedef initializer.
2244 (auto_language::print_typedef): New member function.
2245 * language.h (language_data): Delete la_print_typedef field.
2246 (language_defn::print_typedef): Declare new member function.
2247 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2248 (default_print_typedef): Delete declaration.
2249 * m2-lang.c (m2_language_data): Delete la_print_typedef
2250 initializer.
2251 (m2_language::print_typedef): New member function.
2252 * objc-lang.c (objc_language_data): Delete la_print_typedef
2253 initializer.
2254 * opencl-lang.c (opencl_language_data): Likewise.
2255 * p-lang.c (pascal_language_data): Likewise.
2256 (pascal_language::print_typedef): New member function.
2257 * rust-lang.c (rust_print_typedef): Delete function,
2258 implementation moved to rust_language::print_typedef.
2259 (rust_language): Delete la_print_typedef initializer.
2260 (rust_language::print_typedef): New member function,
2261 implementation from rust_print_typedef.
2262 * typeprint.c (default_print_typedef): Delete.
2263
2264 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2267 (ada_language::printstr): New member function.
2268 * c-lang.c (c_language_data): Delete la_printstr initializer.
2269 (cplus_language_data): Likewise.
2270 (asm_language_data): Likewise.
2271 (minimal_language_data): Likewise.
2272 * d-lang.c (d_language_data): Likewise.
2273 * f-lang.c (f_printstr): Rename to f_language::printstr.
2274 (f_language_data): Delete la_printstr initializer.
2275 (f_language::printstr): New member function, implementation from
2276 f_printstr.
2277 * go-lang.c (go_language_data): Delete la_printstr initializer.
2278 * language.c (language_defn::printstr): Define new member
2279 function.
2280 (unk_lang_printstr): Delete.
2281 (unknown_language_data): Delete la_printstr initializer.
2282 (unknown_language::printstr): New member function.
2283 (auto_language_data): Delete la_printstr initializer.
2284 (auto_language::printstr): New member function.
2285 * language.h (language_data): Delete la_printstr field.
2286 (language_defn::printstr): Declare new member function.
2287 (LA_PRINT_STRING): Update call to printstr.
2288 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2289 (m2_language_data): Delete la_printstr initializer.
2290 (m2_language::printstr): New member function, implementation from
2291 m2_printstr.
2292 * objc-lang.c (objc_language_data): Delete la_printstr
2293 initializer.
2294 * opencl-lang.c (opencl_language_data): Likewise.
2295 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2296 (pascal_language_data): Delete la_printstr initializer.
2297 (pascal_language::printstr): New member function, implementation
2298 from pascal_printstr.
2299 * p-lang.h (pascal_printstr): Delete declaration.
2300 * rust-lang.c (rust_printstr): Update header comment.
2301 (rust_language_data): Delete la_printstr initializer.
2302 (rust_language::printstr): New member function.
2303
2304 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2307 (ada_language::printchar): New member function.
2308 * c-lang.c (c_language_data): Delete la_printchar initializer.
2309 (cplus_language_data): Likewise.
2310 (asm_language_data): Likewise.
2311 (minimal_language_data): Likewise.
2312 * d-lang.c (d_language_data): Likewise.
2313 * f-lang.c (f_printchar): Rename to f_language::printchar.
2314 (f_language_data): Delete la_printchar initializer.
2315 (f_language::printchar): New member function, implementation from
2316 f_printchar.
2317 * go-lang.c (go_language_data): Delete la_printchar initializer.
2318 * language.c (unk_lang_printchar): Delete.
2319 (language_defn::printchar): Define new member function.
2320 (unknown_language_data): Delete la_printchar initializer.
2321 (unknown_language::printchar): New member function.
2322 (auto_language_data): Delete la_printchar initializer.
2323 (auto_language::printchar): New member function.
2324 * language.h (language_data): Delete la_printchar field.
2325 (language_defn::printchar): Declare new member function.
2326 (LA_PRINT_CHAR): Update call to printchar.
2327 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2328 (m2_language::printchar): New member function.
2329 * objc-lang.c (objc_language_data): Delete la_printchar
2330 initializer.
2331 * opencl-lang.c (opencl_language_data): Likewise.
2332 * p-lang.c (pascal_language_data): Delete la_printchar
2333 initializer.
2334 (pascal_language::printchar): New member function.
2335 * rust-lang.c (rust_printchar): Rename to
2336 rust_language::printchar.
2337 (rust_language_data): Delete la_printchar initializer.
2338 (rust_language::printchar): New member function, implementation
2339 from rust_printchar.
2340
2341 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2344 (ada_language_data): Delete la_emitchar initializer.
2345 (ada_language::emitchar): New member function, implementation from
2346 emit_char.
2347 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2348 (cplus_language_data): Likewise.
2349 (asm_language_data): Likewise.
2350 (minimal_language_data): Likewise.
2351 * d-lang.c (d_language_data): Likewise.
2352 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2353 (f_language_data): Delete la_emitchar initializer.
2354 (f_language::emitchar): New member function, implementation from
2355 f_emit_char.
2356 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2357 * language.c (unk_lang_emit_char): Delete.
2358 (language_defn::emitchar): New member function definition.
2359 (unknown_language_data): Delete la_emitchar initializer.
2360 (unknown_language::emitchar): New member function.
2361 (auto_language_data): Delete la_emitchar initializer.
2362 (auto_language::emitchar): New member function.
2363 * language.h (language_data): Delete la_emitchar field.
2364 (language_defn::emitchar): New member field declaration.
2365 (LA_EMIT_CHAR): Update call to emitchar.
2366 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2367 (m2_language_data): Delete la_emitchar initializer.
2368 (m2_language::emitchar): New member function, implementation from
2369 m2_emit_char.
2370 * objc-lang.c (objc_language_data): Delete la_emitchar
2371 initializer.
2372 * opencl-lang.c (opencl_language_data): Likewise.
2373 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2374 (pascal_language_data): Delete la_emitchar initializer.
2375 (pascal_language::emitchar): New member function, implementation
2376 from pascal_emit_char.
2377 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2378 (rust_language_data): Delete la_emitchar initializer.
2379 (rust_language::emitchar): New member function, implementation
2380 from rust_emitchar.
2381
2382 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2385 (ada_language_data): Delete la_post_parser initializer.
2386 (ada_language::post_parser): New member function.
2387 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2388 (cplus_language_data): Likewise.
2389 (asm_language_data): Likewise.
2390 (minimal_language_data): Likewise.
2391 * d-lang.c (d_language_data): Likewise.
2392 * f-lang.c (f_language_data): Likewise.
2393 * go-lang.c (go_language_data): Likewise.
2394 * language.c (unknown_language_data): Likewise.
2395 (auto_language_data): Likewise.
2396 * language.h (language_data): Delete la_post_parser field.
2397 (language_defn::post_parser): New member function.
2398 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2399 * objc-lang.c (objc_language_data): Likewise.
2400 * opencl-lang.c (opencl_language_data): Likewise.
2401 * p-lang.c (pascal_language_data): Likewise.
2402 * parse.c (parse_exp_in_context): Update call to post_parser.
2403 (null_post_parser): Delete definition.
2404 * parser-defs.h (null_post_parser): Delete declaration.
2405 * rust-lang.c (rust_language_data): Delete la_post_parser
2406 initializer.
2407
2408 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * ada-lang.c (parse): Rename to ada_language::parser.
2411 (ada_language_data): Delete la_parser initializer.
2412 (ada_language::parser): New member function, implementation from
2413 parse.
2414 * c-lang.c (c_language_data): Delete la_parser initializer.
2415 (cplus_language_data): Likewise.
2416 (asm_language_data): Likewise.
2417 (minimal_language_data): Likewise.
2418 * d-lang.c (d_language_data): Likewise.
2419 (d_language::parser): New member function.
2420 * f-lang.c (f_language_data): Delete la_parser initializer.
2421 (f_language::parser): New member function.
2422 * go-lang.c (go_language_data): Delete la_parser initializer.
2423 (go_language::parser): New member function.
2424 * language.c (unk_lang_parser): Delete.
2425 (language_defn::parser): Define new member function.
2426 (unknown_language_data): Delete la_parser initializer.
2427 (unknown_language::parser): New member function.
2428 (auto_language_data): Delete la_parser initializer.
2429 (auto_language::parser): New member function.
2430 * language.h (language_data): Delete la_parser field.
2431 (language_defn::parser): Declare new member function.
2432 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2433 (m2_language::parser): New member function.
2434 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2435 * opencl-lang.c (opencl_language_data): Likewise.
2436 * p-lang.c (pascal_language_data): Likewise.
2437 (pascal_language::parser): New member function.
2438 * parse.c (parse_exp_in_context): Update call to parser.
2439 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2440 (rust_language::parser): New member function.
2441
2442 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * top.c (print_gdb_configuration): Print --with-python-libdir
2445 configuration value.
2446
2447 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2448
2449 * NEWS: Mention change to the alias command.
2450
2451 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2452
2453 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2454 (alias_command_completer)
2455 (make_alias_options_def_group): New functions.
2456 (alias_opts, alias_option_defs): New struct and array.
2457 (alias_usage_error): Update usage.
2458 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2459 Use option framework.
2460 (_initialize_cli_cmds): Update alias command help.
2461 Update aliases command help.
2462 (show_user):
2463 Add NULL for new default_args lookup_cmd argument.
2464 (valid_command_p): Rename to validate_aliased_command.
2465 Add NULL for new default_args lookup_cmd argument. Verify that the
2466 aliased_command has no default args.
2467 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2468 (lookup_cmd_1, lookup_cmd): New argument default_args.
2469 (add_alias_cmd):
2470 Add NULL for new default_args lookup_cmd argument.
2471 (print_help_for_command): Show default args under the layout
2472 alias some_alias = some_aliased_cmd some_alias_default_arg.
2473 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2474 xfree default_args in destructor.
2475 * cli/cli-script.c (process_next_line, do_define_command):
2476 Add NULL for new default_args lookup_cmd argument.
2477 * command.h: Declare new default_args argument in lookup_cmd
2478 and lookup_cmd_1.
2479 * completer.c (complete_line_internal_1):
2480 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2481 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2482 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2483 Likewise.
2484 * infcmd.c (_initialize_infcmd): Likewise.
2485 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2486 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2487 * python/py-param.c (add_setshow_generic): Likewise.
2488 * remote.c (_initialize_remote): Likewise.
2489 * top.c (execute_command): Prepend default_args if command has some.
2490 (set_verbose):
2491 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2492 * tracepoint.c (validate_actionline, encode_actions_1):
2493 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2494
2495 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2496
2497 * jit.c (jit_read_descriptor): Use bool as the return type.
2498 (jit_breakpoint_re_set_internal): Use bool as the return type.
2499 Invert the return value logic; return true if the jit breakpoint
2500 has been successfully initialized.
2501 (jit_inferior_init): Update the call to
2502 jit_breakpoint_re_set_internal.
2503
2504 2020-06-22 Pedro Alves <palves@redhat.com>
2505
2506 PR gdb/25939
2507 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2508 Use the current inferior instead. Don't return
2509 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2510 wait again.
2511 * sol-thread.c (sol_thread_target::wait): Don't reference
2512 inferior_ptid.
2513 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2514 (sol_update_thread_list_callback): Use the current inferior's pid
2515 instead of inferior_ptid.
2516
2517 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2518
2519 * procfs.c: Cleanup many comments.
2520
2521 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2522 (AFTER_WATCHFLAG): Replace by value.
2523
2524 (MAIN_PROC_NAME_FORMAT): Inline ...
2525 (create_procinfo): ... here.
2526
2527 (procfs_debug_inferior): Remove SYS_exec handling.
2528 (syscall_is_exec): Likewise.
2529 (procfs_set_exec_trap): Likewise.
2530
2531 (syscall_is_lwp_exit): Inline in callers.
2532 (syscall_is_exit): Likewise.
2533 (syscall_is_exec): Likewise.
2534 (syscall_is_lwp_create): Likewise.
2535
2536 (invalidate_cache): Remove #if 0 code.
2537
2538 (make_signal_thread_runnable): Remove.
2539 (procfs_target::resume): Remove #if 0 code.
2540
2541 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2542
2543 PR gdb/25939
2544 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2545 call ...
2546 (procfs_target::create_inferior): ... here.
2547
2548 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2549
2550 * exec.c (validate_exec_file): Ensure the build-id is up to
2551 date by calling reopen_exec_file (that checks file timestamp
2552 to decide to re-read the file).
2553
2554 2020-06-18 Pedro Alves <palves@redhat.com>
2555
2556 PR gdb/25412
2557 * gdbthread.h (delete_thread, delete_thread_silent)
2558 (find_thread_ptid): Update comments.
2559 * thread.c (current_thread_): New global.
2560 (is_current_thread): Move higher, and reimplement.
2561 (inferior_thread): Reimplement.
2562 (set_thread_exited): Use bool. Add assertions.
2563 (add_thread_silent): Simplify thread-reuse handling by always
2564 calling delete_thread.
2565 (delete_thread): Remove intro comment.
2566 (find_thread_ptid): Skip exited threads.
2567 (switch_to_thread_no_regs): Write to current_thread_.
2568 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2569 INFERIOR_PTID. Clear current_thread_.
2570
2571 2020-06-18 Pedro Alves <palves@redhat.com>
2572
2573 * aix-thread.c (pd_update): Use switch_to_thread.
2574
2575 2020-06-18 Pedro Alves <palves@redhat.com>
2576
2577 * ravenscar-thread.c (ravenscar_thread_target): Update.
2578 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2579 (ravenscar_thread_target::add_active_thread): ... this. Don't
2580 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2581 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2582
2583 2020-06-18 Pedro Alves <palves@redhat.com>
2584
2585 * nat/windows-nat.c (current_windows_thread): Remove.
2586 * nat/windows-nat.h (current_windows_thread): Remove.
2587 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2588 Adjust.
2589 (display_selectors): Adjust to fetch the current
2590 windows_thread_info based on inferior_ptid.
2591 (fake_create_process): No longer write to current_windows_thread.
2592 (windows_nat_target::get_windows_debug_event):
2593 Don't set inferior_ptid or current_windows_thread.
2594 (windows_nat_target::wait): Adjust to not rely on
2595 current_windows_thread.
2596 (do_initial_windows_stuff): Now a method of windows_nat_target.
2597 Switch to the last_ptid thread.
2598 (windows_nat_target::attach): Adjust.
2599 (windows_nat_target::detach): Use switch_to_no_thread instead of
2600 writing to inferior_ptid directly.
2601 (windows_nat_target::create_inferior): Adjust.
2602
2603 2020-06-18 Pedro Alves <palves@redhat.com>
2604
2605 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2606
2607 2020-06-18 Pedro Alves <palves@redhat.com>
2608
2609 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2610 after creating it, instead of writing to inferior_ptid. Don't
2611 write to inferior_ptid.
2612
2613 2020-06-18 Pedro Alves <palves@redhat.com>
2614
2615 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2616
2617 2020-06-18 Pedro Alves <palves@redhat.com>
2618
2619 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2620 it, instead of writing to inferior_ptid.
2621
2622 2020-06-18 Pedro Alves <palves@redhat.com>
2623
2624 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2625 to inferior_ptid.
2626
2627 2020-06-18 Pedro Alves <palves@redhat.com>
2628
2629 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2630 instead of writing to inferior_ptid directly.
2631
2632 2020-06-18 Pedro Alves <palves@redhat.com>
2633
2634 * corelow.c (core_target::close): Use switch_to_no_thread instead
2635 of writing to inferior_ptid directly.
2636 (add_to_thread_list, core_target_open): Use switch_to_thread
2637 instead of writing to inferior_ptid directly.
2638
2639 2020-06-18 Pedro Alves <palves@redhat.com>
2640
2641 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2642 inferior_ptid.
2643 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2644 inferior_ptid.
2645 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2646 inferior_ptid directly.
2647 (darwin_nat_target::init_thread_list): Switch to thread, instead
2648 of writing to inferior_ptid.
2649 (darwin_nat_target::attach): Don't write to inferior_ptid.
2650 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2651
2652 2020-06-18 Pedro Alves <palves@redhat.com>
2653
2654 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2655 thread.
2656 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2657 Instead use switch_to_thread.
2658 (gnu_nat_target::detach): Use switch_to_no_thread
2659 instead of writing to inferior_ptid directly. Used passed-in
2660 inferior instead of looking up the inferior by pid.
2661
2662 2020-06-18 Pedro Alves <palves@redhat.com>
2663
2664 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2665 inferior_ptid.
2666
2667 2020-06-18 Pedro Alves <palves@redhat.com>
2668
2669 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2670 inferior_ptid.
2671 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2672 thread.
2673 (nto_procfs_target::detach): Avoid referencing
2674 inferior_ptid. Use switch_to_no_thread instead of writing to
2675 inferior_ptid directly.
2676 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2677 instead of writing to inferior_ptid directly.
2678 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2679 to thread.
2680
2681 2020-06-18 Pedro Alves <palves@redhat.com>
2682
2683 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2684 after creating it, instead of writing to inferior_ptid.
2685 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2686 to inferior_ptid directly.
2687 (gdbsim_target::wait): Don't write to inferior_ptid.
2688
2689 2020-06-18 Pedro Alves <palves@redhat.com>
2690
2691 * remote.c (remote_target::remote_notice_new_inferior): Use
2692 switch_to_thread instead of writing to inferior_ptid directly.
2693 (remote_target::add_current_inferior_and_thread): Use
2694 switch_to_no_thread instead of writing to inferior_ptid directly.
2695 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2696 and switch_to_thread instead of using set_current_inferior or
2697 writing to inferior_ptid directly.
2698
2699 2020-06-18 Pedro Alves <palves@redhat.com>
2700
2701 * tracectf.c (ctf_target_open): Switch to added thread instead of
2702 writing to inferior_ptid directly.
2703 (ctf_target::close): Use switch_to_no_thread instead of writing to
2704 inferior_ptid directly.
2705
2706 2020-06-18 Pedro Alves <palves@redhat.com>
2707
2708 * tracefile-tfile.c (tfile_target_open): Don't write to
2709 inferior_ptid directly, instead switch to added thread.
2710 (tfile_target::close): Use switch_to_no_thread instead of writing
2711 to inferior_ptid directly.
2712
2713 2020-06-18 Pedro Alves <palves@redhat.com>
2714
2715 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2716 (procfs_target::detach): Use switch_to_no_thread
2717 instead of writing to inferior_ptid directly.
2718 (do_attach): Change return type to void. Switch to the added
2719 thread.
2720 (procfs_target::create_inferior): Switch to the added thread.
2721 (procfs_do_thread_registers): Don't write to inferior_ptid.
2722
2723 2020-06-18 Pedro Alves <palves@redhat.com>
2724
2725 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2726 of writing to inferior_ptid.
2727 (scoped_restore_exited_inferior): Delete.
2728 (handle_vfork_child_exec_or_exit): Simplify using
2729 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2730 instead of writing to inferior_ptid.
2731 (THREAD_STOPPED_BY): Delete.
2732 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2733 (thread_stopped_by_hw_breakpoint): Delete.
2734 (save_waitstatus): Use
2735 scoped_restore_current_thread+switch_to_thread, and call
2736 target_stopped_by_watchpoint instead of
2737 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2738 instead of thread_stopped_by_sw_breakpoint, and
2739 target_stopped_by_hw_breakpoint instead of
2740 thread_stopped_by_hw_breakpoint.
2741 (handle_inferior_event)
2742 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2743 inferior_ptid directly, nor
2744 set_current_inferior/set_current_program_space. Use
2745 switch_to_thread / switch_to_inferior_no_thread instead.
2746
2747 2020-06-18 Pedro Alves <palves@redhat.com>
2748
2749 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2750 instead of writing to inferior_ptid.
2751
2752 2020-06-18 Pedro Alves <palves@redhat.com>
2753
2754 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2755 added thread.
2756 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2757 to the added thread.
2758 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2759 instead of writing to inferior_ptid.
2760
2761 2020-06-18 Pedro Alves <palves@redhat.com>
2762
2763 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2764 (register_to_value_test): Mock a program_space too. Heap-allocate
2765 the address space. Don't write to inferior_ptid. Use
2766 switch_to_thread instead.
2767
2768 2020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2771 Delete.
2772 (find_signalled_thread()): New, factored out from
2773 linux_make_corefile_notes and adjusted to handle exited threads.
2774 (linux_make_corefile_notes): Adjust to use the new
2775 find_signalled_thread.
2776
2777 2020-06-18 Pedro Alves <palves@redhat.com>
2778
2779 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2780 of saving/restoring inferior_ptid.
2781
2782 2020-06-17 Tom Tromey <tom@tromey.com>
2783
2784 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2785 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2786 declare.
2787 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2788
2789 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2792 of partial symtabs.
2793
2794 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2795
2796 * regformats/reg-arm.dat: Remove.
2797 * regformats/reg-bfin.dat: Remove.
2798 * regformats/reg-cris.dat: Remove.
2799 * regformats/reg-crisv32.dat: Remove.
2800 * regformats/reg-m32r.dat: Remove.
2801 * regformats/reg-tilegx.dat: Remove.
2802 * regformats/reg-tilegx32.dat: Remove.
2803
2804 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * features/Makefile (WHICH): Remove arm files.
2807 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2808 * regformats/arm/arm-with-neon.dat: Remove.
2809 * regformats/arm/arm-with-vfpv2.dat: Remove.
2810 * regformats/arm/arm-with-vfpv3.dat: Remove.
2811
2812 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * features/Makefile (XMLTOC): Remove rx.xml.
2815
2816 2020-06-17 Pedro Alves <palves@redhat.com>
2817
2818 * gdbthread.h (thread_control_state) <trap_expected> Update
2819 comments.
2820
2821 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2824 ada_language::lookup_symbol_nonlocal.
2825 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2826 (ada_language::lookup_symbol_nonlocal): New member function,
2827 implementation from ada_lookup_symbol_nonlocal.
2828 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2829 initializer.
2830 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2831 initializer.
2832 (cplus_language::lookup_symbol_nonlocal): New member function.
2833 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2834 (minimal_language_data) Likewise.
2835 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2836 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2837 initializer.
2838 (d_language::lookup_symbol_nonlocal): New member function.
2839 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2840 initializer.
2841 (f_language::lookup_symbol_nonlocal): New member function.
2842 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2843 initializer.
2844 * language.c (unknown_language_data): Likewise.
2845 (auto_language_data): Likewise.
2846 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2847 field.
2848 (language_defn::lookup_symbol_nonlocal): New member function.
2849 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2850 initializer.
2851 * objc-lang.c (objc_language_data): Likewise.
2852 * opencl-lang.c (opencl_language_data): Likewise.
2853 * p-lang.c (pascal_language_data): Likewise.
2854 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2855 rust_language::lookup_symbol_nonlocal.
2856 (rust_language_data): Delete la_lookup_symbol_nonlocal
2857 initializer.
2858 (rust_language::lookup_symbol_nonlocal): New member function,
2859 implementation from rust_lookup_symbol_nonlocal.
2860 * symtab.c (lookup_symbol_aux): Update call to
2861 lookup_symbol_nonlocal.
2862 (basic_lookup_symbol_nonlocal): Rename to...
2863 (language_defn::lookup_symbol_nonlocal): ...this, and update
2864 header comment. Remove language_defn parameter, and replace with
2865 uses of `this'.
2866 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2867
2868 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2871 initializer.
2872 (ada_language::value_print_inner): New member function.
2873 * c-lang.c (c_language_data): Delete la_value_print_inner
2874 initializer.
2875 (cplus_language_data): Likewise.
2876 (asm_language_data): Likewise.
2877 (minimal_language_data): Likewise.
2878 * d-lang.c (d_language_data): Likewise.
2879 (d_language::value_print_inner): New member function.
2880 * f-lang.c (f_language_data): Delete la_value_print_inner
2881 initializer.
2882 (f_language::value_print_inner): New member function.
2883 * f-lang.h (f_value_print_innner): Rename to...
2884 (f_value_print_inner): ...this (note spelling of 'inner').
2885 * f-valprint.c (f_value_print_innner): Rename to...
2886 (f_value_print_inner): ...this (note spelling of 'inner').
2887 * go-lang.c (go_language_data): Delete la_value_print_inner
2888 initializer.
2889 (go_language::value_print_inner): New member function.
2890 * language.c (language_defn::value_print_inner): Define new member
2891 function.
2892 (unk_lang_value_print_inner): Delete.
2893 (unknown_language_data): Delete la_value_print_inner initializer.
2894 (unknown_language::value_print_inner): New member function.
2895 (auto_language_data): Delete la_value_print_inner initializer.
2896 (auto_language::value_print_inner): New member function.
2897 * language.h (language_data): Delete la_value_print_inner field.
2898 (language_defn::value_print_inner): Delcare new member function.
2899 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2900 initializer.
2901 (m2_language::value_print_inner): New member function.
2902 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2903 initializer.
2904 * opencl-lang.c (opencl_language_data): Likewise.
2905 * p-lang.c (pascal_language_data): Likewise.
2906 (pascal_language::value_print_inner): New member function.
2907 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2908 initializer.
2909 (rust_language::value_print_inner): New member function.
2910 * valprint.c (do_val_print): Update call to value_print_inner.
2911
2912 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * ada-lang.c (ada_language_data): Delete la_value_print
2915 initializer.
2916 (ada_language::value_print): New member function.
2917 * c-lang.c (c_language_data): Delete la_value_print initializer.
2918 (cplus_language_data): Likewise.
2919 (asm_language_data): Likewise.
2920 (minimal_language_data): Likewise.
2921 * d-lang.c (d_language_data): Likewise.
2922 * f-lang.c (f_language_data): Likewise.
2923 * go-lang.c (go_language_data): Likewise.
2924 * language.c (unk_lang_value_print): Delete.
2925 (language_defn::value_print): Define new member function.
2926 (unknown_language_data): Delete la_value_print initializer.
2927 (unknown_language::value_print): New member function.
2928 (auto_language_data): Delete la_value_print initializer.
2929 (auto_language::value_print): New member function.
2930 * language.h (language_data): Delete la_value_print field.
2931 (language_defn::value_print): Declare new member function.
2932 (LA_VALUE_PRINT): Update call to value_print.
2933 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2934 * objc-lang.c (objc_language_data): Likewise.
2935 * opencl-lang.c (opencl_language_data): Likewise.
2936 * p-lang.c (pascal_language_data): Likewise.
2937 (pascal_language::value_print): New member function.
2938 * rust-lang.c (rust_language_data): Delete la_value_print
2939 initializer.
2940
2941 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * ada-lang.c (ada_watch_location_expression): Rename to
2944 ada_language::watch_location_expression.
2945 (ada_language_data): Delete la_watch_location_expression
2946 initializer.
2947 (ada_language::watch_location_expression): New member function,
2948 implementation from ada_watch_location_expression.
2949 * breakpoint.c (watch_command_1): Update call to
2950 watch_location_expression.
2951 * c-lang.c (c_watch_location_expression): Rename to
2952 language_defn::watch_location_expression.
2953 (c_language_data): Delete la_watch_location_expression
2954 initializer.
2955 (cplus_language_data): Likewise.
2956 (asm_language_data): Likewise.
2957 (minimal_language_data): Likewise.
2958 * c-lang.h (c_watch_location_expression): Delete declaration.
2959 * d-lang.c (d_language_data): Delete la_watch_location_expression
2960 initializer.
2961 * f-lang.c (f_language_data): Likewise.
2962 * go-lang.c (go_language_data): Likewise.
2963 * language.c (language_defn::watch_location_expression): Member
2964 function implementation from c_watch_location_expression.
2965 (unknown_language_data): Delete la_watch_location_expression
2966 initializer.
2967 (auto_language_data): Likewise.
2968 * language.h (language_data): Delete la_watch_location_expression
2969 field.
2970 (language_defn::watch_location_expression): Declare new member
2971 function.
2972 * m2-lang.c (m2_language_data): Delete
2973 la_watch_location_expression initializer.
2974 * objc-lang.c (objc_language_data): Likewise.
2975 * opencl-lang.c (opencl_language_data): Likewise.
2976 * p-lang.c (pascal_language_data): Likewise.
2977 * rust-lang.c (rust_watch_location_expression): Rename to
2978 rust_language::watch_location_expression.
2979 (rust_language_data): Delete la_watch_location_expression
2980 initializer.
2981 (rust_language::watch_location_expression): New member function,
2982 implementation from rust_watch_location_expression.
2983
2984 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2987 ada_language::collect_symbol_completion_matches.
2988 (ada_language_data): Delete la_collect_symbol_completion_matches
2989 initializer.
2990 (ada_language::collect_symbol_completion_matches): New member
2991 function, implementation from
2992 ada_collect_symbol_completion_matches.
2993 * c-lang.c (c_language_data): Delete
2994 la_collect_symbol_completion_matches initializer.
2995 (cplus_language_data): Likewise.
2996 (asm_language_data): Likewise.
2997 (minimal_language_data): Likewise.
2998 * d-lang.c (d_language_data): Likewise.
2999 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3000 f_language::collect_symbol_completion_matches.
3001 (f_language_data): Delete la_collect_symbol_completion_matches
3002 initializer.
3003 (f_language::collect_symbol_completion_matches) New member
3004 function, implementation from f_collect_symbol_completion_matches.
3005 * go-lang.c (go_language_data): Delete
3006 la_collect_symbol_completion_matches initializer.
3007 * language.c (unknown_language_data): Likewise.
3008 (auto_language_data): Likewise.
3009 * language.h (language_data): Delete
3010 la_collect_symbol_completion_matches field.
3011 (language_defn::collect_symbol_completion_matches): New member
3012 function.
3013 * m2-lang.c (m2_language_data): Delete
3014 la_collect_symbol_completion_matches initializer.
3015 * objc-lang.c (objc_language_data): Likewise.
3016 * opencl-lang.c (opencl_language_data): Likewise.
3017 * p-lang.c (pascal_language_data): Likewise.
3018 * rust-lang.c (rust_language_data): Likewise.
3019 * symtab.c (default_collect_symbol_completion_matches): Delete.
3020 (collect_symbol_completion_matches): Update call to
3021 collect_symbol_completion_matches.
3022 (collect_symbol_completion_matches_type): Likewise.
3023 * symtab.h (default_collect_symbol_completion_matches): Delete
3024 declaration.
3025
3026 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3029 (ada_language_data): Delete la_word_break_characters initializer.
3030 (ada_language::word_break_characters): New member function.
3031 * c-lang.c (c_language_data): Delete la_word_break_characters
3032 initializer.
3033 (cplus_language_data): Likewise.
3034 (asm_language_data): Likewise.
3035 (minimal_language_data): Likewise.
3036 * completer.c: Update global comment.
3037 (advance_to_expression_complete_word_point): Update call to
3038 word_break_characters.
3039 (complete_files_symbols): Likewise.
3040 (complete_line_internal_1): Likewise.
3041 (default_completer_handle_brkchars): Likewise.
3042 (skip_quoted_chars): Likewise.
3043 * d-lang.c (d_language_data): Delete la_word_break_characters
3044 initializer.
3045 * f-lang.c (f_word_break_characters): Delete.
3046 (f_language_data): Delete la_word_break_characters initializer.
3047 (f_language::word_break_characters): New member function.
3048 * go-lang.c (go_language_data): Delete la_word_break_characters
3049 initializer.
3050 * language.c (unknown_language_data): Likewise.
3051 (auto_language_data): Likewise.
3052 * language.h (default_word_break_characters): Move declaration to
3053 earlier in the file.
3054 (language_data): Delete la_word_break_characters field.
3055 (language_defn::word_break_characters): New member function.
3056 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3057 initializer.
3058 * objc-lang.c (objc_language_data): Likewise.
3059 * opencl-lang.c (opencl_language_data): Likewise.
3060 * p-lang.c (pascal_language_data): Likewise.
3061 * rust-lang.c (rust_language_data): Likewise.
3062
3063 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3066 (ada_language_data): Delete la_get_symbol_name_matcher
3067 initializer.
3068 (language_defn::get_symbol_name_matcher_inner): New member
3069 function.
3070 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3071 initializer.
3072 (cplus_language_data): Likewise.
3073 (cplus_language::get_symbol_name_matcher_inner): New member
3074 function.
3075 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3076 (minimal_language_data): Likewise.
3077 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3078 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3079 initializer.
3080 * dictionary.c (iter_match_first_hashed): Update call to
3081 get_symbol_name_matcher.
3082 (iter_match_next_hashed): Likewise.
3083 (iter_match_next_linear): Likewise.
3084 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3085 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3086 initializer.
3087 (f_language::get_symbol_name_matcher_inner): New member function.
3088 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3089 initializer.
3090 * language.c (default_symbol_name_matcher): Update header comment,
3091 make static.
3092 (language_defn::get_symbol_name_matcher): New definition.
3093 (language_defn::get_symbol_name_matcher_inner): Likewise.
3094 (get_symbol_name_matcher): Delete.
3095 (unknown_language_data): Delete la_get_symbol_name_matcher
3096 initializer.
3097 (auto_language_data): Likewise.
3098 * language.h (language_data): Delete la_get_symbol_name_matcher
3099 field.
3100 (language_defn::get_symbol_name_matcher): New member function.
3101 (language_defn::get_symbol_name_matcher_inner): Likewise.
3102 (default_symbol_name_matcher): Delete declaration.
3103 * linespec.c (find_methods): Update call to
3104 get_symbol_name_matcher.
3105 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3106 initializer.
3107 * minsyms.c (lookup_minimal_symbol): Update call to
3108 get_symbol_name_matcher.
3109 (iterate_over_minimal_symbols): Likewise.
3110 * objc-lang.c (objc_language_data): Delete
3111 la_get_symbol_name_matcher initializer.
3112 * opencl-lang.c (opencl_language_data): Likewise.
3113 * p-lang.c (pascal_language_data): Likewise.
3114 * psymtab.c (psymbol_name_matches): Update call to
3115 get_symbol_name_matcher.
3116 * rust-lang.c (rust_language_data): Delete
3117 la_get_symbol_name_matcher initializer.
3118 * symtab.c (symbol_matches_search_name): Update call to
3119 get_symbol_name_matcher.
3120 (compare_symbol_name): Likewise.
3121
3122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3123
3124 * ada-lang.c (ada_language_data): Delete la_compute_program
3125 initializer.
3126 * c-lang.c (c_language_data): Likewise.
3127 (c_language::compute_program): New member function.
3128 (cplus_language_data): Delete la_compute_program initializer.
3129 (cplus_language::compute_program): New member function.
3130 (asm_language_data): Delete la_compute_program initializer.
3131 (minimal_language_data): Likewise.
3132 * c-lang.h (c_compute_program): Update comment.
3133 (cplus_compute_program): Likewise.
3134 * compile/compile-c-support.c (c_compute_program): Likewise.
3135 (cplus_compute_program): Likewise.
3136 * compile/compile.c (compile_to_object): Update call to
3137 la_compute_program.
3138 * d-lang.c (d_language_data): Delete la_compute_program
3139 initializer.
3140 * f-lang.c (f_language_data): Likewise.
3141 * go-lang.c (go_language_data): Likewise.
3142 * language.c (unknown_language_data): Likewise.
3143 (auto_language_data): Likewise.
3144 * language.h (language_data): Delete la_compute_program field.
3145 (language_defn::compute_program): New member function.
3146 * m2-lang.c (m2_language_data): Delete la_compute_program
3147 initializer.
3148 * objc-lang.c (objc_language_data): Likewise.
3149 * opencl-lang.c (opencl_language_data): Likewise.
3150 * p-lang.c (pascal_language_data): Likewise.
3151 * rust-lang.c (rust_language_data): Likewise.
3152
3153 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3154
3155 * ada-lang.c (ada_language_data) Delete
3156 la_class_name_from_physname initializer.
3157 * c-lang.c (c_language_data): Likewise.
3158 (cplus_language_data): Likewise.
3159 (cplus_language::class_name_from_physname): New member function.
3160 (asm_language_data): Delete la_class_name_from_physname
3161 initializer.
3162 (minimal_language_data): Likewise.
3163 * d-lang.c (d_language_data): Likewise.
3164 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3165 method on language_defn class.
3166 (guess_full_die_structure_name): Likewise.
3167 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3168 initializer.
3169 * go-lang.c (go_language_data): Likewise.
3170 * language.c (language_class_name_from_physname): Delete.
3171 (unk_lang_class_name): Delete.
3172 (unknown_language_data): Delete la_class_name_from_physname
3173 initializer.
3174 (auto_language_data): Likewise.
3175 * language.h (language_data): Delete la_class_name_from_physname
3176 field.
3177 (language_defn::class_name_from_physname): New function.
3178 (language_class_name_from_physname): Delete declaration.
3179 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3180 initializer.
3181 * objc-lang.c (objc_language_data): Likewise.
3182 * opencl-lang.c (opencl_language_data): Likewise.
3183 * p-lang.c (pascal_language_data): Likewise.
3184 * rust-lang.c (rust_language_data): Likewise.
3185
3186 2020-06-16 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-data.h (STATUS_NAME): New macro.
3189 * tui/tui-layout.c (tui_remove_some_windows)
3190 (initialize_known_windows, tui_register_window)
3191 (tui_layout_split::remove_windows, initialize_layouts)
3192 (tui_new_layout_command): Don't use hard-coded window names.
3193
3194 2020-06-16 Tom Tromey <tom@tromey.com>
3195
3196 PR tui/25348:
3197 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3198 tui_initialize_readline. Only run once. Call rl_initialize.
3199 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3200 tui_initialize_readline.
3201 * tui/tui-io.c (tui_setup_io): Call
3202 tui_ensure_readline_initialized.
3203 * tui/tui-interp.c (tui_interp::init): Update.
3204
3205 2020-06-16 Tom Tromey <tom@tromey.com>
3206
3207 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3208 Also preserve the status window.
3209
3210 2020-06-16 Tom Tromey <tom@tromey.com>
3211
3212 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3213 where m_window==nullptr.
3214
3215 2020-06-15 Tom Tromey <tromey@adacore.com>
3216
3217 * windows-nat.c (windows_nat::handle_output_debug_string):
3218 Update.
3219 (windows_nat::handle_ms_vc_exception): Update.
3220 * target.h (target_read_string): Change API.
3221 * target.c (target_read_string): Change API.
3222 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3223 Update.
3224 * solib-frv.c (frv_current_sos): Update.
3225 * solib-dsbt.c (dsbt_current_sos): Update.
3226 * solib-darwin.c (darwin_current_sos): Update.
3227 * linux-thread-db.c (inferior_has_bug): Update.
3228 * expprint.c (print_subexp_standard): Update.
3229 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3230 (ada_exception_message_1): Update.
3231
3232 2020-06-15 Tom Tromey <tromey@adacore.com>
3233
3234 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3235
3236 2020-06-15 Tom Tromey <tromey@adacore.com>
3237
3238 * valprint.c (read_string): Update comment.
3239 * target.c (MIN): Remove.
3240 (target_read_string): Rewrite.
3241
3242 2020-06-15 Tom Tromey <tromey@adacore.com>
3243
3244 * corefile.c (read_memory_string): Remove.
3245 * ada-valprint.c (ada_value_print_ptr): Update.
3246 * ada-lang.h (ada_tag_name): Change return type.
3247 * ada-lang.c (type_from_tag): Update.
3248 (ada_tag_name_from_tsd): Change return type. Use
3249 target_read_string.
3250 (ada_tag_name): Likewise.
3251 * gdbcore.h (read_memory_string): Don't declare.
3252
3253 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3254
3255 * symtab.c (rbreak_command): Ignore Windows drive colon.
3256
3257 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * NEWS: Mention removed GDBserver host support.
3260
3261 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3262
3263 * features/riscv/rebuild-csr-xml.sh: Updated.
3264
3265 2020-06-11 Tom Tromey <tom@tromey.com>
3266
3267 PR gdb/18318:
3268 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3269
3270 2020-06-09 Jonny Grant <jg@jguk.org>
3271 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * main.c (captured_main_1): Don't print new line after help.
3274 (print_gdb_help): add mailing list and IRC channel information
3275 to --help. Add new lines between items in the footer. Remove
3276 quotes around bug url.
3277
3278 2020-06-11 Keith Seitz <keiths@redhat.com>
3279
3280 PR gdb/21356
3281 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3282 Resolve typedefs for type length calculations.
3283
3284 2020-06-10 Tom de Vries <tdevries@suse.de>
3285
3286 PR ada/24713
3287 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3288 (write_psymbols): Enable .gdb_index for ada.
3289 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3290 ada.
3291
3292 2020-06-10 Tom de Vries <tdevries@suse.de>
3293
3294 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3295 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3296 namei" instead of "const char *name" argument.
3297 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3298 dw2_symtab_iter_init.
3299
3300 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3303 to use type::field and field::type instead.
3304
3305 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3308 to use field::type instead.
3309
3310 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * gdbtypes.h (struct field) <type, set_type>: New methods.
3313 Rename `type` field to...
3314 <m_type>: ... this. Change references throughout to use type or
3315 set_type methods.
3316 (FIELD_TYPE): Use field::type. Change call sites that modify
3317 the field's type to use field::set_type instead.
3318
3319 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3322 to use type::index_type instead.
3323
3324 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3327 methods.
3328 (TYPE_INDEX_TYPE): Use type::index_type.
3329 * gdbtypes.c (create_array_type_with_stride): Likewise.
3330
3331 2020-06-07 Tom Tromey <tom@tromey.com>
3332
3333 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3334 parameter.
3335 (generic_value_print): Update.
3336
3337 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 Revert commit 982a38f60b0.
3340 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3341
3342 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3345 avoid use after free.
3346
3347 2020-06-05 Tom de Vries <tdevries@suse.de>
3348
3349 * NEWS: Fix typos.
3350
3351 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3354 the per_bfd object.
3355 (dwarf2_read_debug_names): Likewise.
3356 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3357 object when re-using a per_bfd object with an index.
3358
3359 2020-06-03 Tom de Vries <tdevries@suse.de>
3360
3361 PR symtab/26046
3362 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3363 children for C++.
3364 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3365 DW_TAG_subprogram.
3366
3367 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * ada-lang.c (ada_language_data): Delete skip_trampoline
3370 initializer.
3371 * c-lang.c (c_language_data): Likewise.
3372 (cplus_language_data): Likewise.
3373 (cplus_language::skip_trampoline): New member function.
3374 (asm_language_data): Delete skip_trampoline initializer.
3375 (minimal_language_data): Likewise.
3376 * d-lang.c (d_language_data): Likewise.
3377 * f-lang.c (f_language_data): Likewise.
3378 * go-lang.c (go_language_data): Likewise.
3379 * language.c (unk_lang_trampoline): Delete function.
3380 (skip_language_trampoline): Update.
3381 (unknown_language_data): Delete skip_trampoline initializer.
3382 (auto_language_data): Likewise.
3383 * language.h (language_data): Delete skip_trampoline field.
3384 (language_defn::skip_trampoline): New function.
3385 * m2-lang.c (m2_language_data): Delete skip_trampoline
3386 initializer.
3387 * objc-lang.c (objc_skip_trampoline): Delete function, move
3388 implementation to objc_language::skip_trampoline.
3389 (objc_language_data): Delete skip_trampoline initializer.
3390 (objc_language::skip_trampoline): New member function with
3391 implementation from objc_skip_trampoline.
3392 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3393 initializer.
3394 * p-lang.c (pascal_language_data): Likewise.
3395 * rust-lang.c (rust_language_data): Likewise.
3396
3397 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3400 (ada_language::demangle): New member function.
3401 * c-lang.c (c_language_data): Delete la_demangle initializer.
3402 (cplus_language_data): Delete la_demangle initializer.
3403 (cplus_language::demangle): New member function.
3404 (asm_language_data): Delete la_demangle initializer.
3405 (minimal_language_data): Delete la_demangle initializer.
3406 * d-lang.c (d_language_data): Delete la_demangle initializer.
3407 (d_language::demangle): New member function.
3408 * f-lang.c (f_language_data): Delete la_demangle initializer.
3409 (f_language::demangle): New member function.
3410 * go-lang.c (go_language_data): Delete la_demangle initializer.
3411 (go_language::demangle): New member function.
3412 * language.c (language_demangle): Update.
3413 (unk_lang_demangle): Delete.
3414 (unknown_language_data): Delete la_demangle initializer.
3415 (unknown_language::demangle): New member function.
3416 (auto_language_data): Delete la_demangle initializer.
3417 (auto_language::demangle): New member function.
3418 * language.h (language_data): Delete la_demangle field.
3419 (language_defn::demangle): New function.
3420 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3421 * objc-lang.c (objc_language_data): Delete la_demangle
3422 initializer.
3423 (objc_language::demangle): New member function.
3424 * opencl-lang.c (opencl_language_data): Delete la_demangle
3425 initializer.
3426 * p-lang.c (pascal_language_data): Likewise.
3427 * rust-lang.c (rust_language_data): Likewise.
3428 (rust_language::demangle): New member function.
3429
3430 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * ada-lang.c (ada_language_data): Delete la_print_type
3433 initializer.
3434 (ada_language::print_type): New member function.
3435 * c-lang.c (c_language_data): Delete la_print_type initializer.
3436 (c_language::print_type): New member function.
3437 (cplus_language_data): Delete la_print_type initializer.
3438 (cplus_language::print_type): New member function.
3439 (asm_language_data): Delete la_print_type initializer.
3440 (asm_language::print_type): New member function.
3441 (minimal_language_data): Delete la_print_type initializer.
3442 (minimal_language::print_type): New member function.
3443 * d-lang.c (d_language_data): Delete la_print_type initializer.
3444 (d_language::print_type): New member function.
3445 * f-lang.c (f_language_data): Delete la_print_type initializer.
3446 (f_language::print_type): New member function.
3447 * go-lang.c (go_language_data): Delete la_print_type initializer.
3448 (go_language::print_type): New member function.
3449 * language.c (unk_lang_print_type): Delete.
3450 (unknown_language_data): Delete la_print_type initializer.
3451 (unknown_language::print_type): New member function.
3452 (auto_language_data): Delete la_print_type initializer.
3453 (auto_language::print_type): New member function.
3454 * language.h (language_data): Delete la_print_type field.
3455 (language_defn::print_type): New function.
3456 (LA_PRINT_TYPE): Update.
3457 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3458 (m2_language::print_type): New member function.
3459 * objc-lang.c (objc_language_data): Delete la_print_type
3460 initializer.
3461 (objc_language::print_type): New member function.
3462 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3463 to opencl_language::print_type.
3464 (opencl_language_data): Delete la_print_type initializer.
3465 (opencl_language::print_type): New member function, implementation
3466 from opencl_print_type.
3467 * p-lang.c (pascal_language_data): Delete la_print_type
3468 initializer.
3469 (pascal_language::print_type): New member function.
3470 * rust-lang.c (rust_print_type): Delete, implementation moved to
3471 rust_language::print_type.
3472 (rust_language_data): Delete la_print_type initializer.
3473 (rust_language::print_type): New member function, implementation
3474 from rust_print_type.
3475
3476 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3479 implementation moves to...
3480 (ada_language::sniff_from_mangled_name): ...here. Update return
3481 type.
3482 (ada_language_data): Delete la_sniff_from_mangled_name
3483 initializer.
3484 * c-lang.c (c_language_data): Likewise.
3485 (cplus_language_data): Likewise.
3486 (cplus_language::sniff_from_mangled_name): New member function,
3487 implementation taken from gdb_sniff_from_mangled_name.
3488 (asm_language_data): Delete la_sniff_from_mangled_name
3489 initializer.
3490 (minimal_language_data): Likewise.
3491 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3492 implementation moves to cplus_language::sniff_from_mangled_name.
3493 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3494 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3495 moves to...
3496 (d_language::sniff_from_mangled_name): ...here.
3497 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3498 * f-lang.c (f_language_data): Likewise.
3499 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3500 moves to...
3501 (go_language::sniff_from_mangled_name): ...here.
3502 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3503 * language.c (language_sniff_from_mangled_name): Delete.
3504 (unknown_language_data): Delete la_sniff_from_mangled_name
3505 initializer.
3506 (auto_language_data): Likewise.
3507 * language.h (language_data): Delete la_sniff_from_mangled_name
3508 field.
3509 (language_defn::sniff_from_mangled_name): New function.
3510 (language_sniff_from_mangled_name): Delete declaration.
3511 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3512 field.
3513 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3514 implementation moves to...
3515 (objc_language::sniff_from_mangled_name): ...here.
3516 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3517 * opencl-lang.c (opencl_language_data): Likewise.
3518 * p-lang.c (pascal_language_data): Likewise.
3519 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3520 implementation moves to...
3521 (rust_language::sniff_from_mangled_name): ...here.
3522 (rust_language_data): Delete la_sniff_from_mangled_name
3523 initializer.
3524 * symtab.c (symbol_find_demangled_name): Call
3525 sniff_from_mangled_name member function.
3526
3527 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3530 initializer.
3531 * c-lang.c (c_language_data): Likewise.
3532 (cplus_language_data): Likewise.
3533 (cplus_language::search_name_hash): New member function.
3534 (asm_language_data): Delete la_search_name_hash initializer.
3535 (minimal_language_data): Likewise.
3536 * d-lang.c (d_language_data): Likewise.
3537 * dictionary.c (default_search_name_hash): Rename to...
3538 (language_defn::search_name_hash): ...this.
3539 * f-lang.c (f_language_data): Likewise.
3540 (f_language::search_name_hash): New member function.
3541 * go-lang.c (go_language_data): Delete la_search_name_hash
3542 initializer.
3543 * language.c (unknown_language_data): Likewise.
3544 (auto_language_data): Likewise.
3545 * language.h (struct language_data): Delete la_search_name_hash
3546 field.
3547 (language_defn::search_name_hash): Declare new member function.
3548 (default_search_name_hash): Delete declaration.
3549 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3550 initializer.
3551 * objc-lang.c (objc_language_data): Likewise.
3552 * opencl-lang.c (opencl_language_data): Likewise.
3553 * p-lang.c (pascal_language_data): Likewise.
3554 * rust-lang.c (rust_language_data): Likewise.
3555 * symtab.c (search_name_hash): Update call.
3556
3557 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3560 initializer.
3561 * c-lang.c (class compile_instance): Declare.
3562 (c_language_data): Delete la_get_compile_instance initializer.
3563 (c_language::get_compile_instance): New member function.
3564 (cplus_language_data): Delete la_get_compile_instance initializer.
3565 (cplus_language::get_compile_instance): New member function.
3566 (asm_language_data): Delete la_get_compile_instance initializer.
3567 (minimal_language_data): Likewise.
3568 * c-lang.h (c_get_compile_context): Update comment.
3569 (cplus_get_compile_context): Update comment.
3570 * compile/compile.c (compile_to_object): Update calls, don't rely
3571 on function pointer being NULL.
3572 * d-lang.c (d_language_data): Delete la_get_compile_instance
3573 initializer.
3574 * f-lang.c (f_language_data): Likewise.
3575 * go-lang.c (go_language_data): Likewise.
3576 * language.c (unknown_language_data): Likewise.
3577 (auto_language_data): Likewise.
3578 * language.h (language_data): Delete la_get_compile_instance field.
3579 (language_defn::get_compile_instance): New member function.
3580 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3581 initializer.
3582 * objc-lang.c (objc_language_data): Likewise.
3583 * opencl-lang.c (opencl_language_data): Likewise.
3584 * p-lang.c (pascal_language_data): Likewise.
3585 * rust-lang.c (rust_language_data): Likewise.
3586
3587 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * ada-lang.c (ada_add_all_symbols): Update comment.
3590 (ada_iterate_over_symbols): Delete, move implementation to...
3591 (ada_language::iterate_over_symbols): ...here, a new member
3592 function, rewrite to use range based for loop.
3593 (ada_language_data): Delete la_iterate_over_symbols initializer.
3594 * c-lang.c (c_language_data): Likewise.
3595 (cplus_language_data): Likewise.
3596 (asm_language_data): Likewise.
3597 (minimal_language_data): Likewise.
3598 * d-lang.c (d_language_data): Likewise.
3599 * f-lang.c (f_language_data): Likewise.
3600 * go-lang.c (go_language_data): Likewise.
3601 * language.c (unknown_language_data): Likewise.
3602 (auto_language_data): Likewise.
3603 * language.h (language_data): Delete la_iterate_over_symbols field.
3604 (language_defn::iterate_over_symbols): New member function.
3605 (LA_ITERATE_OVER_SYMBOLS): Update.
3606 * linespec.c (iterate_over_all_matching_symtabs): Update.
3607 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3608 initializer.
3609 * objc-lang.c (objc_language_data): Likewise.
3610 * opencl-lang.c (opencl_language_data): Likewise.
3611 * p-lang.c (pascal_language_data): Likewise.
3612 * rust-lang.c (rust_language_data): Likewise.
3613
3614 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * ada-lang.c (ada_language_data): Delete
3617 la_lookup_transparent_type initializer.
3618 * c-lang.c (c_language_data): Likewise.
3619 (cplus_language_data): Likewise.
3620 (cplus_language::lookup_transparent_type): New member function.
3621 (asm_language_data): Delete la_lookup_transparent_type
3622 initializer.
3623 (minimal_language_data): Likewise.
3624 * d-lang.c (d_language_data): Likewise.
3625 * f-lang.c (f_language_data): Likewise.
3626 * go-lang.c (go_language_data): Likewise.
3627 * language.c (unknown_language_data): Likewise.
3628 (auto_language_data): Likewise.
3629 * language.h (struct language_data): Delete
3630 la_lookup_transparent_type field.
3631 (language_defn::lookup_transparent_type): New member function.
3632 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3633 initializer.
3634 * objc-lang.c (objc_language_data): Likewise.
3635 * opencl-lang.c (opencl_language_data): Likewise.
3636 * p-lang.c (pascal_language_data): Likewise.
3637 * rust-lang.c (rust_language_data): Likewise.
3638 * symtab.c (symbol_matches_domain): Update call.
3639
3640 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3641
3642 * ada-lang.c (ada_language_arch_info): Delete function, move
3643 implementation to...
3644 (ada_language::language_arch_info): ...here, a new member
3645 function.
3646 (ada_language_data): Delete la_language_arch_info.
3647 * c-lang.c (c_language_data): Likewise.
3648 (c_language::language_arch_info): New member function.
3649 (cplus_language_arch_info): Delete function, move
3650 implementation to...
3651 (cplus_language::language_arch_info): ...here, a new member
3652 function.
3653 (cplus_language_data): Delete la_language_arch_info.
3654 (asm_language_data): Likewise.
3655 (asm_language::language_arch_info): New member function.
3656 (minimal_language_data): Delete la_language_arch_info.
3657 (minimal_language::language_arch_info): New member function.
3658 * d-lang.c (d_language_arch_info): Delete function, move
3659 implementation to...
3660 (d_language::language_arch_info): ...here, a new member
3661 function.
3662 (d_language_data): Delete la_language_arch_info.
3663 * f-lang.c (f_language_arch_info): Delete function, move
3664 implementation to...
3665 (f_language::language_arch_info): ...here, a new member
3666 function.
3667 (f_language_data): Delete la_language_arch_info.
3668 * go-lang.c (go_language_arch_info): Delete function, move
3669 implementation to...
3670 (go_language::language_arch_info): ...here, a new member
3671 function.
3672 (go_language_data): Delete la_language_arch_info.
3673 * language.c (unknown_language_data): Likewise.
3674 (unknown_language::language_arch_info): New member function.
3675 (auto_language_data): Delete la_language_arch_info.
3676 (auto_language::language_arch_info): New member function.
3677 (language_gdbarch_post_init): Update call to
3678 la_language_arch_info.
3679 * language.h (language_data): Delete la_language_arch_info
3680 function pointer.
3681 (language_defn::language_arch_info): New function.
3682 * m2-lang.c (m2_language_arch_info): Delete function, move
3683 implementation to...
3684 (m2_language::language_arch_info): ...here, a new member
3685 function.
3686 (m2_language_data): Delete la_language_arch_info.
3687 * objc-lang.c (objc_language_arch_info): Delete function, move
3688 implementation to...
3689 (objc_language::language_arch_info): ...here, a new member
3690 function.
3691 (objc_language_data): Delete la_language_arch_info.
3692 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3693 implementation to...
3694 (opencl_language::language_arch_info): ...here, a new member
3695 function.
3696 (opencl_language_data): Delete la_language_arch_info.
3697 * p-lang.c (pascal_language_arch_info): Delete function, move
3698 implementation to...
3699 (pascal_language::language_arch_info): ...here, a new member
3700 function.
3701 (pascal_language_data): Delete la_language_arch_info.
3702 * rust-lang.c (rust_language_arch_info): Delete function, move
3703 implementation to...
3704 (rust_language::language_arch_info): ...here, a new member
3705 function.
3706 (rust_language_data): Delete la_language_arch_info.
3707
3708 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3711 initializer.
3712 * c-lang.c (c_language_data): Likewise.
3713 (cplus_language_data): Likewise.
3714 (cplus_language::pass_by_reference_info): New method.
3715 (asm_language_data): Delete la_pass_by_reference initializer.
3716 (minimal_language_data): Likewise.
3717 * cp-abi.c (cp_pass_by_reference): Remove use of
3718 default_pass_by_reference.
3719 * d-lang.c (d_language_data): Likewise.
3720 * f-lang.c (f_language_data): Likewise.
3721 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3722 default_pass_by_reference.
3723 * go-lang.c (go_language_data): Likewise.
3724 * language.c (language_pass_by_reference): Update.
3725 (default_pass_by_reference): Delete.
3726 (unknown_language_data): Delete la_pass_by_reference
3727 initializer.
3728 (auto_language_data): Likewise.
3729 * language.h (struct language_data): Delete la_pass_by_reference
3730 field.
3731 (language_defn::pass_by_reference_info): New member function.
3732 (default_pass_by_reference): Delete declaration.
3733 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3734 initializer.
3735 * objc-lang.c (objc_language_data): Likewise.
3736 * opencl-lang.c (opencl_language_data): Likewise.
3737 * p-lang.c (pascal_language_data): Likewise.
3738 * rust-lang.c (rust_language_data): Likewise.
3739
3740 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * ada-lang.c (ada_read_var_value): Delete function, move
3743 implementation to...
3744 (ada_language::read_var_value): ...here.
3745 (ada_language_data): Delete la_read_var_value initializer.
3746 * c-lang.c (c_language_data): Likewise.
3747 (cplus_language_data): Likewise.
3748 (minimal_language_data): Likewise.
3749 * d-lang.c (d_language_data): Likewise.
3750 * f-lang.c (f_language_data): Likewise.
3751 * findvar.c (default_read_var_value): Rename to...
3752 (language_defn::read_var_value): ...this.
3753 * findvar.c (read_var_value): Update header comment, and change to
3754 call member function instead of function pointer.
3755 * go-lang.c (go_language_data): Likewise.
3756 * language.c (unknown_language_data): Delete la_read_var_value
3757 initializer.
3758 (auto_language_data): Likewise.
3759 * language.h (struct language_data): Delete la_read_var_value
3760 field.
3761 (language_defn::read_var_value): New member function.
3762 (default_read_var_value): Delete declaration.
3763 * m2-lang.c (m2_language_data): Delete la_read_var_value
3764 initializer.
3765 * objc-lang.c (objc_language_data): Likewise.
3766 * opencl-lang.c (opencl_language_data): Likewise.
3767 * p-lang.c (pascal_language_data): Likewise.
3768 * rust-lang.c (rust_language_data): Likewise.
3769 * value.h (default_read_var_value): Delete declaration.
3770
3771 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * ada-lang.c (ada_print_array_index): Delete function, move
3774 implementation to...
3775 (ada_language::print_array_index): ...here.
3776 (ada_language_data): Delete la_print_array_index initializer.
3777 * c-lang.c (c_language_data): Likewise.
3778 (cplus_language_data): Likewise.
3779 (minimal_language_data): Likewise.
3780 * d-lang.c (d_language_data): Likewise.
3781 * f-lang.c (f_language_data): Likewise.
3782 * go-lang.c (go_language_data): Likewise.
3783 * language.c (default_print_array_index): Delete function, move
3784 implementation to...
3785 (language_defn::print_array_index): ...here.
3786 (unknown_language_data): Delete la_print_array_index initializer.
3787 (auto_language_data): Likewise.
3788 * language.h (struct language_data): Delete la_print_array_index
3789 field.
3790 (language_defn::print_array_index): New member function.
3791 (LA_PRINT_ARRAY_INDEX): Update.
3792 (default_print_array_index): Delete declaration.
3793 * m2-lang.c (m2_language_data): Delete la_print_array_index
3794 initializer.
3795 * objc-lang.c (objc_language_data): Likewise.
3796 * opencl-lang.c (opencl_language_data): Likewise.
3797 * p-lang.c (pascal_language_data): Likewise.
3798 * rust-lang.c (rust_language_data): Likewise.
3799
3800 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * gdb/ada-lang.c (ada_language_defn): Convert to...
3803 (ada_language_data): ...this.
3804 (class ada_language): New class.
3805 (ada_language_defn): New static global.
3806 * gdb/c-lang.c (c_language_defn): Convert to...
3807 (c_language_data): ...this.
3808 (class c_language): New class.
3809 (c_language_defn): New static global.
3810 (cplus_language_defn): Convert to...
3811 (cplus_language_data): ...this.
3812 (class cplus_language): New class.
3813 (cplus_language_defn): New static global.
3814 (asm_language_defn): Convert to...
3815 (asm_language_data): ...this.
3816 (class asm_language): New class.
3817 (asm_language_defn): New static global.
3818 (minimal_language_defn): Convert to...
3819 (minimal_language_data): ...this.
3820 (class minimal_language): New class.
3821 (minimal_language_defn): New static global.
3822 * gdb/d-lang.c (d_language_defn): Convert to...
3823 (d_language_data): ...this.
3824 (class d_language): New class.
3825 (d_language_defn): New static global.
3826 * gdb/f-lang.c (f_language_defn): Convert to...
3827 (f_language_data): ...this.
3828 (class f_language): New class.
3829 (f_language_defn): New static global.
3830 * gdb/go-lang.c (go_language_defn): Convert to...
3831 (go_language_data): ...this.
3832 (class go_language): New class.
3833 (go_language_defn): New static global.
3834 * gdb/language.c (unknown_language_defn): Remove declaration.
3835 (current_language): Initialize to nullptr, real initialization is
3836 moved to _initialize_language.
3837 (languages): Delete global.
3838 (language_defn::languages): Define.
3839 (set_language_command): Use language_defn::languages.
3840 (set_language): Likewise.
3841 (range_error): Likewise.
3842 (language_enum): Likewise.
3843 (language_def): Likewise.
3844 (add_set_language_command): Use language_def::languages for the
3845 language list, and language_def to lookup language pointers.
3846 (skip_language_trampoline): Use language_defn::languages.
3847 (unknown_language_defn): Convert to...
3848 (unknown_language_data): ...this.
3849 (class unknown_language): New class.
3850 (unknown_language_defn): New static global.
3851 (auto_language_defn): Convert to...
3852 (auto_language_data): ...this.
3853 (class auto_language): New class.
3854 (auto_language_defn): New static global.
3855 (language_gdbarch_post_init): Use language_defn::languages.
3856 (_initialize_language): Initialize current_language.
3857 * gdb/language.h (struct language_defn): Rename to...
3858 (struct language_data): ...this.
3859 (struct language_defn): New.
3860 (auto_language_defn): Delete.
3861 (unknown_language_defn): Delete.
3862 (minimal_language_defn): Delete.
3863 (ada_language_defn): Delete.
3864 (asm_language_defn): Delete.
3865 (c_language_defn): Delete.
3866 (cplus_language_defn): Delete.
3867 (d_language_defn): Delete.
3868 (f_language_defn): Delete.
3869 (go_language_defn): Delete.
3870 (m2_language_defn): Delete.
3871 (objc_language_defn): Delete.
3872 (opencl_language_defn): Delete.
3873 (pascal_language_defn): Delete.
3874 (rust_language_defn): Delete.
3875 * gdb/m2-lang.c (m2_language_defn): Convert to...
3876 (m2_language_data): ...this.
3877 (class m2_language): New class.
3878 (m2_language_defn): New static global.
3879 * gdb/objc-lang.c (objc_language_defn): Convert to...
3880 (objc_language_data): ...this.
3881 (class objc_language): New class.
3882 (objc_language_defn): New static global.
3883 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3884 (opencl_language_data): ...this.
3885 (class opencl_language): New class.
3886 (opencl_language_defn): New static global.
3887 * gdb/p-lang.c (pascal_language_defn): Convert to...
3888 (pascal_language_data): ...this.
3889 (class pascal_language): New class.
3890 (pascal_language_defn): New static global.
3891 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3892 language pointer, update comment format.
3893 * gdb/rust-lang.c (rust_language_defn): Convert to...
3894 (rust_language_data): ...this.
3895 (class rust_language): New class.
3896 (rust_language_defn): New static global.
3897
3898 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3901 member variable.
3902 <m_stmt_at_address>: New member variable.
3903 (lnp_state_machine::record_line): Don't record some lines, update
3904 tracking of is_stmt at the same address.
3905 (lnp_state_machine::lnp_state_machine): Initialise new member
3906 variables.
3907
3908 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3909
3910 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3911 "-include gnu-nat-mig.h".
3912 * gnu-nat-mig.h: New file.
3913 * gnu-nat.c: Include "gnu-nat-mig.h".
3914 (exc_server, msg_reply_server, notify_server,
3915 process_reply_server): Remove declarations.
3916
3917 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3918
3919 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3920 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3921 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3922 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3923 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3924 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3925 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3926 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3927 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3928 to gnu_nat_target class.
3929 * gnu-nat.c: Likewise.
3930 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3931 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3932 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3933 object.
3934 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3935 instead of `gnu_target'.
3936
3937 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3938
3939 * i386-gnu-tdep.c: Include "gdbcore.h"
3940 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3941 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3942 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3943 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3944 i386_gnu_sigcontext_addr): New functions
3945 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3946 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3947 tdep.
3948
3949 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3950
3951 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3952 before fork_inferior call. Avoid calling it if target_is_pushed returns
3953 true.
3954
3955 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3956
3957 * gnu-nat.h (gnu_target): New variable declaration.
3958 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3959 gnu_target.
3960 * gnu-nat.c (gnu_target): New variable.
3961 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3962 add_thread_silent, and add_thread calls.
3963 (gnu_nat_target::create_inferior): Pass gnu_target to
3964 add_thread_silent, thread_change_ptid call.
3965 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3966 call.
3967
3968 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3969
3970 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3971 (gnu_nat_target::find_memory_regions): Remove unused
3972 `old_address' variable.
3973
3974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3975
3976 * gnu-nat.c: Include "gdbarch.h".
3977
3978 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3979
3980 * reply_mig_hack.awk (Error return): Cast function through
3981 void *, to bypass compiler function call check.
3982
3983 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3984
3985 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3986 $(srcdir)/reply_mig_hack.awk.
3987
3988 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3989
3990 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3991
3992 2020-05-30 Jonny Grant <jg@jguk.org>
3993
3994 * configure.ac (ACX_BUGURL): change bug URL to https.
3995
3996 2020-05-30 Pedro Alves <palves@redhat.com>
3997
3998 * cp-support.c (replace_typedefs_template): New.
3999 (replace_typedefs_qualified_name): Handle
4000 DEMANGLE_COMPONENT_TEMPLATE.
4001
4002 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4005 dwarf2/index-cache.h, dwarf2/index-write.c,
4006 dwarf2/index-write.h, dwarf2/line-header.c,
4007 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4008 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4009 variables and fields from `dwarf2_per_objfile` to just
4010 `per_objfile` throughout.
4011
4012 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4013
4014 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4015 <push_dwarf_reg_entry_value>: Add comment.
4016
4017 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4018 Keith Seitz <keiths@redhat.com>
4019
4020 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4021 instead of PyEval_ReleaseLock.
4022 (class gdbpy_gil): Move to earlier in file.
4023 (finalize_python): Set gdb_python_initialized.
4024 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4025 when not initialized.
4026
4027 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4030 <push_dwarf_reg_entry_value>: Remove assert. Override
4031 per_objfile with caller_per_objfile.
4032
4033 2020-05-28 Tom de Vries <tdevries@suse.de>
4034
4035 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4036 PR gold/15646 workaround to symbol kind "type".
4037
4038 2020-05-27 Tom Tromey <tromey@adacore.com>
4039
4040 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4041
4042 2020-05-27 Tom Tromey <tromey@adacore.com>
4043
4044 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4045 Use htab_find_with_hash.
4046 <add_abbrev>: Remove "abbrev_number" parameter.
4047 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4048 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4049 (hash_abbrev): Add comment.
4050 (abbrev_table::lookup_abbrev): Move to header file.
4051 (abbrev_table::read): Update.
4052
4053 2020-05-27 Tom Tromey <tromey@adacore.com>
4054
4055 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4056 method.
4057 <canonical_name>: New member.
4058 <raw_name>: Rename from "name".
4059 (partial_die_info): Initialize canonical_name.
4060 (scan_partial_symbols): Check raw_name.
4061 (partial_die_parent_scope, partial_die_full_name)
4062 (add_partial_symbol, add_partial_subprogram)
4063 (add_partial_enumeration, load_partial_dies): Use "name" method.
4064 (partial_die_info::name): New method.
4065 (partial_die_info::read, guess_partial_die_structure_name)
4066 (partial_die_info::fixup): Update.
4067
4068 2020-05-27 Tom Tromey <tromey@adacore.com>
4069
4070 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4071 <get_ref_die_offset>: Inline.
4072 <get_ref_die_offset_complaint>: New method.
4073 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4074 (attribute::get_ref_die_offset_complaint): Rename from
4075 get_ref_die_offset. Just issue complaint.
4076
4077 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4078
4079 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4080
4081 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4082
4083 * exec.c (exec_file_attach): Use errno value of first openp failure.
4084
4085 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4086
4087 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4088 Don't close thread handle.
4089
4090 2020-05-27 Tom Tromey <tom@tromey.com>
4091 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4094 shared_ptr.
4095 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4096 member.
4097 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4098 dwarf2_per_bfd_objfile_data_key>: New globals.
4099 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4100 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4101 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4102 shared.
4103 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4104 short-circuit when sharing.
4105 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4106 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4107
4108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4111 to...
4112 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4113 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4114
4115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4118 build_name_components, find_name_components_bounds>:
4119 Add per_objfile parameter.
4120 (struct mapped_index) <symbol_name_at>: Likewise.
4121 (struct mapped_debug_names): Remove constructor.
4122 <dwarf2_per_objfile>: Remove field.
4123 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4124 (mapped_index_base::find_name_components_bounds,
4125 mapped_index_base::build_name_components,
4126 dw2_expand_symtabs_matching_symbol): Likewise.
4127 (class mock_mapped_index) <symbol_name_at>: Likewise.
4128 (check_match): Likewise.
4129 (check_find_bounds_finds): Likewise.
4130 (test_mapped_index_find_name_component_bounds): Update.
4131 (CHECK_MATCH): Update.
4132 (dw2_expand_symtabs_matching): Update.
4133 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4134 per_objfile parameter.
4135 <find_vec_in_debug_names>: Likewise.
4136 <m_per_objfile>: New field.
4137 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4138 parameter.
4139 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4140 (dw2_debug_names_iterator::next): Update.
4141 (dw2_debug_names_lookup_symbol): Update.
4142 (dw2_debug_names_expand_symtabs_for_function): Update.
4143 (dw2_debug_names_map_matching_symbols): Update.
4144 (dw2_debug_names_expand_symtabs_matching): Update.
4145 (dwarf2_read_debug_names): Update.
4146
4147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4150 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4151 move to dwarf2_per_objfile.
4152 <read_in_chain>: Remove.
4153 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4154 remove_all_cus, age_comp_units>: New methods.
4155 <m_dwarf2_cus>: New member.
4156 (struct dwarf2_per_cu_data) <cu>: Remove.
4157 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4158 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4159 moved to methods of dwarf2_per_objfile.
4160 (dwarf2_clear_marks): Remove.
4161 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4162 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4163 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4164 (dwarf2_per_objfile::remove_all_cus): New.
4165 (class free_cached_comp_units) <~free_cached_comp_units>:
4166 Update.
4167 (load_cu): Update.
4168 (dw2_do_instantiate_symtab): Adjust.
4169 (fill_in_sig_entry_from_dwo_entry): Adjust.
4170 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4171 (cutu_reader::cutu_reader): Likewise.
4172 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4173 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4174 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4175 and dwarf2_per_objfile::age_comp_units.
4176 (load_partial_comp_unit): Update.
4177 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4178 (process_queue): Likewise.
4179 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4180 backlink.
4181 (dwarf2_read_addr_index): Likewise.
4182 (follow_die_offset): Likewise.
4183 (dwarf2_fetch_die_loc_sect_off): Likewise.
4184 (dwarf2_fetch_constant_bytes): Likewise.
4185 (dwarf2_fetch_die_type_sect_off): Likewise.
4186 (follow_die_sig_1): Likewise.
4187 (load_full_type_unit): Likewise.
4188 (read_signatured_type): Likewise.
4189 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4190 (dwarf2_cu::~dwarf2_cu): Remove.
4191 (dwarf2_per_objfile::get_cu): New.
4192 (dwarf2_per_objfile::set_cu): New.
4193 (age_cached_comp_units): Rename to...
4194 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4195 to std::unordered_map.
4196 (free_one_cached_comp_unit): Rename to...
4197 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4198 to std::unordered_map.
4199 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4200 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4201 a dwarf2_per_objfile in data.
4202 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4203 (dwarf2_clear_marks): Remove.
4204
4205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4208 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4209 (init_tu_and_read_dwo_dies): Likewise.
4210 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4211 (cutu_reader::cutu_reader): Likewise.
4212 (load_partial_comp_unit): Likewise.
4213 (process_psymtab_comp_unit): Update.
4214 (build_type_psymtabs_1): Update.
4215 (process_skeletonless_type_unit): Update.
4216 (load_full_comp_unit): Update.
4217 (find_partial_die): Update.
4218 (dwarf2_read_addr_index): Update.
4219 (read_signatured_type): Update.
4220
4221 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4224 m_header_read_in>: New fields.
4225 <get_header>: New method.
4226 * dwarf2/read.c (per_cu_header_read_in): Remove.
4227 (dwarf2_per_cu_data::get_header): New.
4228 (dwarf2_per_cu_data::addr_size): Update.
4229 (dwarf2_per_cu_data::offset_size): Update.
4230 (dwarf2_per_cu_data::ref_addr_size): Update.
4231
4232 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4235 (dw2_do_instantiate_symtab): Update.
4236 (queue_and_load_all_dwo_tus): Change parameter from
4237 dwarf2_per_cu_data to dwarf2_cu.
4238 (dwarf2_fetch_die_loc_sect_off): Update.
4239 (dwarf2_fetch_constant_bytes): Update.
4240 (dwarf2_fetch_die_type_sect_off): Update.
4241
4242 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4243
4244 * dwarf2/read.c (process_full_comp_unit,
4245 process_full_type_unit): Remove per_cu, per_objfile paramters.
4246 Add dwarf2_cu parameter.
4247 (process_queue): Update.
4248
4249 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 * dwarf2/read.c (create_cu_from_index_list): Replace
4252 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4253 (create_cus_from_index_list): Likewise.
4254 (create_cus_from_index): Likewise.
4255 (create_signatured_type_table_from_index): Likewise.
4256 (create_cus_from_debug_names_list): Likewise.
4257 (create_cus_from_debug_names): Likewise.
4258 (dwarf2_read_gdb_index): Update.
4259 (dwarf2_read_debug_names): Update.
4260
4261 2020-05-27 Tom Tromey <tom@tromey.com>
4262 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * dwarf2/read.h (struct dwarf2_per_objfile)
4265 <get_type_for_signatured_type, set_type_for_signatured_type>:
4266 New methods.
4267 <m_type_map>: New member.
4268 (struct signatured_type) <type>: Remove.
4269 * dwarf2/read.c
4270 (dwarf2_per_objfile::get_type_for_signatured_type,
4271 dwarf2_per_objfile::set_type_for_signatured_type): New.
4272 (get_signatured_type): Use new methods.
4273
4274 2020-05-27 Tom Tromey <tom@tromey.com>
4275 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4278 (struct dwarf2_per_objfile) <type_units>: New member.
4279 <get_type_unit_group_unshareable>: New method.
4280 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4281 num_symtabs, symtabs>: Remove; move to
4282 type_unit_group_unshareable.
4283 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4284 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4285 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4286
4287 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * dwarf2/read.h (struct dwarf2_per_cu_data):
4290 <dwarf2_per_objfile>: Remove.
4291 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4292 dwarf2_per_objfile.
4293 (create_signatured_type_table_from_index): Likewise.
4294 (create_signatured_type_table_from_debug_names): Likewise.
4295 (create_debug_type_hash_table): Likewise.
4296 (fill_in_sig_entry_from_dwo_entry): Likewise.
4297 (create_type_unit_group): Likewise.
4298 (read_comp_units_from_section): Likewise.
4299 (create_cus_hash_table): Likewise.
4300
4301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4304 dwarf2_per_cu_data::dwarf2_per_objfile.
4305 (compute_compunit_symtab_includes): Likewise.
4306 (dwarf2_cu::start_symtab): Likewise.
4307
4308 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4311 parameter.
4312 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4313 (read_namespace_alias): Update.
4314 (lookup_die_type): Update.
4315 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4316 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4317 Update.
4318 (disassemble_dwarf_expression): Update.
4319
4320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * dwarf2/read.h (struct dwarf2_queue_item): Add
4323 dwarf2_per_objfile parameter, assign new parameter.
4324 <per_objfile>: New field.
4325 * dwarf2/read.c (free_one_cached_comp_unit): Add
4326 dwarf2_per_objfile parameter.
4327 (queue_comp_unit): Likewise.
4328 (dw2_do_instantiate_symtab): Update.
4329 (process_psymtab_comp_unit): Update.
4330 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4331 (process_imported_unit_die): Update.
4332 (queue_and_load_dwo_tu): Update.
4333 (follow_die_offset): Update.
4334 (follow_die_sig_1): Update.
4335
4336 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4339 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4340 (read_call_site_scope): Assign per_objfile.
4341 (dwarf2_per_cu_data::objfile): Remove.
4342 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4343 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4344 dwarf2_per_objfile parameter.
4345 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4346 dwarf2_per_objfile parameter.
4347 (dwarf_expr_reg_to_entry_parameter): Add output
4348 dwarf2_per_objfile parameter.
4349 (locexpr_get_frame_base): Update.
4350 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4351 <push_dwarf_reg_entry_value>: Update.
4352 <call_site_to_target_addr>: Update.
4353 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4354 parameter.
4355 (value_of_dwarf_reg_entry): Update.
4356 (rw_pieced_value): Update.
4357 (indirect_synthetic_pointer): Update.
4358 (dwarf2_evaluate_property): Update.
4359 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4360 parameter.
4361 (locexpr_read_variable): Update.
4362 (locexpr_get_symbol_read_needs): Update.
4363 (loclist_read_variable): Update.
4364
4365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4366
4367 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
4372 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4373 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4374 parameter.
4375 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4376 sect_variable_value): Add dwarf2_per_objfile parameter.
4377 (class dwarf_evaluate_loc_desc) <dwarf_call,
4378 dwarf_variable_value>: Update.
4379 (fetch_const_value_from_synthetic_pointer): Add
4380 dwarf2_per_objfile parameter.
4381 (fetch_const_value_from_synthetic_pointer): Update.
4382 (coerced_pieced_ref): Update.
4383 (class symbol_needs_eval_context) <dwarf_call,
4384 dwarf_variable_value>: Update.
4385 (dwarf2_compile_expr_to_ax): Update.
4386
4387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4390 parameter.
4391 (dwarf2_evaluate_loc_desc_full): Update.
4392
4393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4396 parameter.
4397 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4398 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4399 dwarf2_per_objfile parameter.
4400 (decode_debug_loc_dwo_addresses): Likewise.
4401 (dwarf2_find_location_expression): Update.
4402 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4403 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4404 parameter.
4405 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4406 parameter.
4407 (locexpr_describe_location_1): Likewise.
4408 (locexpr_describe_location): Update.
4409
4410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4413 Remove.
4414 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4415 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4416 (dwarf2_compile_property_to_c): Update.
4417 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4418 use text offset from objfile.
4419 (locexpr_tracepoint_var_ref): Update.
4420 (locexpr_generate_c_location): Update.
4421 (loclist_describe_location): Update.
4422 (loclist_tracepoint_var_ref): Update.
4423 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4424 dwarf2_per_objfile parameter.
4425 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4426 use text offset from objfile.
4427 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4428
4429 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * dwarf2/expr.h (struct dwarf_expr_context)
4432 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4433 <offset>: Remove.
4434 <per_objfile>: New member.
4435 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4436 dwarf2_per_objfile parameter. Don't set offset, set
4437 per_objfile.
4438 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4439 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4440 a dwarf2_per_objfile object instead of an offset.
4441 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4442 constructor.
4443 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4444 to dwarf2_expr_executor constructor. Don't set offset.
4445 (dwarf2_fetch_cfa_info): Update.
4446 (struct dwarf2_frame_cache) <text_offset>: Remove.
4447 <per_objfile>: New field.
4448 (dwarf2_frame_cache): Update.
4449 (dwarf2_frame_prev_register): Update.
4450 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4451 <dwarf_evaluate_loc_desc>: Add constructor.
4452 (dwarf2_evaluate_loc_desc_full): Update.
4453 (dwarf2_locexpr_baton_eval): Update.
4454 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4455 Add constructor.
4456 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4457
4458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4461 addr_sized_int_type>: Move to dwarf2_cu.
4462 <int_type>: Move to dwarf2_per_objfile.
4463 (struct dwarf2_per_objfile) <int_type>: Move here.
4464 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4465 addr_sized_int_type>: Move here.
4466 (read_func_scope): Update.
4467 (read_array_type): Update.
4468 (read_tag_string_type): Update.
4469 (attr_to_dynamic_prop): Update.
4470 (dwarf2_per_cu_data::int_type): Rename to...
4471 (dwarf2_per_objfile::int_type): ... this.
4472 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4473 (dwarf2_cu::addr_sized_int_type): ... this.
4474 (read_subrange_type): Update.
4475 (dwarf2_per_cu_data::addr_type): Rename to...
4476 (dwarf2_cu::addr_type): ... this.
4477 (set_die_type): Update.
4478
4479 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4482 data through per_cu->cu.
4483
4484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4487 dwarf2_per_cu_data parameter fo dwarf2_cu.
4488 (lookup_dwo_type_unit): Likewise.
4489 (read_cutu_die_from_dwo): Likewise.
4490 (lookup_dwo_unit): Likewise.
4491 (open_and_init_dwo_file): Likewise.
4492 (lookup_dwo_cutu): Likewise.
4493 (lookup_dwo_comp_unit): Likewise.
4494 (lookup_dwo_type_unit): Likewise.
4495 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4496 (cutu_reader::cutu_reader): Update.
4497
4498 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4501 parameter.
4502 (process_full_type_unit): Likewise.
4503 (process_queue): Update.
4504
4505 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * dwarf2/read.c (recursively_compute_inclusions): Add
4508 dwarf2_per_objfile parameter.
4509 (compute_compunit_symtab_includes): Likewise.
4510 (process_cu_includes): Update.
4511
4512 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4515 parameter.
4516 (create_type_unit_group): Update.
4517 (process_psymtab_comp_unit_reader): Update.
4518 (build_type_psymtabs_reader): Update.
4519
4520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4523 object through m_this_cu->cu.
4524
4525 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4528 the info parameter.
4529 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4530
4531 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4532
4533 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4534 per_objfile parameter.
4535 (load_full_type_unit): Add per_objfile parameter.
4536 (read_signatured_type): Likewise.
4537 (load_full_comp_unit): Likewise.
4538 (load_cu): Likewise.
4539 (dw2_do_instantiate_symtab): Likewise.
4540 (dw2_get_file_names): Likewise.
4541 (dw2_map_symtabs_matching_filename): Update.
4542 (dw_expand_symtabs_matching_file_matcher): Update.
4543 (dw2_map_symbol_filenames): Update.
4544 (process_psymtab_comp_unit): Add per_objfile parameter.
4545 (build_type_psymtabs_1): Update.
4546 (process_skeletonless_type_unit): Update.
4547 (dwarf2_build_psymtabs_hard): Update.
4548 (load_partial_comp_unit): Add per_objfile parameter.
4549 (scan_partial_symbols): Update.
4550 (load_full_comp_unit): Add per_objfile parameter.
4551 (process_imported_unit_die): Update.
4552 (create_cus_hash_table): Update.
4553 (find_partial_die): Update.
4554 (dwarf2_read_addr_index): Update.
4555 (follow_die_offset): Update.
4556 (dwarf2_fetch_die_loc_sect_off): Update.
4557 (dwarf2_fetch_constant_bytes): Update.
4558 (dwarf2_fetch_die_type_sect_off): Update.
4559 (follow_die_sig_1): Update.
4560 (load_full_type_unit): Add per_objfile parameter.
4561 (read_signatured_type): Likewise.
4562
4563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4566 of objfile_name.
4567
4568 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4571 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4572 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4573 field.
4574 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4575 (create_cus_from_index): Update.
4576 (dwarf2_read_gdb_index): Update.
4577 (create_cus_from_debug_names): Update.
4578 (dwarf2_read_debug_names): Update.
4579 (get_abbrev_section_for_cu): Update.
4580 (create_all_comp_units): Update.
4581 (read_attribute_value): Update.
4582 (get_debug_line_section): Update.
4583 * dwarf2/index-cache.c (index_cache::store): Update.
4584 * dwarf2/index-write.c (save_gdb_index_command): Update.
4585 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4586
4587 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4588
4589 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4590 member.
4591 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4592 dwarf2_per_cu_data::per_bfd.
4593 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4594 (create_type_unit_group): Likewise.
4595 (queue_comp_unit): Remove reference to
4596 per_cu->dwarf2_per_objfile.
4597 (maybe_queue_comp_unit): Likewise.
4598 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4599 (create_cus_hash_table): Assign new field.
4600
4601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * dwarf2/read.c: Replace
4604 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4605 dwarf2_cu->per_objfile throughout.
4606
4607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4610 parameter, don't use per_cu->dwarf2_per_objfile.
4611 (dw2_instantiate_symtab): Likewise.
4612 (dw2_find_last_source_symtab): Update.
4613 (dw2_map_expand_apply): Update.
4614 (dw2_lookup_symbol): Update.
4615 (dw2_expand_symtabs_for_function): Update.
4616 (dw2_expand_all_symtabs): Update.
4617 (dw2_expand_symtabs_with_fullname): Update.
4618 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4619 don't use per_cu->dwarf2_per_objfile.
4620 (dw2_expand_marked_cus): Update.
4621 (dw2_find_pc_sect_compunit_symtab): Update.
4622 (dw2_debug_names_lookup_symbol): Update.
4623 (dw2_debug_names_expand_symtabs_for_function): Update.
4624 (dw2_debug_names_map_matching_symbols): Update.
4625 (dwarf2_psymtab::expand_psymtab): Update.
4626
4627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4630 <per_objfile>: New member.
4631 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4632 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4633 call to dwarf2_cu.
4634 (cutu_reader::cutu_reader): Update.
4635 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4636
4637 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4640 struct dwarf2_per_objfile.
4641 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4642 dwarf2_per_bfd.
4643 * dwarf2/read.c (set_die_type): Update.
4644 (get_die_type_at_offset): Update.
4645
4646 2020-05-27 Tom Tromey <tom@tromey.com>
4647 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4650 method.
4651 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4652 get_symtab, set_symtab>: New methods.
4653 <m_symtabs>: New field.
4654 (struct dwarf2_psymtab): Derive from partial_symtab.
4655 <readin_p, get_compunit_symtab>: Declare methods.
4656 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4657 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4658 New methods.
4659 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4660 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4661 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4662 (dw2_symtab_iter_next, dw2_print_stats)
4663 (dw2_expand_symtabs_with_fullname)
4664 (dw2_expand_symtabs_matching_one)
4665 (dw_expand_symtabs_matching_file_matcher)
4666 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4667 (dw2_debug_names_iterator::next)
4668 (dw2_debug_names_map_matching_symbols)
4669 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4670 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4671 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4672 New methods.
4673 (get_compunit_symtab, process_full_comp_unit)
4674 (process_full_type_unit): Update.
4675 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4676
4677 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4680 then introduce a new dwarf2_per_objfile type.
4681 <read_line_string>: Move to the new dwarf2_per_objfile type.
4682 <objfile>: Likewise.
4683 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4684 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4685 dwarf2_per_objfile->per_bfd.
4686 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4687 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4688 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4689 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4690 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4691 (dwarf2_per_objfile::locate_sections): Rename to...
4692 (dwarf2_per_bfd::locate_sections): ... this.
4693 (dwarf2_per_objfile::get_cutu): Rename to...
4694 (dwarf2_per_bfd::get_cutu): ... this.
4695 (dwarf2_per_objfile::get_cu): Rename to...
4696 (dwarf2_per_bfd::get_cu): ... this.
4697 (dwarf2_per_objfile::get_tu): Rename to...
4698 (dwarf2_per_bfd::get_tu): ... this.
4699 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4700 (dwarf2_per_bfd::allocate_per_cu): ... this.
4701 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4702 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4703 (get_gdb_index_contents_ftype): Change parameter from
4704 dwarf2_per_objfile to dwarf2_per_bfd.
4705 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4706 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4707
4708 2020-05-27 Tom Tromey <tom@tromey.com>
4709 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4712 (allocate_piece_closure): Set "per_objfile" member.
4713 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4714 (locexpr_describe_location, loclist_describe_location): Use new
4715 member.
4716 * dwarf2/read.c (read_call_site_scope)
4717 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4718 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4719 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4720 handle_data_member_location): Set per_objfile member.
4721 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4722 member.
4723 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4724
4725 2020-05-27 Tom Tromey <tom@tromey.com>
4726
4727 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4728 allocate_signatured_type>: Declare new methods.
4729 <m_num_psymtabs>: New member.
4730 (struct dwarf2_per_cu_data) <index>: New member.
4731 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4732 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4733 (create_cu_from_index_list): Use allocate_per_cu.
4734 (create_signatured_type_table_from_index)
4735 (create_signatured_type_table_from_debug_names)
4736 (create_debug_type_hash_table, add_type_unit)
4737 (read_comp_units_from_section): Use allocate_signatured_type.
4738
4739 2020-05-27 Tom Tromey <tom@tromey.com>
4740
4741 * psymtab.c (partial_map_expand_apply)
4742 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4743 (psym_lookup_global_symbol_language)
4744 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4745 (psym_print_stats, psym_expand_symtabs_for_function)
4746 (psym_map_symbol_filenames, psym_map_matching_symbols)
4747 (psym_expand_symtabs_matching)
4748 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4749 (maintenance_check_psymtabs): Update.
4750 * psympriv.h (struct partial_symtab) <readin_p,
4751 get_compunit_symtab>: Add objfile parameter.
4752 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4753 Likewise.
4754 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4755 get_compunit_symtab>: Likewise.
4756 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4757
4758 2020-05-27 Tom Tromey <tom@tromey.com>
4759
4760 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4761 member.
4762 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4763 (create_cu_from_index_list)
4764 (create_signatured_type_table_from_index)
4765 (create_signatured_type_table_from_debug_names)
4766 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4767 (dwarf2_create_include_psymtab)
4768 (create_debug_type_hash_table, add_type_unit)
4769 (create_type_unit_group, read_comp_units_from_section)
4770 (dwarf2_compute_name, create_cus_hash_table)
4771 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4772 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4773 obstack.
4774 (dw2_get_real_path): Likewise. Change argument to
4775 dwarf2_per_objfile.
4776
4777 2020-05-27 Luis Machado <luis.machado@linaro.org>
4778
4779 PR tdep/26000
4780 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4781 for ldrd (immediate).
4782
4783 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4784
4785 * command.h: Add comment giving the name of class_tui.
4786 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4787 create the fake command for the help for class_tui.
4788
4789 2020-05-26 Tom Tromey <tromey@adacore.com>
4790
4791 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4792 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4793 (val_atr): New function.
4794 (value_val_atr): Use it.
4795 * ada-valprint.c (print_optional_low_bound): Change low bound
4796 handling for enums.
4797 (val_print_packed_array_elements): Don't call discrete_position.
4798 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4799 discrete_position for enum types.
4800 * language.c (default_print_array_index): Change type.
4801 * language.h (struct language_defn) <la_print_array_index>: Add
4802 index_type parameter, change type of index_value.
4803 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4804 (default_print_array_index): Update.
4805 * valprint.c (maybe_print_array_index): Don't call
4806 value_from_longest. Update.
4807 (value_print_array_elements): Don't call discrete_position.
4808
4809 2020-05-26 Tom Tromey <tromey@adacore.com>
4810
4811 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4812 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4813
4814 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4815
4816 PR gdb/13519
4817 * avr-tdep.c (avr_integer_to_address): Return data or code
4818 address accordingly to the second 'type' argument of the
4819 function.
4820
4821 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4822
4823 * infcmd.c, inferior.h: (construct_inferior_arguments):
4824 Moved function from here to gdbsupport/common-inferior.{h,cc}
4825
4826 2020-05-23 Tom Tromey <tom@tromey.com>
4827
4828 Revert commit eca1f90c:
4829 * NEWS: Remove entry for completion styling.
4830 * completer.c (_rl_completion_prefix_display_length): Move
4831 declaration later.
4832 (gdb_fnprint): Revert.
4833 (gdb_display_match_list_1): Likewise.
4834 * cli/cli-style.c (completion_prefix_style)
4835 (completion_difference_style, completion_suffix_style): Remove.
4836 (_initialize_cli_style): Revert.
4837 * cli/cli-style.h (completion_prefix_style)
4838 (completion_difference_style, completion_suffix_style): Don't
4839 declare.
4840
4841 2020-05-24 Pedro Alves <palves@redhat.com>
4842
4843 * symtab.c (completion_list_add_name): Return boolean indication
4844 of whether the symbol matched.
4845 (completion_list_add_symbol): Don't try to remove C++ aliases if
4846 the symbol didn't match in the first place.
4847 * symtab.h (completion_list_add_name): Return bool.
4848
4849 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4850
4851 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4852 type::field.
4853
4854 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4855
4856 GDB 9.2 released.
4857
4858 2020-05-23 Tom Tromey <tom@tromey.com>
4859
4860 * NEWS: Add entry for completion styling.
4861 * completer.c (_rl_completion_prefix_display_length): Move
4862 declaration earlier.
4863 (gdb_fnprint): Use completion_style.
4864 (gdb_display_match_list_1): Likewise.
4865 * cli/cli-style.c (completion_prefix_style)
4866 (completion_difference_style, completion_suffix_style): New
4867 globals.
4868 (_initialize_cli_style): Register new globals.
4869 * cli/cli-style.h (completion_prefix_style)
4870 (completion_difference_style, completion_suffix_style): Declare.
4871
4872 2020-05-23 Pedro Alves <palves@redhat.com>
4873
4874 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4875 (parse_escape): Use ISDIGIT instead of isdigit.
4876 (puts_debug): Use gdb_isprint instead of isprint.
4877 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4878 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4879 ISSPACE instead of isspace.
4880 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4881 instead of isspace.
4882 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4883 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4884 instead of isxdigit and ISDIGIT instead of isdigit.
4885
4886 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbtypes.h (struct type) <field>: New method.
4889 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4890 or type::field.
4891
4892 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4895 (TYPE_FIELDS): Use type::fields. Change all call sites that
4896 modify the propery to use type::set_fields instead.
4897
4898 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4901 type::num_fields instead.
4902
4903 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4906 methods.
4907 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4908 that modify the number of fields to use type::set_num_fields
4909 instead.
4910
4911 2020-05-22 Tom Tromey <tromey@adacore.com>
4912
4913 * compile/compile-object-load.h (munmap_list_free): Don't
4914 declare.
4915
4916 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * annotate.c (annotate_source_line): Update return type, add call
4919 to update current symtab and line.
4920 * annotate.h (annotate_source_line): Update return type, and
4921 extend header comment.
4922 * source.c (info_line_command): Check annotation_level before
4923 calling annotate_source_line.
4924 * stack.c (print_frame_info): If calling annotate_source_line
4925 returns true, then don't print any other source line information.
4926
4927 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4930
4931 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * coffread.c (patch_type): Remove NULL check before xfree.
4934 * corefile.c (set_gnutarget): Likewise.
4935 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4936 * exec.c (build_section_table): Likewise.
4937 * remote.c (remote_target::pass_signals): Likewise.
4938 * utils.c (n_spaces): Likewise.
4939 * cli/cli-script.c (document_command): Likewise.
4940 * i386-windows-tdep.c (core_process_module_section): Likewise.
4941 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4942
4943 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * symfile.c (reread_symbols): Clear objfile's section_offsets
4946 vector and section indices, re-compute them by calling
4947 sym_offsets.
4948
4949 2020-05-20 Tom Tromey <tromey@adacore.com>
4950
4951 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4952 (desc_one_bound, desc_index_type): Compute field name.
4953
4954 2020-05-20 Tom de Vries <tdevries@suse.de>
4955
4956 PR symtab/25833
4957 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4958
4959 2020-05-20 Alan Modra <amodra@gmail.com>
4960
4961 PR 25993
4962 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4963 bfd_set_filename.
4964 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4965 passed to bfd_set_filename.
4966 * symfile-mem.c (add_vsyscall_page): Likewise for string
4967 passed to symbol_file_add_from_memory.
4968 (symbol_file_add_from_memory): Make name param a const char* and
4969 don't strdup.
4970
4971 2020-05-20 Alan Modra <amodra@gmail.com>
4972
4973 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4974 rather than accessing bfd->filename directly.
4975 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4976 and use bfd_section_name.
4977 * dwarf2/frame.c (decode_frame_entry): Likewise.
4978 * exec.c (exec_set_section_address): Likewise.
4979 * solib-aix.c (solib_aix_bfd_open): Likewise.
4980 * stap-probe.c (get_stap_base_address): Likewise.
4981 * symfile.c (reread_symbols): Likewise.
4982
4983 2020-05-19 Tom Tromey <tromey@adacore.com>
4984
4985 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4986
4987 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4990
4991 2020-05-19 Pedro Alves <palves@redhat.com>
4992
4993 * NEWS (set exec-file-mismatch): Adjust entry.
4994 * exec.c: Include "build-id.h".
4995 (validate_exec_file): Try to match build IDs instead of filenames.
4996 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4997 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4998 and pass down 'warn_if_slow'.
4999 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5000 gdb_bfd_open_closure to pass it down.
5001 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5002
5003 2020-05-19 Pedro Alves <palves@redhat.com>
5004
5005 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5006 * target.c (target_fileio_open_1): Rename to target_fileio_open
5007 and make extern. Use bool.
5008 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5009 (target_fileio_read_alloc_1): Adjust.
5010 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5011 (target_fileio_open_warn_if_slow): Delete declaration.
5012
5013 2020-05-19 Pedro Alves <palves@redhat.com>
5014
5015 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5016 Adjust all callers.
5017
5018 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5019
5020 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5021 whether disp is negative.
5022
5023 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * symfile.h (struct symfile_segment_data)
5026 <~symfile_segment_data>: Remove.
5027 <segment_info>: Change to std::vector.
5028 * symfile.c (default_symfile_segments): Update.
5029 * elfread.c (elf_symfile_segments): Update.
5030
5031 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5032
5033 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5034 <segments>: New.
5035 <segment_bases, segment_sizes>: Remove.
5036 * symfile.c (default_symfile_segments): Update.
5037 * elfread.c (elf_symfile_segments): Update.
5038 * remote.c (remote_target::get_offsets): Update.
5039 * solib-target.c (solib_target_relocate_section_addresses):
5040 Update.
5041
5042 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * symfile.h (struct symfile_segment_data): Initialize fields.
5045 <~symfile_segment_data>: Add.
5046 (symfile_segment_data_up): New.
5047 (struct sym_fns) <sym_segments>: Return a
5048 symfile_segment_data_up.
5049 (default_symfile_segments): Return a symfile_segment_data_up.
5050 (free_symfile_segment_data): Remove.
5051 (get_symfile_segment_data): Return a symfile_segment_data_up.
5052 * symfile.c (default_symfile_segments): Likewise.
5053 (get_symfile_segment_data): Likewise.
5054 (free_symfile_segment_data): Remove.
5055 (symfile_find_segment_sections): Update.
5056 * elfread.c (elf_symfile_segments): Return a
5057 symfile_segment_data_up.
5058 * remote.c (remote_target::get_offsets): Update.
5059 * solib-target.c (solib_target_relocate_section_addresses):
5060 Update.
5061 * symfile-debug.c (debug_sym_segments): Return a
5062 symfile_segment_data_up.
5063
5064 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5065
5066 PR build/25981
5067 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5068 Hardcode register numbers.
5069
5070 PR build/25981
5071 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5072 procfs_find_LDT_entry): Remove.
5073 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5074 procfs_find_LDT_entry): Remove.
5075 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5076 Remove.
5077
5078 2020-05-17 Pedro Alves <palves@redhat.com>
5079 Andrew Burgess <andrew.burgess@embecosm.com>
5080 Keno Fischer <keno@juliacomputing.com>
5081
5082 PR gdb/25741
5083 * breakpoint.c (build_target_condition_list): Update comments.
5084 (build_target_command_list): Update comments and skip matching
5085 locations.
5086 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5087 a separate function. Simplify "set breakpoint auto-hw off"
5088 handling.
5089 (insert_breakpoints): Update comment.
5090 (tracepoint_locations_match): New parameter. For breakpoints,
5091 compare location types too, if the caller wants to.
5092 (handle_automatic_hardware_breakpoints): New functions.
5093 (bp_location_is_less_than): Also sort by location type and
5094 hardware breakpoint length.
5095 (update_global_location_list): Handle "set breakpoint auto-hw on"
5096 here.
5097 (update_breakpoint_locations): Ask breakpoint_locations_match to
5098 ignore location types.
5099
5100 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5103 type::name instead.
5104
5105 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * gdbtypes.h (struct type) <name, set_name>: New methods.
5108 (TYPE_CODE): Use type::name. Change all call sites used to set
5109 the name to use type::set_name instead.
5110
5111 2020-05-16 Tom Tromey <tom@tromey.com>
5112
5113 * top.c (quit_force): Update.
5114 * infrun.c (handle_no_resumed): Update.
5115 * top.h (all_uis): New function.
5116 (ALL_UIS): Remove.
5117
5118 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5121
5122 2020-05-16 Pedro Alves <palves@redhat.com>
5123
5124 * ia64-linux-nat.c
5125 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5126 Declare method.
5127 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5128
5129 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5132 (sparc64_adi_info): Likewise.
5133
5134 2020-05-15 Tom Tromey <tom@tromey.com>
5135
5136 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5137 block_objfile.
5138 (lookup_objfile_from_block): Remove.
5139 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5140 (lookup_global_symbol): Use block_objfile.
5141 * symtab.h (lookup_objfile_from_block): Don't declare.
5142 * printcmd.c (clear_dangling_display_expressions): Use
5143 block_objfile.
5144 * parse.c (operator_check_standard): Use block_objfile.
5145
5146 2020-05-15 Tom Tromey <tom@tromey.com>
5147
5148 * language.c (language_alloc_type_symbol): Set
5149 SYMBOL_SECTION.
5150 * symtab.c (initialize_objfile_symbol): Remove.
5151 (allocate_symbol): Remove.
5152 (allocate_template_symbol): Remove.
5153 * dwarf2/read.c (fixup_go_packaging): Use "new".
5154 (new_symbol): Use "new".
5155 (read_variable): Don't call initialize_objfile_symbol. Use
5156 "new".
5157 (read_func_scope): Use "new".
5158 * xcoffread.c (process_xcoff_symbol): Don't call
5159 initialize_objfile_symbol.
5160 (SYMBOL_DUP): Remove.
5161 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5162 "new".
5163 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5164 (allocate_template_symbol): Don't declare.
5165 (struct symbol): Add copy constructor. Change defaults.
5166 * jit.c (finalize_symtab): Use "new".
5167 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5168 Use "new".
5169 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5170 (common_block_end): Use "new".
5171 * mdebugread.c (parse_symbol): Use "new".
5172 (new_symbol): Likewise.
5173
5174 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175
5176 * NEWS: Mention changes to help and apropos.
5177
5178 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5179
5180 * command.h (enum command_class): Improve comments, document
5181 that class_alias is for user-defined aliases, give the class
5182 name for each class, remove unused class_xdb.
5183 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5184 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5185 by a precise class.
5186 * infcmd.c (_initialize_infcmd): Likewise.
5187 * reverse.c (_initialize_reverse): Likewise.
5188 * stack.c (_initialize_stack): Likewise.
5189 * symfile.c (_initialize_symfile): Likewise.
5190 * tracepoint.c (_initialize_tracepoint): Likewise.
5191
5192 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5193
5194 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5195 when their aliased command is traversed.
5196 (help_cmd): Add fput_command_names_styled call to
5197 output command name and aliases when command has an alias.
5198
5199 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5200
5201 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5202 * cli/cli-decode.c (help_cmd_list): Declare as static,
5203 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5204 a command together with the command.
5205 (fput_command_name_styled, fput_command_names_styled): New functions.
5206 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5207 fput_command_name_styled.
5208 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5209 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5210
5211 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5212
5213 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5214 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5215 * command.h (cmd_show_list): Likewise.
5216 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5217 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5218
5219 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5220
5221 * unittests/command-def-selftests.c (traverse_command_structure):
5222 Verify all commands of a list have the same prefix command and
5223 that only the top cmdlist commands have a null prefix.
5224
5225 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5226
5227 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5228 as prefix, not one of its aliases.
5229 (set_cmd_prefix): Remove.
5230 (do_add_cmd): Centralize the setting of the prefix of a command, when
5231 command is defined after its full chain of prefix commands.
5232 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5233 (add_setshow_cmd_full): Likewise.
5234 (update_prefix_field_of_prefixed_commands): New function.
5235 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5236 update_prefix_field_of_prefixed_commands.
5237 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5238 addresses of remote_set_cmdlist and remote_show_cmdlist given
5239 as argument, not the address of an argument.
5240 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5241 * gdb/remote.c (_initialize_remote): Likewise.
5242
5243 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * cli/cli-cmds.c (alias_command): Check for an existing alias
5246 using lookup_cmd_composition, as valid_command_p is too strict
5247 and forbids aliases that are the prefix of an existing alias
5248 or command.
5249 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5250 command is properly recognised as a valid command.
5251
5252 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5253
5254 * unittests/help-doc-selftests.c: Rename to
5255 unittests/command-def-selftests.c
5256 * unittests/command-def-selftests.c (help_doc_tests): Update some
5257 comments.
5258 (command_structure_tests, traverse_command_structure): New namespace
5259 and function.
5260 (command_structure_invariants_tests): New function.
5261 (_initialize_command_def_selftests) Renamed from
5262 _initialize_help_doc_selftests, register command_structure_invariants
5263 selftest.
5264
5265 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5266
5267 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5268 an alias of 'show'.
5269
5270 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5271
5272 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5273 ada_is_fixed_point_type. Update all callers.
5274 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5275 all callers.
5276 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5277 Update all callers.
5278 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5279 print_fixed_point_type. Update all callers.
5280 * ada-valprint.c (ada_value_print_num): Replace call to
5281 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5282
5283 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5284
5285 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5286 processors.
5287 (cpu_supports_bts): Add CV_AMD case.
5288
5289 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5290 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * infrun.c (stop_all_threads): Collect multiple wait events at
5293 each pass.
5294
5295 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5298 type::code instead.
5299
5300 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5301
5302 * gdbtypes.h (struct type) <code, set_code>: New methods.
5303 (TYPE_CODE): Use type::code. Change all call sites used to set
5304 the code to use type::set_code instead.
5305
5306 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5307 Tom de Vries <tdevries@suse.de>
5308 Pedro Alves <palves@redhat.com>
5309
5310 PR threads/25478
5311 * infrun.c (stop_all_threads): Do NOT ignore
5312 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5313 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5314 received.
5315 (handle_no_resumed): Remove code handling a live inferior with no
5316 threads.
5317 * remote.c (has_single_non_exited_thread): New.
5318 (remote_target::update_thread_list): Do not delete a thread if is
5319 the last thread of the process.
5320 * thread.c (thread_select): Call delete_exited_threads instead of
5321 prune_threads.
5322
5323 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5324
5325 * infrun.c (stop_all_threads): Enable/disable thread events of all
5326 targets. Move a debug message denoting the end of the function
5327 into the SCOPED_EXIT block.
5328
5329 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5330
5331 * process-stratum-target.h: Include <set>.
5332 (all_non_exited_process_targets, switch_to_target_no_thread): New
5333 function declarations.
5334 * process-stratum-target.c (all_non_exited_process_targets)
5335 (switch_to_target_no_thread): New function implementations.
5336
5337 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5338
5339 * infrun.c (handle_inferior_event): Extract out a piece of code
5340 into...
5341 (mark_non_executing_threads): ...this new function.
5342
5343 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5344
5345 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5346 use.
5347
5348 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5349
5350 * regcache.c (regcache_read_pc_protected): New function
5351 implementation that returns 0 if the PC cannot read via
5352 'regcache_read_pc'.
5353 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5354 instead of 'regcache_read_pc'.
5355 (keep_going_pass_signal): Ditto.
5356
5357 2020-05-13 Tom Tromey <tromey@adacore.com>
5358
5359 * ada-lang.c (align_value): Remove.
5360 (ada_template_to_fixed_record_type_1): Use align_up.
5361
5362 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5363
5364 * async-event.c: Update the copyright year.
5365 * async-event.h: Update the copyright year.
5366
5367 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * objfiles.h (is_addr_in_objfile,
5370 shared_objfile_contains_address_p): Return bool.
5371 * objfile.c (is_addr_in_objfile,
5372 shared_objfile_contains_address_p): Return bool.
5373
5374 2020-05-11 Tom Tromey <tromey@adacore.com>
5375
5376 * cli/cli-cmds.c (info_command): Restore.
5377 (_initialize_cli_cmds): Use add_prefix_command for "info".
5378 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5379
5380 2020-05-11 Tom Tromey <tromey@adacore.com>
5381
5382 * ada-lang.c (ada_value_primitive_field): Now public.
5383 * ada-lang.h (ada_value_primitive_field): Declare.
5384 * ada-valprint.c (print_field_values): Use
5385 ada_value_primitive_field for wrapper fields.
5386
5387 2020-05-11 Tom de Vries <tdevries@suse.de>
5388
5389 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5390 MODULE_DOMAIN.
5391
5392 2020-05-11 Tom de Vries <tdevries@suse.de>
5393
5394 PR symtab/25941
5395 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5396 with length 0, if not gdb-produced.
5397 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5398
5399 2020-05-09 Tom de Vries <tdevries@suse.de>
5400
5401 PR gdb/25955
5402 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5403 calculation.
5404
5405 2020-05-09 Tom Tromey <tom@tromey.com>
5406
5407 * top.c (server_command): Now bool.
5408 * top.h (server_command): Now bool.
5409
5410 2020-05-08 Tom Tromey <tromey@adacore.com>
5411
5412 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5413 already being processed.
5414
5415 2020-05-08 Tom Tromey <tom@tromey.com>
5416
5417 * printcmd.c (struct display) <next>: Remove.
5418 <display>: New constructor.
5419 <exp_string>: Now a std::string.
5420 <enabled_p>: Now a bool.
5421 (display_number): Move definition earlier.
5422 (displays): Rename from display_chain. Now a std::vector.
5423 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5424 (display_command): Update.
5425 (do_one_display, disable_display)
5426 (enable_disable_display_command, do_enable_disable_display):
5427 Update.
5428 (free_display): Remove.
5429 (clear_displays): Rewrite.
5430 (delete_display): Update.
5431 (map_display_numbers): Use function_view. Remove "data"
5432 parameter. Update.
5433 (do_delete_display): Remove.
5434 (undisplay_command): Update.
5435 (do_one_display, do_displays, disable_display)
5436 (info_display_command): Update.
5437 (do_enable_disable_display): Remove.
5438 (enable_disable_display_command)
5439 (clear_dangling_display_expressions): Update.
5440
5441 2020-05-08 Tom Tromey <tom@tromey.com>
5442
5443 * symtab.c (set_symbol_cache_size)
5444 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5445 (maintenance_print_symbol_cache_statistics): Update.
5446 * symmisc.c (print_symbol_bcache_statistics)
5447 (print_objfile_statistics, maintenance_print_objfiles)
5448 (maintenance_info_symtabs, maintenance_check_symtabs)
5449 (maintenance_expand_symtabs, maintenance_info_line_tables):
5450 Update.
5451 * symfile-debug.c (set_debug_symfile): Update.
5452 * source.c (forget_cached_source_info): Update.
5453 * python/python.c (gdbpy_progspaces): Update.
5454 * psymtab.c (maintenance_info_psymtabs): Update.
5455 * probe.c (parse_probes): Update.
5456 * linespec.c (iterate_over_all_matching_symtabs)
5457 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5458 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5459 * exec.c (exec_target::close): Update.
5460 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5461 * breakpoint.c (print_one_breakpoint_location)
5462 (create_longjmp_master_breakpoint)
5463 (create_std_terminate_master_breakpoint): Update.
5464 * progspace.c (program_spaces): Now a std::vector.
5465 (maybe_new_address_space): Update.
5466 (add_program_space): Remove.
5467 (program_space::program_space): Update.
5468 (remove_program_space): Update.
5469 (number_of_program_spaces): Remove.
5470 (print_program_space, update_address_spaces): Update.
5471 * progspace.h (program_spaces): Change type.
5472 (ALL_PSPACES): Remove.
5473 (number_of_program_spaces): Don't declare.
5474 (struct program_space) <next>: Remove.
5475
5476 2020-05-08 Tom Tromey <tom@tromey.com>
5477
5478 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5479 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5480 (enable_break): Update.
5481 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5482 (frv_fdpic_find_canonical_descriptor): Update.
5483 (frv_fetch_objfile_link_map): Update.
5484 * progspace.c (program_space::free_all_objfiles): Update.
5485 (program_space::solibs): New method.
5486 * progspace.h (struct program_space) <solibs>: New method.
5487 * solist.h (master_so_list): Don't declare.
5488 (ALL_SO_LIBS): Remove.
5489 * solib.h (so_list_head): Remove.
5490 (update_solib_list): Update comment.
5491 * solib.c (master_so_list): Remove.
5492 (solib_used, update_solib_list, solib_add)
5493 (info_sharedlibrary_command, clear_solib)
5494 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5495
5496 2020-05-08 Tom Tromey <tom@tromey.com>
5497
5498 * extension.c (extension_languages): Now a std::array.
5499 (ALL_EXTENSION_LANGUAGES): Remove.
5500 (get_ext_lang_defn, get_ext_lang_of_file)
5501 (eval_ext_lang_from_control_command): Update.
5502 (finish_ext_lang_initialization)
5503 (auto_load_ext_lang_scripts_for_objfile)
5504 (ext_lang_type_printers::ext_lang_type_printers)
5505 (apply_ext_lang_type_printers)
5506 (ext_lang_type_printers::~ext_lang_type_printers)
5507 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5508 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5509 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5510 (get_matching_xmethod_workers, ext_lang_colorize)
5511 (ext_lang_before_prompt): Update.
5512 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5513
5514 2020-05-08 Tom Tromey <tom@tromey.com>
5515
5516 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5517 overload.
5518 <swap_string, m_string>: Remove.
5519 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5520 Update.
5521 * stabsread.c (define_symbol, read_type): Update.
5522 * linespec.c (find_linespec_symbols): Update.
5523 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5524 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5525 * dbxread.c (read_dbx_symtab): Update.
5526 * cp-support.h (cp_canonicalize_string_full)
5527 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5528 Return unique_xmalloc_ptr.
5529 * cp-support.c (inspect_type): Update.
5530 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5531 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5532 Likewise.
5533 * c-typeprint.c (print_name_maybe_canonical): Update.
5534 * break-catch-throw.c (check_status_exception_catchpoint):
5535 Update.
5536
5537 2020-05-08 Tom de Vries <tdevries@suse.de>
5538
5539 * infrun.c (follow_fork): Copy current_line and current_symtab to
5540 child thread.
5541
5542 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * async-event.c (struct async_signal_handler, struct
5545 async_event_handler): Reformat, remove typedef.
5546
5547 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5548
5549 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5550 access thistype->main_type->dyn_prop_list directly.
5551
5552 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5555 (remove_dyn_prop): Remove. Update all users to use
5556 type::remove_dyn_prop.
5557 * gdbtypes.c (remove_dyn_prop): Rename to...
5558 (type::remove_dyn_prop): ... this.
5559
5560 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5561
5562 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5563 (add_dyn_prop): Remove. Update all users to use
5564 type::add_dyn_prop.
5565 * gdbtypes.c (add_dyn_prop): Rename to...
5566 (type::add_dyn_prop): ... this.
5567
5568 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5571 (get_dyn_prop): Remove. Update all users to use
5572 type::dyn_prop.
5573 * gdbtypes.c (get_dyn_prop): Rename to...
5574 (type::dyn_prop): ... this.
5575
5576 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5579
5580 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5583 instruction, skip it if it's there.
5584
5585 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5588
5589 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5592 * gdbtypes.c (recursive_dump_type): Remove use of
5593 TYPE_INCOMPLETE.
5594
5595 2020-05-03 Tom Tromey <tom@tromey.com>
5596
5597 * breakpoint.c (catch_command, tcatch_command): Remove.
5598 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5599 add_show_prefix_cmd.
5600 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5601 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5602 Remove.
5603 (add_internal_problem_command): Use add_basic_prefix_cmd,
5604 add_show_prefix_cmd.
5605 * mips-tdep.c (set_mipsfpu_command): Remove.
5606 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5607 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5608 (_initialize_index_cache): Use add_basic_prefix_cmd.
5609 * memattr.c (dummy_cmd): Remove.
5610 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5611 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5612 (_initialize_tui_win): Use add_basic_prefix_cmd,
5613 add_show_prefix_cmd.
5614 * cli/cli-logging.c (set_logging_command): Remove.
5615 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5616 add_show_prefix_cmd.
5617 (show_logging_command): Remove.
5618 * target.c (target_command): Remove.
5619 (add_target): Use add_basic_prefix_cmd.
5620
5621 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5622
5623 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5624
5625 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5626
5627 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5628 info_command.
5629
5630 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5631
5632 * nbsd-nat.c (nbsd_enable_proc_events)
5633 (nbsd_nat_target::post_startup_inferior): Add.
5634 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5635 (nbsd_nat_target::update_thread_list): Rewrite.
5636 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5637 "PTRACE_LWP_CREATE".
5638 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5639
5640 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5641
5642 * stack.c (_initialize_stack): Remove duplicated creation
5643 of "frame" command and "f" alias.
5644
5645 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5646
5647 PR gdb/18706
5648 * gdbtypes.c (check_typedef): Calculate size of array of
5649 stubbed type.
5650
5651 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5652
5653 PR gdb/15559
5654 * i386-tdep.c (i386_push_dummy_call): Call
5655 i386_thiscall_push_dummy_call.
5656 (i386_thiscall_push_dummy_call): New function.
5657 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5658 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5659 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5660
5661 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5662
5663 * gdbarch.sh (do_read): Add shellcheck disable directive for
5664 warning SC2162.
5665
5666 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5669 "referenced but not assigned" warning.
5670
5671 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbarch.sh: Remove code that sets fallbackdefault.
5674
5675 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * gdbarch.sh: Use shell operators && and || instead of
5678 -a and -o.
5679
5680 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5681
5682 * gdbarch.sh: Use $(...) instead of `...`.
5683
5684 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * gdbarch.sh: Use double quotes around variables.
5687
5688 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5689
5690 * gdbarch.sh: Use %s with printf, instead of variables in the
5691 format string.
5692
5693 2020-04-29 Tom Tromey <tromey@adacore.com>
5694
5695 PR ada/25875:
5696 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5697 type fields here.
5698 (read_enumeration_type): Call
5699 update_enumeration_type_from_children later. Update comments.
5700 (process_enumeration_scope): Don't create type fields.
5701
5702 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5703
5704 * nbsd-tdep.c: Include "xml-syscall.h".
5705 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5706
5707 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5708
5709 * nbsd-nat.c: Include "sys/wait.h".
5710 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5711 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5712 (nbsd_nat_target::remove_exec_catchpoint)
5713 (nbsd_nat_target::set_syscall_catchpoint): Add.
5714 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5715 (nbsd_nat_target::insert_exec_catchpoint)
5716 (nbsd_nat_target::remove_exec_catchpoint)
5717 (nbsd_nat_target::set_syscall_catchpoint): Add.
5718 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5719 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5720 `nbsd_get_syscall_number'.
5721
5722 2020-04-29 Tom Tromey <tom@tromey.com>
5723
5724 * stack.c (print_block_frame_labels): Remove.
5725
5726 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5727
5728 PR gdb/17320
5729 * ada-valprint.c (val_print_packed_array_elements): Move array
5730 end bracket to new line.
5731 (ada_val_print_string): Remove extra spaces before first array
5732 element.
5733 * c-valprint.c (c_value_print_array): Likewise.
5734 * m2-valprint.c (m2_print_array_contents): Likewise.
5735 (m2_value_print_inner): Likewise.
5736 * p-valprint.c (pascal_value_print_inner): Likewise.
5737 * valprint.c (generic_val_print_array): Likewise.
5738 (value_print_array_elements): Move first array element and array
5739 end bracket to new line.
5740
5741 2020-04-29 Tom de Vries <tdevries@suse.de>
5742
5743 PR symtab/25889
5744 * linespec.c (find_method): Fix ix calculation.
5745
5746 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5747
5748 * syscalls/update-netbsd.sh: New file.
5749 * syscalls/netbsd.xml: Regenerate.
5750 * data-directory/Makefile.in: Register `netbsd.xml' in
5751 `SYSCALLS_FILES'.
5752
5753 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * syscalls/update-freebsd.sh: Add double quotes.
5756
5757 2020-04-28 Tom Tromey <tom@tromey.com>
5758
5759 * NEWS: Update.
5760 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5761 (cmdpy_init): Allow class_tui.
5762
5763 2020-04-28 Mark Williams <mark@myosotissp.com>
5764
5765 PR gdb/24480
5766 * dwarf2read.c: Add missing assingments to list_in_scope when
5767 start_symtab was already called.
5768
5769 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5770
5771 PR gdb/25881
5772 * dwarf2/read.c (offset_map_type): Use
5773 gdb:hash_enum<sect_offset> as hash function.
5774
5775 2020-04-28 Tom de Vries <tdevries@suse.de>
5776
5777 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5778 with DW_AT_signature.
5779
5780 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5781
5782 * configure.ac: Remove check for fs_base/gs_base in
5783 user_regs_struct.
5784 * configure: Re-generate.
5785 * config.in: Re-generate.
5786 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5787 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5788 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5789
5790 2020-04-27 Luis Machado <luis.machado@linaro.org>
5791
5792 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5793 problematic inline frame unwinding situation.
5794 * frame.c (frame_id_computed_p): New function.
5795 * frame.h (frame_id_computed_p): New prototype.
5796
5797 2020-04-26 Tom Tromey <tom@tromey.com>
5798
5799 * command.h (enum command_class) <class_pseudo>: Remove.
5800
5801 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5802
5803 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5804 and whitespace.
5805
5806 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5807
5808 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5809 `PT_GET_PROCESS_STATE' block.
5810
5811 2020-04-24 Tom Tromey <tom@tromey.com>
5812
5813 * symtab.h (symbol_get_demangled_name): Don't declare.
5814 * symtab.c (symbol_get_demangled_name): Remove.
5815 (general_symbol_info::natural_name)
5816 (general_symbol_info::demangled_name): Update.
5817
5818 2020-04-24 Tom Tromey <tom@tromey.com>
5819
5820 PR rust/25025:
5821 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5822
5823 2020-04-24 Tom Tromey <tom@tromey.com>
5824
5825 PR symtab/12707:
5826 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5827 exists.
5828 (new_symbol): Likewise.
5829 * compile/compile-object-load.c (get_out_value_type): Use
5830 symbol_matches_search_name.
5831
5832 2020-04-24 Tom Tromey <tom@tromey.com>
5833
5834 * dwarf2/read.c (add_partial_symbol): Do not call
5835 compute_and_set_names.
5836
5837 2020-04-24 Tom Tromey <tom@tromey.com>
5838
5839 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5840 overload.
5841
5842 2020-04-24 Tom Tromey <tom@tromey.com>
5843
5844 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5845 (add_psymbol_to_list): New overload. Make old overload call new
5846 one.
5847 * psympriv.h (add_psymbol_to_list): New overload.
5848
5849 2020-04-24 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2/read.c (partial_die_info::read) <case
5852 DW_AT_linkage_name>: Use value_as_string.
5853 (dwarf2_string_attr): Use value_as_string.
5854 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5855 method.
5856 * dwarf2/attribute.c (attribute::value_as_string): New method.
5857
5858 2020-04-24 Tom Tromey <tom@tromey.com>
5859
5860 * symtab.c (general_symbol_info::natural_name)
5861 (general_symbol_info::demangled_name): Check for language_rust.
5862
5863 2020-04-24 Tom Tromey <tom@tromey.com>
5864
5865 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5866 (dwarf2_physname): ... from here.
5867 (partial_die_info::read): Add Rust "{" hack.
5868
5869 2020-04-24 Tom Tromey <tom@tromey.com>
5870
5871 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5872 method.
5873 (symbol_set_demangled_name): Don't declare.
5874 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5875 symbol_set_demangled_name.
5876 (general_symbol_info::set_language)
5877 (general_symbol_info::compute_and_set_names): Update.
5878 * minsyms.c (minimal_symbol_reader::install): Update.
5879 * dwarf2/read.c (new_symbol): Update.
5880
5881 2020-04-24 Tom Tromey <tromey@adacore.com>
5882
5883 PR python/23662:
5884 * python/py-type.c (convert_field): Handle
5885 FIELD_LOC_KIND_DWARF_BLOCK.
5886 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5887 (typy_get_dynamic): Nw function.
5888 (type_object_getset): Add "dynamic".
5889 * NEWS: Add entry.
5890
5891 2020-04-24 Tom Tromey <tromey@adacore.com>
5892
5893 * ada-typeprint.c (print_choices, print_variant_part)
5894 (print_record_field_types_dynamic): New functions.
5895 (print_record_field_types): Use print_record_field_types_dynamic.
5896
5897 2020-04-24 Tom Tromey <tromey@adacore.com>
5898
5899 * dwarf2/read.c (handle_data_member_location): New overload.
5900 (dwarf2_add_field): Use it.
5901 (decode_locdesc): Add "computed" parameter. Update comment.
5902 * gdbtypes.c (is_dynamic_type_internal): Also look for
5903 FIELD_LOC_KIND_DWARF_BLOCK.
5904 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5905 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5906 virtual base classes.
5907 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5908 FIELD_LOC_KIND_DWARF_BLOCK.
5909
5910 2020-04-24 Tom Tromey <tromey@adacore.com>
5911
5912 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5913 * gdbtypes.c (is_dynamic_type_internal): Check
5914 TYPE_HAS_DYNAMIC_LENGTH.
5915 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5916 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5917 New macros.
5918 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5919 constant.
5920
5921 2020-04-24 Tom Tromey <tromey@adacore.com>
5922
5923 * dwarf2/read.c (struct variant_field): Rewrite.
5924 (struct variant_part_builder): New.
5925 (struct nextfield): Remove "variant" field. Add "offset".
5926 (struct field_info): Add "current_variant_part" and
5927 "variant_parts".
5928 (alloc_discriminant_info): Remove.
5929 (alloc_rust_variant): New function.
5930 (quirk_rust_enum): Update.
5931 (dwarf2_add_field): Set "offset" member. Don't handle
5932 DW_TAG_variant_part.
5933 (offset_map_type): New typedef.
5934 (convert_variant_range, create_one_variant)
5935 (create_one_variant_part, create_variant_parts)
5936 (add_variant_property): New functions.
5937 (dwarf2_attach_fields_to_type): Call add_variant_property.
5938 (read_structure_type): Don't handle DW_TAG_variant_part.
5939 (handle_variant_part, handle_variant): New functions.
5940 (handle_struct_member_die): Use them.
5941 (process_structure_scope): Don't handle variant parts.
5942 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5943 (struct discriminant_info): Remove.
5944 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5945 (struct main_type) <flag_discriminated_union>: Remove.
5946 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5947 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5948 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5949 Update.
5950 * valops.c (value_union_variant): Remove.
5951 * value.h (value_union_variant): Don't declare.
5952
5953 2020-04-24 Tom Tromey <tromey@adacore.com>
5954
5955 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5956 (ada_value_primitive_packed_val): Update.
5957 * ada-valprint.c (ada_value_print_1): Update.
5958 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5959 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5960 just an address. Use evaluate_for_locexpr_baton.
5961 (dwarf2_evaluate_property): Update.
5962 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5963 array_view.
5964 * findvar.c (default_read_var_value): Update.
5965 * gdbtypes.c (compute_variant_fields_inner)
5966 (resolve_dynamic_type_internal): Update.
5967 (resolve_dynamic_type): Change type of valaddr parameter.
5968 * gdbtypes.h (resolve_dynamic_type): Update.
5969 * valarith.c (value_subscripted_rvalue): Update.
5970 * value.c (value_from_contents_and_address): Update.
5971
5972 2020-04-24 Tom Tromey <tromey@adacore.com>
5973
5974 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5975 "push_initial_value" parameter.
5976 (dwarf2_evaluate_property): Likewise.
5977 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5978
5979 2020-04-24 Tom Tromey <tromey@adacore.com>
5980
5981 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5982 (variant::matches, compute_variant_fields_recurse)
5983 (compute_variant_fields_inner, compute_variant_fields): New
5984 functions.
5985 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5986 Use resolved_type after type is made.
5987 (operator==): Add new cases.
5988 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5989 (struct discriminant_range, struct variant, struct variant_part):
5990 New.
5991 (union dynamic_prop_data) <variant_parts, original_type>: New
5992 members.
5993 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5994 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5995 constants.
5996 * value.c (unpack_bits_as_long): Now public.
5997 * value.h (unpack_bits_as_long): Declare.
5998
5999 2020-04-24 Tom Tromey <tromey@adacore.com>
6000
6001 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6002 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6003
6004 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6005
6006 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6007
6008 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6009
6010 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6011 (remove_fork_catchpoint, post_startup_inferior)
6012 (post_attach): Move...
6013 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6014 (remove_fork_catchpoint, post_startup_inferior)
6015 (post_attach): ...here.
6016 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6017 (remove_fork_catchpoint, post_startup_inferior)
6018 (post_attach): Move...
6019 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6020 (remove_fork_catchpoint, post_startup_inferior)
6021 (post_attach): ...here.
6022
6023 2020-04-24 Tom Tromey <tromey@adacore.com>
6024
6025 * nat/windows-nat.h (struct windows_thread_info)
6026 <pc_adjusted>: New member.
6027 * windows-nat.c (windows_fetch_one_register): Check
6028 pc_adjusted.
6029 (windows_nat_target::get_windows_debug_event)
6030 (windows_nat_target::wait): Set pc_adjusted.
6031
6032 2020-04-24 Tom de Vries <tdevries@suse.de>
6033
6034 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6035 Run gdb-add-index inside temp dir.
6036
6037 2020-04-23 Tom Tromey <tromey@adacore.com>
6038
6039 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6040 in loop.
6041
6042 2020-04-23 Luis Machado <luis.machado@linaro.org>
6043
6044 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6045 get_frame_register instead of gdbarch_unwind_pc.
6046
6047 2020-04-23 Tom de Vries <tdevries@suse.de>
6048
6049 * symtab.c (lookup_global_symbol): Prefer def over decl.
6050
6051 2020-04-23 Tom de Vries <tdevries@suse.de>
6052
6053 PR symtab/25807
6054 * block.c (best_symbol, better_symbol): Promote to external.
6055 * block.h (best_symbol, better_symbol): Declare.
6056 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6057 decl.
6058
6059 2020-04-23 Tom Tromey <tromey@adacore.com>
6060
6061 PR ada/25837:
6062 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6063 "const char *", not a "const std::string &".
6064 <name_and_matcher::operator==>: Update.
6065 * unittests/lookup_name_info-selftests.c: Change type of
6066 "result".
6067
6068 2020-04-23 Tom Tromey <tom@tromey.com>
6069
6070 * inferior.h (iterate_over_inferiors): Don't declare.
6071 * inferior.c (iterate_over_inferiors): Remove.
6072 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6073 Remove.
6074 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6075 use iterate_over_inferiors.
6076 (darwin_resume_inferior_it)
6077 (struct resume_inferior_threads_param)
6078 (darwin_resume_inferior_threads_it): Remove.
6079 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6080
6081 2020-04-23 Tom de Vries <tdevries@suse.de>
6082
6083 * blockframe.c (find_pc_partial_function): Use
6084 find_pc_sect_compunit_symtab rather than
6085 objfile->sf->qf->find_pc_sect_compunit_symtab.
6086
6087 2020-04-22 Tom de Vries <tdevries@suse.de>
6088
6089 PR symtab/25764
6090 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6091 in psymtabs.
6092
6093 2020-04-22 Tom de Vries <tdevries@suse.de>
6094
6095 PR symtab/25801
6096 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6097 symtabs.
6098
6099 2020-04-22 Tom de Vries <tdevries@suse.de>
6100
6101 PR symtab/25700
6102 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6103 CU if already created.
6104
6105 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6106
6107 * infrun.c (displaced_step_fixup): Switch to the event_thread
6108 before calling displaced_step_restore, not after.
6109
6110 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6111
6112 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6113 its inferior is not recorded by us.
6114 (record_btrace_target_open): Replace call to
6115 all_non_exited_threads () with call to current_inferior
6116 ()->non_exited_threads ().
6117 (record_btrace_target::stop_recording): Likewise.
6118 (record_btrace_target::close): Likewise.
6119 (record_btrace_target::wait): Likewise.
6120 (record_btrace_target::record_stop_replaying): Likewise.
6121
6122 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6123
6124 * btrace.c (btrace_enable): Throw an error on double enables and
6125 when enabling recording fails.
6126 (btrace_disable): Throw an error if the thread is not recorded.
6127
6128 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6129
6130 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6131 request if we do not have a thread_info.
6132
6133 2020-04-21 Tom de Vries <tdevries@suse.de>
6134
6135 PR gdb/25471
6136 * thread.c
6137 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6138 exception in get_frame_id.
6139
6140 2020-04-20 Tom Tromey <tromey@adacore.com>
6141
6142 * python/python.c (struct gdbpy_event): Mark move constructor as
6143 noexcept.
6144 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6145 constructor as noexcept.
6146 * completer.h (struct completion_result): Mark move constructor as
6147 noexcept.
6148 * completer.c (completion_result::completion_result): Use
6149 initialization style. Don't call reset_match_list.
6150
6151 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6152
6153 * MAINTAINERS (Write After Approval): Add myself.
6154
6155 2020-04-18 Tom Tromey <tom@tromey.com>
6156
6157 * windows-tdep.c (init_w32_command_list)
6158 (w32_prefix_command_valid): Restore.
6159 (_initialize_windows_tdep): Call init_w32_command_list.
6160
6161 2020-04-18 Tom Tromey <tom@tromey.com>
6162
6163 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6164 * value.c (value_fn_field): Update.
6165 * valops.c (find_function_in_inferior)
6166 (value_allocate_space_in_inferior): Update.
6167 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6168 Update.
6169 * tui/tui-source.c (tui_source_window::set_contents): Update.
6170 * symtab.c (lookup_global_or_static_symbol)
6171 (find_function_start_sal_1, skip_prologue_sal)
6172 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6173 * symmisc.c (dump_msymbols, dump_symtab_1)
6174 (maintenance_print_one_line_table): Update.
6175 * symfile.c (init_entry_point_info, section_is_mapped)
6176 (list_overlays_command, simple_read_overlay_table)
6177 (simple_overlay_update_1): Update.
6178 * stap-probe.c (handle_stap_probe): Update.
6179 * stabsread.c (dbx_init_float_type, define_symbol)
6180 (read_one_struct_field, read_enum_type, read_range_type): Update.
6181 * source.c (info_line_command): Update.
6182 * python/python.c (gdbpy_source_objfile_script)
6183 (gdbpy_execute_objfile_script): Update.
6184 * python/py-type.c (save_objfile_types): Update.
6185 * python/py-objfile.c (py_free_objfile): Update.
6186 * python/py-inferior.c (python_new_objfile): Update.
6187 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6188 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6189 (maintenance_check_psymtabs): Update.
6190 * printcmd.c (info_address_command): Update.
6191 * objfiles.h (struct objfile) <arch>: New method, from
6192 get_objfile_arch.
6193 (get_objfile_arch): Don't declare.
6194 * objfiles.c (get_objfile_arch): Remove.
6195 (filter_overlapping_sections): Update.
6196 * minsyms.c (msymbol_is_function): Update.
6197 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6198 (output_nondebug_symbol): Update.
6199 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6200 (mdebug_expand_psymtab): Update.
6201 * machoread.c (macho_add_oso_symfile): Update.
6202 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6203 Update.
6204 * linux-fork.c (checkpoint_command): Update.
6205 * linespec.c (convert_linespec_to_sals): Update.
6206 * jit.c (finalize_symtab): Update.
6207 * infrun.c (insert_exception_resume_from_probe): Update.
6208 * ia64-tdep.c (ia64_find_unwind_table): Update.
6209 * hppa-tdep.c (internalize_unwinds): Update.
6210 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6211 Update.
6212 * gcore.c (call_target_sbrk): Update.
6213 * elfread.c (record_minimal_symbol, elf_symtab_read)
6214 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6215 (elf_gnu_ifunc_resolve_by_got): Update.
6216 * dwarf2/read.c (create_addrmap_from_index)
6217 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6218 (read_debug_names_from_section)
6219 (process_psymtab_comp_unit_reader, add_partial_symbol)
6220 (add_partial_subprogram, process_full_comp_unit)
6221 (read_file_scope, read_func_scope, read_lexical_block_scope)
6222 (read_call_site_scope, dwarf2_ranges_read)
6223 (dwarf2_record_block_ranges, dwarf2_add_field)
6224 (mark_common_block_symbol_computed, read_tag_pointer_type)
6225 (read_tag_string_type, dwarf2_init_float_type)
6226 (dwarf2_init_complex_target_type, read_base_type)
6227 (partial_die_info::read, partial_die_info::read)
6228 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6229 (dwarf2_fetch_die_loc_sect_off): Update.
6230 * dwarf2/loc.c (dwarf2_find_location_expression)
6231 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6232 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6233 (dwarf2_loc_desc_get_symbol_read_needs)
6234 (locexpr_describe_location_piece, locexpr_describe_location_1)
6235 (loclist_describe_location): Update.
6236 * dwarf2/index-write.c (write_debug_names): Update.
6237 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6238 * dtrace-probe.c (dtrace_process_dof): Update.
6239 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6240 (process_one_symbol): Update.
6241 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6242 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6243 (coff_read_enum_type): Update.
6244 * cli/cli-cmds.c (edit_command, list_command): Update.
6245 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6246 * breakpoint.c (create_overlay_event_breakpoint)
6247 (create_longjmp_master_breakpoint)
6248 (create_std_terminate_master_breakpoint)
6249 (create_exception_master_breakpoint, get_sal_arch): Update.
6250 * block.c (block_gdbarch): Update.
6251 * annotate.c (annotate_source_line): Update.
6252
6253 2020-04-17 Tom Tromey <tromey@adacore.com>
6254
6255 * auto-load.c (show_auto_load_cmd): Remove.
6256 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6257 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6258 (maintenance_print_arc_command): Remove.
6259 * tui/tui-win.c (tui_command): Remove.
6260 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6261 * tui/tui-layout.c (tui_layout_command): Remove.
6262 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6263 * python/python.c (user_set_python, user_show_python): Remove.
6264 (_initialize_python): Use add_basic_prefix_cmd,
6265 add_show_prefix_cmd.
6266 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6267 (install_gdb_commands): Use add_basic_prefix_cmd,
6268 add_show_prefix_cmd.
6269 (info_guile_command): Remove.
6270 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6271 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6272 add_show_prefix_cmd.
6273 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6274 Remove do_set and do_show parameters.
6275 * cli/cli-style.c (set_style, show_style): Remove.
6276 (_initialize_cli_style): Use add_basic_prefix_cmd,
6277 add_show_prefix_cmd.
6278 (cli_style_option::add_setshow_commands): Remove do_set and
6279 do_show parameters.
6280 (cli_style_option::add_setshow_commands): Use
6281 add_basic_prefix_cmd, add_show_prefix_cmd.
6282 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6283 (set_style_name): Remove.
6284 * cli/cli-dump.c (dump_command, append_command): Remove.
6285 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6286 (tekhex_dump_command, binary_dump_command)
6287 (binary_append_command): Remove.
6288 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6289 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6290 (init_w32_command_list): Remove; move into ...
6291 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6292 * valprint.c (set_print, show_print, set_print_raw)
6293 (show_print_raw): Remove.
6294 (_initialize_valprint): Use add_basic_prefix_cmd,
6295 add_show_prefix_cmd.
6296 * typeprint.c (set_print_type, show_print_type): Remove.
6297 (_initialize_typeprint): Use add_basic_prefix_cmd,
6298 add_show_prefix_cmd.
6299 * record.c (set_record_command, show_record_command): Remove.
6300 (_initialize_record): Use add_basic_prefix_cmd,
6301 add_show_prefix_cmd.
6302 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6303 add_show_prefix_cmd.
6304 (info_command, show_command, set_debug, show_debug): Remove.
6305 * top.h (set_history, show_history): Don't declare.
6306 * top.c (set_history, show_history): Remove.
6307 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6308 (unset_tdesc_cmd): Remove.
6309 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6310 add_show_prefix_cmd.
6311 * symtab.c (info_module_command): Remove.
6312 (_initialize_symtab): Use add_basic_prefix_cmd.
6313 * symfile.c (overlay_command): Remove.
6314 (_initialize_symfile): Use add_basic_prefix_cmd.
6315 * sparc64-tdep.c (info_adi_command): Remove.
6316 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6317 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6318 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6319 add_show_prefix_cmd.
6320 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6321 (_initialize_serial): Use add_basic_prefix_cmd,
6322 add_show_prefix_cmd.
6323 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6324 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6325 add_show_prefix_cmd.
6326 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6327 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6330 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6331 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6332 add_show_prefix_cmd.
6333 * remote.c (remote_command, set_remote_cmd): Remove.
6334 (_initialize_remote): Use add_basic_prefix_cmd.
6335 * record-full.c (set_record_full_command)
6336 (show_record_full_command): Remove.
6337 (_initialize_record_full): Use add_basic_prefix_cmd,
6338 add_show_prefix_cmd.
6339 * record-btrace.c (cmd_set_record_btrace)
6340 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6341 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6342 (cmd_show_record_btrace_pt): Remove.
6343 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6344 add_show_prefix_cmd.
6345 * ravenscar-thread.c (set_ravenscar_command)
6346 (show_ravenscar_command): Remove.
6347 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6348 add_show_prefix_cmd.
6349 * mips-tdep.c (show_mips_command, set_mips_command)
6350 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6351 add_show_prefix_cmd.
6352 * maint.c (maintenance_command, maintenance_info_command)
6353 (maintenance_check_command, maintenance_print_command)
6354 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6355 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6356 add_show_prefix_cmd.
6357 (show_per_command_cmd): Remove.
6358 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6359 Remove.
6360 (maintenance_show_test_settings_cmd): Remove.
6361 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6362 add_show_prefix_cmd.
6363 * maint-test-options.c (maintenance_test_options_command):
6364 Remove.
6365 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6366 * macrocmd.c (macro_command): Remove
6367 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6368 * language.c (set_check, show_check): Remove.
6369 (_initialize_language): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * infcmd.c (unset_command): Remove.
6372 (_initialize_infcmd): Use add_basic_prefix_cmd.
6373 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6374 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6375 add_show_prefix_cmd.
6376 * go32-nat.c (go32_info_dos_command): Remove.
6377 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6378 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6379 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6380 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6381 (_initialize_frame): Use add_basic_prefix_cmd,
6382 add_show_prefix_cmd.
6383 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6384 (_initialize_dcache): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 * cp-support.c (maint_cplus_command): Remove.
6387 (_initialize_cp_support): Use add_basic_prefix_cmd.
6388 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6389 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6390 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6391 add_basic_prefix_cmd, add_show_prefix_cmd.
6392 * breakpoint.c (save_command): Remove.
6393 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6394 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6395 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6396 add_show_prefix_cmd.
6397 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6398 (set_ada_command, show_ada_command): Remove.
6399 (_initialize_ada_language): Use add_basic_prefix_cmd,
6400 add_show_prefix_cmd.
6401 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6402
6403 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6404
6405 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6406 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6407
6408 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6409
6410 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6411 warning messages.
6412
6413 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6414
6415 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6416 import table is not at beginning of .idata section.
6417
6418 2020-04-16 Pedro Alves <palves@redhat.com>
6419
6420 * inferior.c (delete_inferior): Use delete operator directly
6421 instead of delete_program_space.
6422 * progspace.c (add_program_space): New, factored out from
6423 program_space::program_space.
6424 (remove_program_space): New, factored out from
6425 delete_program_space.
6426 (program_space::program_space): Remove intro comment. Rewrite.
6427 (program_space::~program_space): Remove intro comment. Call
6428 remove_program_space.
6429 (delete_program_space): Delete.
6430 * progspace.h (program_space::program_space): Make explicit. Move
6431 intro comment here, adjusted.
6432 (program_space::~program_space): Move intro comment here,
6433 adjusted.
6434 (delete_program_space): Remove.
6435
6436 2020-04-16 Tom Tromey <tromey@adacore.com>
6437
6438 * windows-nat.c (windows_nat::handle_access_violation): New
6439 function.
6440 * nat/windows-nat.h (handle_access_violation): Declare.
6441 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6442 windows-nat.c. Call handle_access_violation.
6443
6444 2020-04-16 Tom de Vries <tdevries@suse.de>
6445
6446 PR symtab/25791
6447 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6448 CUs without psymtab.
6449
6450 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6451
6452 * python/python.c (do_start_initialization): Don't call
6453 PyEval_InitThreads for Python 3.9 and beyond.
6454
6455 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6456
6457 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6458 thread functions.
6459 (obsd_nat_target::wait): Likewise.
6460
6461 2020-04-15 Tom Tromey <tromey@adacore.com>
6462
6463 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6464 (DEBUG_EXCEPT): Use debug_printf.
6465
6466 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6467
6468 * completer.c (class completion_tracker::completion_hash_entry)
6469 <hash_name>: New member function.
6470 (completion_tracker::discard_completions): New callback to hash a
6471 completion_hash_entry, pass this to htab_create_alloc.
6472
6473 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6474
6475 * windows-nat.c (windows_make_so): Warn rather than stopping with
6476 an error if realpath() fails.
6477
6478 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6479
6480 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6481 (nbsd_nat_target::info_proc): Add do_status.
6482
6483 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6484 Tom de Vries <tdevries@suse.de>
6485
6486 PR symtab/25718
6487 * psympriv.h (struct partial_symtab::read_symtab)
6488 (struct partial_symtab::expand_psymtab)
6489 (struct partial_symtab::read_dependencies): Update comments.
6490 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6491 read_symtab for includer.
6492 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6493 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6494 (struct dwarf2_include_psymtab::m_readin): Remove.
6495 (struct dwarf2_include_psymtab::includer): New member function.
6496 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6497
6498 2020-04-14 Tom de Vries <tdevries@suse.de>
6499
6500 PR symtab/25720
6501 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6502 with NULL symbol_matcher and lookup_name.
6503 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6504 and lookup_name.
6505 * dwarf2/read.c (dw2_expand_symtabs_matching)
6506 (dw2_debug_names_expand_symtabs_matching): Same.
6507 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6508 Make lookup_name a pointer. Update comment.
6509 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6510 lookup_name being a pointer.
6511 * symfile.c (expand_symtabs_matching): Same.
6512 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6513 * linespec.c (iterate_over_all_matching_symtabs): Same.
6514
6515 2020-04-13 Tom Tromey <tom@tromey.com>
6516
6517 * run-on-main-thread.c: Update include.
6518 * unittests/main-thread-selftests.c: Update include.
6519 * tui/tui-win.c: Update include.
6520 * tui/tui-io.c: Update include.
6521 * tui/tui-interp.c: Update include.
6522 * tui/tui-hooks.c: Update include.
6523 * top.h: Update include.
6524 * top.c: Update include.
6525 * ser-base.c: Update include.
6526 * remote.c: Update include.
6527 * remote-notif.c: Update include.
6528 * remote-fileio.c: Update include.
6529 * record-full.c: Update include.
6530 * record-btrace.c: Update include.
6531 * python/python.c: Update include.
6532 * posix-hdep.c: Update include.
6533 * mingw-hdep.c: Update include.
6534 * mi/mi-main.c: Update include.
6535 * mi/mi-interp.c: Update include.
6536 * main.c: Update include.
6537 * linux-nat.c: Update include.
6538 * interps.c: Update include.
6539 * infrun.c: Update include.
6540 * inf-loop.c: Update include.
6541 * event-top.c: Update include.
6542 * event-loop.c: Move to ../gdbsupport/.
6543 * event-loop.h: Move to ../gdbsupport/.
6544 * async-event.h: Update include.
6545 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6546
6547 2020-04-13 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-win.c: Include async-event.h.
6550 * remote.c: Include async-event.h.
6551 * remote-notif.c: Include async-event.h.
6552 * record-full.c: Include async-event.h.
6553 * record-btrace.c: Include async-event.h.
6554 * infrun.c: Include async-event.h.
6555 * event-top.c: Include async-event.h.
6556 * event-loop.h: Move some declarations to async-event.h.
6557 * event-loop.c: Don't include ser-event.h or top.h. Move some
6558 code to async-event.c.
6559 * async-event.h: New file.
6560 * async-event.c: New file.
6561 * Makefile.in (COMMON_SFILES): Add async-event.c.
6562 (HFILES_NO_SRCDIR): Add async-event.h.
6563
6564 2020-04-13 Tom Tromey <tom@tromey.com>
6565
6566 * utils.c (flush_streams): New function.
6567 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6568
6569 2020-04-13 Tom Tromey <tom@tromey.com>
6570
6571 * event-loop.c (handle_file_event): Use warning, not
6572 printf_unfiltered.
6573
6574 2020-04-13 Tom Tromey <tom@tromey.com>
6575
6576 * event-loop.c: Include <chrono>.
6577
6578 2020-04-13 Tom Tromey <tom@tromey.com>
6579
6580 * gdb_select.h: Move to ../gdbsupport/.
6581 * event-loop.c: Update include path.
6582 * top.c: Update include path.
6583 * ser-base.c: Update include path.
6584 * ui-file.c: Update include path.
6585 * ser-tcp.c: Update include path.
6586 * guile/scm-ports.c: Update include path.
6587 * posix-hdep.c: Update include path.
6588 * ser-unix.c: Update include path.
6589 * gdb_usleep.c: Update include path.
6590 * mingw-hdep.c: Update include path.
6591 * inflow.c: Update include path.
6592 * infrun.c: Update include path.
6593 * event-top.c: Update include path.
6594
6595 2020-04-13 Tom Tromey <tom@tromey.com>
6596
6597 * configure: Rebuild.
6598 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6599
6600 2020-04-13 Tom Tromey <tom@tromey.com>
6601
6602 * event-loop.h (start_event_loop): Don't declare.
6603 * event-loop.c (start_event_loop): Move...
6604 * main.c (start_event_loop): ...here. Now static.
6605
6606 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6607
6608 * MAINTAINERS: Update my email address.
6609
6610 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6611
6612 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6613 IP_ALL.
6614
6615 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6616
6617 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6618 (nbsd_nat_target::info_proc): Add do_cmdline.
6619
6620 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6621
6622 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6623 (nbsd_nat_target::info_proc): Add do_cwd.
6624
6625 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6626
6627 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6628
6629 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6630
6631 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6632 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6633 (nbsd_nat_target::info_proc): New functions.
6634 * nbsd-nat.c (kinfo_get_vmmap): New function.
6635 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6636 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6637 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6638 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6639 functions.
6640 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6641 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6642 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6643 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6644 (KINFO_VME_FLAG_GROWS_DOWN): New.
6645
6646 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6647
6648 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6649 bit shift.
6650
6651 2020-04-10 Tom Tromey <tromey@adacore.com>
6652
6653 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6654
6655 2020-04-10 Tom Tromey <tromey@adacore.com>
6656
6657 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6658 separate debug files.
6659
6660 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6661
6662 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6663 Move to...
6664 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6665 ... here.
6666 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6667 Check for STATUS_WX86_BREAKPOINT.
6668 (windows_nat_target::wait): Same.
6669
6670 2020-04-10 Tom de Vries <tdevries@suse.de>
6671
6672 PR cli/25808
6673 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6674
6675 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6678 (Write After Approval): Remove Tom de Vries.
6679
6680 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6681
6682 revert partially:
6683 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6684
6685 * buildsym.c (record_line): Fix undefined behavior and preserve
6686 lines at eof.
6687
6688 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6689
6690 * auxv.h (svr4_auxv_parse): New.
6691 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6692 and generic_auxv_parse.
6693 (svr4_auxv_parse): Add.
6694 * obsd-tdep.c: Include "auxv.h".
6695 (obsd_auxv_parse): Remove.
6696 (obsd_init_abi): Remove comment.
6697 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6698 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6699 * nbsd-tdep.c: Include "auxv.h".
6700 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6701
6702 2020-04-08 Tom Tromey <tromey@adacore.com>
6703
6704 * nat/windows-nat.h (last_wait_event): Don't declare.
6705 (wait_for_debug_event): Update comment.
6706 * nat/windows-nat.c (last_wait_event): Now static.
6707
6708 2020-04-08 Tom Tromey <tromey@adacore.com>
6709
6710 * windows-nat.c (wait_for_debug_event): Move to
6711 nat/windows-nat.c.
6712 * nat/windows-nat.h (wait_for_debug_event): Declare.
6713 * nat/windows-nat.c (wait_for_debug_event): Move from
6714 windows-nat.c. No longer static.
6715
6716 2020-04-08 Tom Tromey <tromey@adacore.com>
6717
6718 * windows-nat.c (get_windows_debug_event): Use
6719 fetch_pending_stop.
6720 * nat/windows-nat.h (fetch_pending_stop): Declare.
6721 * nat/windows-nat.c (fetch_pending_stop): New function.
6722
6723 2020-04-08 Tom Tromey <tromey@adacore.com>
6724
6725 * windows-nat.c (windows_continue): Use matching_pending_stop and
6726 continue_last_debug_event.
6727 * nat/windows-nat.h (matching_pending_stop)
6728 (continue_last_debug_event): Declare.
6729 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6730 (matching_pending_stop, continue_last_debug_event): New
6731 functions.
6732
6733 2020-04-08 Tom Tromey <tromey@adacore.com>
6734
6735 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6736 (handle_exception_result): Move to nat/windows-nat.h.
6737 (DEBUG_EXCEPTION_SIMPLE): Remove.
6738 (windows_nat::handle_ms_vc_exception): New function.
6739 (handle_exception): Move to nat/windows-nat.c.
6740 (get_windows_debug_event): Update.
6741 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6742 nat/windows-nat.c.
6743 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6744 (handle_exception_result): Move from windows-nat.c.
6745 (handle_exception): Declare.
6746 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6747 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6748 windows-nat.c.
6749
6750 2020-04-08 Tom Tromey <tromey@adacore.com>
6751
6752 * windows-nat.c (exception_count, event_count): Remove.
6753 (handle_exception, get_windows_debug_event)
6754 (do_initial_windows_stuff): Update.
6755
6756 2020-04-08 Tom Tromey <tromey@adacore.com>
6757
6758 * windows-nat.c (windows_nat::handle_load_dll)
6759 (windows_nat::handle_unload_dll): Rename. No longer static.
6760 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6761 Declare.
6762
6763 2020-04-08 Tom Tromey <tromey@adacore.com>
6764
6765 * complaints.h (stop_whining): Declare at top-level.
6766 (complaint): Don't declare stop_whining.
6767
6768 2020-04-08 Tom Tromey <tromey@adacore.com>
6769
6770 * windows-nat.c (windows_nat::handle_output_debug_string):
6771 Rename. No longer static.
6772 * nat/windows-nat.h (handle_output_debug_string): Declare.
6773
6774 2020-04-08 Tom Tromey <tromey@adacore.com>
6775
6776 * windows-nat.c (current_process_handle, current_process_id)
6777 (main_thread_id, last_sig, current_event, last_wait_event)
6778 (current_windows_thread, desired_stop_thread_id, pending_stops)
6779 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6780 (display_selectors, fake_create_process)
6781 (get_windows_debug_event): Update.
6782 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6786 * nat/windows-nat.c (current_process_handle, current_process_id)
6787 (main_thread_id, last_sig, current_event, last_wait_event)
6788 (current_windows_thread, desired_stop_thread_id, pending_stops)
6789 (siginfo_er): New globals. Move from windows-nat.c.
6790
6791 2020-04-08 Tom Tromey <tromey@adacore.com>
6792
6793 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6794 (handle_load_dll): Update.
6795 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6796
6797 2020-04-08 Tom Tromey <tromey@adacore.com>
6798
6799 * windows-nat.c (enum thread_disposition_type): Move to
6800 nat/windows-nat.h.
6801 (windows_nat::thread_rec): Rename from thread_rec. No longer
6802 static.
6803 (windows_add_thread, windows_nat_target::fetch_registers)
6804 (windows_nat_target::store_registers, handle_exception)
6805 (windows_nat_target::resume, get_windows_debug_event)
6806 (windows_nat_target::get_tib_address)
6807 (windows_nat_target::thread_name)
6808 (windows_nat_target::thread_alive): Update.
6809 * nat/windows-nat.h (enum thread_disposition_type): Move from
6810 windows-nat.c.
6811 (thread_rec): Declare.
6812
6813 2020-04-08 Tom Tromey <tromey@adacore.com>
6814
6815 * windows-nat.c: Add "using namespace".
6816 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6817 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6818
6819 2020-04-08 Tom Tromey <tromey@adacore.com>
6820
6821 * nat/windows-nat.h (struct windows_thread_info): Declare
6822 destructor.
6823 * nat/windows-nat.c (~windows_thread_info): New.
6824
6825 2020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 PR gdb/22992
6828 * windows-nat.c (current_event): Update comment.
6829 (last_wait_event, desired_stop_thread_id): New globals.
6830 (struct pending_stop): New.
6831 (pending_stops): New global.
6832 (windows_nat_target) <stopped_by_sw_breakpoint>
6833 <supports_stopped_by_sw_breakpoint>: New methods.
6834 (windows_fetch_one_register): Add assertions. Adjust PC.
6835 (windows_continue): Handle pending stops. Suspend other threads
6836 when stepping. Use last_wait_event
6837 (wait_for_debug_event): New function.
6838 (get_windows_debug_event): Use wait_for_debug_event. Handle
6839 pending stops. Queue spurious stops.
6840 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6841 (windows_nat_target::kill): Use wait_for_debug_event.
6842 * nat/windows-nat.h (struct windows_thread_info)
6843 <stopped_at_software_breakpoint>: New field.
6844 * nat/windows-nat.c (windows_thread_info::resume): Clear
6845 stopped_at_software_breakpoint.
6846
6847 2020-04-08 Tom Tromey <tromey@adacore.com>
6848
6849 * windows-nat.c (enum thread_disposition_type): New.
6850 (thread_rec): Replace "get_context" parameter with "disposition";
6851 change type.
6852 (windows_add_thread, windows_nat_target::fetch_registers)
6853 (windows_nat_target::store_registers, handle_exception)
6854 (windows_nat_target::resume, get_windows_debug_event)
6855 (windows_nat_target::get_tib_address)
6856 (windows_nat_target::thread_name)
6857 (windows_nat_target::thread_alive): Update.
6858
6859 2020-04-08 Tom Tromey <tromey@adacore.com>
6860
6861 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6862 (windows_continue): Use windows_continue::resume.
6863 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6864 resume>: Declare new methods.
6865 * nat/windows-nat.c: New file.
6866 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6867
6868 2020-04-08 Tom Tromey <tromey@adacore.com>
6869
6870 * windows-nat.c (windows_add_thread, windows_delete_thread)
6871 (windows_nat_target::fetch_registers)
6872 (windows_nat_target::store_registers, fake_create_process)
6873 (windows_nat_target::resume, windows_nat_target::resume)
6874 (get_windows_debug_event, windows_nat_target::wait)
6875 (windows_nat_target::pid_to_str)
6876 (windows_nat_target::get_tib_address)
6877 (windows_nat_target::get_ada_task_ptid)
6878 (windows_nat_target::thread_name)
6879 (windows_nat_target::thread_alive): Use lwp, not tid.
6880
6881 2020-04-08 Tom Tromey <tromey@adacore.com>
6882
6883 * windows-nat.c (handle_exception)
6884 (windows_nat_target::thread_name): Update.
6885 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6886 <name>: Now unique_xmalloc_ptr.
6887
6888 2020-04-08 Tom Tromey <tromey@adacore.com>
6889
6890 * windows-nat.c (thread_rec)
6891 (windows_nat_target::fetch_registers): Update.
6892 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6893 Update comment.
6894 <debug_registers_changed, reload_context>: Now bool.
6895
6896 2020-04-08 Tom Tromey <tromey@adacore.com>
6897
6898 * windows-nat.c (windows_add_thread): Use new.
6899 (windows_init_thread_list, windows_delete_thread): Use delete.
6900 (get_windows_debug_event): Update.
6901 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6902 destructor, and initializers.
6903
6904 2020-04-08 Tom Tromey <tromey@adacore.com>
6905
6906 * windows-nat.c (struct windows_thread_info): Remove.
6907 * nat/windows-nat.h: New file.
6908
6909 2020-04-08 Tom Tromey <tromey@adacore.com>
6910
6911 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6912 (thread_rec, windows_add_thread, windows_delete_thread)
6913 (windows_continue): Update.
6914
6915 2020-04-08 Tom Tromey <tromey@adacore.com>
6916
6917 * windows-nat.c (struct windows_thread_info): Remove typedef.
6918 (thread_head): Remove.
6919 (thread_list): New global.
6920 (thread_rec, windows_add_thread, windows_init_thread_list)
6921 (windows_delete_thread, windows_continue): Update.
6922
6923 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * windows-tdep.h (windows_init_abi): Add comment.
6926 (cygwin_init_abi): New declaration.
6927 * windows-tdep.c: Split signal enumeration in two, one for
6928 Windows and one for Cygwin.
6929 (windows_gdb_signal_to_target): Only deal with signal of the
6930 Windows OS ABI.
6931 (cygwin_gdb_signal_to_target): New function.
6932 (windows_init_abi): Rename to windows_init_abi_common, don't set
6933 gdb_signal_to_target gdbarch method. Add new new function with
6934 this name.
6935 (cygwin_init_abi): New function.
6936 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6937 comment. Don't call windows_init_abi.
6938 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6939 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6940 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6941 i386_windows_init_abi_common, don't call windows_init_abi. Add
6942 a new function of this name.
6943 (i386_cygwin_init_abi): New function.
6944 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6945 OS ABI Cygwin.
6946
6947 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6948
6949 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6950 parameter.c.
6951 (dwarf2_read_gdb_index): Update.
6952
6953 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6954
6955 * nbsd-tdep.c: Include "objfiles.h".
6956 (nbsd_skip_solib_resolver): New.
6957 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6958
6959 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6960
6961 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6962 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6963 with DW_LLE_base_addressx are being emitted in DWARFv5.
6964 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6965 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6966 unsigned integer.
6967
6968 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6969
6970 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6971 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6972 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6973 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6974 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6975 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6976 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6977
6978
6979 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6980
6981 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6982 (read_loclist_index): New function definition.
6983 (lookup_loclist_base): New function definition.
6984 (read_loclist_header): New function definition.
6985 (dwarf2_cu): Add loclist_base and loclist_header field.
6986 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6987 (read_full_die_1): Read the value of DW_AT_loclists_base.
6988 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6989 (read_attribute_value): Handle DW_FORM_loclistx.
6990 (skip_one_die): Handle DW_FORM_loclistx.
6991 (loclist_header): New structure declaration.
6992 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6993
6994 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6995
6996 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6997 constructor. Remove `addr` parameter from other constructor and
6998 add `per_cu` parameter.
6999 * dwarf2/read.c (create_partial_symtab): Update.
7000
7001 2020-04-07 Tom de Vries <tdevries@suse.de>
7002
7003 PR symtab/25796
7004 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7005 (partial_die_info::fixup): Inherit has_const_value.
7006
7007 2020-04-07 Tom de Vries <tdevries@suse.de>
7008
7009 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7010 symbols without address.
7011
7012 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7013
7014 * nbsd-nat.h (struct thread_info): Add forward declaration.
7015 (nbsd_nat_target::thread_alive): Add.
7016 (nbsd_nat_target::thread_name): Likewise.
7017 (nbsd_nat_target::update_thread_list): Likewise.
7018 (update_thread_list::post_attach): Likewise.
7019 (post_attach::pid_to_str): Likewise.
7020 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7021 (nbsd_thread_lister): Add.
7022 (nbsd_nat_target::thread_alive): Likewise.
7023 (nbsd_nat_target::thread_name): Likewise.
7024 (nbsd_add_threads): Likewise.
7025 (update_thread_list::post_attach): Likewise.
7026 (nbsd_nat_target::update_thread_list): Likewise.
7027 (post_attach::pid_to_str): Likewise.
7028
7029 2020-04-06 Tom Tromey <tromey@adacore.com>
7030
7031 * ada-valprint.c (print_variant_part): Extract the variant field.
7032 (print_field_values): Use the field as the outer value when
7033 recursing.
7034
7035 2020-04-06 Tom Tromey <tromey@adacore.com>
7036
7037 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7038 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7039 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7040 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7041 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7042
7043 2020-04-06 Tom Tromey <tromey@adacore.com>
7044
7045 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7046 TYPE_CODE_ERROR.
7047
7048 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7049
7050 * nbsd-tdep.c: Include "gdbarch.h".
7051 Define enum with NetBSD signal numbers.
7052 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7053 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7054 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7055 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7056 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7057 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7058 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7059 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7060 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7061 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7062 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7063 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7064
7065 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7066
7067 PR gdb/25325
7068 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7069
7070 2020-04-03 Tom Tromey <tromey@adacore.com>
7071
7072 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7073 Read constant block.
7074
7075 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7078 (gdb_bfd_get_full_section_contents): New declaration.
7079 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7080 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7081 gdb_bfd_get_full_section_contents.
7082
7083 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7084
7085 * exec.c (build_section_table): Replace internal_error with
7086 gdb_assert.
7087 (section_table_xfer_memory_partial): Likewise.
7088 * mdebugread.c (parse_partial_symbols): Likewise.
7089 * psymtab.c (lookup_partial_symbol): Likewise.
7090 * utils.c (wrap_here): Likewise.
7091
7092 2020-04-02 Tom Tromey <tromey@adacore.com>
7093
7094 * f-lang.c (build_fortran_types): Use arch_type to initialize
7095 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7096
7097 2020-04-02 Tom Tromey <tromey@adacore.com>
7098
7099 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7100 of attributes.
7101
7102 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7103 Bernd Edlinger <bernd.edlinger@hotmail.de>
7104 Tom Tromey <tromey@adacore.com>
7105
7106 * buildsym.c (buildsym_compunit::record_line): Remove
7107 deduplication code.
7108
7109 2020-04-02 Tom de Vries <tdevries@suse.de>
7110
7111 PR ada/24671
7112 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7113
7114 2020-04-02 Tom de Vries <tdevries@suse.de>
7115
7116 * dwarf2/read.c (dwarf2_gdb_index_functions,
7117 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7118 NULL.
7119 * psymtab.c (psym_lookup_global_symbol_language): New function.
7120 (psym_functions): Init psym_lookup_global_symbol_language with
7121 psym_lookup_global_symbol_language.
7122 * symfile-debug.c (debug_sym_quick_functions): Init
7123 lookup_global_symbol_language with NULL.
7124 * symfile.c (set_initial_language): Remove fixme comment.
7125 * symfile.h (struct quick_symbol_functions): Add
7126 lookup_global_symbol_language.
7127 * symtab.c (find_quick_global_symbol_language): New function.
7128 (find_main_name): Use find_quick_global_symbol_language.
7129
7130 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7131
7132 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7133
7134 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7135
7136 * buildsym.c (record_line): Fix undefined behavior and preserve
7137 lines at eof.
7138
7139 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7140
7141 * buildsym.c (record_line): Fix the resizing condition.
7142
7143 2020-04-01 Tom Tromey <tom@tromey.com>
7144
7145 * value.h (value_literal_complex): Add comment.
7146 * valops.c (value_literal_complex): Refer to value.h.
7147
7148 2020-04-01 Tom Tromey <tom@tromey.com>
7149
7150 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7151 (scalar_type): New rule, from typebase.
7152 (typebase): Use scalar_type. Recognize complex types.
7153 (field_name): Handle FLOAT_KEYWORD.
7154 (ident_tokens): Add _Complex and __complex__.
7155
7156 2020-04-01 Tom Tromey <tom@tromey.com>
7157
7158 PR exp/25299:
7159 * valarith.c (promotion_type, complex_binop): New functions.
7160 (scalar_binop): Handle complex numbers. Use promotion_type.
7161 (value_pos, value_neg, value_complement): Handle complex numbers.
7162
7163 2020-04-01 Tom Tromey <tom@tromey.com>
7164
7165 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7166 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7167 (parse_number): Handle complex numbers.
7168
7169 2020-04-01 Tom Tromey <tom@tromey.com>
7170
7171 * c-valprint.c (c_decorations): Change complex suffix to "i".
7172
7173 2020-04-01 Tom Tromey <tom@tromey.com>
7174
7175 * valprint.c (generic_value_print_complex): Use accessors.
7176 * value.h (value_real_part, value_imaginary_part): Declare.
7177 * valops.c (value_real_part, value_imaginary_part): New
7178 functions.
7179 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7180
7181 2020-04-01 Tom Tromey <tom@tromey.com>
7182
7183 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7184 (read_range_type): Update.
7185 * mdebugread.c (basic_type): Update.
7186 * go-lang.c (build_go_types): Use init_complex_type.
7187 * gdbtypes.h (struct main_type) <complex_type>: New member.
7188 (init_complex_type): Update.
7189 (arch_complex_type): Don't declare.
7190 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7191 Make name if none given. Use alloc_type_copy. Look for cached
7192 complex type.
7193 (arch_complex_type): Remove.
7194 (gdbtypes_post_init): Use init_complex_type.
7195 * f-lang.c (build_fortran_types): Use init_complex_type.
7196 * dwarf2/read.c (read_base_type): Update.
7197 * d-lang.c (build_d_types): Use init_complex_type.
7198 * ctfread.c (read_base_type): Update.
7199
7200 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7201
7202 * infrun.c (stop_all_threads): Update assertion, plus when
7203 stopping threads, take into account that we might be trying
7204 to stop an all-stop target.
7205 (stop_waiting): Call 'stop_all_threads' if there exists a
7206 non-stop target.
7207
7208 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7209
7210 * target.h (exists_non_stop_target): New function declaration.
7211 * target.c (exists_non_stop_target): New function.
7212
7213 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7214
7215 PR gdb/24789
7216 * eval.c (is_integral_or_integral_reference): New function.
7217 (evaluate_subexp_standard): Allow integer references in
7218 pointer arithmetic.
7219
7220 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7221
7222 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7223 check for no ptid in the stop reply when the target is non-stop.
7224
7225 2020-04-01 Tom Tromey <tromey@adacore.com>
7226
7227 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7228 "name" parameter to rvalue reference. Initialize m_name_holder.
7229 <lookup_name_info>: New overloads.
7230 <name>: Return gdb::string_view.
7231 <c_str>: New method.
7232 <make_ignore_params>: Update.
7233 <search_name_hash>: Update.
7234 <language_lookup_name>: Return const char *.
7235 <m_name>: Change type.
7236 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7237 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7238 (lookup_name_info::match_any): Update.
7239 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7240 Update.
7241 * minsyms.c (linkage_name_str): Update.
7242 * language.c (default_symbol_name_matcher): Update.
7243 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7244 Update.
7245 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7246 (ada_lookup_name_info::ada_lookup_name_info): Update.
7247 (literal_symbol_name_matcher): Update.
7248
7249 2020-04-01 Tom Tromey <tromey@adacore.com>
7250
7251 * psymtab.c (psymtab_search_name): Remove function.
7252 (psym_lookup_symbol): Create search name and lookup name here.
7253 (lookup_partial_symbol): Remove "name" parameter; add
7254 lookup_name.
7255 (psym_expand_symtabs_for_function): Update.
7256
7257 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7258
7259 PR tui/25597:
7260 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7261
7262 2020-03-31 Tom Tromey <tromey@adacore.com>
7263
7264 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7265 memcpy.
7266
7267 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7268
7269 * features/riscv/32bit-csr.xml: Regenerated.
7270 * features/riscv/64bit-csr.xml: Regenerated.
7271
7272 2020-03-30 Tom Tromey <tromey@adacore.com>
7273
7274 * ada-valprint.c (print_variant_part): Update.
7275 * ada-lang.h (ada_which_variant_applies): Update.
7276 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7277 outer_valaddr parameters; replace with "outer" value parameter.
7278 (to_fixed_variant_branch_type): Update.
7279
7280 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7281
7282 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7283 <list>. Remove inclusion of observable.h.
7284 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7285 (struct arch_lwp_info): New struct.
7286 (class ppc_linux_dreg_interface): New class.
7287 (struct ppc_linux_process_info): New struct.
7288 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7289 <low_new_clone, low_forget_process, low_prepare_to_resume>
7290 <copy_thread_dreg_state, mark_thread_stale>
7291 <mark_debug_registers_changed, register_hw_breakpoint>
7292 <clear_hw_breakpoint, register_wp, clear_wp>
7293 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7294 <num_memory_accesses, get_trigger_type>
7295 <create_watchpoint_request, hwdebug_point_cmp>
7296 <init_arch_lwp_info, get_arch_lwp_info>
7297 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7298 methods.
7299 <struct ptid_hash>: New inner struct.
7300 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7301 members.
7302 (saved_dabr_value, hwdebug_info, max_slots_number)
7303 (struct hw_break_tuple, struct thread_points, ppc_threads)
7304 (have_ptrace_hwdebug_interface)
7305 (hwdebug_find_thread_points_by_tid)
7306 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7307 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7308 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7309 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7310 use m_dreg_interface.
7311 (hwdebug_point_cmp): Change to...
7312 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7313 reference arguments instead of pointers.
7314 (ppc_linux_nat_target::ranged_break_num_registers): Use
7315 m_dreg_interface.
7316 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7317 m_dreg_interface. Call register_hw_breakpoint.
7318 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7319 m_dreg_interface. Call clear_hw_breakpoint.
7320 (get_trigger_type): Change to...
7321 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7322 comment.
7323 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7324 use m_dreg_interface. Call register_hw_breakpoint.
7325 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7326 use m_dreg_interface. Call clear_hw_breakpoint.
7327 (can_use_watchpoint_cond_accel): Change to...
7328 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7329 method. Update comment, use m_dreg_interface and
7330 m_process_info.
7331 (calculate_dvc): Change to...
7332 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7333 m_dreg_interface.
7334 (num_memory_accesses): Change to...
7335 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7336 (check_condition): Change to...
7337 (ppc_linux_nat_target::check_condition): ...this method.
7338 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7339 comment, use m_dreg_interface.
7340 (create_watchpoint_request): Change to...
7341 (ppc_linux_nat_target::create_watchpoint_request): ...this
7342 method. Use m_dreg_interface.
7343 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7344 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7345 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7346 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7347 (ppc_linux_nat_target::low_forget_process)
7348 (ppc_linux_nat_target::low_new_fork)
7349 (ppc_linux_nat_target::low_new_clone)
7350 (ppc_linux_nat_target::low_delete_thread)
7351 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7352 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7353 only call mark_thread_stale.
7354 (ppc_linux_thread_exit): Remove.
7355 (ppc_linux_nat_target::stopped_data_address): Change to...
7356 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7357 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7358 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7359 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7360 comment. Call low_stopped_data_address.
7361 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7362 m_dreg_interface.
7363 (ppc_linux_nat_target::masked_watch_num_registers): Use
7364 m_dreg_interface.
7365 (ppc_linux_nat_target::copy_thread_dreg_state)
7366 (ppc_linux_nat_target::mark_thread_stale)
7367 (ppc_linux_nat_target::mark_debug_registers_changed)
7368 (ppc_linux_nat_target::register_hw_breakpoint)
7369 (ppc_linux_nat_target::clear_hw_breakpoint)
7370 (ppc_linux_nat_target::register_wp)
7371 (ppc_linux_nat_target::clear_wp)
7372 (ppc_linux_nat_target::init_arch_lwp_info)
7373 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7374 (_initialize_ppc_linux_nat): Remove observer callback.
7375
7376 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7377
7378 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7379 (ppc_linux_nat_target::auxv_parse)
7380 (ppc_linux_nat_target::read_description)
7381 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7382 Move up.
7383
7384 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7385
7386 * linux-nat.h (low_new_clone): New method.
7387 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7388
7389 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7392 (dbx_expand_psymtab): ... this.
7393 (start_psymtab): Update.
7394 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7395 (mdebug_expand_psymtab): ... this.
7396 (parse_partial_symbols): Update.
7397 (new_psymtab): Update.
7398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7399 (xcoff_expand_psymtab): ... this.
7400 (xcoff_start_psymtab): Update.
7401
7402 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7403
7404 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7405 <expand_dependencies>: ... this.
7406 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7407 (partial_symtab::expand_dependencies): ... this.
7408 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7409 Update.
7410 (dwarf2_psymtab::expand_psymtab): Update.
7411 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7412 * mdebugread.c (psymtab_to_symtab_1): Update.
7413 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7414
7415 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7416
7417 * psympriv.h (discard_psymtab): Remove.
7418 * dbxread.c (dbx_end_psymtab): Update.
7419 * xcoffread.c (xcoff_end_psymtab): Update.
7420
7421 2020-03-28 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7424 comment.
7425
7426 2020-03-28 Tom Tromey <tom@tromey.com>
7427
7428 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7429
7430 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7431
7432 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7433
7434 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7435
7436 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7437
7438 2020-03-26 Tom Tromey <tom@tromey.com>
7439
7440 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7441 (mark_common_block_symbol_computed, read_tag_string_type)
7442 (attr_to_dynamic_prop, read_subrange_type): Update.
7443 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7444 to be methods on struct attribute.
7445 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7446 (read_call_site_scope, partial_die_info::read)
7447 (partial_die_info::read, lookup_die_type, follow_die_ref):
7448 Update.
7449 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7450 from dwarf2_get_ref_die_offset.
7451 (attribute::constant_value): New method, from
7452 dwarf2_get_attr_constant_value.
7453 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7454 Declare method.
7455 <constant_value>: New method.
7456
7457 2020-03-26 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7460 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7461 (dwarf_type_encoding_name): Move to stringify.c.
7462 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7463 * dwarf2/stringify.c: New file.
7464 * dwarf2/stringify.h: New file.
7465
7466 2020-03-26 Tom Tromey <tom@tromey.com>
7467
7468 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7469 Rewrite.
7470
7471 2020-03-26 Tom Tromey <tom@tromey.com>
7472
7473 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7474 methods.
7475 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7476 (lookup_ranges_base): Likewise.
7477 (read_cutu_die_from_dwo, read_full_die_1): Update.
7478
7479 2020-03-26 Tom Tromey <tom@tromey.com>
7480
7481 * dwarf2/read.c (read_import_statement, read_file_scope)
7482 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7483 (read_lexical_block_scope, read_call_site_scope)
7484 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7485 (handle_struct_member_die, process_structure_scope)
7486 (update_enumeration_type_from_children)
7487 (process_enumeration_scope, read_array_type, read_common_block)
7488 (read_namespace, read_module, read_subroutine_type): Update.
7489 (sibling_die): Remove.
7490
7491 2020-03-26 Tom Tromey <tom@tromey.com>
7492
7493 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7494 (build_type_psymtabs_reader, read_structure_type)
7495 (read_enumeration_type, read_full_die_1): Update.
7496 (dwarf2_attr_no_follow): Move to die.h.
7497 * dwarf2/die.h (struct die_info) <attr>: New method.
7498
7499 2020-03-26 Tom Tromey <tom@tromey.com>
7500
7501 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7502 <base_address>: Now an optional.
7503 (dwarf2_find_base_address, dwarf2_rnglists_process)
7504 (dwarf2_ranges_process, fill_in_loclist_baton)
7505 (dwarf2_symbol_mark_computed): Update.
7506
7507 2020-03-26 Tom Tromey <tom@tromey.com>
7508
7509 * dwarf2/read.c (struct die_info): Move to die.h.
7510 * dwarf2/die.h: New file.
7511
7512 2020-03-26 Tom Tromey <tom@tromey.com>
7513
7514 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7515 * dwarf2/read.c
7516 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7517 Move to line-header.c.
7518 (read_checked_initial_length_and_offset, read_formatted_entries):
7519 Likewise.
7520 (dwarf_decode_line_header): Split into two.
7521 * dwarf2/line-header.c
7522 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7523 Move from read.c.
7524 (read_checked_initial_length_and_offset, read_formatted_entries):
7525 Likewise.
7526 (dwarf_decode_line_header): New function, split from read.c.
7527
7528 2020-03-26 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7531 Declare method.
7532 * dwarf2/read.c (read_attribute_value): Update.
7533 (dwarf2_per_objfile::read_line_string): Rename from
7534 read_indirect_line_string.
7535 (read_formatted_entries): Update.
7536
7537 2020-03-26 Tom Tromey <tom@tromey.com>
7538
7539 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7540 variable.
7541
7542 2020-03-26 Tom Tromey <tom@tromey.com>
7543
7544 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7545 const.
7546 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7547 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7548 parameter const.
7549
7550 2020-03-26 Tom Tromey <tom@tromey.com>
7551
7552 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7553 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7554 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7555 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7556
7557 2020-03-26 Tom Tromey <tom@tromey.com>
7558
7559 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7560 file_names_size, file_full_name, file_file_name>: Use const.
7561 <file_name_at, file_names>: Add const overload.
7562 * dwarf2/line-header.c (line_header::file_file_name)
7563 (line_header::file_full_name): Update.
7564
7565 2020-03-26 Tom Tromey <tom@tromey.com>
7566
7567 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7568 (macro_start_file, consume_improper_spaces)
7569 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7570 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7571 (dwarf_decode_macros): Move to macro.c.
7572 * dwarf2/macro.c: New file.
7573 * dwarf2/macro.h: New file.
7574 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7575
7576 2020-03-26 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7579 method.
7580 * dwarf2/section.c: New method. From
7581 read_indirect_string_at_offset_from.
7582 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7583 (read_indirect_string_at_offset_from): Move to section.c.
7584 (read_indirect_string_at_offset): Rewrite.
7585 (read_indirect_line_string_at_offset): Remove.
7586 (read_indirect_string, read_indirect_line_string)
7587 (dwarf_decode_macro_bytes): Update.
7588
7589 2020-03-26 Tom Tromey <tom@tromey.com>
7590
7591 * dwarf2/section.h (struct dwarf2_section_info)
7592 <overload_complaint>: Declare.
7593 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7594 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7595 Rename from dwarf2_section_buffer_overflow_complaint.
7596 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7597 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7598
7599 2020-03-26 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7602 Declare.
7603 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7604 Move from read.c.
7605 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7606 to section.c.
7607
7608 2020-03-26 Tom Tromey <tom@tromey.com>
7609
7610 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7611
7612 2020-03-26 Tom Tromey <tom@tromey.com>
7613
7614 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7615 "builder".
7616 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7617 parameter.
7618 (dwarf_decode_macros): Update.
7619
7620 2020-03-26 Tom Tromey <tom@tromey.com>
7621
7622 * dwarf2/read.c (read_attribute_value): Update.
7623 (read_indirect_string_from_dwz): Move to dwz.c; change into
7624 method.
7625 (dwarf_decode_macro_bytes): Update.
7626 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7627 * dwarf2/dwz.c: New file.
7628 * Makefile.in (COMMON_SFILES): Add dwz.c.
7629
7630 2020-03-26 Tom Tromey <tom@tromey.com>
7631
7632 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7633 * dwarf2/read.c: Add include.
7634 * dwarf2/index-write.c: Add include.
7635 * dwarf2/index-cache.c: Add include.
7636 * dwarf2/dwz.h: New file.
7637
7638 2020-03-25 Tom Tromey <tom@tromey.com>
7639
7640 * compile/compile-object-load.c (get_out_value_type): Mention
7641 correct symbol name in error message.
7642
7643 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7644
7645 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7646
7647 2020-03-25 Tom de Vries <tdevries@suse.de>
7648
7649 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7650 * symmisc.c (dump_symtab_1): Print user and includes fields.
7651 (maintenance_info_symtabs): Same.
7652
7653 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 PR gdb/25534
7656 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7657 (riscv_regcache_cooked_write): New function.
7658 (riscv_push_dummy_call): Use new function.
7659 (riscv_return_value): Likewise.
7660
7661 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7662
7663 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7664 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7665 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7666 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7667 * infrun.c (follow_fork): Likewise.
7668 (follow_fork_inferior): Likewise.
7669 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7670 * linux-nat.h (class linux_nat_target): Likewise.
7671 * remote.c (class remote_target) <follow_fork>: Likewise.
7672 (remote_target::follow_fork): Likewise.
7673 * target-delegates.c: Re-generate.
7674 * target.c (default_follow_fork): Likewise.
7675 (target_follow_fork): Likewise.
7676 * target.h (struct target_ops) <follow_fork>: Likewise.
7677 (target_follow_fork): Likewise.
7678
7679 2020-03-24 Tom de Vries <tdevries@suse.de>
7680
7681 * psymtab.c (maintenance_info_psymtabs): Print user field.
7682
7683 2020-03-20 Tom Tromey <tromey@adacore.com>
7684
7685 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7686 const.
7687 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7688 const.
7689
7690 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * ptrace.m4: Don't check for ptrace declaration.
7693 * config.in: Re-generate.
7694 * configure: Re-generate.
7695 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7696 not defined.
7697
7698 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7699
7700 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7701 `PTRACE_TYPE_RET'.
7702 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7703 * sparc-nat.c (gdb_ptrace): Likewise.
7704 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7705
7706 2020-03-20 Tom Tromey <tromey@adacore.com>
7707
7708 * c-exp.y (lex_one_token): Fix assert.
7709
7710 2020-03-20 Tom Tromey <tromey@adacore.com>
7711
7712 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7713 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7714 strncpy call.
7715
7716 2020-03-20 Tom Tromey <tromey@adacore.com>
7717
7718 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7719
7720 2020-03-20 Tom Tromey <tromey@adacore.com>
7721
7722 * ada-valprint.c (print_variant_part): Remove parameters; switch
7723 to value-based API.
7724 (print_field_values): Likewise.
7725 (ada_val_print_struct_union): Likewise.
7726 (ada_value_print_1): Update.
7727
7728 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7729
7730 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7731 nbsd_nat_target instead of inf_ptrace_target.
7732 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7733 nbsd_nat_target.
7734
7735 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7736
7737 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7738 it to the ptrace call.
7739 * (store_registers): Likewise.
7740
7741 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7742
7743 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7744 it to the ptrace call.
7745 * (store_registers): Likewise.
7746
7747 2020-03-19 Luis Machado <luis.machado@linaro.org>
7748
7749 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7750 valid, fetch vg value from ptrace.
7751
7752 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7753 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7754 * inf-ptrace.c: Likewise.
7755 * (gdb_ptrace): Add.
7756 * (inf_ptrace_target::resume): Update.
7757 * (inf_ptrace_target::xfer_partial): Likewise.
7758 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7759 * (inf_ptrace_peek_poke): Update.
7760
7761 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7762
7763 * x86-bsd-nat.c (gdb_ptrace): New.
7764 * (x86bsd_dr_set): Add new argument `ptid'.
7765 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7766 x86bsd_dr_set_addr): Update.
7767
7768 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * remote.c (remote_target::process_stop_reply): Handle events for
7771 all threads differently.
7772
7773 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * completer.c (completion_tracker::remove_completion): Define new
7776 function.
7777 * completer.h (completion_tracker::remove_completion): Declare new
7778 function.
7779 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7780 when adding a C++ function symbol.
7781
7782 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * completer.c (completion_tracker::completion_hash_entry): Define
7785 new class.
7786 (advance_to_filename_complete_word_point): Call
7787 recompute_lowest_common_denominator.
7788 (completion_tracker::completion_tracker): Call discard_completions
7789 to setup the hash table.
7790 (completion_tracker::discard_completions): Allow for being called
7791 from the constructor, pass new equal function, and element deleter
7792 when constructing the hash table. Initialise new class member
7793 variables.
7794 (completion_tracker::maybe_add_completion): Remove use of
7795 m_entries_vec, and store more information into m_entries_hash.
7796 (completion_tracker::recompute_lcd_visitor): New function, most
7797 content taken from...
7798 (completion_tracker::recompute_lowest_common_denominator):
7799 ...here, this now just visits each item in the hash calling the
7800 above visitor.
7801 (completion_tracker::build_completion_result): Remove use of
7802 m_entries_vec, call recompute_lowest_common_denominator.
7803 * completer.h (completion_tracker::have_completions): Remove use
7804 of m_entries_vec.
7805 (completion_tracker::completion_hash_entry): Declare new class.
7806 (completion_tracker::recompute_lowest_common_denominator): Change
7807 function signature.
7808 (completion_tracker::recompute_lcd_visitor): Declare new function.
7809 (completion_tracker::m_entries_vec): Delete.
7810 (completion_tracker::m_entries_hash): Initialize to NULL.
7811 (completion_tracker::m_lowest_common_denominator_valid): New
7812 member variable.
7813 (completion_tracker::m_lowest_common_denominator_max_length): New
7814 member variable.
7815
7816 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7817
7818 * regformats/regdef.h: Put reg in gdb namespace.
7819
7820 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7821
7822 * i386-bsd-nat.c (gdb_ptrace): New.
7823 * (i386bsd_fetch_inferior_registers,
7824 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7825 * (i386bsd_fetch_inferior_registers,
7826 i386bsd_store_inferior_registers) Use gdb_ptrace.
7827
7828 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7829
7830 * amd64-bsd-nat.c (gdb_ptrace): New.
7831 * (amd64bsd_fetch_inferior_registers,
7832 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7833 * (amd64bsd_fetch_inferior_registers,
7834 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7835
7836 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7837
7838 * user-regs.c (user_reg::read): Rename to...
7839 (user_reg::xread): ...this.
7840 * (append_user_reg): Rename argument `read' to `xread'.
7841 * (user_reg_add_builtin): Likewise.
7842 * (user_reg_add): Likewise.
7843 * (value_of_user_reg): Likewise.
7844
7845 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7846
7847 * sparc-nat.c (gdb_ptrace): New.
7848 * sparc-nat.c (sparc_fetch_inferior_registers)
7849 (sparc_store_inferior_registers) Remove obsolete comment.
7850 * sparc-nat.c (sparc_fetch_inferior_registers)
7851 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7852 * sparc-nat.c (sparc_fetch_inferior_registers)
7853 (sparc_store_inferior_registers) Use gdb_ptrace.
7854
7855 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7856
7857 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7858 it to the ptrace call.
7859 * sh-nbsd-nat.c (store_registers): Likewise.
7860
7861 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7862
7863 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7864 nbsd_nat_target instead of inf_ptrace_target.
7865 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7866 nbsd_nat_target.
7867
7868 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7869
7870 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7871
7872 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7873
7874 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7875 <sys/sysctl.h>.
7876 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7877
7878 2020-03-17 Tom de Vries <tdevries@suse.de>
7879
7880 PR gdb/23710
7881 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7882 fields.
7883 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7884 fields.
7885 (process_imported_unit_die): Skip import of c++ CUs.
7886
7887 2020-03-16 Tom Tromey <tom@tromey.com>
7888
7889 * p-valprint.c (pascal_object_print_value): Initialize
7890 base_value.
7891
7892 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7893 Shahab Vahedi <shahab@synopsys.com>
7894
7895 * Makefile.in: Add arch/arc.o
7896 * configure.tgt: Likewise.
7897 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7898 (_initialize_arc_tdep): Don't initialize old target descriptions.
7899 (arc_read_description): New function to cache target descriptions.
7900 * arc-tdep.h (arc_read_description): Add proto type.
7901 * arch/arc.c: New file.
7902 * arch/arc.h: Likewise.
7903 * features/Makefile: Replace old target descriptions with new.
7904 * features/arc-arcompact.c: Remove.
7905 * features/arc-arcompact.xml: Likewise.
7906 * features/arc-v2.c: Likewise
7907 * features/arc-v2.xml: Likewise
7908 * features/arc/aux-arcompact.xml: New file.
7909 * features/arc/aux-v2.xml: Likewise.
7910 * features/arc/core-arcompact.xml: Likewise.
7911 * features/arc/core-v2.xml: Likewise.
7912 * features/arc/aux-arcompact.c: Generate.
7913 * features/arc/aux-v2.c: Likewise.
7914 * features/arc/core-arcompact.c: Likewise.
7915 * features/arc/core-v2.c: Likewise.
7916 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7917
7918 2020-03-16 Tom Tromey <tromey@adacore.com>
7919
7920 PR gdb/25663:
7921 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7922 putting value into bcache.
7923
7924 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7925
7926 PR gdb/21500
7927 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7928 to...
7929 (amd64_windows_init_abi_common): ... this. Don't set size of
7930 long type.
7931 (amd64_windows_init_abi): New function.
7932 (amd64_cygwin_init_abi): New function.
7933 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7934 the Cygwin OS ABI.
7935 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7936 comment.
7937
7938 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7941 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7942 (pe_import_directory_entry): New struct type.
7943 (is_linked_with_cygwin_dll): New function.
7944 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7945 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7946 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7947
7948 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7949
7950 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7951 i386_cygwin_core_osabi_sniffer.
7952
7953 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * i386-cygwin-tdep.c: Rename to...
7956 * i386-windows-tdep.c: ... this.
7957 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7958 i386-windows-tdep.c.
7959 * configure.tgt: Likewise.
7960
7961 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7964 * osabi.c (gdb_osabi_names): Add "Windows".
7965 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7966 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7967 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7968 i386_cygwin_osabi_sniffer.
7969 (_initialize_i386_cygwin_tdep): Register OS ABI
7970 GDB_OSABI_WINDOWS for i386.
7971 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7972 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7973 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7974 for x86-64.
7975 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7976 when the target matches '*-*-mingw*'.
7977
7978 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * defs.h (enum gdb_osabi): Move to...
7981 * osabi.h (enum gdb_osabi): ... here.
7982 * gdbarch.sh: Include osabi.h in gdbarch.h.
7983 * gdbarch.h: Re-generate.
7984
7985 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7986
7987 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7988 function.
7989 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7990
7991 2020-03-14 Tom Tromey <tom@tromey.com>
7992
7993 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7994 for C++.
7995 (c_type_print_modifier): Likewise. Add "language" parameter.
7996 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7997 (c_type_print_base_1): Update.
7998 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7999 constants.
8000 * type-stack.c (type_stack::insert): Handle tp_atomic and
8001 tp_restrict.
8002 (type_stack::follow_type_instance_flags): Likewise.
8003 (type_stack::follow_types): Likewise. Merge type-following code.
8004 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8005 (space_identifier, cv_with_space_id)
8006 (const_or_volatile_or_space_identifier_noopt)
8007 (const_or_volatile_or_space_identifier): Remove.
8008 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8009 rules.
8010 (ptr_operator, typebase): Update.
8011 (enum token_flag) <FLAG_C>: New constant.
8012 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8013 "_Atomic".
8014 (lex_one_token): Handle FLAG_C.
8015
8016 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8017
8018 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8019 it to the ptrace call.
8020 * m68k-bsd-nat.c (store_registers): Likewise.
8021
8022 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8023
8024 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8025 gdb_byte *.
8026 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8027 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8028 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8029
8030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8031
8032 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8033 nbsd_nat_target instead of inf_ptrace_target.
8034 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8035 nbsd_nat_target.
8036
8037 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8038
8039 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8040 register_t.
8041
8042 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8043
8044 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8045 it to the ptrace call.
8046 * alpha-bsd-nat.c (store_registers): Likewise.
8047
8048 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8049
8050 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8051 includes.
8052 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8053 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8054 fill_fpregset): Likewise.
8055
8056 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8057
8058 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8059 nbsd_nat_target instead of inf_ptrace_target.
8060 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8061 nbsd_nat_target.
8062
8063 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8064
8065 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8066 register_t.
8067
8068 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8069
8070 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8071 it to the ptrace call.
8072 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8073 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8074 * arm-nbsd-nat.c (store_register): Likewise.
8075 * arm-nbsd-nat.c (store_regs): Likewise.
8076 * arm-nbsd-nat.c (store_fp_register): Likewise.
8077 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8078
8079 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8080
8081 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8082 nbsd_nat_target instead of inf_ptrace_target.
8083 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8084 nbsd_nat_target.
8085
8086 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8087
8088 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8089 it to the ptrace call.
8090 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8091
8092 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8093
8094 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8095 it to the ptrace call.
8096 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8097
8098 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8099
8100 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8101 gdb_byte *.
8102 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8103
8104 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8105
8106 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8107 instead of inf_ptrace_target.
8108 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8109 nbsd_nat_target.
8110
8111 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8112
8113 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8114 register_t.
8115
8116 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8117
8118 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8119 register_t.
8120
8121 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8122
8123 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8124 register_t.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * value.h (val_print): Don't declare.
8129 * valprint.h (val_print_array_elements)
8130 (val_print_scalar_formatted, generic_val_print): Don't declare.
8131 * valprint.c (generic_val_print_array): Take a struct value.
8132 (generic_val_print_ptr, generic_val_print_memberptr)
8133 (generic_val_print_bool, generic_val_print_int)
8134 (generic_val_print_char, generic_val_print_complex)
8135 (generic_val_print): Remove.
8136 (generic_value_print): Update.
8137 (do_val_print): Remove unused parameters. Don't call
8138 la_val_print.
8139 (val_print): Remove.
8140 (common_val_print): Update. Don't call value_check_printable.
8141 (val_print_scalar_formatted, val_print_array_elements): Remove.
8142 * rust-lang.c (rust_val_print): Remove.
8143 (rust_language_defn): Update.
8144 * p-valprint.c (pascal_val_print): Remove.
8145 (pascal_value_print_inner): Update.
8146 (pascal_object_print_val_fields, pascal_object_print_val):
8147 Remove.
8148 (pascal_object_print_static_field): Update.
8149 * p-lang.h (pascal_val_print): Don't declare.
8150 * p-lang.c (pascal_language_defn): Update.
8151 * opencl-lang.c (opencl_language_defn): Update.
8152 * objc-lang.c (objc_language_defn): Update.
8153 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8154 * m2-lang.h (m2_val_print): Don't declare.
8155 * m2-lang.c (m2_language_defn): Update.
8156 * language.h (struct language_defn) <la_val_print>: Remove.
8157 * language.c (unk_lang_value_print_inner): Rename. Change
8158 argument types.
8159 (unknown_language_defn, auto_language_defn): Update.
8160 * go-valprint.c (go_val_print): Remove.
8161 * go-lang.h (go_val_print): Don't declare.
8162 * go-lang.c (go_language_defn): Update.
8163 * f-valprint.c (f_val_print): Remove.
8164 * f-lang.h (f_value_print): Don't declare.
8165 * f-lang.c (f_language_defn): Update.
8166 * d-valprint.c (d_val_print): Remove.
8167 * d-lang.h (d_value_print): Don't declare.
8168 * d-lang.c (d_language_defn): Update.
8169 * cp-valprint.c (cp_print_value_fields)
8170 (cp_print_value_fields_rtti, cp_print_value): Remove.
8171 (cp_print_static_field): Update.
8172 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8173 (c_val_print_struct, c_val_print_union, c_val_print_int)
8174 (c_val_print_memberptr, c_val_print): Remove.
8175 * c-lang.h (c_val_print_array, cp_print_value_fields)
8176 (cp_print_value_fields_rtti): Don't declare.
8177 * c-lang.c (c_language_defn, cplus_language_defn)
8178 (asm_language_defn, minimal_language_defn): Update.
8179 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8180 (ada_val_print_enum): Take a struct value.
8181 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8182 (ada_val_print): Remove.
8183 (ada_value_print_1): Update.
8184 (printable_val_type): Remove.
8185 * ada-lang.h (ada_val_print): Don't declare.
8186 * ada-lang.c (ada_language_defn): Update.
8187
8188 2020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * valprint.c (do_val_print): Update.
8191 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8192 a struct value.
8193 (value_to_value_object_no_release): Declare.
8194 * python/py-value.c (value_to_value_object_no_release): New
8195 function.
8196 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8197 struct value.
8198 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8199 function.
8200 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8201 a struct value.
8202 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8203 Declare.
8204 (gdbscm_apply_val_pretty_printer): Take a struct value.
8205 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8206 value.
8207 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8208 value.
8209 * extension-priv.h (struct extension_language_ops)
8210 <apply_val_pretty_printer>: Take a struct value.
8211 * cp-valprint.c (cp_print_value): Create a struct value.
8212 (cp_print_value): Update.
8213
8214 2020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * ada-valprint.c (print_field_values): Call common_val_print.
8217
8218 2020-03-13 Tom Tromey <tom@tromey.com>
8219
8220 * ada-valprint.c (val_print_packed_array_elements): Remove
8221 bitoffset and val parameters. Call common_val_print.
8222 (ada_val_print_string): Remove offset, address, and original_value
8223 parameters.
8224 (ada_val_print_array): Update.
8225 (ada_value_print_array): New function.
8226 (ada_value_print_1): Call it.
8227
8228 2020-03-13 Tom Tromey <tom@tromey.com>
8229
8230 * ada-valprint.c (ada_value_print): Use common_val_print.
8231
8232 2020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8235
8236 2020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * ada-valprint.c (ada_value_print_num): New function.
8239 (ada_value_print_1): Use it.
8240
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * ada-valprint.c (ada_value_print_ptr): New function.
8248 (ada_value_print_1): Use it.
8249
8250 2020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8253 call common_val_print.
8254 (ada_val_print_1): Update.
8255 (ada_value_print_1): New function.
8256 (ada_value_print_inner): Rewrite.
8257
8258 2020-03-13 Tom Tromey <tom@tromey.com>
8259
8260 * cp-valprint.c (cp_print_value_fields): Update.
8261 (cp_print_value): New function.
8262
8263 2020-03-13 Tom Tromey <tom@tromey.com>
8264
8265 * m2-valprint.c (m2_value_print_inner): Use
8266 cp_print_value_fields.
8267 * cp-valprint.c (cp_print_value_fields): New function.
8268 * c-valprint.c (c_value_print_struct): New function.
8269 (c_value_print_inner): Use c_value_print_struct.
8270 * c-lang.h (cp_print_value_fields): Declare.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * c-valprint.c (c_value_print_array): New function.
8275 (c_value_print_inner): Use it.
8276
8277 2020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * c-valprint.c (c_value_print_memberptr): New function.
8280 (c_value_print_inner): Use it.
8281
8282 2020-03-13 Tom Tromey <tom@tromey.com>
8283
8284 * c-valprint.c (c_value_print_int): New function.
8285 (c_value_print_inner): Use it.
8286
8287 2020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * c-valprint.c (c_value_print_ptr): New function.
8290 (c_value_print_inner): Use it.
8291
8292 2020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * c-valprint.c (c_value_print_inner): Rewrite.
8295
8296 2020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * valprint.c (generic_value_print_complex): New function.
8299 (generic_value_print): Use it.
8300
8301 2020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * valprint.c (generic_val_print_float): Don't call
8304 val_print_scalar_formatted.
8305 (generic_val_print, generic_value_print): Update.
8306
8307 2020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * valprint.c (generic_value_print_char): New function
8310 (generic_value_print): Use it.
8311
8312 2020-03-13 Tom Tromey <tom@tromey.com>
8313
8314 * valprint.c (generic_value_print_int): New function.
8315 (generic_value_print): Use it.
8316
8317 2020-03-13 Tom Tromey <tom@tromey.com>
8318
8319 * valprint.c (generic_value_print_bool): New function.
8320 (generic_value_print): Use it.
8321
8322 2020-03-13 Tom Tromey <tom@tromey.com>
8323
8324 * valprint.c (generic_val_print_func): Simplify.
8325 (generic_val_print, generic_value_print): Update.
8326
8327 2020-03-13 Tom Tromey <tom@tromey.com>
8328
8329 * valprint.c (generic_val_print_flags): Remove.
8330 (generic_val_print, generic_value_print): Update.
8331 (val_print_type_code_flags): Add original_value parameter.
8332
8333 2020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * valprint.c (generic_val_print): Update.
8336 (generic_value_print): Update.
8337 * valprint.c (generic_val_print_enum): Don't call
8338 val_print_scalar_formatted.
8339
8340 2020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8343 * valprint.c (generic_value_print_ptr): New function.
8344
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * valprint.c (generic_value_print): Rewrite.
8348
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * p-valprint.c (pascal_object_print_value_fields)
8352 (pascal_object_print_value): New functions.
8353
8354 2020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * p-valprint.c (pascal_value_print_inner): Rewrite.
8357
8358 2020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * f-valprint.c (f_value_print_innner): Rewrite.
8361
8362 2020-03-13 Tom Tromey <tom@tromey.com>
8363
8364 * m2-valprint.c (m2_print_unbounded_array): New overload.
8365 (m2_print_unbounded_array): Update.
8366 (m2_print_array_contents): Take a struct value.
8367 (m2_value_print_inner): Rewrite.
8368
8369 2020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8372 (d_value_print_inner): New function.
8373 * d-lang.h (d_value_print_inner): Declare.
8374 * d-lang.c (d_language_defn): Use d_value_print_inner.
8375
8376 2020-03-13 Tom Tromey <tom@tromey.com>
8377
8378 * go-valprint.c (go_value_print_inner): New function.
8379 * go-lang.h (go_value_print_inner): Declare.
8380 * go-lang.c (go_language_defn): Use go_value_print_inner.
8381
8382 2020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8385 API.
8386 (rust_val_print): Rewrite.
8387 (rust_value_print_inner): New function, from rust_val_print.
8388 (rust_language_defn): Use rust_value_print_inner.
8389
8390 2020-03-13 Tom Tromey <tom@tromey.com>
8391
8392 * ada-valprint.c (ada_value_print_inner): New function.
8393 * ada-lang.h (ada_value_print_inner): Declare.
8394 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8395
8396 2020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * f-valprint.c (f_value_print_innner): New function.
8399 * f-lang.h (f_value_print_innner): Declare.
8400 * f-lang.c (f_language_defn): Use f_value_print_innner.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * p-valprint.c (pascal_value_print_inner): New function.
8405 * p-lang.h (pascal_value_print_inner): Declare.
8406 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8407
8408 2020-03-13 Tom Tromey <tom@tromey.com>
8409
8410 * m2-valprint.c (m2_value_print_inner): New function.
8411 * m2-lang.h (m2_value_print_inner): Declare.
8412 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8413
8414 2020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8417 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8418 * c-valprint.c (c_value_print_inner): New function.
8419 * c-lang.h (c_value_print_inner): Declare.
8420 * c-lang.c (c_language_defn, cplus_language_defn)
8421 (asm_language_defn, minimal_language_defn): Use
8422 c_value_print_inner.
8423
8424 2020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * p-valprint.c (pascal_object_print_value_fields): Now static.
8427 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8428
8429 2020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * c-valprint.c (c_val_print_array): Simplify.
8432
8433 2020-03-13 Tom Tromey <tom@tromey.com>
8434
8435 * valprint.c (value_print_array_elements): New function.
8436 * valprint.h (value_print_array_elements): Declare.
8437
8438 2020-03-13 Tom Tromey <tom@tromey.com>
8439
8440 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8441 * mips-tdep.c (mips_print_register): Use
8442 value_print_scalar_formatted.
8443
8444 2020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * valprint.h (value_print_scalar_formatted): Declare.
8447 * valprint.c (value_print_scalar_formatted): New function.
8448
8449 2020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * valprint.h (generic_value_print): Declare.
8452 * valprint.c (generic_value_print): New function.
8453
8454 2020-03-13 Tom Tromey <tom@tromey.com>
8455
8456 * valprint.c (do_val_print): Call la_value_print_inner, if
8457 available.
8458 * rust-lang.c (rust_language_defn): Update.
8459 * p-lang.c (pascal_language_defn): Update.
8460 * opencl-lang.c (opencl_language_defn): Update.
8461 * objc-lang.c (objc_language_defn): Update.
8462 * m2-lang.c (m2_language_defn): Update.
8463 * language.h (struct language_defn) <la_value_print_inner>: New
8464 member.
8465 * language.c (unknown_language_defn, auto_language_defn): Update.
8466 * go-lang.c (go_language_defn): Update.
8467 * f-lang.c (f_language_defn): Update.
8468 * d-lang.c (d_language_defn): Update.
8469 * c-lang.c (c_language_defn, cplus_language_defn)
8470 (asm_language_defn, minimal_language_defn): Update.
8471 * ada-lang.c (ada_language_defn): Update.
8472
8473 2020-03-13 Tom Tromey <tom@tromey.com>
8474
8475 * c-valprint.c (c_value_print): Use common_val_print.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8480
8481 2020-03-13 Tom Tromey <tom@tromey.com>
8482
8483 * f-valprint.c (f77_print_array_1, f_val_print): Use
8484 common_val_print.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * riscv-tdep.c (riscv_print_one_register_info): Use
8489 common_val_print.
8490
8491 2020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * mi/mi-main.c (output_register): Use common_val_print.
8494
8495 2020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * infcmd.c (default_print_one_register_info): Use
8498 common_val_print.
8499
8500 2020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * valprint.h (common_val_print_checked): Declare.
8503 * valprint.c (common_val_print_checked): New function.
8504 * stack.c (print_frame_arg): Use common_val_print_checked.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * valprint.c (do_val_print): New function, from val_print.
8509 (val_print): Use do_val_print.
8510 (common_val_print): Use do_val_print.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * valprint.c (value_print): Use scoped_value_mark.
8515
8516 2020-03-13 Tom de Vries <tdevries@suse.de>
8517
8518 PR symtab/25646
8519 * psymtab.c (partial_symtab::partial_symtab): Don't set
8520 globals_offset and statics_offset. Push element onto
8521 current_global_psymbols and current_static_psymbols stacks.
8522 (concat): New function.
8523 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8524 element from current_global_psymbols and current_static_psymbols
8525 stacks. Concat popped elements to global_psymbols and
8526 static_symbols.
8527 (add_psymbol_to_list): Use current_global_psymbols and
8528 current_static_psymbols stacks.
8529 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8530 current_static_psymbols fields.
8531
8532 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8533
8534 * corelow.c (sniff_core_bfd): Remove.
8535 (class core_target) <m_core_vec>: Remove.
8536 (core_target::core_target): Update.
8537 (core_file_fns): Remove.
8538 (deprecated_add_core_fns): Remove.
8539 (default_core_sniffer): Remove.
8540 (sniff_core_bfd): Remove.
8541 (default_check_format): Remove.
8542 (gdb_check_format): Remove.
8543 (core_target_open): Update.
8544 (core_target::get_core_register_section): Update.
8545 (get_core_registers_cb): Update.
8546 (core_target::fetch_registers): Update.
8547 * gdbcore.h (struct core_fns): Remove.
8548 (deprecated_add_core_fns): Remove.
8549 (default_core_sniffer): Remove.
8550 (default_check_format): Remove.
8551
8552 2020-03-12 Tom Tromey <tom@tromey.com>
8553
8554 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8555 CORE_ADDR.
8556 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8557
8558 2020-03-12 Tom Tromey <tom@tromey.com>
8559
8560 * remote.c (remote_target::download_tracepoint)
8561 (remote_target::enable_tracepoint)
8562 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8563 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8564 sprintf_vma.
8565
8566 2020-03-12 Tom Tromey <tom@tromey.com>
8567
8568 * symfile-mem.c: Update CORE_ADDR size assert.
8569
8570 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * selftest.m4: Move to gdbsupport/.
8573 * acinclude.m4: Update path to selftest.m4.
8574
8575 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8578 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8579 gdbarch-selfselftests.c and selftest-arch.c.
8580 (SUBDIR_UNITTESTS_OBS): Rename to...
8581 (SELFTESTS_OBS): ... this.
8582 (COMMON_SFILES): Remove disasm-selftests.c and
8583 gdbarch-selftests.c.
8584 * configure.ac: Don't add selftest-arch.{c,o} to
8585 CONFIG_{SRCS,OBS}.
8586 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8587 preprocessor conditions.
8588
8589 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * configure.ac: Don't source bfd/development.sh.
8592 * selftest.m4: Modify comment.
8593 * configure: Re-generate.
8594
8595 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8598 not "true" or "false".
8599 * configure: Re-generate.
8600
8601 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8602
8603 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8604 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8605 renamed to arm_nbsd_supply_gregset.
8606 (fetch_register): Update to call arm_nbsd_supply_gregset.
8607 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8608 (arm_netbsd_nat_target::fetch_registers): Update.
8609 (fetch_elfcore_registers): Removed.
8610 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8611 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8612 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8613 not require NetBSD system headers.
8614 (arm_nbsd_regset): New struct.
8615 (arm_nbsd_iterate_over_regset_sections): New function.
8616 (arm_netbsd_init_abi_common): Updated to call
8617 set_gdbarch_iterate_over_regset_sections.
8618 * arm-nbsd-tdep.h: New file.
8619
8620 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8621
8622 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8623 recursion.
8624
8625 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8626
8627 * configure: Re-generate.
8628
8629 2020-03-11 Tom Tromey <tromey@adacore.com>
8630
8631 * ada-typeprint.c (print_choices): Fix comment.
8632
8633 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8636 previous item in the list, when the list has no items.
8637
8638 2020-03-11 Tom de Vries <tdevries@suse.de>
8639
8640 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8641 PROP_LOCLIST handling code.
8642
8643 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * buildsym-legacy.c (record_line): Pass extra parameter to
8646 record_line.
8647 * buildsym.c (buildsym_compunit::record_line): Take an extra
8648 parameter, reduce duplication in the line table, and record the
8649 is_stmt flag in the line table.
8650 * buildsym.h (buildsym_compunit::record_line): Add extra
8651 parameter.
8652 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8653 non-statement lines.
8654 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8655 this to the symtab builder.
8656 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8657 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8658 through to dwarf_record_line_1.
8659 * infrun.c (process_event_stop_test): When stepping, don't stop at
8660 a non-statement instruction, and only refresh the step info when
8661 we land in the middle of a line's range. Also add an extra
8662 comment.
8663 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8664 field.
8665 * record-btrace.c (btrace_find_line_range): Only record lines
8666 marked as is-statement.
8667 * stack.c (frame_show_address): Show the frame address if we are
8668 in a non-statement sal.
8669 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8670 (maintenance_print_one_line_table): Print a header for the is_stmt
8671 column, and include is_stmt information in the output.
8672 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8673 preference to non-statements.
8674 (find_pcs_for_symtab_line): Prefer is-statement entries.
8675 (find_line_common): Likewise.
8676 * symtab.h (struct linetable_entry): Add is_stmt field.
8677 (struct symtab_and_line): Likewise.
8678 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8679 arranging the line table.
8680
8681 2020-03-07 Tom de Vries <tdevries@suse.de>
8682
8683 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8684 DIE.
8685
8686 2020-03-07 Tom Tromey <tom@tromey.com>
8687
8688 * valops.c (value_literal_complex): Remove obsolete comment.
8689 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8690 comment.
8691
8692 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * infrun.h: Forward-declare thread_info.
8695 (set_step_info): Add thread_info parameter, add doc.
8696 * infrun.c (set_step_info): Add thread_info parameter, move doc
8697 to header.
8698 * infrun.c (process_event_stop_test): Pass thread to
8699 set_step_info call.
8700 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8701 set_step_info.
8702 (prepare_one_step): Add thread_info parameter, pass it to
8703 set_step_frame and prepare_one_step (recursive) call.
8704 (step_1): Pass thread to prepare_one_step call.
8705 (step_command_fsm::should_stop): Pass thread to
8706 prepare_one_step.
8707 (until_next_fsm): Pass thread to set_step_frame call.
8708 (finish_command): Pass thread to set_step_info call.
8709
8710 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8711
8712 * windows-tdep.c (windows_solib_create_inferior_hook):
8713 Check if inferior is running.
8714
8715 2020-03-06 Tom de Vries <tdevries@suse.de>
8716
8717 * NEWS: Fix "the the".
8718 * ctfread.c: Same.
8719
8720 2020-03-06 Tom de Vries <tdevries@suse.de>
8721
8722 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8723
8724 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * .dir-locals.el: Add a comment referencing the other copies of
8727 this file.
8728
8729 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8730
8731 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8732 psargs.
8733
8734 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8735
8736 * .gitattributes: New file.
8737
8738 2020-03-04 Tom Tromey <tom@tromey.com>
8739
8740 * symmisc.c (print_symbol_bcache_statistics)
8741 (print_objfile_statistics): Update.
8742 * symfile.c (allocate_symtab): Use intern.
8743 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8744 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8745 macro_cache>: Remove.
8746 <string_cache>: New member.
8747 (struct objfile) <intern>: New methods.
8748 * elfread.c (elf_symtab_read): Use intern.
8749 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8750 (dwarf2_compute_name, dwarf2_physname)
8751 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8752 names.
8753 (guess_partial_die_structure_name): Update.
8754 (partial_die_info::fixup): Intern name.
8755 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8756 name.
8757 (dwarf2_name): Intern name. Update.
8758 * buildsym.c (buildsym_compunit::get_macro_table): Use
8759 string_cache.
8760
8761 2020-03-04 Tom Tromey <tom@tromey.com>
8762
8763 * jit.c (bfd_open_from_target_memory): Make "target" const.
8764 * corefile.c (gnutarget): Now const.
8765 * gdbcore.h (gnutarget): Now const.
8766
8767 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8768
8769 * NEWS: Mention support for WOW64 processes.
8770 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8771 (amd64_windows_segment_register_p): Remove static.
8772 (_initialize_amd64_windows_nat): Update.
8773 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8774 * i386-windows-nat.c (context_offset): Update.
8775 (i386_mappings): Rename and remove static.
8776 (i386_windows_segment_register_p): Remove static.
8777 (_initialize_i386_windows_nat): Update.
8778 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8779 (STATUS_WX86_SINGLE_STEP): New macro.
8780 (EnumProcessModulesEx): New macro.
8781 (Wow64SuspendThread): New macro.
8782 (Wow64GetThreadContext): New macro.
8783 (Wow64SetThreadContext): New macro.
8784 (Wow64GetThreadSelectorEntry): New macro.
8785 (windows_set_context_register_offsets): Add static.
8786 (windows_set_segment_register_p): Likewise.
8787 (windows_add_thread): Adapt for WOW64 processes.
8788 (windows_fetch_one_register): Likewise.
8789 (windows_nat_target::fetch_registers): Likewise.
8790 (windows_store_one_register): Likewise.
8791 (display_selector): Likewise.
8792 (display_selectors): Likewise.
8793 (handle_exception): Likewise.
8794 (windows_continue): Likewise.
8795 (windows_nat_target::resume): Likewise.
8796 (windows_add_all_dlls): Likewise.
8797 (do_initial_windows_stuff): Likewise.
8798 (windows_nat_target::attach): Likewise.
8799 (windows_get_exec_module_filename): Likewise.
8800 (windows_nat_target::create_inferior): Likewise.
8801 (windows_xfer_siginfo): Likewise.
8802 (_initialize_loadable): Initialize Wow64SuspendThread,
8803 Wow64GetThreadContext, Wow64SetThreadContext,
8804 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8805 * windows-nat.h (windows_set_context_register_offsets):
8806 Remove declaration.
8807 (windows_set_segment_register_p): Likewise.
8808 (i386_windows_segment_register_p): Add declaration.
8809 (amd64_windows_segment_register_p): Likewise.
8810
8811 2020-03-04 Luis Machado <luis.machado@linaro.org>
8812
8813 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8814 in "info registers" for AArch64/ARM.
8815
8816 The change caused "info registers" to not print GPR's.
8817
8818 gdb/ChangeLog:
8819
8820 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8821
8822 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8823 when reg->group is empty and reggroup is not.
8824
8825 2020-03-03 Tom Tromey <tromey@adacore.com>
8826
8827 * dwarf2/frame.c (struct dwarf2_frame_cache)
8828 <checked_tailcall_bottom, entry_cfa_sp_offset,
8829 entry_cfa_sp_offset_p>: Remove members.
8830 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8831 (dwarf2_frame_prev_register): Don't call
8832 dwarf2_tailcall_sniffer_first.
8833 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8834 * frame-unwind.c (add_unwinder): New fuction.
8835 (frame_unwind_init): Use it. Add tailcall unwinder.
8836
8837 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8838 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8839
8840 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8841 value should be printed as true.
8842
8843 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8844
8845 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8846 (windows_init_abi): Set and use windows_so_ops.
8847
8848 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8849
8850 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8851 when verifying if dealing with a convenience variable.
8852
8853 2020-03-03 Luis Machado <luis.machado@linaro.org>
8854
8855 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8856
8857 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8858
8859 * infrun.c (gdbarch_supports_displaced_stepping): New.
8860 (use_displaced_stepping): Break up conditions in smaller pieces.
8861 Use gdbarch_supports_displaced_stepping.
8862 (displaced_step_prepare_throw): Use
8863 gdbarch_supports_displaced_stepping.
8864
8865 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * NEWS: Mention new behaviour of the history filename.
8868 * top.c (write_history_p): Add comment.
8869 (show_write_history_p): Add header comment, give a different
8870 message when history writing is on, but the history filename is
8871 empty.
8872 (history_filename): Add comment.
8873 (history_filename_empty): New function.
8874 (show_history_filename): Add header comment, give a different
8875 message when the filename is empty.
8876 (init_history): Compare history_filename against nullptr, and only
8877 read history if the filename is not empty.
8878 (set_history_filename): Add header comment, and only make
8879 non-empty filenames absolute.
8880 (init_main): Make the filename argument to 'set history filename'
8881 optional.
8882
8883 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8884
8885 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8886 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8887 (fetch_fp_register): Update.
8888 (fetch_fp_regs): Update.
8889 (store_fp_register): Update.
8890 (store_fp_regs): Update.
8891 (arm_netbsd_nat_target::read_description): New function.
8892 (fetch_elfcore_registers): Update.
8893
8894 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8895
8896 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8897 general_thread if the stop reply is missing a thread-id.
8898 (remote_target::process_stop_reply): Use the first non-exited
8899 thread if the target didn't pass a thread-id.
8900 * infrun.c (do_target_wait): Move call to
8901 switch_to_inferior_no_thread to ....
8902 (do_target_wait_1): ... here.
8903
8904 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8905
8906 * debuginfod-support.c: Include defs.h first.
8907
8908 2020-02-28 Tom de Vries <tdevries@suse.de>
8909
8910 * symfile.c (set_initial_language): Use default language for lookup.
8911
8912 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8913
8914 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8915 reader variable, pass `this` to read_cutu_die_from_dwo.
8916
8917 2020-02-27 Aaron Merey <amerey@redhat.com>
8918
8919 * source.c (open_source_file): Check for nullptr when computing
8920 srcpath.
8921
8922 2020-02-27 Tom Tromey <tromey@adacore.com>
8923
8924 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8925 member.
8926 (dwarf2_add_field): Don't update nfields.
8927 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8928
8929 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8930
8931 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8932 abs.
8933
8934 2020-02-26 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8937 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8938 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8939 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8940 per_cu_data.
8941
8942 2020-02-26 Tom Tromey <tom@tromey.com>
8943
8944 * dwarf2/index-write.c (psym_index_map): Change type.
8945 (add_address_entry_worker, write_one_signatured_type)
8946 (recursively_count_psymbols, recursively_write_psymbols)
8947 (class debug_names, psyms_seen_size, write_gdbindex)
8948 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8949
8950 2020-02-26 Aaron Merey <amerey@redhat.com>
8951
8952 * Makefile.in: Handle optional debuginfod support.
8953 * NEWS: Update.
8954 * README: Add --with-debuginfod summary.
8955 * config.in: Regenerate.
8956 * configure: Regenerate.
8957 * configure.ac: Handle optional debuginfod support.
8958 * debuginfod-support.c: debuginfod helper functions.
8959 * debuginfod-support.h: Ditto.
8960 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8961 summary.
8962 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8963 when a dwz file cannot be found.
8964 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8965 debuginfo file cannot be found.
8966 * source.c (open_source_file): Query debuginfod servers when a
8967 source file cannot be found.
8968 * top.c (print_gdb_configuration): Include
8969 --{with,without}-debuginfod in the output.
8970
8971 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8972
8973 * thread.c (thr_try_catch_cmd): Print thread name.
8974
8975 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8976
8977 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8978 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8979 dwarf2_fetch_die_type_sect_off): Move to...
8980 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8981 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8982 dwarf2_fetch_die_type_sect_off): ... here.
8983 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8984 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8985 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8986
8987 2020-02-26 Tom de Vries <tdevries@suse.de>
8988
8989 PR gdb/25603
8990 * symfile.c (set_initial_language): Exit-early if
8991 language_mode == language_mode_manual.
8992
8993 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8994
8995 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8996 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8997 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8998
8999 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 * gdbtypes.c (create_array_type_with_stride): Handle negative
9002 array strides.
9003 * valarith.c (value_subscripted_rvalue): Likewise.
9004
9005 2020-02-25 Luis Machado <luis.machado@linaro.org>
9006
9007 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9008
9009 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * loc.h (dwarf2_get_die_type): Move to...
9012 * read.h (dwarf2_get_die_type): ... here.
9013 * read.c (dwarf2_get_die_type): Move doc to header.
9014
9015 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9016
9017 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9018 'gnulib/Makefile.in' to the list.
9019
9020 2020-02-24 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9023 Remove.
9024 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9025 XOBNEWVEC.
9026
9027 2020-02-24 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9030 New method.
9031 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9032 (dw2_do_instantiate_symtab, dw2_get_file_names)
9033 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9034
9035 2020-02-24 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9038 make_scoped_restore.
9039 (dwarf2_psymtab::read_symtab): Don't clear
9040 reading_partial_symbols.
9041
9042 2020-02-24 Tom de Vries <tdevries@suse.de>
9043
9044 PR gdb/25592
9045 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9046
9047 2020-02-24 Tom de Vries <tdevries@suse.de>
9048
9049 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9050 commands layout next/prev/regs.
9051
9052 2020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9055 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9056
9057 2020-02-22 Tom Tromey <tom@tromey.com>
9058
9059 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9060
9061 2020-02-22 Tom Tromey <tom@tromey.com>
9062
9063 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9064 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9065 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9066 * tui/tui.c (_initialize_tui): Add usage text.
9067
9068 2020-02-22 Tom Tromey <tom@tromey.com>
9069
9070 * tui/tui-win.c (tui_set_focus_command)
9071 (tui_set_win_height_command): Use error_no_arg.
9072 (_initialize_tui_win): Update help text.
9073 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9074
9075 2020-02-22 Tom Tromey <tom@tromey.com>
9076
9077 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9078 * tui/tui-disasm.h (struct tui_disasm_window)
9079 <display_start_addr>: Declare.
9080 * tui/tui-source.h (struct tui_source_window)
9081 <display_start_addr>: Declare.
9082 * tui/tui-winsource.h (struct tui_source_window_base)
9083 <show_source_line, display_start_addr>: New methods.
9084 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9085 Rename and move to protected section.
9086 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9087 (tui_source_window_base::do_erase_source_content): Update.
9088 (tui_source_window_base::show_source_line): Now a method.
9089 (tui_source_window_base::show_source_content)
9090 (tui_source_window_base::tui_source_window_base)
9091 (tui_source_window_base::rerender)
9092 (tui_source_window_base::refill)
9093 (tui_source_window_base::do_scroll_horizontal)
9094 (tui_source_window_base::set_is_exec_point_at)
9095 (tui_source_window_base::update_breakpoint_info)
9096 (tui_source_window_base::update_exec_info): Update.
9097 * tui/tui-source.c (tui_source_window::set_contents)
9098 (tui_source_window::showing_source_p)
9099 (tui_source_window::do_scroll_vertical)
9100 (tui_source_window::location_matches_p)
9101 (tui_source_window::line_is_displayed): Update.
9102 (tui_source_window::display_start_addr): New method.
9103 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9104 (tui_disasm_window::do_scroll_vertical)
9105 (tui_disasm_window::location_matches_p): Update.
9106 (tui_disasm_window::display_start_addr): New method.
9107
9108 2020-02-22 Tom Tromey <tom@tromey.com>
9109
9110 * NEWS: Add entry for gdb.register_window_type.
9111 * tui/tui-layout.h (window_factory): New typedef.
9112 (tui_register_window): Declare.
9113 * tui/tui-layout.c (saved_tui_windows): New global.
9114 (tui_apply_current_layout): Use it.
9115 (tui_register_window): New function.
9116 * python/python.c (do_start_initialization): Call
9117 gdbpy_initialize_tui.
9118 (python_GdbMethods): Add "register_window_type" function.
9119 * python/python-internal.h (gdbpy_register_tui_window)
9120 (gdbpy_initialize_tui): Declare.
9121 * python/py-tui.c: New file.
9122 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9123
9124 2020-02-22 Tom Tromey <tom@tromey.com>
9125
9126 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9127
9128 2020-02-22 Tom Tromey <tom@tromey.com>
9129
9130 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9131 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9132 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9133 (tui_set_win_focus_to): Move from tui-win.c.
9134
9135 2020-02-22 Tom Tromey <tom@tromey.com>
9136
9137 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9138 functions.
9139 (known_window_types): New global.
9140 (tui_get_window_by_name): Reimplement.
9141 (initialize_known_windows): New function.
9142 (validate_window_name): Rewrite.
9143 (_initialize_tui_layout): Call initialize_known_windows.
9144
9145 2020-02-22 Tom Tromey <tom@tromey.com>
9146
9147 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9148 Remove constants.
9149 * tui/tui-winsource.h (struct tui_source_window_base)
9150 <tui_source_window_base>: Remove parameter.
9151 * tui/tui-winsource.c
9152 (tui_source_window_base::tui_source_window_base): Remove
9153 parameter.
9154 (tui_source_window_base::refill): Update.
9155 * tui/tui-stack.h (struct tui_locator_window)
9156 <tui_locator_window>: Update.
9157 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9158 Default the constructor.
9159 * tui/tui-regs.h (struct tui_data_item_window)
9160 <tui_data_item_window>: Default the constructor.
9161 (struct tui_data_window) <tui_data_window>: Likewise.
9162 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9163 Default the constructor.
9164 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9165 Default the constructor.
9166 <type>: Remove.
9167 (struct tui_win_info) <tui_win_info>: Default the constructor.
9168 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9169 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9170 Default the constructor.
9171
9172 2020-02-22 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9175 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9176 * tui/tui-win.c (tui_resize_all): Don't call
9177 tui_delete_invisible_windows.
9178 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9179 done.
9180 (tui_set_layout): Update.
9181 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9182 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9183 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9184
9185 2020-02-22 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9188 correctly.
9189
9190 2020-02-22 Tom Tromey <tom@tromey.com>
9191
9192 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9193
9194 2020-02-22 Tom Tromey <tom@tromey.com>
9195
9196 * tui/tui-winsource.h (struct tui_source_window_iterator)
9197 <inner_iterator>: New etytypedef.
9198 <tui_source_window_iterator>: Take "end" parameter.
9199 <tui_source_window_iterator>: Take iterator.
9200 <operator*, advance>: Update.
9201 <m_iter>: Change type.
9202 <m_end>: New field.
9203 (struct tui_source_windows) <begin, end>: Update.
9204 * tui/tui-layout.c (tui_windows): New global.
9205 (tui_apply_current_layout): Clear tui_windows.
9206 (tui_layout_window::apply): Update tui_windows.
9207 * tui/tui-data.h (tui_windows): Declare.
9208 (all_tui_windows): Now inline function.
9209 (class tui_window_iterator, struct all_tui_windows): Remove.
9210
9211 2020-02-22 Tom Tromey <tom@tromey.com>
9212
9213 PR tui/17850:
9214 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9215 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9216 "height" argument.
9217 (class tui_layout_window) <get_sizes>: Likewise.
9218 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9219 argument.
9220 <get_sizes>: Add "height" argument.
9221 <m_vertical>: New field.
9222 * tui/tui-layout.c (tui_layout_split::clone): Update.
9223 (tui_layout_split::get_sizes): Add "height" argument.
9224 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9225 (tui_new_layout_command): Parse "-horizontal".
9226 (_initialize_tui_layout): Update help string.
9227 (tui_layout_split::specification): Add "-horizontal" when needed.
9228 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9229 argument.
9230 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9231 New methods.
9232
9233 2020-02-22 Tom Tromey <tom@tromey.com>
9234
9235 * tui/tui-layout.h (enum tui_adjust_result): New.
9236 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9237 (class tui_layout_window) <adjust_size>: Return
9238 tui_adjust_result. Rewrite.
9239 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9240 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9245 parameter and return types.
9246 (class tui_layout_base) <specification>: Add "depth".
9247 (class tui_layout_window) <specification>: Add "depth".
9248 (class tui_layout_split) <specification>: Add "depth".
9249 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9250 and return types.
9251 (tui_new_layout_command): Parse sub-layouts.
9252 (_initialize_tui_layout): Update help string.
9253 (tui_layout_window::specification): Add "depth".
9254 (add_layout_command): Update.
9255
9256 2020-02-22 Tom Tromey <tom@tromey.com>
9257
9258 * NEWS: Add "tui new-layout" item.
9259 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9260 Add new-layout command to help text.
9261 (validate_window_name): New function.
9262 (tui_new_layout_command): New function.
9263 (_initialize_tui_layout): Register "new-layout".
9264 (tui_layout_window::specification): New method.
9265 (tui_layout_window::specification): New method.
9266 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9267 method.
9268 (class tui_layout_window) <specification>: New method.
9269 (class tui_layout_split) <specification>: New method.
9270
9271 2020-02-22 Tom Tromey <tom@tromey.com>
9272
9273 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9274 * tui/tui-win.c (window_name_completer): Update comment.
9275 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9276 Declare method.
9277 (class tui_layout_window) <replace_window>: Likewise.
9278 (class tui_layout_split) <replace_window>: Likewise.
9279 (tui_set_layout): Don't declare.
9280 (tui_set_initial_layout): Declare function.
9281 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9282 (asm_regs_layout): New globals.
9283 (tui_current_layout, show_layout): Remove.
9284 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9285 (find_layout, tui_apply_layout): New function.
9286 (layout_completer): Remove.
9287 (tui_next_layout): Reimplement.
9288 (tui_next_layout_command): New function.
9289 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9290 (tui_regs_layout): Reimplement.
9291 (tui_regs_layout_command): New function.
9292 (extract_display_start_addr): Rewrite.
9293 (next_layout, prev_layout): Remove.
9294 (tui_layout_window::replace_window): New method.
9295 (tui_layout_split::replace_window): New method.
9296 (destroy_layout): New function.
9297 (layout_list): New global.
9298 (add_layout_command): New function.
9299 (initialize_layouts): Update.
9300 (tui_layout_command): New function.
9301 (_initialize_tui_layout): Install "layout" commands.
9302 * tui/tui-data.h (enum tui_layout_type): Remove.
9303 (tui_current_layout): Don't declare.
9304
9305 2020-02-22 Tom Tromey <tom@tromey.com>
9306
9307 * tui/tui-regs.c (tui_reg_layout): Remove.
9308 (tui_reg_command): Use tui_regs_layout.
9309 * tui/tui-layout.h (tui_reg_command): Declare.
9310 * tui/tui-layout.c (tui_reg_command): New function.
9311
9312 2020-02-22 Tom Tromey <tom@tromey.com>
9313
9314 * tui/tui.c (tui_rl_delete_other_windows): Call
9315 tui_remove_some_windows.
9316 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9317 Declare method.
9318 (class tui_layout_window) <remove_windows>: New method.
9319 (class tui_layout_split) <remove_windows>: Declare.
9320 (tui_remove_some_windows): Declare.
9321 * tui/tui-layout.c (tui_remove_some_windows): New function.
9322 (tui_layout_split::remove_windows): New method.
9323
9324 2020-02-22 Tom Tromey <tom@tromey.com>
9325
9326 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9327 * tui/tui-layout.h (tui_next_layout): Declare.
9328 * tui/tui-layout.c (tui_next_layout): New function.
9329
9330 2020-02-22 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9333 correct coordinates.
9334
9335 2020-02-22 Tom Tromey <tom@tromey.com>
9336
9337 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9338 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9339 DATA_WIN case.
9340
9341 2020-02-22 Tom Tromey <tom@tromey.com>
9342
9343 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9344 TUI_DISASM_WIN, not tui_win_list.
9345
9346 2020-02-22 Tom Tromey <tom@tromey.com>
9347
9348 * valprint.c (generic_val_print_enum_1)
9349 (val_print_type_code_flags): Style member names.
9350 * rust-lang.c (val_print_struct, rust_print_enum)
9351 (rust_print_struct_def, rust_internal_print_type): Style member
9352 names.
9353 * p-valprint.c (pascal_object_print_value_fields): Style member
9354 names. Only call fprintf_symbol_filtered for static members.
9355 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9356 * f-valprint.c (f_val_print): Style member names.
9357 * f-typeprint.c (f_type_print_base): Style member names.
9358 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9359 call fprintf_symbol_filtered for static members.
9360 (cp_print_class_member): Style member names.
9361 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9362 member names.
9363 * ada-valprint.c (ada_print_scalar): Style enum names.
9364 (ada_val_print_enum): Likewise.
9365 * ada-typeprint.c (print_enum_type): Style enum names.
9366
9367 2020-02-21 Tom Tromey <tom@tromey.com>
9368
9369 * psympriv.h (struct partial_symtab): Update comment.
9370
9371 2020-02-21 Tom Tromey <tromey@adacore.com>
9372
9373 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9374 type is CORE_ADDR.
9375
9376 2020-02-21 Tom de Vries <tdevries@suse.de>
9377
9378 PR gdb/25534
9379 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9380 if dependencies[i]->user != NULL.
9381
9382 2020-02-21 Ali Tamur <tamur@google.com>
9383
9384 * dwarf2/read.c (dwarf2_name): Add null check.
9385
9386 2020-02-20 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9389 ">=", in binary search.
9390 (dwarf2_find_containing_comp_unit): New overload.
9391 (run_test): New self-test.
9392 (_initialize_dwarf2_read): Register new test.
9393
9394 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9395
9396 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9397 * riscv-tdep.h: Likewise.
9398 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9399 rv32-only CSR.
9400 * features/riscv/64bit-csr.xml: Regenerated.
9401
9402 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9403 Tom Tromey <tom@tromey.com>
9404
9405 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9406 of 'fputc_unfiltered'.
9407 (putchar_unfiltered): Call 'fputc_unfiltered'.
9408 (fputc_unfiltered): Call 'fputs_unfiltered'.
9409
9410 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 * config.in: Regenerate.
9413 * configure: Regenerate.
9414 * configure.ac: Add --with-python-libdir option.
9415 * main.c: Use WITH_PYTHON_LIBDIR.
9416
9417 2020-02-19 Tom Tromey <tom@tromey.com>
9418
9419 * symtab.c (general_symbol_info::compute_and_set_names): Use
9420 obstack_strndup. Simplify call to symbol_set_demangled_name.
9421
9422 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9423
9424 * dwarf2/read.c (allocate_signatured_type_table,
9425 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9426 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9427 Remove objfile parameter, update all callers.
9428
9429 2020-02-19 Doug Evans <dje@google.com>
9430
9431 PR rust/25535
9432 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9433 rust_enum_variant calculation.
9434
9435 2020-02-19 Tom Tromey <tromey@adacore.com>
9436
9437 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9438
9439 2020-02-19 Tom Tromey <tromey@adacore.com>
9440
9441 * ada-lang.c (cache_symbol): Use obstack_strdup.
9442
9443 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * configure: Regenerate.
9446
9447 2020-02-19 Tom Tromey <tromey@adacore.com>
9448
9449 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9450 NULL check.
9451
9452 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9453
9454 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9455
9456 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9459 if GDBSERVER is not defined.
9460 (riscv_tdesc_cache): Likewise, also store const target_desc.
9461 (STATIC_IN_GDB): Define.
9462 (riscv_create_target_description): Update declaration with
9463 STATIC_IN_GDB.
9464 (riscv_lookup_target_description): New function, only define if
9465 GDBSERVER is not defined.
9466 * arch/riscv.h (riscv_create_target_description): Declare only
9467 when GDBSERVER is defined.
9468 (riscv_lookup_target_description): New declaration when GDBSERVER
9469 is not defined.
9470 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9471 (riscv_linux_read_features): ...this, and return
9472 riscv_gdbarch_features instead of target_desc.
9473 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9474 (riscv_linux_read_description): Rename to...
9475 (riscv_linux_read_features): ...this.
9476 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9477 Update to use riscv_gdbarch_features and
9478 riscv_lookup_target_description.
9479 * riscv-tdep.c (riscv_find_default_target_description): Use
9480 riscv_lookup_target_description instead of
9481 riscv_create_target_description.
9482
9483 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * valprint.c (generic_val_print_enum_1): When printing a flag
9486 enum with value 0 and there is no enumerator with value 0, print
9487 just "0" instead of "(unknown: 0x0)".
9488
9489 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * valprint.c (generic_val_print_enum_1): Print unknown part of
9492 flag enum in hex.
9493
9494 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9495
9496 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9497 flag enums to contain duplicate enumerators.
9498 * valprint.c (generic_val_print_enum_1): Update comment.
9499
9500 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * dwarf2/read.c: Include "count-one-bits.h".
9503 (update_enumeration_type_from_children): If an enumerator has
9504 multiple bits set, don't treat the enumeration as a "flag enum".
9505 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9506 of flag enums have 0 or 1 bit set.
9507
9508 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9509
9510 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9511 conversion.
9512 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9513 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9514 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9515 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9516 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9517
9518 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9521
9522 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9525 displaced_step_closure_up.
9526 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9527 (struct displaced_step_closure_up):
9528 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9529 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9530 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9531 Likewise.
9532 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9533 * gdbarch.c, gdbarch.h: Re-generate.
9534 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9535 displaced_step_closure_up.
9536 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9537 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9538 * infrun.h (displaced_step_closure_up): New type alias.
9539 (struct displaced_step_inferior_state) <step_closure>: Change
9540 type to displaced_step_closure_up.
9541 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9542 displaced_step_closure_up.
9543 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9544
9545 2020-02-14 Tom Tromey <tom@tromey.com>
9546
9547 * minidebug.c (gnu_debug_key): New global.
9548 (find_separate_debug_file_in_section): Use it.
9549
9550 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9553 std::unique_ptr.
9554 * gdbarch.c: Re-generate.
9555 * gdbarch.h: Re-generate.
9556 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9557 change.
9558 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9559 type to std::unique_ptr.
9560 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9561 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9562 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9563 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9564 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9565 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9566 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9567 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9568 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9569
9570 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9571
9572 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9573 std::unique_ptr.
9574 (displaced_step_clear): Rename to...
9575 (displaced_step_reset): ... this. Just call displaced->reset ().
9576 (displaced_step_clear_cleanup): Rename to...
9577 (displaced_step_reset_cleanup): ... this.
9578 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9579 (displaced_step_fixup): Likewise.
9580 (resume_1): Likewise.
9581 (handle_inferior_event): Restore child's memory before calling
9582 displaced_step_fixup on the parent.
9583 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9584 to std::unique_ptr.
9585 <step_closure>: Change type to std::unique_ptr.
9586
9587 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * arm-tdep.c: Include count-one-bits.h.
9590 (cleanup_block_store_pc): Use count_one_bits.
9591 (cleanup_block_load_pc): Use count_one_bits.
9592 (arm_copy_block_xfer): Use count_one_bits.
9593 (thumb2_copy_block_xfer): Use count_one_bits.
9594 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9595 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9596 (thumb_get_next_pcs_raw): Use count_one_bits.
9597 (arm_get_next_pcs_raw): Use count_one_bits_l.
9598 * arch/arm.c (bitcount): Remove.
9599 * arch/arm.h (bitcount): Remove.
9600
9601 2020-02-14 Tom Tromey <tromey@adacore.com>
9602
9603 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9604 Update.
9605 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9606 * dwarf2/loc.c (call_site_find_chain_1): Return
9607 unique_xmalloc_ptr.
9608 (call_site_find_chain): Likewise.
9609
9610 2020-02-14 Richard Biener <rguenther@suse.de>
9611
9612 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9613 on expression with division operators.
9614
9615 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9616
9617 * MAINTAINERS (Write After Approval): Adding myself.
9618
9619 2020-02-12 Tom Tromey <tom@tromey.com>
9620
9621 * event-loop.c (event_data, gdb_event, event_handler_func):
9622 Remove.
9623
9624 2020-02-12 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9627 (dwarf2_frame_objfile_data): Add comment.
9628 (find_comp_unit, set_comp_unit): New functions.
9629 (dwarf2_frame_find_fde): Use find_comp_unit.
9630 (dwarf2_build_frame_info): Use set_comp_unit.
9631
9632 2020-02-12 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9635 (comp_unit): Don't initialize objfile.
9636 (execute_cfa_program): Add text_offset parameter.
9637 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9638 (dwarf2_frame_cache): Update.
9639 (dwarf2_build_frame_info): Don't set "objfile" member.
9640
9641 2020-02-12 Tom Tromey <tom@tromey.com>
9642
9643 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9644 (decode_frame_entry): Likewise.
9645 (dwarf2_build_frame_info): Update.
9646
9647 2020-02-12 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9650 (decode_frame_entry_1): Use the comp_unit obstack.
9651
9652 2020-02-12 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2/frame.c (struct comp_unit): Add initializers and
9655 constructor.
9656 (dwarf2_frame_objfile_data): Store a comp_unit.
9657 (dwarf2_frame_find_fde): Update.
9658 (dwarf2_build_frame_info): Use "new".
9659
9660 2020-02-12 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9663 (dwarf2_fde_table): Typedef for std::vector.
9664 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9665 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9666 (decode_frame_entry): Update.
9667 (dwarf2_build_frame_info): Use "new".
9668
9669 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9670
9671 * arm-tdep.c (arm_gdbarch_init): Update.
9672 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9673 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9674 have_neon, is_m>: Change to bool.
9675
9676 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9677
9678 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9679
9680 2020-02-12 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9683
9684 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9685
9686 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9687 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9688
9689 2020-02-11 Tom Tromey <tom@tromey.com>
9690
9691 * psymtab.h: Update comment.
9692
9693 2020-02-11 Tom Tromey <tom@tromey.com>
9694
9695 * gdb_obstack.h (struct auto_obstack): Use
9696 DISABLE_COPY_AND_ASSIGN.
9697
9698 2020-02-11 Tom Tromey <tom@tromey.com>
9699
9700 * dwarf2/frame.h (struct objfile): Don't forward declare.
9701
9702 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9703
9704 * cris-tdep.c (cris_supply_gregset): Change signature to match
9705 what struct regset expects.
9706 (cris_regset): New struct.
9707 (fetch_core_registers): Remove.
9708 (cris_iterate_over_regset_sections): New function.
9709 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9710 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9711
9712 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9713
9714 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9715 registers.
9716
9717 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9718
9719 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
9728
9729 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * acinclude: Update warning.m4 path.
9732 * warning.m4: Move to gdbsupport.
9733
9734 2020-02-11 Tom Tromey <tromey@adacore.com>
9735
9736 * remote.c (remote_console_output): Update.
9737 * printcmd.c (printf_command): Update.
9738 * event-loop.c (gdb_wait_for_event): Update.
9739 * linux-nat.c (sigchld_handler): Update.
9740 * remote-sim.c (gdb_os_write_stdout): Update.
9741 (gdb_os_flush_stdout): Update.
9742 (gdb_os_flush_stderr): Update.
9743 (gdb_os_write_stderr): Update.
9744 * exceptions.c (print_exception): Update.
9745 * remote-fileio.c (remote_fileio_func_read): Update.
9746 (remote_fileio_func_write): Update.
9747 * tui/tui.c (tui_enable): Update.
9748 * tui/tui-interp.c (tui_interp::init): Update.
9749 * utils.c (init_page_info): Update.
9750 (putchar_unfiltered, fputc_unfiltered): Update.
9751 (gdb_flush): Update.
9752 (emit_style_escape): Update.
9753 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9754 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9755 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9756 (stderr_file::write): Update.
9757 (stderr_file::puts): Update.
9758 * ui-file.h (ui_file_isatty, ui_file_write)
9759 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9760 (ui_file_puts): Don't declare.
9761
9762 2020-02-10 Tom de Vries <tdevries@suse.de>
9763
9764 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9765 sentinel to char *.
9766
9767 2020-02-09 Tom de Vries <tdevries@suse.de>
9768
9769 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9770 filename if it matches "<artificial>".
9771
9772 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9773
9774 * windows-tdep.c (struct enum_value_name): New struct.
9775 (create_enum): New function.
9776 (windows_get_siginfo_type): Create and use enum types.
9777
9778 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9779
9780 * NEWS: Mention $_siginfo support for Windows.
9781 * windows-nat.c (handle_exception): Set siginfo_er.
9782 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9783 (windows_xfer_siginfo): New function.
9784 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9785 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9786 (init_windows_gdbarch_data): New function.
9787 (get_windows_gdbarch_data): New function.
9788 (windows_get_siginfo_type): New function.
9789 (windows_init_abi): Register windows_get_siginfo_type.
9790 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9791
9792 2020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9795 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9796 <keep>: Declare method.
9797 <m_keep>: Remove member.
9798 <~cutu_reader>: Remove.
9799 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9800 (cutu_reader::cutu_reader): Update.
9801 (cutu_reader::keep): Rename from ~cutu_reader.
9802 (process_psymtab_comp_unit, build_type_psymtabs_1)
9803 (process_skeletonless_type_unit, load_partial_comp_unit)
9804 (load_full_comp_unit, dwarf2_read_addr_index)
9805 (read_signatured_type): Update.
9806
9807 2020-02-08 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9810 "want_partial_unit" parameter.
9811 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9812 Inline check for DW_TAG_partial_unit.
9813 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9814
9815 2020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9818 read.c.
9819 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9820 read.c.
9821
9822 2020-02-08 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2/read.c (read_address): Move to comp-unit.c.
9825 (dwarf2_rnglists_process, dwarf2_ranges_process)
9826 (read_attribute_value, dwarf_decode_lines_1)
9827 (var_decode_location, decode_locdesc): Update.
9828 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9829 read.c. Remove "cu" parameter.
9830 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9831 method.
9832
9833 2020-02-08 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9836 (read_indirect_line_string): Update.
9837 * dwarf2/comp-unit.c (read_offset): Remove.
9838 (read_comp_unit_head): Update.
9839 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9840 method.
9841 (read_offset): Don't declare.
9842
9843 2020-02-08 Tom Tromey <tom@tromey.com>
9844
9845 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9846 * dwarf2/read.c (struct comp_unit_head): Move to
9847 dwarf2/comp-unit.h.
9848 (enum class rcuh_kind): Move to comp-unit.h.
9849 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9850 (read_comp_unit_head, error_check_comp_unit_head)
9851 (read_and_check_comp_unit_head): Move to comp-unit.c.
9852 (read_offset, dwarf_unit_type_name): Likewise.
9853 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9854 (cutu_reader::cutu_reader, read_call_site_scope)
9855 (find_partial_die, follow_die_offset): Update.
9856 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9857
9858 2020-02-08 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/read.c (read_offset_1): Move to leb.c.
9861 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9862 (dwarf_decode_macro_bytes): Update.
9863 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9864 * dwarf2/leb.h (read_offset): Declare.
9865
9866 2020-02-08 Tom Tromey <tom@tromey.com>
9867
9868 * dwarf2/read.c (dwarf2_section_size): Remove.
9869 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9870 Update.
9871 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9872
9873 2020-02-08 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/read.c (read_initial_length): Move to leb.c.
9876 * dwarf2/leb.h (read_initial_length): Declare.
9877 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9878 handle_nonstd parameter.
9879 * dwarf2/frame.c (read_initial_length): Remove.
9880 (decode_frame_entry_1): Update.
9881
9882 2020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/loc.c (dwarf2_find_location_expression)
9885 (dwarf_evaluate_loc_desc::get_tls_address)
9886 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9887 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9888 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9889 (dwarf2_compile_property_to_c)
9890 (dwarf2_loc_desc_get_symbol_read_needs)
9891 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9892 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9893 (loclist_describe_location, loclist_tracepoint_var_ref)
9894 (loclist_generate_c_location): Update.
9895 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9896 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9897 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9898 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9899 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9900 (dwarf2_per_cu_data::addr_size)
9901 (dwarf2_per_cu_data::ref_addr_size)
9902 (dwarf2_per_cu_data::text_offset)
9903 (dwarf2_per_cu_data::addr_type): Now methods.
9904 (per_cu_header_read_in): Make per_cu "const".
9905 (dwarf2_version): Remove.
9906 (dwarf2_per_cu_data::int_type): Now a method.
9907 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9908 (set_die_type, read_array_type, read_subrange_index_type)
9909 (read_tag_string_type, read_subrange_type): Update.
9910 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9911 offset_size, ref_addr_size, text_offset, addr_type, version,
9912 objfile, int_type, addr_sized_int_type>: Declare methods.
9913
9914 2020-02-08 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9917 Move earlier.
9918
9919 2020-02-08 Tom Tromey <tom@tromey.com>
9920
9921 * dwarf2/read.h (dwarf_line_debug): Declare.
9922 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9923 * dwarf2/read.c: Move line_header code to new files.
9924 (dwarf_line_debug): No longer static.
9925 * dwarf2/line-header.c: New file.
9926 * dwarf2/line-header.h: New file.
9927
9928 2020-02-08 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2/read.c (struct line_header) <file_full_name,
9931 file_file_name>: Return unique_xmalloc_ptr.
9932 (line_header::file_file_name): Update.
9933 (line_header::file_full_name): Update.
9934 (dw2_get_file_names_reader): Update.
9935 (macro_start_file): Update.
9936
9937 2020-02-08 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2/read.c (struct line_header) <file_full_name,
9940 file_file_name>: Declare methods.
9941 (dw2_get_file_names_reader): Update.
9942 (file_file_name): Now a method.
9943 (file_full_name): Likewise.
9944 (macro_start_file): Update.
9945
9946 2020-02-08 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2/read.c (dwarf_always_disassemble)
9949 (show_dwarf_always_disassemble): Move to loc.c.
9950 (_initialize_dwarf2_read): Move "always-disassemble" registration
9951 to loc.c.
9952 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9953 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9954 static.
9955 (show_dwarf_always_disassemble): Move from read.c.
9956 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9957
9958 2020-02-08 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9961 (create_quick_file_names_table): Return htab_up.
9962 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9963 Update.
9964 * dwarf2/read.h (struct dwarf2_per_objfile)
9965 <quick_file_names_table>: Now htab_up.
9966
9967 2020-02-08 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9970
9971 2020-02-08 Tom Tromey <tom@tromey.com>
9972
9973 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9974 Rewrite.
9975 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9976 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9977 (abbrev_table::abbrev_table): No longer inline.
9978 (ABBREV_HASH_SIZE): Remove.
9979 (abbrev_table::m_abbrevs): Now an htab_up.
9980
9981 2020-02-08 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9984 (cutu_reader): Update.
9985 (build_type_psymtabs_1): Update.
9986 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9987 (abbrev_table::alloc_abbrev): Update.
9988 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9989 (abbrev_table::read): New static method, renamed from
9990 abbrev_table_read_table.
9991 (abbrev_table::alloc_abbrev)
9992 (abbrev_table::add_abbrev): Now private.
9993 (abbrev_table::abbrev_table): Now private.
9994 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9995
9996 2020-02-08 Tom Tromey <tom@tromey.com>
9997
9998 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9999 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10000 htab_up.
10001
10002 2020-02-08 Tom Tromey <tom@tromey.com>
10003
10004 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10005 htab_up.
10006 (lookup_dwo_unit_in_dwp): Update.
10007 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10008 on obstack.
10009
10010 2020-02-08 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10013 obstack.
10014
10015 2020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10018 line_header_hash.
10019 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10020 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10021 Change type to htab_up.
10022
10023 2020-02-08 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10026 htab_up. Don't allocate on obstack.
10027 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10028 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10029 Change type to htab_up.
10030
10031 2020-02-08 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10034 Change type to htab_up.
10035 * dwarf2/read.c (create_signatured_type_table_from_index)
10036 (create_signatured_type_table_from_debug_names)
10037 (create_all_type_units, add_type_unit)
10038 (lookup_dwo_signatured_type, lookup_signatured_type)
10039 (process_skeletonless_type_unit): Update.
10040 (create_debug_type_hash_table, create_debug_types_hash_table):
10041 Change type of types_htab.
10042 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10043 htab_up. Don't allocate on obstack.
10044 (create_cus_hash_table): Change type of cus_htab parameter.
10045 (struct dwo_file) <cus, tus>: Now htab_up.
10046 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10047 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10048 (queue_and_load_all_dwo_tus): Update.
10049 * dwarf2/index-write.c (write_gdbindex): Update.
10050 (write_debug_names): Update.
10051
10052 2020-02-08 Tom Tromey <tom@tromey.com>
10053
10054 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10055 dwarf2/read.c. Remove "next" member. Add constructor ntad
10056 destructor.
10057 (struct dwarf2_per_objfile) <queue>: New member.
10058 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10059 dwarf2/read.h.
10060 (dwarf2_queue, dwarf2_queue_tail): Remove.
10061 (class dwarf2_queue_guard): Add parameter to constructor. Use
10062 DISABLE_COPY_AND_ASSIGN.
10063 <m_per_objfile>: New member.
10064 <~dwarf2_queue_guard>: Rewrite.
10065 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10066 Update.
10067 (~dwarf2_queue_item): New.
10068
10069 2020-02-08 Tom Tromey <tom@tromey.com>
10070
10071 * dwarf2/read.c (struct die_info) <has_children>: New member.
10072 (dw2_get_file_names_reader): Remove has_children.
10073 (dw2_get_file_names): Update.
10074 (read_cutu_die_from_dwo): Remove has_children.
10075 (cutu_reader::init_tu_and_read_dwo_dies)
10076 (cutu_reader::cutu_reader): Update.
10077 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10078 Remove has_children.
10079 (build_type_psymtabs_1, process_skeletonless_type_unit)
10080 (load_partial_comp_unit, load_full_comp_unit): Update.
10081 (create_dwo_cu_reader): Remove has_children.
10082 (create_cus_hash_table, read_die_and_children): Update.
10083 (read_full_die_1,read_full_die): Remove has_children.
10084 (read_signatured_type): Update.
10085 (class cutu_reader) <has_children>: Remove.
10086
10087 2020-02-08 Tom Tromey <tom@tromey.com>
10088
10089 * dwarf2/expr.c: Rename from dwarf2expr.c.
10090 * dwarf2/expr.h: Rename from dwarf2expr.h.
10091 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10092 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10093 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10094 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10095 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10096 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10097 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10098 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10099 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10100 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10101 * dwarf2/loc.c: Rename from dwarf2loc.c.
10102 * dwarf2/loc.h: Rename from dwarf2loc.h.
10103 * dwarf2/read.c: Rename from dwarf2read.c.
10104 * dwarf2/read.h: Rename from dwarf2read.h.
10105 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10106 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10107 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10108 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10109 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10110 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10111 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10112 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10113 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10114 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10115 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10116 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10117 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10118 Update.
10119 * Makefile.in (COMMON_SFILES): Update.
10120 (HFILES_NO_SRCDIR): Update.
10121
10122 2020-02-08 Tom Tromey <tom@tromey.com>
10123
10124 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10125 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10126
10127 2020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2read.h (struct die_info): Don't declare.
10130
10131 2020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2read.h (die_info_ptr): Remove typedef.
10134
10135 2020-02-08 Tom Tromey <tom@tromey.com>
10136
10137 * dwarf2read.c (read_call_site_scope)
10138 (handle_data_member_location, dwarf2_add_member_fn)
10139 (mark_common_block_symbol_computed, read_common_block)
10140 (attr_to_dynamic_prop, partial_die_info::read)
10141 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10142 (dwarf2_symbol_mark_computed, set_die_type): Update.
10143 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10144 method.
10145 (attr_form_is_block): Don't declare.
10146 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10147
10148 2020-02-08 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2read.c (dwarf2_find_base_address, )
10151 (read_call_site_scope, rust_containing_type)
10152 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10153 (handle_data_member_location, dwarf2_add_member_fn)
10154 (get_alignment, read_structure_type, process_structure_scope)
10155 (mark_common_block_symbol_computed, read_common_block)
10156 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10157 (partial_die_info::read, read_attribute_value, new_symbol)
10158 (lookup_die_type, dwarf2_get_ref_die_offset)
10159 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10160 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10161 (dwarf2_symbol_mark_computed): Update.
10162 * dwarf2/attribute.h (struct attribute) <value_as_address,
10163 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10164 methods.
10165 (value_as_address, attr_form_is_section_offset)
10166 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10167 * dwarf2/attribute.c (attribute::value_as_address)
10168 (attribute::form_is_section_offset, attribute::form_is_constant)
10169 (attribute::form_is_ref): Now methods.
10170
10171 2020-02-08 Tom Tromey <tom@tromey.com>
10172
10173 * dwarf2read.c (struct attribute, DW_STRING)
10174 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10175 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10176 (attr_form_is_block, attr_form_is_section_offset)
10177 (attr_form_is_constant, attr_form_is_ref): Move.
10178 * dwarf2/attribute.h: New file.
10179 * dwarf2/attribute.c: New file, from dwarf2read.c.
10180 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10181
10182 2020-02-08 Tom Tromey <tom@tromey.com>
10183
10184 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10185 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10186 Move.
10187 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10188 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10189 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10190 abbrev.c.
10191 * dwarf2/abbrev.h: New file.
10192 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10193 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10194
10195 2020-02-08 Tom Tromey <tom@tromey.com>
10196
10197 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10198 (dwarf2_section_size, dwarf2_get_section_info)
10199 (create_signatured_type_table_from_debug_names)
10200 (create_addrmap_from_aranges, read_debug_names_from_section)
10201 (get_gdb_index_contents_from_section, read_comp_unit_head)
10202 (error_check_comp_unit_head, read_abbrev_offset)
10203 (create_debug_type_hash_table, init_cu_die_reader)
10204 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10205 (read_comp_units_from_section, create_cus_hash_table)
10206 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10207 (create_dwp_v2_section, dwarf2_rnglists_process)
10208 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10209 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10210 (read_indirect_string_from_dwz, read_addr_index_1)
10211 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10212 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10213 (fill_in_loclist_baton): Update.
10214 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10215 get_containing_section, get_bfd_owner, get_bfd_section,
10216 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10217 (dwarf2_read_section, get_section_name, get_section_file_name)
10218 (get_containing_section, get_section_bfd_owner)
10219 (get_section_bfd_section, get_section_name, get_section_file_name)
10220 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10221 declare.
10222 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10223 (dwarf2_section_info::get_bfd_owner)
10224 (dwarf2_section_info::get_bfd_section)
10225 (dwarf2_section_info::get_name)
10226 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10227 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10228 (dwarf2_section_info::read): Now methods.
10229 * dwarf-index-write.c (class debug_names): Update.
10230
10231 2020-02-08 Tom Tromey <tom@tromey.com>
10232
10233 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10234 Move to dwarf2/section.h.
10235 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10236 (get_section_bfd_section, get_section_name)
10237 (get_section_file_name, get_section_id, get_section_flags)
10238 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10239 dwarf2/section.c.
10240 * dwarf2/section.h: New file.
10241 * dwarf2/section.c: New file, from dwarf2read.c.
10242 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10243
10244 2020-02-08 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10247 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10248 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10249 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10250 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10251 * dwarf2/leb.h: New file, from dwarf2read.c.
10252 * dwarf2/leb.c: New file, from dwarf2read.c.
10253 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10254 Remove.
10255 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10256 (COMMON_SFILES): Add dwarf2/leb.c.
10257
10258 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10259
10260 GDB 9.1 released.
10261
10262 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10263
10264 PR gdb/25190:
10265 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10266 * gdb/remote.c (remote_console_output): Update.
10267 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10268 (ui_file_puts): ...this.
10269 * gdb/ui-file.h (ui_file_puts): Add declaration.
10270 * gdb/utils.c (emit_style_escape): Update.
10271 (flush_wrap_buffer): Update.
10272 (fputs_maybe_filtered): Update.
10273 (fputs_unfiltered): Add function.
10274
10275 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10276
10277 * gdb/event-loop.c (gdb_wait_for_event): Update.
10278 * gdb/printcmd.c (printf_command): Update.
10279 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10280 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10281 (gdb_os_flush_stderr): Update.
10282 * gdb/remote.c (remote_console_output): Update.
10283 * gdb/ui-file.c (gdb_flush): Rename to...
10284 (ui_file_flush): ...this.
10285 (stderr_file::write): Update.
10286 (stderr_file::puts): Update.
10287 * gdb/ui-file.h (gdb_flush): Rename to...
10288 (ui_file_flush): ...this.
10289 * gdb/utils.c (gdb_flush): Add function.
10290 * gdb/utils.h (gdb_flush): Add declaration.
10291
10292 2020-02-07 Tom Tromey <tromey@adacore.com>
10293
10294 PR breakpoints/24915:
10295 * source.c (find_and_open_source): Do not check basenames_may_differ.
10296
10297 2020-02-07 Tom Tromey <tom@tromey.com>
10298
10299 * README: Update gdbserver documentation.
10300 * gdbserver: Move to top level.
10301 * configure.tgt (build_gdbserver): Remove.
10302 * configure.ac: Remove --enable-gdbserver.
10303 * configure: Rebuild.
10304 * Makefile.in (distclean): Don't mention gdbserver.
10305
10306 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10307
10308 * source-cache.c (source_cache::ensure): Surround
10309 get_plain_source_lines with a try/catch.
10310 (source_cache::get_line_charpos): Get rid of try/catch
10311 and only check for the return value of "ensure".
10312 * tui/tui-source.c (tui_source_window::set_contents):
10313 Simplify "nlines" calculation.
10314
10315 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10316
10317 * MAINTAINERS (Write After Approval): Add myself.
10318
10319 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10320
10321 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10322 function call.
10323
10324 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10325
10326 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10327
10328 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10329
10330 * nat/riscv-linux-tdesc.h: New file.
10331 * nat/riscv-linux-tdesc.c: New file, taking code from...
10332 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10333 ... here.
10334 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10335 NATDEPFILES.
10336
10337 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10338
10339 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10340 we don't set the fake simulator ptid to the null_ptid.
10341
10342 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10343
10344 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10345 * gdbthread.h (class thread_info) <resumed>: Likewise.
10346 * infrun.c (resume_1): Likewise.
10347 (proceed): Likewise.
10348 (infrun_thread_stop_requested): Likewise.
10349 (stop_all_threads): Likewise.
10350 (handle_inferior_event): Likewise.
10351 (restart_threads): Likewise.
10352 (finish_step_over): Likewise.
10353 (keep_going_stepped_thread): Likewise.
10354 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10355 (linux_handle_extended_wait): Likewise.
10356 * record-btrace.c (get_thread_current_frame_id): Likewise.
10357 * record-full.c (record_full_wait_1): Likewise.
10358 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10359 * target.c (target_resume): Likewise.
10360 * thread.c (set_running_thread): Likewise.
10361
10362 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10363
10364 * f-valprint.c (f77_print_array_1): Changed datatype of index
10365 variable to LONGEST from int to enable it to contain bound
10366 values correctly.
10367
10368 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10369
10370 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10371 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10372 offsets according to FLEN determined.
10373 (riscv_linux_nat_target::read_description): Determine FLEN
10374 dynamically.
10375 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10376 according to FLEN determined.
10377 (riscv_linux_nat_target::store_registers): Likewise.
10378
10379 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10380
10381 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10382 when reg->group is empty and reggroup is not.
10383
10384 2020-01-31 Tom Tromey <tromey@adacore.com>
10385
10386 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10387 Call beneath target's mourn_inferior after unpushing.
10388
10389 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 PR tui/9765
10392 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10393 have enough lines to fill the screen, still return the lowest
10394 address we found.
10395
10396 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10399 '-', '<', and '>' commands.
10400
10401 2020-01-29 Pedro Alves <palves@redhat.com>
10402 Sergio Durigan Junior <sergiodj@redhat.com>
10403
10404 * infcmd.c (construct_inferior_arguments): Assert that
10405 'argc' is greater than 0.
10406
10407 2020-01-29 Luis Machado <luis.machado@linaro.org>
10408
10409 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10410 (BRK_INSN_MASK): Define to 0xd4200000.
10411 (aarch64_program_breakpoint_here_p): New function.
10412 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10413 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10414 breakpoint.c.
10415 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10416 breakpoint.h
10417 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10418 call gdbarch_program_breakpoint_here_p.
10419 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10420 default_program_breakpoint_here_p, changed return type to bool and
10421 simplified.
10422 * breakpoint.h (program_breakpoint_here): Moved prototype to
10423 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10424 return type to bool.
10425 * gdbarch.c: Regenerate.
10426 * gdbarch.h: Regenerate.
10427 * gdbarch.sh (program_breakpoint_here_p): New method.
10428 * infrun.c (handle_signal_stop): Call
10429 gdbarch_program_breakpoint_here_p.
10430
10431 2020-01-26 Tom Tromey <tom@tromey.com>
10432
10433 * ctfread.c (struct ctf_fp_info): Reindent.
10434 (_initialize_ctfread): Remove.
10435
10436 2020-01-26 Tom Tromey <tom@tromey.com>
10437
10438 * psymtab.c (partial_map_expand_apply)
10439 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10440 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10441 (psym_print_stats, psym_expand_symtabs_for_function)
10442 (psym_map_symbol_filenames, psym_map_matching_symbols)
10443 (psym_expand_symtabs_matching)
10444 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10445 (maintenance_check_psymtabs): Use new methods.
10446 * psympriv.h (struct partial_symtab) <readin_p,
10447 get_compunit_symtab>: New methods.
10448 <readin, compunit_symtab>: Remove members.
10449 (struct standard_psymtab): New.
10450 (struct legacy_psymtab): Derive from standard_psymtab.
10451 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10452 standard_psymtab.
10453 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10454
10455 2020-01-26 Tom Tromey <tom@tromey.com>
10456
10457 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10458 read_dependencies. Add assert.
10459 * psymtab.c (partial_symtab::read_dependencies): New method.
10460 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10461 method.
10462 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10463 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10464 read_dependencies.
10465 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10466 Add assert.
10467
10468 2020-01-26 Tom Tromey <tom@tromey.com>
10469
10470 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10471 Call expand_psymtab.
10472 (xcoff_read_symtab): Call expand_psymtab.
10473 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10474 legacy_expand_psymtab.
10475 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10476 method.
10477 (struct legacy_psymtab) <expand_psymtab>: Implement.
10478 <legacy_expand_psymtab>: New member.
10479 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10480 (parse_partial_symbols): Set legacy_expand_psymtab.
10481 (psymtab_to_symtab_1): Change argument order. Call
10482 expand_psymtab.
10483 (new_psymtab): Set legacy_expand_psymtab.
10484 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10485 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10486 expand_psymtab.
10487 (dwarf2_psymtab::expand_psymtab): Rename from
10488 psymtab_to_symtab_1. Call expand_psymtab.
10489 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10490 (dbx_end_psymtab): Likewise.
10491 (dbx_psymtab_to_symtab_1): Change argument order. Call
10492 expand_psymtab.
10493 (dbx_read_symtab): Call expand_psymtab.
10494 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10495 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10496 (ctf_psymtab::read_symtab): Call expand_psymtab.
10497
10498 2020-01-26 Tom Tromey <tom@tromey.com>
10499
10500 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10501 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10502 messages.
10503 * mdebugread.c (mdebug_read_symtab): Remove prints.
10504 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10505 assert.
10506 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10507
10508 2020-01-26 Tom Tromey <tom@tromey.com>
10509
10510 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10511 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10512 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10513 legacy_symtab.
10514 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10515 * psymtab.c (psymtab_to_symtab): Call method.
10516 (dump_psymtab): Update.
10517 * psympriv.h (struct partial_symtab): Add virtual destructor.
10518 <read_symtab>: New method.
10519 (struct legacy_symtab): New.
10520 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10521 (struct pst_map) <pst>: Now a legacy_psymtab.
10522 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10523 (new_psymtab): Use legacy_psymtab.
10524 * dwarf2read.h (struct dwarf2_psymtab): New.
10525 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10526 * dwarf2read.c (dwarf2_create_include_psymtab)
10527 (dwarf2_build_include_psymtabs, create_type_unit_group)
10528 (create_partial_symtab, process_psymtab_comp_unit_reader)
10529 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10530 (set_partial_user): Use dwarf2_psymtab.
10531 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10532 (psymtab_to_symtab_1, process_full_comp_unit)
10533 (process_full_type_unit, dwarf2_ranges_read)
10534 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10535 (dwarf_decode_lines): Use dwarf2_psymtab.
10536 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10537 (add_address_entry_worker, write_one_signatured_type)
10538 (recursively_count_psymbols, recursively_write_psymbols)
10539 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10540 (write_debug_names): Likewise.
10541 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10542 <pst>: Now a legacy_psymtab.
10543 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10544 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10545 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10546 * ctfread.c (struct ctf_psymtab): New.
10547 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10548 ctf_psymtab.
10549 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10550 (create_partial_symtab): Return a ctf_psymtab.
10551 (scan_partial_symbols): Update.
10552
10553 2020-01-26 Tom Tromey <tom@tromey.com>
10554
10555 * xcoffread.c (xcoff_start_psymtab): Use new.
10556 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10557 renamed from start_psymtab_common.
10558 * psympriv.h (struct partial_symtab): Add new constructor.
10559 (start_psymtab_common): Don't declare.
10560 * mdebugread.c (parse_partial_symbols): Use new.
10561 * dwarf2read.c (create_partial_symtab): Use new.
10562 * dbxread.c (start_psymtab): Use new.
10563 * ctfread.c (create_partial_symtab): Use new.
10564
10565 2020-01-26 Tom Tromey <tom@tromey.com>
10566
10567 * xcoffread.c (xcoff_end_psymtab): Use new.
10568 * psymtab.c (start_psymtab_common): Use new.
10569 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10570 Update.
10571 * psympriv.h (struct partial_symtab): Add parameters to
10572 constructor. Don't inline.
10573 (allocate_psymtab): Don't declare.
10574 * mdebugread.c (new_psymtab): Use new.
10575 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10576 * dbxread.c (dbx_end_psymtab): Use new.
10577
10578 2020-01-26 Tom Tromey <tom@tromey.com>
10579
10580 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10581 allocate_psymtab. Update documentation.
10582 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10583 allocate_psymtab. Do not use new.
10584 (allocate_psymtab): Use new. Update.
10585
10586 2020-01-26 Tom Tromey <tom@tromey.com>
10587
10588 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10589 * psymtab.c (psym_print_stats): Update.
10590 * psympriv.h (struct partial_symtab) <readin,
10591 psymtabs_addrmap_supported, anonymous>: Now bool.
10592 * mdebugread.c (psymtab_to_symtab_1): Update.
10593 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10594 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10595 (process_full_comp_unit, process_full_type_unit): Update.
10596 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10597 * ctfread.c (psymtab_to_symtab): Update.
10598
10599 2020-01-26 Tom Tromey <tom@tromey.com>
10600
10601 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10602 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10603 * psymtab.c (psymtab_storage): Delete psymtabs.
10604 (psymtab_storage::allocate_psymtab): Use new.
10605 (psymtab_storage::discard_psymtab): Use delete.
10606 * psympriv.h (struct partial_symtab): Add constructor and
10607 initializers.
10608
10609 2020-01-26 Tom Tromey <tom@tromey.com>
10610
10611 * machoread.c: Do not include psympriv.h.
10612
10613 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10614
10615 * NEWS: Mention the new option and the set/show commands.
10616
10617 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10618
10619 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10620 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10621 (validate_exec_file): New variables, enums, functions.
10622 (exec_file_locate_attach, print_section_info): Style the filenames.
10623 (_initialize_exec): Install show_exec_file_mismatch_command and
10624 set_exec_file_mismatch_command.
10625 * gdbcore.h (validate_exec_file): Declare.
10626 * infcmd.c (attach_command): Call validate_exec_file.
10627 * remote.c ( remote_target::remote_add_inferior): Likewise.
10628
10629 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10630
10631 * frame.c (find_frame_sal): Move call to get_next_frame into more
10632 inner scope.
10633 * inline-frame.c (inilne_state) <inline_state>: Update argument
10634 types.
10635 (inilne_state) <skipped_symbol>: Rename to...
10636 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10637 (skip_inline_frames): Build vector of skipped symbols and use this
10638 to reate the inline_state.
10639 (inline_skipped_symbol): Add a comment and some assertions, fetch
10640 skipped symbol from the list.
10641
10642 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * buildsym.c (lte_is_less_than): Delete.
10645 (buildsym_compunit::end_symtab_with_blockvector): Create local
10646 lambda function to sort line table entries, and use
10647 std::stable_sort instead of std::sort.
10648 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10649 markers when looking for a previous line.
10650
10651 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * dwarf2read.c (lnp_state_machine::record_line): Include
10654 end_sequence parameter in debug print out. Record the line if we
10655 are at an end_sequence marker even if it's not the start of a
10656 statement.
10657 * symmisc.c (maintenance_print_one_line_table): Print end of
10658 sequence markers with 'END' not '0'.
10659
10660 2020-01-24 Pedro Alves <palves@redhat.com>
10661
10662 PR gdb/25410
10663 * thread.c (scoped_restore_current_thread::restore): Use
10664 switch_to_inferior_no_thread.
10665 * exec.c: Include "progspace-and-thread.h".
10666 (add_target_sections, remove_target_sections):
10667 scoped_restore_current_pspace_and_thread instead of
10668 scoped_restore_current_thread.
10669 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10670 and aspace to the inferior before calling clone_program_space.
10671 Remove stale comment.
10672
10673 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10674
10675 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10676 (arm_netbsd_nat_target::fetch_registers): ...this.
10677 (arm_nbsd_nat_target::store_registers): Rename to...
10678 (arm_netbsd_nat_target::store_registers): ...this.
10679
10680 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10681
10682 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10683 register_t.
10684
10685 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10686
10687 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10688 Update comment.
10689 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10690 Likewise.
10691 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10692 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10693 the correct replacement (iterate_over_regset_sections).
10694 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10695 Update comment.
10696
10697 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10698
10699 PR gdb/23718
10700 * gdb/python/python.c (execute_gdb_command): Call
10701 async_enable_stdin in catch block.
10702
10703 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10706 SWITCH_THRU_ALL_UIS.
10707
10708 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 PR tui/9765
10711 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10712 comment, add extra parameter, and update to store previous symbol
10713 when appropriate.
10714 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10715 add extra parameter.
10716 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10717 remove unneeded parameter, add try/catch around gdb_print_insn,
10718 rewrite to add items to asm_lines vector.
10719 (tui_find_backward_disassembly_start_address): New function.
10720 (tui_find_disassembly_address): Updated throughout.
10721 (tui_disasm_window::set_contents): Update for changes to
10722 tui_disassemble.
10723 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10724 number of lines to scroll.
10725
10726 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10727
10728 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10729 (SECT_OFF_DATA): Likewise.
10730 (SECT_OFF_RODATA): Likewise.
10731 (SECT_OFF_TEXT): Likewise.
10732 (SECT_OFF_BSS): Likewise.
10733 (struct objfile) <text_section_offset, data_section_offset>: New
10734 methods.
10735 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10736 objfile::text_section_offset.
10737 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10738 * coffread.c (coff_symtab_read): Likewise.
10739 (enter_linenos): Likewise.
10740 (process_coff_symbol): Likewise.
10741 * ctfread.c (get_objfile_text_range): Likewise.
10742 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10743 Use objfile::data_section_offset.
10744 * dwarf2-frame.c (execute_cfa_program): Use
10745 objfile::text_section_offset.
10746 (dwarf2_frame_find_fde): Likewise.
10747 * dwarf2read.c (create_addrmap_from_index): Likewise.
10748 (create_addrmap_from_aranges): Likewise.
10749 (dw2_find_pc_sect_compunit_symtab): Likewise.
10750 (process_psymtab_comp_unit_reader): Likewise.
10751 (add_partial_symbol): Likewise.
10752 (add_partial_subprogram): Likewise.
10753 (process_full_comp_unit): Likewise.
10754 (read_file_scope): Likewise.
10755 (read_func_scope): Likewise.
10756 (read_lexical_block_scope): Likewise.
10757 (read_call_site_scope): Likewise.
10758 (dwarf2_rnglists_process): Likewise.
10759 (dwarf2_ranges_process): Likewise.
10760 (dwarf2_ranges_read): Likewise.
10761 (dwarf_decode_lines_1): Likewise.
10762 (new_symbol): Likewise.
10763 (dwarf2_fetch_die_loc_sect_off): Likewise.
10764 (dwarf2_per_cu_text_offset): Likewise.
10765 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10766 * hppa-tdep.c (read_unwind_info): Likewise.
10767 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10768 * psympriv.h (struct partial_symtab): Likewise.
10769 * psymtab.c (find_pc_sect_psymtab): Likewise.
10770 * solib-svr4.c (enable_break): Likewise.
10771 * stap-probe.c (relocate_address): Use
10772 objfile::data_section_offset.
10773 * xcoffread.c (enter_line_range): Use
10774 objfile::text_section_offset.
10775 (read_xcoff_symtab): Likewise.
10776
10777 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10778
10779 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10780 declaration to narrower scopes.
10781
10782 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * darwin-nat.h (struct darwin_exception_msg, enum
10785 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10786 Move up.
10787 (class darwin_nat_target) <wait_1, check_new_threads,
10788 decode_exception_message, decode_message, stop_inferior,
10789 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10790 * darwin-nat.c (darwin_check_new_threads): Rename to...
10791 (darwin_nat_target::check_new_threads): ... this.
10792 (darwin_suspend_inferior_it): Remove.
10793 (darwin_decode_exception_message): Rename to...
10794 (darwin_nat_target::decode_exception_message): ... this.
10795 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10796 (darwin_decode_message): Rename to...
10797 (darwin_nat_target::decode_message): ... this.
10798 (cancel_breakpoint): Rename to...
10799 (darwin_nat_target::cancel_breakpoint): ... this.
10800 (darwin_wait): Rename to...
10801 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10802 instead of iterate_over_inferiors.
10803 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10804 (darwin_stop_inferior): Rename to...
10805 (darwin_nat_target::stop_inferior): ... this.
10806 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10807 (darwin_init_thread_list): Rename to...
10808 (darwin_nat_target::init_thread_list): ... this.
10809 (darwin_ptrace_him): Rename to...
10810 (darwin_nat_target::ptrace_him): ... this.
10811 (darwin_nat_target::create_inferior): Pass lambda function to
10812 fork_inferior.
10813 (darwin_nat_target::detach): Call stop_inferior instead of
10814 darwin_stop_inferior.
10815 * fork-inferior.h (fork_inferior): Change init_trace_fun
10816 parameter to gdb::function_view.
10817 * fork-inferior.c (fork_inferior): Likewise.
10818
10819 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10820
10821 * i386-cygwin-tdep.c (core_process_module_section): Update.
10822 * windows-nat.c (struct lm_info_windows): Add text_offset.
10823 (windows_xfer_shared_libraries): Update.
10824 * windows-tdep.c (windows_xfer_shared_library):
10825 Add text_offset_cached argument.
10826 * windows-tdep.h (windows_xfer_shared_library): Update.
10827
10828 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10831
10832 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10833
10834 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10835 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10836 replace with range-based for.
10837 (gdbsim_interrupt_inferior): Remove.
10838 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10839 with a range-based for. Inline code from
10840 gdbsim_interrupt_inferior.
10841
10842 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * infrun.c (proceed): Fix indentation.
10845
10846 2020-01-21 Tom Tromey <tromey@adacore.com>
10847
10848 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10849 * python/python.c (python_extension_ops): Update.
10850 (gdbpy_colorize): New function.
10851 * python/lib/gdb/__init__.py (colorize): New function.
10852 * extension.h (ext_lang_colorize): Declare.
10853 * extension.c (ext_lang_colorize): New function.
10854 * extension-priv.h (struct extension_language_ops) <colorize>: New
10855 member.
10856 * cli/cli-style.c (_initialize_cli_style): Update help text.
10857
10858 2020-01-21 Luis Machado <luis.machado@linaro.org>
10859
10860 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10861 <cond>: Change type to bool.
10862 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10863 (aarch64_displaced_step_cb): Likewise.
10864 (aarch64_displaced_step_tb): Likewise.
10865
10866 2020-01-21 Luis Machado <luis.machado@linaro.org>
10867
10868 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10869 output.
10870
10871 2020-01-21 Luis Machado <luis.machado@linaro.org>
10872
10873 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10874 <pc_adjust>: Adjust the documentation.
10875 (aarch64_displaced_step_fixup): Check if PC really moved before
10876 adjusting it.
10877
10878 2020-01-19 Tom Tromey <tom@tromey.com>
10879
10880 * disasm.c (~gdb_disassembler): New destructor.
10881 (gdb_buffered_insn_length): Call disassemble_free_target.
10882 * disasm.h (class gdb_disassembler): Declare destructor. Use
10883 DISABLE_COPY_AND_ASSIGN.
10884
10885 2020-01-19 Tom Tromey <tom@tromey.com>
10886
10887 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10888 (die_reader_func_ftype): Remove.
10889 (cutu_reader): New class.
10890 (dw2_get_file_names_reader): Remove "data" parameter.
10891 (dw2_get_file_names): Use cutu_reader.
10892 (create_debug_type_hash_table): Update.
10893 (read_cutu_die_from_dwo): Update comment.
10894 (lookup_dwo_unit): Add dwo_name parameter.
10895 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10896 die_reader_func_ftype and data parameters.
10897 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10898 Remove die_reader_func_ftype and data parameters.
10899 (~cutu_reader): New; from init_cutu_and_read_dies.
10900 (cutu_reader::cutu_reader): Rename from
10901 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10902 and data parameters.
10903 (init_cutu_and_read_dies_simple): Remove.
10904 (struct process_psymtab_comp_unit_data): Remove.
10905 (process_psymtab_comp_unit_reader): Remove data parameter; add
10906 want_partial_unit and pretend_language parameters.
10907 (process_psymtab_comp_unit): Use cutu_reader.
10908 (build_type_psymtabs_reader): Remove data parameter.
10909 (build_type_psymtabs_1): Use cutu_reader.
10910 (process_skeletonless_type_unit): Likewise.
10911 (load_partial_comp_unit_reader): Remove.
10912 (load_partial_comp_unit): Use cutu_reader.
10913 (load_full_comp_unit_reader): Remove.
10914 (load_full_comp_unit): Use cutu_reader.
10915 (struct create_dwo_cu_data): Remove.
10916 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10917 dwo_unit parameters.
10918 (create_cus_hash_table): Use cutu_reader.
10919 (struct dwarf2_read_addr_index_data): Remove.
10920 (dwarf2_read_addr_index_reader): Remove.
10921 (dwarf2_read_addr_index): Use cutu_reader.
10922 (read_signatured_type_reader): Remove.
10923 (read_signatured_type): Use cutu_reader.
10924
10925 2020-01-19 Tom Tromey <tom@tromey.com>
10926
10927 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10928 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10929 (tui_wrefresh): Declare.
10930 * tui/tui-wingeneral.c (suppress_output): New global.
10931 (tui_suppress_output, ~tui_suppress_output): New constructor and
10932 destructor.
10933 (tui_wrefresh): New function.
10934 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10935 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10936 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10937 method.
10938 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10939 tui_wrefresh.
10940 (tui_data_window::no_refresh): New method.
10941 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10942 (tui_reg_command): Use tui_suppress_output
10943 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10944 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10945 method.
10946 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10947
10948 2020-01-19 Tom Tromey <tom@tromey.com>
10949
10950 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10951 Handle case where symtab is null.
10952
10953 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10954
10955 * linux-fork.c (one_fork_p): Simplify.
10956
10957 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10958
10959 * top.c (struct qt_args): Remove.
10960 (kill_or_detach): Change return type to void, replace `void *`
10961 parameter with a proper one.
10962 (print_inferior_quit_action): Likewise.
10963 (quit_confirm): Use range-based for loop to iterate over inferiors.
10964 (quit_force): Likewise.
10965
10966 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10969 `void *` parameter with proper parameters.
10970 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10971 (print_one_inferior): Change return type to void, replace `void *`
10972 parameter with proper parameters.
10973 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10974 inferiors.
10975 (get_other_inferior): Remove.
10976 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10977 inferiors.
10978
10979 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10980
10981 * mi/mi-interp.c (report_initial_inferior): Remove.
10982 (mi_interp::init): Use range-based for to iterate over inferiors.
10983
10984 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10985
10986 * python/py-inferior.c (build_inferior_list): Remove.
10987 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10988
10989 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10990
10991 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10992 (btrace_stitch_trace): Likewise.
10993 * charset.c (intermediate_encoding): Likewise (vaild).
10994 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10995 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10996 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10997
10998 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10999
11000 * windows-tdep.c (windows_get_tlb_type):
11001 Add rtl_user_process_parameters type.
11002
11003 2020-01-16 Pedro Alves <palves@redhat.com>
11004 Norbert Lange <nolange79@gmail.com>
11005
11006 PR build/24805
11007 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11008 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11009 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11010 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11011 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11012 (ps_plog): Redeclare exported functions with default visibility.
11013
11014 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11015
11016 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11017 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11018
11019 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * infcmd.c (post_create_inferior): Use get_thread_regcache
11022 instead of get_current_regcache.
11023
11024 2020-01-14 Tom Tromey <tom@tromey.com>
11025
11026 PR symtab/12535:
11027 * python/python.c (gdbpy_decode_line): Treat empty string the same
11028 as no argument.
11029
11030 2020-01-14 Tom Tromey <tom@tromey.com>
11031
11032 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11033
11034 2020-01-14 Tom Tromey <tom@tromey.com>
11035
11036 * nat/linux-btrace.c: Don't include <config.h>.
11037 * nat/linux-ptrace.c: Don't include <config.h>.
11038 * nat/x86-linux-dregs.c: Don't include <config.h>.
11039
11040 2020-01-14 Tom Tromey <tom@tromey.com>
11041
11042 * configure: Rebuild.
11043 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11044
11045 2020-01-14 Tom Tromey <tom@tromey.com>
11046
11047 * nat/x86-linux-dregs.c: Include configh.h.
11048 * nat/linux-ptrace.c: Include configh.h.
11049 * nat/linux-btrace.c: Include configh.h.
11050 * defs.h: Include config.h, bfd.h.
11051 * configure.ac: Don't source common.host.
11052 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11053 * configure: Rebuild.
11054 * acinclude.m4: Update path.
11055 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11056 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11057 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11058 (CLIBS): Add LIBSUPPORT.
11059 (CDEPS): Likewise.
11060 (COMMON_SFILES): Remove gdbsupport files.
11061 (HFILES_NO_SRCDIR): Likewise.
11062 (stamp-version): Update path to create-version.sh.
11063 (ALLDEPFILES): Remove gdbsupport files.
11064
11065 2020-01-14 Tom Tromey <tom@tromey.com>
11066
11067 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11068 USE_WIN32API when needed.
11069 * configure.ac (USE_WIN32API): Don't define.
11070 (WIN32LIBS): Use WIN32APILIBS.
11071 * configure: Rebuild.
11072
11073 2020-01-14 Tom Tromey <tom@tromey.com>
11074
11075 * configure: Rebuild.
11076 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11077
11078 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11079
11080 * skip.c (skip_function_command): Make skip w/o arguments use the
11081 name of the inlined function if pc is inside any inlined function.
11082
11083 2020-01-14 Luis Machado <luis.machado@linaro.org>
11084
11085 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11086 * infrun.c (resume_1): Likewise.
11087 (handle_inferior_event): Remove stale comment.
11088 * linux-nat.c (linux_nat_target::resume): Update comments.
11089 (save_stop_reason): Likewise.
11090 (linux_nat_filter_event): Likewise.
11091 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11092
11093 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11094
11095 * elfread.c (record_minimal_symbol): Set section index to 0 for
11096 non-allocatable sections.
11097
11098
11099 2020-01-13 Ali Tamur <tamur@google.com>
11100
11101 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11102 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11103 to gdb::optional. Update comments.
11104 (dwo_file): Update comments.
11105 (read_attribute): Update API to take an additional out parameter,
11106 need_reprocess. This is used to mark attributes that need other
11107 attributes (e.g. str_offsets_base) for correct computation which may not
11108 have been read yet.
11109 (read_attribute_reprocess): New function declaration.
11110 (read_addr_index): Likewise.
11111 (read_dwo_str_index): Likewise.
11112 (read_stub_str_index): Likewise.
11113 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11114 (lookup_addr_base): New function definition.
11115 (lookup_ranges_base): Likewise.
11116 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11117 lookup_ranges_base.
11118 (init_cutu_and_read_dies): Update comments.
11119 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11120 unit. This is used to inherit parent's str_offsets_base and addr_base.
11121 Update comments.
11122 (init_cutu_and_read_dies_simple): Reflect API changes.
11123 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11124 (create_cus_hash_table): Change API to take parent compile unit.
11125 Reflect API changes.
11126 (open_and_init_dwo_file): Reflect API changes.
11127 (dwarf2_get_pc_bounds): Update comments.
11128 (dwarf2_record_block_ranges): Likewise.
11129 (read_full_die_1): Change implementation to reprocess attributes that
11130 need str_offsets_base and addr_base.
11131 (partial_die_info::read): Likewise.
11132 (read_attribute_reprocess): New function definition.
11133 (read_attribute_value): Change API to take an additional out parameter,
11134 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11135 when a non-dwo compile unit has index based attributes.
11136 (read_attribute): Reflect API changes.
11137 (read_addr_index_1): Reflect API changes. Update comments.
11138 (dwarf2_read_addr_index_data): Reflect API changes.
11139 (dwarf2_read_addr_index): Likewise.
11140 (read_str_index): Change API and implementation. This becomes a helper
11141 to be used by the new string index related methods. Update error
11142 message and comments.
11143 (read_dwo_str_index): New function definition.
11144 (read_stub_str_index): Likewise.
11145 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11146 * symfile.h (dwarf2_debug_sections): Likewise.
11147 * xcoffread.c (dwarf2_debug_sections): Likewise.
11148
11149 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11150
11151 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11152 core_reg_sect type to gdb_byte *.
11153 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11154 * cris-tdep.c (fetch_core_registers): Likewise.
11155 * corelow.c (core_target::get_core_register_section): Change
11156 type of `contents` to gdb::byte_vector.
11157
11158 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11159
11160 * tui/tui-wingeneral.c (box_win): Position the title in the center
11161 of the border.
11162
11163 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11164
11165 * corelow.c (core_target::get_core_register_section): Use
11166 std::vector instead of alloca.
11167
11168 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11169
11170 * warning.m4: Add -Wmissing-declarations to build_warnings.
11171 * configure: Re-generate.
11172
11173 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11174
11175 * python/python.c (init__gdb_module): Add declaration.
11176
11177 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11178
11179 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11180 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11181 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11182 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11183 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11184 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11185 * ada-exp.y (_initialize_ada_exp): Add declaration.
11186 * ada-lang.c (_initialize_ada_language): Add declaration.
11187 * ada-tasks.c (_initialize_tasks): Add declaration.
11188 * agent.c (_initialize_agent): Add declaration.
11189 * aix-thread.c (_initialize_aix_thread): Add declaration.
11190 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11191 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11192 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11193 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11194 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11195 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11196 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11197 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11198 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11199 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11200 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11201 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11202 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11203 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11204 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11205 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11206 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11207 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11208 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11209 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11210 * annotate.c (_initialize_annotate): Add declaration.
11211 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11212 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11213 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11214 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11215 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11216 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11217 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11218 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11219 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11220 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11221 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11222 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11223 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11224 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11225 * auto-load.c (_initialize_auto_load): Add declaration.
11226 * auxv.c (_initialize_auxv): Add declaration.
11227 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11228 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11229 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11230 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11231 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11232 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11233 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11234 * breakpoint.c (_initialize_breakpoint): Add declaration.
11235 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11236 * btrace.c (_initialize_btrace): Add declaration.
11237 * charset.c (_initialize_charset): Add declaration.
11238 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11239 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11240 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11241 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11242 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11243 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11244 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11245 * coffread.c (_initialize_coffread): Add declaration.
11246 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11247 * compile/compile.c (_initialize_compile): Add declaration.
11248 * complaints.c (_initialize_complaints): Add declaration.
11249 * completer.c (_initialize_completer): Add declaration.
11250 * copying.c (_initialize_copying): Add declaration.
11251 * corefile.c (_initialize_core): Add declaration.
11252 * corelow.c (_initialize_corelow): Add declaration.
11253 * cp-abi.c (_initialize_cp_abi): Add declaration.
11254 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11255 * cp-support.c (_initialize_cp_support): Add declaration.
11256 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11257 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11258 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11259 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11260 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11261 * ctfread.c (_initialize_ctfread): Add declaration.
11262 * d-lang.c (_initialize_d_language): Add declaration.
11263 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11264 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11265 * dbxread.c (_initialize_dbxread): Add declaration.
11266 * dcache.c (_initialize_dcache): Add declaration.
11267 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11268 * disasm.c (_initialize_disasm): Add declaration.
11269 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11270 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11271 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11272 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11273 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11274 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11275 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11276 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11277 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11278 * elfread.c (_initialize_elfread): Add declaration.
11279 * exec.c (_initialize_exec): Add declaration.
11280 * extension.c (_initialize_extension): Add declaration.
11281 * f-lang.c (_initialize_f_language): Add declaration.
11282 * f-valprint.c (_initialize_f_valprint): Add declaration.
11283 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11284 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11285 * filesystem.c (_initialize_filesystem): Add declaration.
11286 * findcmd.c (_initialize_mem_search): Add declaration.
11287 * findvar.c (_initialize_findvar): Add declaration.
11288 * fork-child.c (_initialize_fork_child): Add declaration.
11289 * frame-base.c (_initialize_frame_base): Add declaration.
11290 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11291 * frame.c (_initialize_frame): Add declaration.
11292 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11293 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11294 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11295 * gcore.c (_initialize_gcore): Add declaration.
11296 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11297 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11298 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11299 * gdbarch.c (_initialize_gdbarch): Add declaration.
11300 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11301 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11302 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11303 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11304 * go-lang.c (_initialize_go_language): Add declaration.
11305 * go32-nat.c (_initialize_go32_nat): Add declaration.
11306 * guile/guile.c (_initialize_guile): Add declaration.
11307 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11308 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11309 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11310 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11311 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11312 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11313 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11314 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11315 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11316 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11317 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11318 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11319 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11320 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11321 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11322 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11323 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11324 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11325 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11326 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11327 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11328 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11329 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11330 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11331 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11332 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11333 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11334 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11335 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11336 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11337 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11338 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11339 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11340 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11341 * infcall.c (_initialize_infcall): Add declaration.
11342 * infcmd.c (_initialize_infcmd): Add declaration.
11343 * inflow.c (_initialize_inflow): Add declaration.
11344 * infrun.c (_initialize_infrun): Add declaration.
11345 * interps.c (_initialize_interpreter): Add declaration.
11346 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11347 * jit.c (_initialize_jit): Add declaration.
11348 * language.c (_initialize_language): Add declaration.
11349 * linux-fork.c (_initialize_linux_fork): Add declaration.
11350 * linux-nat.c (_initialize_linux_nat): Add declaration.
11351 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11352 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11353 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11354 * m2-lang.c (_initialize_m2_language): Add declaration.
11355 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11356 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11357 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11358 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11359 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11360 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11361 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11362 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11363 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11364 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11365 * machoread.c (_initialize_machoread): Add declaration.
11366 * macrocmd.c (_initialize_macrocmd): Add declaration.
11367 * macroscope.c (_initialize_macroscope): Add declaration.
11368 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11369 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11370 * maint.c (_initialize_maint_cmds): Add declaration.
11371 * mdebugread.c (_initialize_mdebugread): Add declaration.
11372 * memattr.c (_initialize_mem): Add declaration.
11373 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11374 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11375 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11376 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11377 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11378 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11379 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11380 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11381 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11382 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11383 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11384 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11385 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11386 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11387 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11388 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11389 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11390 * mipsread.c (_initialize_mipsread): Add declaration.
11391 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11392 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11393 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11394 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11395 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11396 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11397 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11398 * nto-procfs.c (_initialize_procfs): Add declaration.
11399 * objc-lang.c (_initialize_objc_language): Add declaration.
11400 * observable.c (_initialize_observer): Add declaration.
11401 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11402 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11403 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11404 * osabi.c (_initialize_gdb_osabi): Add declaration.
11405 * osdata.c (_initialize_osdata): Add declaration.
11406 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11407 * parse.c (_initialize_parse): Add declaration.
11408 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11409 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11410 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11411 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11412 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11413 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11414 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11415 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11416 * printcmd.c (_initialize_printcmd): Add declaration.
11417 * probe.c (_initialize_probe): Add declaration.
11418 * proc-api.c (_initialize_proc_api): Add declaration.
11419 * proc-events.c (_initialize_proc_events): Add declaration.
11420 * proc-service.c (_initialize_proc_service): Add declaration.
11421 * procfs.c (_initialize_procfs): Add declaration.
11422 * producer.c (_initialize_producer): Add declaration.
11423 * psymtab.c (_initialize_psymtab): Add declaration.
11424 * python/python.c (_initialize_python): Add declaration.
11425 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11426 * record-btrace.c (_initialize_record_btrace): Add declaration.
11427 * record-full.c (_initialize_record_full): Add declaration.
11428 * record.c (_initialize_record): Add declaration.
11429 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11430 * regcache.c (_initialize_regcache): Add declaration.
11431 * reggroups.c (_initialize_reggroup): Add declaration.
11432 * remote-notif.c (_initialize_notif): Add declaration.
11433 * remote-sim.c (_initialize_remote_sim): Add declaration.
11434 * remote.c (_initialize_remote): Add declaration.
11435 * reverse.c (_initialize_reverse): Add declaration.
11436 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11437 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11438 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11439 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11440 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11441 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11442 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11443 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11444 Add declaration.
11445 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11446 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11447 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11448 * rust-exp.y (_initialize_rust_exp): Add declaration.
11449 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11450 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11451 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11452 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11453 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11454 * score-tdep.c (_initialize_score_tdep): Add declaration.
11455 * ser-go32.c (_initialize_ser_dos): Add declaration.
11456 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11457 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11458 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11459 * ser-uds.c (_initialize_ser_socket): Add declaration.
11460 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11461 * serial.c (_initialize_serial): Add declaration.
11462 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11463 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11464 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11465 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11466 * skip.c (_initialize_step_skip): Add declaration.
11467 * sol-thread.c (_initialize_sol_thread): Add declaration.
11468 * solib-aix.c (_initialize_solib_aix): Add declaration.
11469 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11470 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11471 * solib-frv.c (_initialize_frv_solib): Add declaration.
11472 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11473 * solib-target.c (_initialize_solib_target): Add declaration.
11474 * solib.c (_initialize_solib): Add declaration.
11475 * source-cache.c (_initialize_source_cache): Add declaration.
11476 * source.c (_initialize_source): Add declaration.
11477 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11478 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11479 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11480 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11481 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11482 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11483 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11484 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11485 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11486 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11487 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11488 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11489 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11490 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11491 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11492 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11493 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11494 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11495 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11496 * stabsread.c (_initialize_stabsread): Add declaration.
11497 * stack.c (_initialize_stack): Add declaration.
11498 * stap-probe.c (_initialize_stap_probe): Add declaration.
11499 * std-regs.c (_initialize_frame_reg): Add declaration.
11500 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11501 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11502 * symfile.c (_initialize_symfile): Add declaration.
11503 * symmisc.c (_initialize_symmisc): Add declaration.
11504 * symtab.c (_initialize_symtab): Add declaration.
11505 * target.c (_initialize_target): Add declaration.
11506 * target-connection.c (_initialize_target_connection): Add
11507 declaration.
11508 * target-dcache.c (_initialize_target_dcache): Add declaration.
11509 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11510 * thread.c (_initialize_thread): Add declaration.
11511 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11512 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11513 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11514 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11515 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11516 * tracectf.c (_initialize_ctf): Add declaration.
11517 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11518 * tracefile.c (_initialize_tracefile): Add declaration.
11519 * tracepoint.c (_initialize_tracepoint): Add declaration.
11520 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11521 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11522 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11523 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11524 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11525 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11526 * tui/tui.c (_initialize_tui): Add declaration.
11527 * typeprint.c (_initialize_typeprint): Add declaration.
11528 * ui-style.c (_initialize_ui_style): Add declaration.
11529 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11530 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11531 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11532 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11533 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11534 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11535 * unittests/filtered_iterator-selftests.c
11536 (_initialize_filtered_iterator_selftests): Add declaration.
11537 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11538 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11539 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11540 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11541 * unittests/main-thread-selftests.c
11542 (_initialize_main_thread_selftests): Add declaration.
11543 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11544 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11545 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11546 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11547 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11548 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11549 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11550 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11551 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11552 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11553 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11554 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11555 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11556 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11557 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11558 declaration.
11559 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11560 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11561 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11562 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11563 * user-regs.c (_initialize_user_regs): Add declaration.
11564 * utils.c (_initialize_utils): Add declaration.
11565 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11566 * valops.c (_initialize_valops): Add declaration.
11567 * valprint.c (_initialize_valprint): Add declaration.
11568 * value.c (_initialize_values): Add declaration.
11569 * varobj.c (_initialize_varobj): Add declaration.
11570 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11571 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11572 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11573 * windows-nat.c (_initialize_windows_nat): Add declaration.
11574 (_initialize_check_for_gdb_ini): Add declaration.
11575 (_initialize_loadable): Add declaration.
11576 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11577 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11578 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11579 * xcoffread.c (_initialize_xcoffread): Add declaration.
11580 * xml-support.c (_initialize_xml_support): Add declaration.
11581 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11582 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11583 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11584 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11585
11586 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11587
11588 * regformats/regdat.sh: Generate declaration for init function.
11589
11590 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11591
11592 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11593 up.
11594 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11595 close_one_inferior>: New methods.
11596 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11597 pass down target to find_inferior_pid.
11598 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11599 Pass down target to find_inferior_ptid.
11600 (gdbsim_target::create_inferior): Pass down target to
11601 add_thread_silent.
11602 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11603 target down to find_inferior_ptid and switch_to_thread.
11604 (gdbsim_target::close): Update to call close_one_inferior.
11605 (struct resume_data): Remove.
11606 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11607 directly, rather than through a void pointer.
11608 (gdbsim_target::resume): Update to call resume_one_inferior.
11609
11610 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11611
11612 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11613
11614 2020-01-12 Pedro Alves <palves@redhat.com>
11615
11616 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11617 directly for the current inferior instead of
11618 discard_all_inferiors.
11619 (discard_all_inferiors): Delete.
11620
11621 2020-01-11 Tom Tromey <tom@tromey.com>
11622
11623 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11624 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11625 deprecated_safe_get_selected_frame.
11626
11627 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11628
11629 * inferior.c (print_inferior): Switch inferior before printing it.
11630
11631 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11632 Pedro Alves <palves@redhat.com>
11633
11634 * progspace-and-thread.c (switch_to_program_space_and_thread):
11635 Assert there's an inferior for PSPACE. Use
11636 switch_to_inferior_no_thread to switch the inferior too.
11637 * progspace.c (program_space::~program_space): Call
11638 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11639 (program_space::free_all_objfiles): Don't call clear_symtab_users
11640 here.
11641 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11642
11643 2020-01-10 Pedro Alves <palves@redhat.com>
11644
11645 * NEWS: Mention multi-target debugging, "info connections", and
11646 "add-inferior -no-connection".
11647
11648 2020-01-10 Pedro Alves <palves@redhat.com>
11649
11650 * infrun.c: Include "target-connection.h".
11651 (check_multi_target_resumption): New.
11652 (proceed): Call it.
11653 * target-connection.c (make_target_connection_string): Make
11654 extern.
11655 * target-connection.h (make_target_connection_string): Declare.
11656
11657 2020-01-10 Pedro Alves <palves@redhat.com>
11658
11659 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11660 * inferior.c (uiout_field_connection): New function.
11661 (print_inferior): Add new "connection-id" column.
11662 (add_inferior_command): Show connection number/string of added
11663 inferior.
11664 * process-stratum-target.h
11665 (process_stratum_target::connection_string): New virtual method.
11666 (process_stratum_target::connection_number): New field.
11667 * remote.c (remote_target::connection_string): New override.
11668 * target-connection.c: New file.
11669 * target-connection.h: New file.
11670 * target.c (decref_target): Remove process_stratum targets from
11671 the connection list.
11672 (target_stack::push): Add process_stratum targets to the
11673 connection list.
11674
11675 2020-01-10 Pedro Alves <palves@redhat.com>
11676
11677 Revert:
11678 2016-04-12 Pedro Alves <palves@redhat.com>
11679 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11680 Remove references to name.
11681 * serial.h (struct serial) <name>: Delete.
11682
11683 2020-01-10 Pedro Alves <palves@redhat.com>
11684
11685 * gdbarch-selftests.c (register_to_value_test): Remove "target
11686 already pushed" check.
11687
11688 2020-01-10 Pedro Alves <palves@redhat.com>
11689 John Baldwin <jhb@FreeBSD.org>
11690
11691 * aarch64-linux-nat.c
11692 (aarch64_linux_nat_target::thread_architecture): Adjust.
11693 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11694 (task_command_1): Likewise.
11695 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11696 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11697 (aix_thread_target::store_registers)
11698 (aix_thread_target::thread_alive): Adjust.
11699 * amd64-fbsd-tdep.c: Include "inferior.h".
11700 (amd64fbsd_get_thread_local_address): Pass down target.
11701 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11702 thread's gdbarch instead of target_gdbarch.
11703 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11704 get_last_target_status.
11705 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11706 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11707 inferiors.
11708 (update_inserted_breakpoint_locations): Skip if inferiors with no
11709 execution.
11710 (update_global_location_list): When handling moribund locations,
11711 find representative inferior for location's pspace, and use thread
11712 count of its process_stratum target.
11713 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11714 * bsd-uthread.c (bsd_uthread_target::wait): Use
11715 as_process_stratum_target and adjust thread_change_ptid and
11716 add_thread calls.
11717 (bsd_uthread_target::update_thread_list): Use
11718 as_process_stratum_target and adjust find_thread_ptid,
11719 thread_change_ptid and add_thread calls.
11720 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11721 find_thread_ptid call.
11722 * corelow.c (add_to_thread_list): Adjust add_thread call.
11723 (core_target_open): Adjust add_thread_silent and thread_count
11724 calls.
11725 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11726 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11727 * event-top.c (async_disconnect): Pop targets from all inferiors.
11728 * exec.c (add_target_sections): Push exec target on all inferiors
11729 sharing the program space.
11730 (remove_target_sections): Remove the exec target from all
11731 inferiors sharing the program space.
11732 (exec_on_vfork): New.
11733 * exec.h (exec_on_vfork): Declare.
11734 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11735 Pass it down.
11736 (fbsd_nat_target::update_thread_list): Adjust.
11737 (fbsd_nat_target::resume): Adjust.
11738 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11739 down.
11740 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11741 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11742 get_thread_arch_regcache call.
11743 * fork-child.c (gdb_startup_inferior): Pass target down to
11744 startup_inferior and set_executing.
11745 * gdbthread.h (struct process_stratum_target): Forward declare.
11746 (add_thread, add_thread_silent, add_thread_with_info)
11747 (in_thread_list): Add process_stratum_target parameter.
11748 (find_thread_ptid(inferior*, ptid_t)): New overload.
11749 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11750 parameter.
11751 (all_threads()): Delete overload.
11752 (all_threads, all_non_exited_threads): Add process_stratum_target
11753 parameter.
11754 (all_threads_safe): Use brace initialization.
11755 (thread_count): Add process_stratum_target parameter.
11756 (set_resumed, set_running, set_stop_requested, set_executing)
11757 (threads_are_executing, finish_thread_state): Add
11758 process_stratum_target parameter.
11759 (switch_to_thread): Use is_current_thread.
11760 * i386-fbsd-tdep.c: Include "inferior.h".
11761 (i386fbsd_get_thread_local_address): Pass down target.
11762 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11763 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11764 have_inferiors check.
11765 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11766 (inf_ptrace_target::attach): Adjust.
11767 * infcall.c (run_inferior_call): Adjust.
11768 * infcmd.c (run_command_1): Pass target to
11769 scoped_finish_thread_state.
11770 (proceed_thread_callback): Skip inferiors with no execution.
11771 (continue_command): Rename 'all_threads' local to avoid hiding
11772 'all_threads' function. Adjust get_last_target_status call.
11773 (prepare_one_step): Adjust set_running call.
11774 (signal_command): Use user_visible_resume_target. Compare thread
11775 pointers instead of inferior_ptid.
11776 (info_program_command): Adjust to pass down target.
11777 (attach_command): Mark target's 'thread_executing' flag.
11778 (stop_current_target_threads_ns): New, factored out from ...
11779 (interrupt_target_1): ... this. Switch inferior before making
11780 target calls.
11781 * inferior-iter.h
11782 (struct all_inferiors_iterator, struct all_inferiors_range)
11783 (struct all_inferiors_safe_range)
11784 (struct all_non_exited_inferiors_range): Filter on
11785 process_stratum_target too. Remove explicit.
11786 * inferior.c (inferior::inferior): Push dummy target on target
11787 stack.
11788 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11789 Add process_stratum_target parameter, and pass it down.
11790 (have_live_inferiors): Adjust.
11791 (switch_to_inferior_and_push_target): New.
11792 (add_inferior_command, clone_inferior_command): Handle
11793 "-no-connection" parameter. Use
11794 switch_to_inferior_and_push_target.
11795 (_initialize_inferior): Mention "-no-connection" option in
11796 the help of "add-inferior" and "clone-inferior" commands.
11797 * inferior.h: Include "process-stratum-target.h".
11798 (interrupt_target_1): Use bool.
11799 (struct inferior) <push_target, unpush_target, target_is_pushed,
11800 find_target_beneath, top_target, process_target, target_at,
11801 m_stack>: New.
11802 (discard_all_inferiors): Delete.
11803 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11804 (all_inferiors, all_non_exited_inferiors): Add
11805 process_stratum_target parameter.
11806 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11807 (target_last_proc_target): New global.
11808 (follow_fork_inferior): Push target on new inferior. Pass target
11809 to add_thread_silent. Call exec_on_vfork. Handle target's
11810 reference count.
11811 (follow_fork): Adjust get_last_target_status call. Also consider
11812 target.
11813 (follow_exec): Push target on new inferior.
11814 (struct execution_control_state) <target>: New field.
11815 (user_visible_resume_target): New.
11816 (do_target_resume): Call target_async.
11817 (resume_1): Set target's threads_executing flag. Consider resume
11818 target.
11819 (commit_resume_all_targets): New.
11820 (proceed): Also consider resume target. Skip threads of inferiors
11821 with no execution. Commit resumtion in all targets.
11822 (start_remote): Pass current inferior to wait_for_inferior.
11823 (infrun_thread_stop_requested): Consider target as well. Pass
11824 thread_info pointer to clear_inline_frame_state instead of ptid.
11825 (infrun_thread_thread_exit): Consider target as well.
11826 (random_pending_event_thread): New inferior parameter. Use it.
11827 (do_target_wait): Rename to ...
11828 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11829 down.
11830 (threads_are_resumed_pending_p, do_target_wait): New.
11831 (prepare_for_detach): Adjust calls.
11832 (wait_for_inferior): New inferior parameter. Handle it. Use
11833 do_target_wait_1 instead of do_target_wait.
11834 (fetch_inferior_event): Adjust. Switch to representative
11835 inferior. Pass target down.
11836 (set_last_target_status): Add process_stratum_target parameter.
11837 Save target in global.
11838 (get_last_target_status): Add process_stratum_target parameter and
11839 handle it.
11840 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11841 (context_switch): Check inferior_ptid == null_ptid before calling
11842 inferior_thread().
11843 (get_inferior_stop_soon): Pass down target.
11844 (wait_one): Rename to ...
11845 (poll_one_curr_target): ... this.
11846 (struct wait_one_event): New.
11847 (wait_one): New.
11848 (stop_all_threads): Adjust.
11849 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11850 event's target.
11851 (switch_back_to_stepped_thread): Also consider target.
11852 (print_stop_event): Update.
11853 (normal_stop): Update. Also consider the resume target.
11854 * infrun.h (wait_for_inferior): Remove declaration.
11855 (user_visible_resume_target): New declaration.
11856 (get_last_target_status, set_last_target_status): New
11857 process_stratum_target parameter.
11858 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11859 process_stratum_target parameter, and use it.
11860 (clear_inline_frame_state (thread_info*)): New.
11861 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11862 process_stratum_target parameter.
11863 (clear_inline_frame_state (thread_info*)): Declare.
11864 * linux-fork.c (delete_checkpoint_command): Pass target down to
11865 find_thread_ptid.
11866 (checkpoint_command): Adjust.
11867 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11868 instead of just tweaking inferior_ptid.
11869 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11870 (exit_lwp): Pass target down to find_thread_ptid.
11871 (attach_proc_task_lwp_callback): Pass target down to
11872 add_thread/set_running/set_executing.
11873 (linux_nat_target::attach): Pass target down to
11874 thread_change_ptid.
11875 (get_detach_signal): Pass target down to find_thread_ptid.
11876 Consider last target status's target.
11877 (linux_resume_one_lwp_throw, resume_lwp)
11878 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11879 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11880 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11881 (linux_nat_target::async_wait_fd): New.
11882 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11883 target down.
11884 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11885 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11886 * linux-thread-db.c (struct thread_db_info::process_target): New
11887 field.
11888 (add_thread_db_info): Save target.
11889 (get_thread_db_info): New process_stratum_target parameter. Also
11890 match target.
11891 (delete_thread_db_info): New process_stratum_target parameter.
11892 Also match target.
11893 (thread_from_lwp): Adjust to pass down target.
11894 (thread_db_notice_clone): Pass down target.
11895 (check_thread_db_callback): Pass down target.
11896 (try_thread_db_load_1): Always push the thread_db target.
11897 (try_thread_db_load, record_thread): Pass target down.
11898 (thread_db_target::detach): Pass target down. Always unpush the
11899 thread_db target.
11900 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11901 target down. Always unpush the thread_db target.
11902 (find_new_threads_callback, thread_db_find_new_threads_2)
11903 (thread_db_target::update_thread_list): Pass target down.
11904 (thread_db_target::pid_to_str): Pass current inferior down.
11905 (thread_db_target::get_thread_local_address): Pass target down.
11906 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11907 target down.
11908 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11909 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11910 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11911 (procfs_init_inferior): Rename to ...
11912 (procfs_target::procfs_init_inferior): ... this and adjust.
11913 (procfs_target::create_inferior, procfs_notice_thread)
11914 (procfs_do_thread_registers): Adjust.
11915 * ppc-fbsd-tdep.c: Include "inferior.h".
11916 (ppcfbsd_get_thread_local_address): Pass down target.
11917 * proc-service.c (ps_xfer_memory): Switch current inferior and
11918 program space as well.
11919 (get_ps_regcache): Pass target down.
11920 * process-stratum-target.c
11921 (process_stratum_target::thread_address_space)
11922 (process_stratum_target::thread_architecture): Pass target down.
11923 * process-stratum-target.h
11924 (process_stratum_target::threads_executing): New field.
11925 (as_process_stratum_target): New.
11926 * ravenscar-thread.c
11927 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11928 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11929 down.
11930 * record-btrace.c (record_btrace_target::info_record): Adjust.
11931 (record_btrace_target::record_method)
11932 (record_btrace_target::record_is_replaying)
11933 (record_btrace_target::fetch_registers)
11934 (get_thread_current_frame_id, record_btrace_target::resume)
11935 (record_btrace_target::wait, record_btrace_target::stop): Pass
11936 target down.
11937 * record-full.c (record_full_wait_1): Switch to event thread.
11938 Pass target down.
11939 * regcache.c (regcache::regcache)
11940 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11941 process_stratum_target parameter and handle it.
11942 (current_thread_target): New global.
11943 (get_thread_regcache): Add process_stratum_target parameter and
11944 handle it. Switch inferior before calling target method.
11945 (get_thread_regcache): Pass target down.
11946 (get_thread_regcache_for_ptid): Pass target down.
11947 (registers_changed_ptid): Add process_stratum_target parameter and
11948 handle it.
11949 (registers_changed_thread, registers_changed): Pass target down.
11950 (test_get_thread_arch_aspace_regcache): New.
11951 (current_regcache_test): Define a couple local test_target_ops
11952 instances and use them for testing.
11953 (readwrite_regcache): Pass process_stratum_target parameter.
11954 (cooked_read_test, cooked_write_test): Pass mock_target down.
11955 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11956 (get_thread_arch_aspace_regcache): Add process_stratum_target
11957 parameter.
11958 (regcache::target): New method.
11959 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11960 (regcache::registers_changed_ptid): Add process_stratum_target
11961 parameter.
11962 (regcache::m_target): New field.
11963 (registers_changed_ptid): Add process_stratum_target parameter.
11964 * remote.c (remote_state::supports_vCont_probed): New field.
11965 (remote_target::async_wait_fd): New method.
11966 (remote_unpush_and_throw): Add remote_target parameter.
11967 (get_current_remote_target): Adjust.
11968 (remote_target::remote_add_inferior): Push target.
11969 (remote_target::remote_add_thread)
11970 (remote_target::remote_notice_new_inferior)
11971 (get_remote_thread_info): Pass target down.
11972 (remote_target::update_thread_list): Skip threads of inferiors
11973 bound to other targets. (remote_target::close): Don't discard
11974 inferiors. (remote_target::add_current_inferior_and_thread)
11975 (remote_target::process_initial_stop_replies)
11976 (remote_target::start_remote)
11977 (remote_target::remote_serial_quit_handler): Pass down target.
11978 (remote_target::remote_unpush_target): New remote_target
11979 parameter. Unpush the target from all inferiors.
11980 (remote_target::remote_unpush_and_throw): New remote_target
11981 parameter. Pass it down.
11982 (remote_target::open_1): Check whether the current inferior has
11983 execution instead of checking whether any inferior is live. Pass
11984 target down.
11985 (remote_target::remote_detach_1): Pass down target. Use
11986 remote_unpush_target.
11987 (extended_remote_target::attach): Pass down target.
11988 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11989 (remote_target::append_resumption): Pass down target.
11990 (remote_target::append_pending_thread_resumptions)
11991 (remote_target::remote_resume_with_hc, remote_target::resume)
11992 (remote_target::commit_resume): Pass down target.
11993 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11994 (remote_target::interrupt_query)
11995 (remote_target::remove_new_fork_children)
11996 (remote_target::check_pending_events_prevent_wildcard_vcont)
11997 (remote_target::remote_parse_stop_reply)
11998 (remote_target::process_stop_reply): Pass down target.
11999 (first_remote_resumed_thread): New remote_target parameter. Pass
12000 it down.
12001 (remote_target::wait_as): Pass down target.
12002 (unpush_and_perror): New remote_target parameter. Pass it down.
12003 (remote_target::readchar, remote_target::remote_serial_write)
12004 (remote_target::getpkt_or_notif_sane_1)
12005 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12006 down target.
12007 (remote_target::mourn_inferior): Pass down target. Use
12008 remote_unpush_target.
12009 (remote_target::core_of_thread)
12010 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12011 (remote_target::pid_to_exec_file)
12012 (remote_target::thread_handle_to_thread_info): Pass down target.
12013 (remote_target::async_wait_fd): New.
12014 * riscv-fbsd-tdep.c: Include "inferior.h".
12015 (riscv_fbsd_get_thread_local_address): Pass down target.
12016 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12017 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12018 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12019 Adjust.
12020 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12021 * solib-svr4.c (enable_break): Pass down target.
12022 * spu-multiarch.c (parse_spufs_run): Pass down target.
12023 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12024 * target-delegates.c: Regenerate.
12025 * target.c (g_target_stack): Delete.
12026 (current_top_target): Return the current inferior's top target.
12027 (target_has_execution_1): Refer to the passed-in inferior's top
12028 target.
12029 (target_supports_terminal_ours): Check whether the initial
12030 inferior was already created.
12031 (decref_target): New.
12032 (target_stack::push): Incref/decref the target.
12033 (push_target, push_target, unpush_target): Adjust.
12034 (target_stack::unpush): Defref target.
12035 (target_is_pushed): Return bool. Adjust to refer to the current
12036 inferior's target stack.
12037 (dispose_inferior): Delete, and inline parts ...
12038 (target_preopen): ... here. Only dispose of the current inferior.
12039 (target_detach): Hold strong target reference while detaching.
12040 Pass target down.
12041 (target_thread_name): Add assertion.
12042 (target_resume): Pass down target.
12043 (target_ops::beneath, find_target_at): Adjust to refer to the
12044 current inferior's target stack.
12045 (get_dummy_target): New.
12046 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12047 has a thread running.
12048 (initialize_targets): Rename to ...
12049 (_initialize_target): ... this.
12050 * target.h: Include "gdbsupport/refcounted-object.h".
12051 (struct target_ops): Inherit refcounted_object.
12052 (target_ops::shortname, target_ops::longname): Make const.
12053 (target_ops::async_wait_fd): New method.
12054 (decref_target): Declare.
12055 (struct target_ops_ref_policy): New.
12056 (target_ops_ref): New typedef.
12057 (get_dummy_target): Declare function.
12058 (target_is_pushed): Return bool.
12059 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12060 (all_matching_threads_iterator::all_matching_threads_iterator):
12061 Handle filter target.
12062 * thread-iter.h (struct all_matching_threads_iterator, struct
12063 all_matching_threads_range, class all_non_exited_threads_range):
12064 Filter by target too. Remove explicit.
12065 * thread.c (threads_executing): Delete.
12066 (inferior_thread): Pass down current inferior.
12067 (clear_thread_inferior_resources): Pass down thread pointer
12068 instead of ptid_t.
12069 (add_thread_silent, add_thread_with_info, add_thread): Add
12070 process_stratum_target parameter. Use it for thread and inferior
12071 searches.
12072 (is_current_thread): New.
12073 (thread_info::deletable): Use it.
12074 (find_thread_ptid, thread_count, in_thread_list)
12075 (thread_change_ptid, set_resumed, set_running): New
12076 process_stratum_target parameter. Pass it down.
12077 (set_executing): New process_stratum_target parameter. Pass it
12078 down. Adjust reference to 'threads_executing'.
12079 (threads_are_executing): New process_stratum_target parameter.
12080 Adjust reference to 'threads_executing'.
12081 (set_stop_requested, finish_thread_state): New
12082 process_stratum_target parameter. Pass it down.
12083 (switch_to_thread): Also match inferior.
12084 (switch_to_thread): New process_stratum_target parameter. Pass it
12085 down.
12086 (update_threads_executing): Reimplement.
12087 * top.c (quit_force): Pop targets from all inferior.
12088 (gdb_init): Don't call initialize_targets.
12089 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12090 Declare.
12091 (windows_add_thread, windows_delete_thread): Adjust.
12092 (get_windows_debug_event): Rename to ...
12093 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12094 * tracefile-tfile.c (tfile_target_open): Pass down target.
12095 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12096 Forward declare.
12097 (switch_to_thread): Add process_stratum_target parameter.
12098 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12099 parameter. Use it.
12100 (mi_on_resume): Pass target down.
12101 * nat/fork-inferior.c (startup_inferior): Add
12102 process_stratum_target parameter. Pass it down.
12103 * nat/fork-inferior.h (startup_inferior): Add
12104 process_stratum_target parameter.
12105 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12106
12107 2020-01-10 Pedro Alves <palves@redhat.com>
12108
12109 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12110 directly. Instead find the first thread in the thread list and
12111 use switch_to_thread.
12112
12113 2020-01-10 Pedro Alves <palves@redhat.com>
12114
12115 * remote.c (remote_target::remote_add_inferior): Don't bind a
12116 process to the current inferior if the current inferior is already
12117 bound to a process.
12118
12119 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12120 Pedro Alves <palves@redhat.com>
12121
12122 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12123 If no process is specified, return null_ptid instead of
12124 inferior_ptid.
12125 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12126 TARGET_WAITKIND_SIGNALLED with no pid.
12127
12128 2020-01-10 Pedro Alves <palves@redhat.com>
12129
12130 * remote.c (first_remote_resumed_thread): New.
12131 (remote_target::wait_as): Use it as default event_ptid instead of
12132 inferior_ptid.
12133
12134 2020-01-10 Pedro Alves <palves@redhat.com>
12135
12136 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12137
12138 2020-01-10 Pedro Alves <palves@redhat.com>
12139
12140 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12141 not -1.
12142
12143 2020-01-10 Pedro Alves <palves@redhat.com>
12144
12145 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12146 ptid to get_last_target_status.
12147 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12148 ptid to get_last_target_status.
12149 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12150 get_last_target_status.
12151 (info_program_command): Don't pass a target_waitstatus to
12152 get_last_target_status.
12153 * infrun.c (init_wait_for_inferior): Use
12154 nullify_last_target_wait_ptid.
12155 (get_last_target_status): Handle nullptr arguments.
12156 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12157 (print_stop_event): Don't pass a ptid to get_last_target_status.
12158 (normal_stop): Don't pass a ptid to get_last_target_status.
12159 * infrun.h (get_last_target_status, set_last_target_status): Move
12160 comments here and update.
12161 (nullify_last_target_wait_ptid): Declare.
12162 * linux-fork.c (fork_load_infrun_state): Remove local extern
12163 declaration of nullify_last_target_wait_ptid.
12164 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12165 to get_last_target_status.
12166
12167 2020-01-10 Pedro Alves <palves@redhat.com>
12168
12169 * gdbthread.h (scoped_restore_current_thread)
12170 <dont_restore, restore, m_dont_restore>: Declare.
12171 * thread.c (thread_alive): Add assertion. Return bool.
12172 (switch_to_thread_if_alive): New.
12173 (prune_threads): Switch inferior/thread.
12174 (print_thread_info_1): Switch thread before calling target methods.
12175 (scoped_restore_current_thread::restore): New, factored out from
12176 ...
12177 (scoped_restore_current_thread::~scoped_restore_current_thread):
12178 ... this.
12179 (scoped_restore_current_thread::scoped_restore_current_thread):
12180 Add assertion.
12181 (thread_apply_all_command, thread_select): Use
12182 switch_to_thread_if_alive.
12183 * infrun.c (proceed, restart_threads, handle_signal_stop)
12184 (switch_back_to_stepped_thread): Switch current thread before
12185 calling target methods.
12186
12187 2020-01-10 Pedro Alves <palves@redhat.com>
12188
12189 * inferior.c (switch_to_inferior_no_thread): New function,
12190 factored out from ...
12191 (inferior_command): ... here.
12192 * inferior.h (switch_to_inferior_no_thread): Declare.
12193 * mi/mi-main.c (run_one_inferior): Use
12194 switch_to_inferior_no_thread.
12195
12196 2020-01-10 Pedro Alves <palves@redhat.com>
12197
12198 * infcmd.c (kill_command): Remove dead code.
12199
12200 2020-01-10 Pedro Alves <palves@redhat.com>
12201
12202 * remote.c (remote_target::mourn_inferior): No longer check
12203 whether the target is running.
12204
12205 2020-01-10 Pedro Alves <palves@redhat.com>
12206
12207 * corelow.c (core_target::has_execution): Change parameter type to
12208 inferior pointer.
12209 * inferior.c (number_of_live_inferiors): Use
12210 inferior::has_execution instead of target_has_execution_1.
12211 * inferior.h (inferior::has_execution): New.
12212 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12213 inferior::has_execution instead of target_has_execution_1.
12214 * process-stratum-target.c
12215 (process_stratum_target::has_execution): Change parameter type to
12216 inferior pointer. Check the inferior's PID instead of
12217 inferior_ptid.
12218 * process-stratum-target.h
12219 (process_stratum_target::has_execution): Change parameter type to
12220 inferior pointer.
12221 * record-full.c (record_full_core_target::has_execution): Change
12222 parameter type to inferior pointer.
12223 * target.c (target_has_execution_1): Change parameter type to
12224 inferior pointer.
12225 (target_has_execution_current): Adjust.
12226 * target.h (target_ops::has_execution): Change parameter type to
12227 inferior pointer.
12228 (target_has_execution_1): Change parameter type to inferior
12229 pointer. Change return type to bool.
12230 * tracefile.h (tracefile_target::has_execution): Change parameter
12231 type to inferior pointer.
12232
12233 2020-01-10 Pedro Alves <palves@redhat.com>
12234
12235 * exceptions.c (print_flush): Remove current_top_target() check.
12236
12237 2020-01-10 Pedro Alves <palves@redhat.com>
12238
12239 * remote.c (show_remote_exec_file): Show the current inferior's
12240 exec-file instead of the command variable's value.
12241
12242 2020-01-10 Pedro Alves <palves@redhat.com>
12243
12244 * record-full.c (record_full_resume_ptid): New global.
12245 (record_full_target::resume): Set it.
12246 (record_full_wait_1): Use record_full_resume_ptid instead of
12247 inferior_ptid.
12248
12249 2020-01-10 Pedro Alves <palves@redhat.com>
12250
12251 * gdbthread.h (scoped_restore_current_thread)
12252 <dont_restore, restore, m_dont_restore>: Declare.
12253 * thread.c (thread_alive): Add assertion. Return bool.
12254 (switch_to_thread_if_alive): New.
12255 (prune_threads): Switch inferior/thread.
12256 (print_thread_info_1): Switch thread before calling target methods.
12257 (scoped_restore_current_thread::restore): New, factored out from
12258 ...
12259 (scoped_restore_current_thread::~scoped_restore_current_thread):
12260 ... this.
12261 (scoped_restore_current_thread::scoped_restore_current_thread):
12262 Add assertion.
12263 (thread_apply_all_command, thread_select): Use
12264 switch_to_thread_if_alive.
12265
12266 2020-01-10 George Barrett <bob@bob131.so>
12267
12268 * stap-probe.c (stap_modify_semaphore): Don't check for null
12269 semaphores.
12270 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12271 for null semaphores.
12272
12273 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12274
12275 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12276 all source windows, and maintain horizontal scroll status while
12277 doing so.
12278
12279 2020-01-09 Tom Tromey <tom@tromey.com>
12280
12281 PR tui/18932:
12282 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12283 update_source_window, not print_source_lines.
12284
12285 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12286
12287 * tui/tui.c (tui_enable): Register tui hooks after calling
12288 tui_display_main.
12289
12290 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12291
12292 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12293
12294 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12295
12296 * thread.c (print_thread_info_1): Fix indentation.
12297
12298 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12299
12300 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12301 unique_xmalloc_ptr outside the if to always free the demangled name.
12302
12303 2020-01-08 Tom Tromey <tromey@adacore.com>
12304
12305 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12306 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12307 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12308 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12309 Remove.
12310 (section_offsets): New typedef.
12311 * symtab.c (fixup_section, get_msymbol_address): Update.
12312 * symmisc.c (dump_msymbols): Update.
12313 * symfile.h (relative_addr_info_to_section_offsets)
12314 (symfile_map_offsets_to_segments): Update.
12315 * symfile.c (build_section_addr_info_from_objfile)
12316 (init_objfile_sect_indices): Update.
12317 (struct place_section_arg): Change type of "offsets".
12318 (place_section): Update.
12319 (relative_addr_info_to_section_offsets): Change type of
12320 "section_offsets". Remove "num_sections" parameter.
12321 (default_symfile_offsets, syms_from_objfile_1)
12322 (set_objfile_default_section_offset): Update.
12323 (reread_symbols): No need to preserve section offsets by hand.
12324 (symfile_map_offsets_to_segments): Change type of "offsets".
12325 * stap-probe.c (relocate_address): Update.
12326 * stabsread.h (process_one_symbol): Update.
12327 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12328 (solib_target_relocate_section_addresses): Update.
12329 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12330 Update.
12331 * solib-frv.c (frv_relocate_main_executable): Update.
12332 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12333 * solib-aix.c (solib_aix_get_section_offsets): Change return
12334 type.
12335 (solib_aix_solib_create_inferior_hook): Update.
12336 * remote.c (remote_target::get_offsets): Update.
12337 * psymtab.c (find_pc_sect_psymtab): Update.
12338 * psympriv.h (struct partial_symbol) <address, text_low,
12339 text_high>: Update.
12340 * objfiles.h (obj_section_offset): Update.
12341 (struct objfile) <section_offsets>: Change type.
12342 <num_sections>: Remove.
12343 (objfile_relocate): Update.
12344 * objfiles.c (entry_point_address_query): Update
12345 (relocate_one_symbol): Change type of "section_offsets".
12346 (objfile_relocate1, objfile_relocate1): Change type of
12347 "new_offsets".
12348 (objfile_rebase1): Update.
12349 * mipsread.c (mipscoff_symfile_read): Update.
12350 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12351 parameter.
12352 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12353 (parse_external, psymtab_to_symtab_1): Update.
12354 * machoread.c (macho_symfile_offsets): Update.
12355 * ia64-tdep.c (ia64_find_unwind_table): Update.
12356 * hppa-tdep.c (read_unwind_info): Update.
12357 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12358 * dwarf2read.c (create_addrmap_from_index)
12359 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12360 (process_psymtab_comp_unit_reader, add_partial_symbol)
12361 (add_partial_subprogram, process_full_comp_unit)
12362 (read_file_scope, read_func_scope, read_lexical_block_scope)
12363 (read_call_site_scope, dwarf2_rnglists_process)
12364 (dwarf2_ranges_process, dwarf2_ranges_read)
12365 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12366 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12367 Update.
12368 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12369 Update.
12370 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12371 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12372 (process_one_symbol): Change type of "section_offsets".
12373 * ctfread.c (get_objfile_text_range): Update.
12374 * coffread.c (coff_symtab_read, enter_linenos)
12375 (process_coff_symbol): Update.
12376 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12377 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12378
12379 2020-01-08 Tom Tromey <tromey@adacore.com>
12380
12381 * dwarf2read.c (parse_macro_definition): Use std::string.
12382 (parse_macro_definition): Likewise.
12383
12384 2020-01-08 Tom Tromey <tromey@adacore.com>
12385
12386 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12387 (ATTR_ALLOC_CHUNK): Remove.
12388
12389 2020-01-08 Tom Tromey <tromey@adacore.com>
12390
12391 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12392
12393 2020-01-08 Tom Tromey <tromey@adacore.com>
12394
12395 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12396 (dwarf2_compute_name, open_dwo_file): Likewise.
12397 (process_enumeration_scope): Use std::vector.
12398 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12399 (partial_die_info::fixup, dwarf2_start_subfile)
12400 (guess_full_die_structure_name, dwarf2_name): Likewise.
12401 (determine_prefix): Update.
12402 (guess_full_die_structure_name): Make return type const.
12403 (partial_die_full_name): Return unique_xmalloc_ptr.
12404 (DW_FIELD_ALLOC_CHUNK): Remove.
12405
12406 2020-01-07 Tom Tromey <tromey@adacore.com>
12407
12408 PR build/24937:
12409 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12410
12411 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12412
12413 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12414
12415 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12416
12417 * stack.c (print_frame_info): Move disassemble_next_line code
12418 inside source_print block.
12419
12420 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12421
12422 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12423 gdb/signals.h, as we are now using native signal symbols.
12424
12425 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12426
12427 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12428 overflow by an early check of content vs threshold.
12429 * tui/tui-source.c (tui_source_window::line_is_displayed):
12430 Likewise.
12431
12432 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12433
12434 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12435
12436 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12437
12438 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12439 export table if no section contains it's RVA.
12440
12441 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12442
12443 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12444
12445 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12446
12447 * source.c (print_source_lines_base): Set last_line_listed.
12448
12449 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12450
12451 * tui/tui-disasm.c: Remove trailing spaces.
12452
12453 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12454 Pedro Alves <palves@redhat.com>
12455
12456 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12457 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12458 (windows_gdb_signal_to_target): New function, uses the above
12459 enumeration to convert GDB internal signal codes to equivalent
12460 Windows codes.
12461 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12462 * windows-nat.c: Include "gdb_wait.h".
12463 (get_windows_debug_event): Extract the fatal exception from the
12464 exit status and convert to the equivalent Posix signal number.
12465 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12466 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12467 * gdbsupport/gdb_wait.c: New file, implements
12468 windows_status_to_termsig.
12469 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12470 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12471
12472 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12473
12474 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12475 show_layout.
12476
12477 2020-01-05 Luis Machado <luis.machado@linaro.org>
12478
12479 * aarch64-linux-nat.c
12480 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12481 and bfd_mach_aarch64.
12482
12483 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12484
12485 * ui-file.c (stdio_file::can_emit_style_escape)
12486 (tee_file::can_emit_style_escape): Ensure style is used also on
12487 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12488 to gdb_stdout.
12489 * main.c (set_gdb_data_directory): Use file style to output the
12490 warning that the given pathname is not a directory.
12491 * top.c (show_history_filename, gdb_safe_append_history)
12492 (show_gdb_datadir): Use file style.
12493
12494 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12495
12496 * solib-target.c (struct lm_info_target):
12497 Change offsets to be a unique_xmalloc_ptr.
12498 (solib_target_relocate_section_addresses): Update.
12499
12500 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12501
12502 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12503
12504 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12505
12506 * MAINTAINERS (Write After Approval): Add myself.
12507
12508 2020-01-02 Luis Machado <luis.machado@linaro.org>
12509
12510 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12511 Cell BE architecture.
12512 * target.h (struct target_ops) <thread_architecture>: Likewise.
12513
12514 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12515
12516 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12517
12518 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12519
12520 * MAINTAINERS (Write After Approval): Add myself.
12521
12522 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12523
12524 * gdbarch.sh: Update copyright year range of generated files.
12525
12526 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12527
12528 Update copyright year range in all GDB files.
12529
12530 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12531
12532 * copyright.py: Convert to Python 3.
12533
12534 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12535
12536 * copyright.py: Adapt after move of gnulib directory from gdb
12537 directory to toplevel directory.
12538
12539 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12540
12541 * copyright.py (main): Exit if run from the wrong directory.
12542
12543 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12544
12545 * top.c (print_gdb_version): Change copyright year to 2020.
12546
12547 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12548
12549 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12550
12551 For older changes see ChangeLog-2019.
12552 \f
12553 Local Variables:
12554 mode: change-log
12555 left-margin: 8
12556 fill-column: 74
12557 version-control: never
12558 coding: utf-8
12559 End: