[gdb/breakpoint] Handle setting breakpoint on label without address
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-28 Tom de Vries <tdevries@suse.de>
2
3 PR breakpoint/26544
4 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5 event_location.
6 (create_breakpoint): Same.
7 (base_breakpoint_decode_location): Same.
8 (bkpt_create_sals_from_location): Same.
9 (bkpt_decode_location): Same.
10 (bkpt_probe_create_sals_from_location): Same.
11 (bkpt_probe_decode_location): Same.
12 (tracepoint_create_sals_from_location): Same.
13 (tracepoint_decode_location): Same.
14 (tracepoint_probe_decode_location): Same.
15 (strace_marker_create_sals_from_location): Same.
16 (strace_marker_decode_location): Same.
17 (create_sals_from_location_default): Same.
18 (decode_location_default): Same.
19 * breakpoint.h (struct breakpoint_ops): Same.
20 (create_breakpoint): Same.
21 * linespec.h (decode_line_full): Same.
22 * linespec.c (decode_line_full): Same. Throw error if
23 result.size () == 0.
24
25 2020-08-27 Pedro Alves <pedro@palves.net>
26
27 PR gdb/26524
28 * breakpoint.c (until_break_fsm) <location_breakpoint,
29 caller_breakpoint>: Delete fields.
30 <breakpoints>: New field.
31 <until_break_fsm>: Adjust to save a breakpoint vector instead of
32 two individual breakpoints.
33 (until_break_fsm::should_stop): Loop over breakpoints in the
34 breakpoint vector.
35 (until_break_fsm::clean_up): Adjust to clear the breakpoints
36 vector.
37 (until_break_command): Handle location expanding into multiple
38 sals.
39
40 2020-08-27 Pedro Alves <pedro@palves.net>
41
42 PR gdb/26523
43 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
44 bp_until breakpoints user-specified locations. Update intro
45 comment.
46
47 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
50 gdb_bfd_sections): New.
51 * maint.c (print_bfd_section_info): Change param type to
52 maint_print_section_data.
53 (print_objfile_section_info): Likewise.
54 (print_bfd_section_info_maybe_relocated): Likewise.
55 (maintenance_info_sections): Use gdb_bfd_sections.
56
57 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
58
59 * MAINTAINERS: Add ARC target and maintainer.
60
61 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
62
63 * configure.tgt: ARC support for GNU/Linux.
64 * Makefile.in (ALL_TARGET_OBJS): Likewise.
65 * arc-linux-tdep.c: New file.
66 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
67 * arc-tdep.c (arc_write_pc): Use it.
68
69 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
70
71 * arc-tdep.c (arc_check_for_hardware_loop): New.
72 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
73
74 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
75
76 * arc-tdep.h: Include "gdbarch.h".
77
78 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
79
80 * arch/arc.h
81 (arc_gdbarch_features): New class to stir the selection of target XML.
82 (arc_create_target_description): Use FEATURES to choose XML target.
83 (arc_lookup_target_description): Use arc_create_target_description
84 to create _new_ target descriptions or return the already created
85 ones if the FEATURES is the same.
86 * arch/arc.c: Implementation of prototypes described above.
87 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
88 (arc_gdbarch_features_init): Initialize the FEATURES struct.
89 * arc-tdep.c (*_feature_name): Make feature names consistent.
90 (arc_register_feature): A new struct to hold information about
91 registers of a particular target/feature.
92 (arc_check_tdesc_feature): Check if XML provides registers in
93 compliance with ARC_REGISTER_FEATURE structs.
94 (arc_update_acc_reg_names): Add aliases for r58 and r59.
95 (determine_*_reg_feature_set): Which feature name to look for.
96 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
97 (mach_type_to_arc_isa): Convert from a set of binutils machine types
98 to expected ISA enums to be used in arc_gdbarch_features structs.
99 * features/Makefile (FEATURE_XMLFILES): Add new files.
100 * gdb/features/arc/v1-aux.c: New file.
101 * gdb/features/arc/v1-aux.xml: Likewise.
102 * gdb/features/arc/v1-core.c: Likewise.
103 * gdb/features/arc/v1-core.xml: Likewise.
104 * gdb/features/arc/v2-aux.c: Likewise.
105 * gdb/features/arc/v2-aux.xml: Likewise.
106 * gdb/features/arc/v2-core.c: Likewise.
107 * gdb/features/arc/v2-core.xml: Likewise.
108 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
109
110 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
111 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 PR m2/26372
114 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
115 an assert. Remove single element array indexing pattern as the
116 MULTI_SUBSCRIPT support will handle this case too.
117
118 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * value.h (valprint_check_validity): Move declaration from
121 here...
122 * valprint.h (valprint_check_validity): ... to here.
123
124 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
125
126 * debug.h: New file.
127 * debug.c (debug_prefixed_vprintf): New function.
128 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
129 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
130
131 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
132
133 * infrun.h (infrun_debug_printf_1): New function declaration.
134 (infrun_debug_printf): New macro.
135 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
136 throughout.
137 (infrun_debug_printf): New function.
138 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
139 (handle_jit_event): Likewise.
140
141 2020-08-21 Mark Wielaard <mark@klomp.org>
142
143 * ada-lex.l: Extend register warnings diagnostics comment for g++.
144
145 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
146
147 * frame.c (enum class frame_id_status): New.
148 (struct frame_info) <this_id::p>: Change type to frame_id_status.
149 (fprintf_frame): Update.
150 (compute_frame_id): Set frame id status to "computing" on entry.
151 Set it back to "not_computed" on failure and to "computed" on
152 success.
153 (get_frame_id): Assert the frame id is not being computed.
154 (create_sentinel_frame): Use frame_id_status::COMPUTED.
155 (create_new_frame): Likewise.
156 (frame_cleanup_after_sniffer): Update assert.
157
158 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * regcache.c (pid_ptid_regcache_map): New type.
161 (target_ptid_regcache_map): Remove.
162 (target_pid_ptid_regcache_map): New type.
163 (regcaches): Change type to target_pid_ptid_regcache_map.
164 (get_thread_arch_aspace_regcache): Update.
165 (regcache_thread_ptid_changed): Update, handle pid-like ptid
166 case.
167 (regcaches_size): Update.
168 (regcache_count): Update.
169 (registers_changed_ptid_target_pid_test): New.
170 (_initialize_regcache): Register new test.
171
172 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * regcache.c (regcache_count): New.
175 (struct regcache_test_data): New.
176 (regcache_test_data_up): New.
177 (populate_regcaches_for_test): New.
178 (regcaches_test): Remove.
179 (get_thread_arch_aspace_regcache_test): New.
180 (registers_changed_ptid_all_test): New.
181 (registers_changed_ptid_target_test): New.
182 (registers_changed_ptid_target_ptid_test): New.
183 (regcache_thread_ptid_changed): Remove regcache_count lambda.
184 (_initialize_regcache): Register new tests.
185
186 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
189 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
190 gdbarch and aspace parameter. Use current inferior's aspace.
191 Validate regcache's arch value.
192 (regcaches_test): Update.
193
194 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * regcache.c (regcaches_test): Call registers_changed.
197
198 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
199
200 * infrun.c (process_event_stop_test): Fix typo "breapoint".
201
202 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
203
204 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
205 to find the end of prologue for flang compiled binaries.
206 * arm-tdep.c (arm_skip_prologue): Likewise.
207 * i386-tdep.c (i386_skip_prologue): Likewise.
208 * producer.c (producer_is_llvm): New function.
209 (producer_parsing_tests): Added new tests for clang/flang.
210 * producer.h (producer_is_llvm): New declaration.
211
212 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
213
214 * linux-nat.c (linux_nat_debug_printf): New function.
215 (linux_nat_debug_printf_1): New macro. Use throughout the file.
216
217 2020-08-18 Aaron Merey <amerey@redhat.com>
218
219 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
220 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
221 (CLIBS): Add DEBUGINFOD_LIBS.
222
223 2020-08-17 Sergei Trofimovich <siarheit@google.com>
224
225 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
226 'gdbarch_num_regs'.
227
228 2020-08-17 Tom Tromey <tromey@adacore.com>
229
230 * ada-varobj.c (ada_varobj_decode_var): Handle case where
231 ada_get_decoded_value returns NULL.
232
233 2020-08-17 Tom Tromey <tromey@adacore.com>
234
235 * python/py-inferior.c (infpy_search_memory): Use
236 gdb_py_object_from_ulongest.
237 * python/py-infevents.c (create_inferior_call_event_object)
238 (create_memory_changed_event_object): Use
239 gdb_py_object_from_ulongest.
240 * python/py-linetable.c (ltpy_entry_get_pc): Use
241 gdb_py_object_from_ulongest.
242
243 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * loc.c (class symbol_needs_eval_context): Fix indentation.
246
247 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
250 bool.
251
252 2020-08-17 Tom de Vries <tdevries@suse.de>
253
254 PR gdb/26393
255 * gdbtypes.c (dump_dynamic_prop): New function.
256 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
257
258 2020-08-15 Tom de Vries <tdevries@suse.de>
259
260 PR backtrace/26390
261 * stack.c (print_frame_args): Temporarily set the selected
262 frame to FRAME while printing the frame's arguments.
263
264 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
265
266 PR breakpoints/26385
267 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
268 Always clear watchpoint with PTRACE_SET_DEBUGREG.
269
270 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
271
272 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
273 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
274 and >= to check return value instead of == -1 and != -1.
275
276 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * utils.h (class gdb_argv) <as_array_view>: New method.
279 * utils.c (gdb_argv_as_array_view_test): New.
280 (_initialize_utils): Register selftest.
281 * maint.c (maintenance_selftest): Use the new method.
282
283 2020-08-13 Kamil Rytarowski <n54@gmx.com>
284
285 * target.h (supports_dumpcore, dumpcore): New
286 function declarations.
287 * target.c (supports_dumpcore, dumpcore): New
288 functions.
289 * target-delegates.c: Rebuild.
290 * gcore.c (gcore_command): Use target_supports_dumpcore ()
291 and target_dumpcore ().
292
293 2020-08-13 Aaron Merey <amerey@redhat.com>
294
295 * debuginfod-support.c: Replace global variables with user_data.
296
297 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * maint.c (maintenance_selftest): Split args and pass array_view
300 to run_tests.
301
302 2020-08-12 Luis Machado <luis.machado@linaro.org>
303
304 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
305 type's length.
306 Use %s and pulongest to print the length.
307
308 2020-08-12 Pedro Alves <palves@redhat.com>
309
310 * NEWS: Move "Multi-target debugging support" item to the
311 "Changes since GDB 9" section.
312
313 2020-08-12 Pedro Alves <palves@redhat.com>
314
315 PR gdb/26336
316 * progspace.c (program_space::remove_objfile): Invalidate the
317 frame cache.
318
319 2020-08-11 Tom de Vries <tdevries@suse.de>
320
321 * MAINTAINERS: Mark ms1 as deleted.
322
323 2020-08-10 Luis Machado <luis.machado@linaro.org>
324
325 PR gdb/26310
326
327 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
328 act accordingly.
329 (aarch64_analyze_prologue_test): Add more unit tests to exercise
330 movz/str/stur/stp skipping behavior.
331
332 2020-08-10 Luis Machado <luis.machado@linaro.org>
333
334 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
335 struct user_sve_header instead of struct sve_context.
336
337 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * read.h (dwarf2_fetch_die_loc_sect_off,
340 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
341 `void *` parameter with function_view.
342 * read.c (dwarf2_fetch_die_loc_sect_off,
343 dwarf2_fetch_die_loc_cu_off): Likewise.
344 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
345 (per_cu_dwarf_call): Adjust.
346 (get_frame_address_in_block_wrapper): Remove.
347 (indirect_synthetic_pointer): Adjust.
348 (get_ax_pc): Remove.
349 (dwarf2_compile_expr_to_ax): Adjust.
350
351 2020-08-08 Tom de Vries <tdevries@suse.de>
352
353 PR build/26344
354 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
355 constructor.
356 * regcache.c (get_thread_arch_aspace_regcache): Same.
357
358 2020-08-07 Tom Tromey <tromey@adacore.com>
359
360 * ravenscar-thread.c
361 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
362 New method.
363 (ravenscar_thread_target::wait): Check
364 runtime_initialized.
365 (ravenscar_thread_target::prepare_to_store)
366 (ravenscar_thread_target::stopped_by_sw_breakpoint)
367 (ravenscar_thread_target::stopped_by_hw_breakpoint)
368 (ravenscar_thread_target::stopped_by_watchpoint)
369 (ravenscar_thread_target::stopped_data_address)
370 (ravenscar_thread_target::core_of_thread): Use
371 scoped_restore_current_thread and
372 set_base_thread_from_ravenscar_task.
373
374 2020-08-07 Tom Tromey <tromey@adacore.com>
375
376 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
377
378 2020-08-07 Tom Tromey <tromey@adacore.com>
379
380 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
381 update_inferior_ptid before update_thread_list.
382 (temporarily_change_regcache_ptid): New class.
383 (ravenscar_thread_target::fetch_registers)
384 (ravenscar_thread_target::store_registers)
385 (ravenscar_thread_target::prepare_to_store): Use base thread when
386 forwarding operation.
387
388 2020-08-07 Tom Tromey <tromey@adacore.com>
389
390 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
391 "is_pid" case.
392
393 2020-08-07 Tom Tromey <tromey@adacore.com>
394
395 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
396 New methods.
397 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
398 first.
399 (ravenscar_thread_target::add_thread): Rename from
400 ravenscar_add_thread.
401 (ravenscar_thread_target::update_thread_list): Use a lambda.
402 (ravenscar_thread_target::xfer_partial): New method.
403
404 2020-08-07 Tom Tromey <tromey@adacore.com>
405
406 * ada-lang.h (ada_task_list_iterator_ftype): Now a
407 gdb::function_view.
408 (iterate_over_live_ada_tasks): Change type of argument.
409 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
410 of argument.
411
412 2020-08-07 Tom Tromey <tromey@adacore.com>
413
414 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
415 Remove.
416 (ravenscar_thread_target::extra_thread_info): Remove.
417 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
418 defer to target beneath for non-Ravenscar threads.
419
420 2020-08-07 Tom Tromey <tromey@adacore.com>
421
422 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
423 get_base_thread_from_ravenscar_task>: Now methods.
424 <m_cpu_map>: New member.
425 (ravenscar_thread_target::get_thread_base_cpu): Rename from
426 ravenscar_get_thread_base_cpu. Check m_cpu_map.
427 (ravenscar_thread_target::task_is_currently_active): Update.
428 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
429 Now a method.
430 (ravenscar_thread_target::add_active_thread): Put initial thread
431 into the m_cpu_map.
432
433 2020-08-07 Tom Tromey <tromey@adacore.com>
434
435 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
436 event_ptid.
437
438 2020-08-07 Tom Tromey <tromey@adacore.com>
439
440 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
441 runtime_initialized.
442
443 2020-08-07 Tom Tromey <tromey@adacore.com>
444
445 * ravenscar-thread.c (ravenscar_thread_target): Don't call
446 add_active_thread.
447 (ravenscar_thread_target::add_active_thread): Now public.
448 (ravenscar_inferior_created): Call add_active_thread after pushing
449 the target.
450
451 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * regcache.c (ptid_regcache_map): New type.
454 (target_ptid_regcache_map): New type.
455 (regcaches): Change type to target_ptid_regcache_map.
456 (get_thread_arch_aspace_regcache): Update to regcaches' new
457 type.
458 (regcache_thread_ptid_changed): Likewise.
459 (registers_changed_ptid): Likewise.
460 (regcaches_size): Likewise.
461 (regcaches_test): Update.
462 (regcache_thread_ptid_changed): Update.
463 * regcache.h (regcache_up): New type.
464 * gdbsupport/ptid.h (hash_ptid): New struct.
465
466 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
467
468 * observable.h (thread_ptid_changed): Add parameter
469 `process_stratum_target *`.
470 * infrun.c (infrun_thread_ptid_changed): Add parameter
471 `process_stratum_target *` and use it.
472 (selftests): New namespace.
473 (infrun_thread_ptid_changed): New function.
474 (_initialize_infrun): Register selftest.
475 * regcache.c (regcache_thread_ptid_changed): Add parameter
476 `process_stratum_target *` and use it.
477 (regcache_thread_ptid_changed): New function.
478 (_initialize_regcache): Register selftest.
479 * thread.c (thread_change_ptid): Pass target to
480 thread_ptid_changed observable.
481
482 2020-08-06 Caroline Tice <cmtice@google.com>
483
484 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
485 (struct dwp_sections): Update field comments. Add loclists and
486 rnglists fields.
487 (struct virtual_v2_dwo_sections): Rename struct to
488 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
489 size & offset fields for loclists and rnglists.
490 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
491 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
492 skipping dummy type units.
493 (create_dwp_hash_table): Update the large comment above the function to
494 discuss Version 5 DWP files as well, with references. Update all the
495 version checks in the function to check for version 5 as well. Add new
496 section at the end to create dwp hash table for version 5.
497 (create_dwp_v2_section): Rename function to
498 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
499 Add V5 to error message text.
500 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
501 into calls to create_dwp_v2_or_v5_section.
502 (create_dwo_unit_in_dwp_v5): New function.
503 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
504 check for version2; add else clause to handle version 5.
505 (open_and_init_dwo_file): Add code to check dwarf version & only call
506 create_debug_types_hash_table (with sections.types) if version is not 5;
507 else call create_debug_type_hash_table, with sections.info.
508 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
509 version 5.
510 (dwarf2_locate_v5_dwp_sections): New function.
511 (open_and_init_dwp_file): Add else-if clause for version 5 to call
512 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
513
514 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
515
516 * regcache.h (class regcache): Remove friend
517 registers_changed_ptid.
518 <regcache_thread_ptid_changed>: Remove.
519 <regcaches>: Remove.
520 * regcache.c (regcache::regcaches): Rename to...
521 (regcaches): ... this. Make static.
522 (get_thread_arch_aspace_regcache): Update.
523 (regcache::regcache_thread_ptid_changed): Rename to...
524 (regcache_thread_ptid_changed): ... this. Update.
525 (class regcache_access): Remove.
526 (regcaches_test): Update.
527 (_initialize_regcache): Update.
528 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
529 <forward_list>.
530
531 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
532
533 * regcache.h (class regcache) <current_regcache>: Rename to...
534 <regcaches>: ... this. Move doc here.
535 * regcache.c (regcache::current_regcache) Rename to...
536 (regcache::regcaches): ... this. Move doc to header.
537 (get_thread_arch_aspace_regcache): Update.
538 (regcache::regcache_thread_ptid_changed): Update.
539 (registers_changed_ptid): Update.
540 (class regcache_access) <current_regcache_size>: Rename to...
541 <regcaches_size>: ... this.
542 (current_regcache_test): Rename to...
543 (regcaches_test): ... this.
544 (_initialize_regcache): Update.
545
546 2020-08-06 Victor Collod <vcollod@nvidia.com>
547
548 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
549
550 2020-08-05 Kevin Buettner <kevinb@redhat.com>
551
552 * corelow.c (core_target::build_file_mappings): Don't output
553 null pathname in warning.
554
555 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
558 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
559 gdb.dwarf2/dw2-single-line-discriminators.exp,
560 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
561
562 2020-08-05 Tom Tromey <tromey@adacore.com>
563
564 PR rust/26197:
565 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
566 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
567 Fix off-by-one and type size errors in ordinary case.
568
569 2020-08-05 Tom de Vries <tdevries@suse.de>
570
571 * gdbtypes.c (type_not_allocated, type_not_associated): Use
572 "prop->const_val () == 0" instead of "prop->const_val () != 0".
573
574 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
575
576 * frame.h (frame_id_p): Return bool.
577 (frame_id_artificial_p): Return bool.
578 (frame_id_eq): Return bool.
579 (has_stack_frames): Return bool.
580 (get_selected_frame): Fix typo in comment.
581 (get_frame_pc_if_available): Return bool.
582 (get_frame_address_in_block_if_available): Return bool.
583 (get_frame_func_if_available): Return bool.
584 (read_frame_register_unsigned): Return bool.
585 (get_frame_register_bytes): Return bool.
586 (safe_frame_unwind_memory): Return bool.
587 (deprecated_frame_register_read): Return bool.
588 (frame_unwinder_is): Return bool.
589 * frame.c (struct frame_info) <prev_arch::p>: Change type to
590 bool.
591 <this_id::p>: Likewise.
592 <prev_p>: Likewise.
593 (frame_stash_add): Return bool.
594 (get_frame_id): Use bool.
595 (frame_id_build_special) Use bool.
596 (frame_id_build_unavailable_stack): Use bool.
597 (frame_id_build): Use bool.
598 (frame_id_p): Return bool, use true/false instead of 1/0.
599 (frame_id_artificial_p): Likewise.
600 (frame_id_eq): Likewise.
601 (frame_id_inner): Likewise.
602 (get_frame_func_if_available): Likewise.
603 (read_frame_register_unsigned): Likewise.
604 (deprecated_frame_register_read): Likewise.
605 (get_frame_register_bytes): Likewise.
606 (has_stack_frames): Likewise.
607 (inside_main_func): Likewise.
608 (inside_entry_func): Likewise.
609 (get_frame_pc_if_available): Likewise.
610 (get_frame_address_in_block_if_available): Likewise.
611 (frame_unwinder_is): Likewise.
612 (safe_frame_unwind_memory): Likewise.
613 (frame_unwind_arch): Likewise.
614
615 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
616
617 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
618 type to cached_copy_status.
619 (fprintf_frame): Adjust.
620 (get_frame_func_if_available): Adjust.
621 (frame_cleanup_after_sniffer): Adjust.
622
623 2020-08-04 Mark Wielaard <mark@klomp.org>
624
625 * MAINTAINERS (Write After Approval): Update email address.
626
627 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
630 dynamic_prop::const_val.
631
632 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
635 dynamic_prop::kind.
636
637 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
640
641 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
642
643 * configure.tgt: Set gdb_sim for bpf-*-* targets.
644
645 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
646 Jose E. Marchesi <jose.marchesi@oracle.com>
647
648 * configure.tgt: Add entry for bpf-*-*.
649 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
650 (ALLDEPFILES): Add bpf-tdep.c.
651 * bpf-tdep.c: New file.
652 * MAINTAINERS: Add bpf target and maintainer.
653 * NEWS: Mention the support for the new target.
654
655 2020-08-04 Tom de Vries <tdevries@suse.de>
656
657 PR symtab/23270
658 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
659 Error.
660
661 2020-08-03 John Baldwin <jhb@FreeBSD.org>
662
663 * syscalls/freebsd.xml: Regenerate.
664
665 2020-08-03 John Baldwin <jhb@FreeBSD.org>
666
667 * syscalls/update-freebsd.sh: Fix usage and year range.
668
669 2020-08-03 Tom de Vries <tdevries@suse.de>
670
671 PR symtab/26333
672 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
673 DW_LNE_lo_user/DW_LNE_hi_user range.
674
675 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
676
677 PR ada/26318
678 * ada-lang.c (ada_modulus): Return 0 if property is not of const
679 kind.
680
681 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
682
683 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
684
685 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
686
687 * breakpoint.c (set_breakpoint_condition): Update the condition
688 expressions after checking that the input condition string parses
689 successfully and does not contain junk at the end.
690
691 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 * breakpoint.c (set_breakpoint_condition): Update the
694 condition string after parsing the new condition successfully.
695
696 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
697
698 * proc-api.c (_STRUCTURED_PROC): Don't define.
699 * proc-events.c: Likewise.
700 * proc-flags.c: Likewise.
701 * proc-why.c: Likewise.
702 * procfs.c: Likewise.
703
704 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
705 * configure, config.in: Regenerate.
706
707 2020-07-30 Tom de Vries <tdevries@suse.de>
708
709 PR build/26320
710 * ui-style.h (struct ui_file_style::color): Wrap m_value and
711 m_red/m_green/m_blue in a union.
712
713 2020-07-29 Tom de Vries <tdevries@suse.de>
714
715 PR tdep/26280
716 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
717
718 2020-07-28 Tom Tromey <tromey@adacore.com>
719
720 PR symtab/26270:
721 * symtab.h (find_pc_partial_function_sym): Declare.
722 * cli/cli-cmds.c (disassemble_command): Use
723 find_pc_partial_function_sym. Check asm_demangle.
724 * blockframe.c (cache_pc_function_sym): New global.
725 (cache_pc_function_name): Remove.
726 (clear_pc_function_cache): Update.
727 (find_pc_partial_function_sym): New function, from
728 find_pc_partial_function.
729 (find_pc_partial_function): Rewrite using
730 find_pc_partial_function_sym.
731
732 2020-07-28 Tom Tromey <tromey@adacore.com>
733
734 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
735 help. Add usage.
736
737 2020-07-28 Tom Tromey <tromey@adacore.com>
738
739 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
740 <DW_OP_GNU_variable_value>: Cast to address type.
741
742 2020-07-28 Kamil Rytarowski <n54@gmx.com>
743
744 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
745 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
746 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
747 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
748 (nbsd_get_siginfo_type): New.
749 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
750 (_initialize_nbsd_tdep): New.
751
752 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
753
754 PR binutils/26301
755 * configure: Regenerated.
756
757 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
758
759 PR binutils/26301
760 * configure: Regenerated.
761
762 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * python/py-frame.c: Remove 'user-regs.h' include.
765 (frapy_read_register): Rewrite to make use of
766 gdbpy_parse_register_id.
767 * python/py-registers.c (gdbpy_parse_register_id): New function,
768 moved here from python/py-unwind.c. Updated the return type, and
769 also accepts register descriptor objects.
770 * python/py-unwind.c: Remove 'user-regs.h' include.
771 (pyuw_parse_register_id): Moved to python/py-registers.c.
772 (unwind_infopy_add_saved_register): Update to use
773 gdbpy_parse_register_id.
774 (pending_framepy_read_register): Likewise.
775 * python/python-internal.h (gdbpy_parse_register_id): Declare.
776
777 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * python/py-registers.c: Add 'user-regs.h' include.
780 (register_descriptor_iter_find): New function.
781 (register_descriptor_iterator_object_methods): New static global
782 methods array.
783 (register_descriptor_iterator_object_type): Add pointer to methods
784 array.
785
786 2020-07-27 John Baldwin <jhb@FreeBSD.org>
787
788 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
789 for all architectures on FreeBSD 11.3 and later.
790
791 2020-07-27 Tom Tromey <tromey@adacore.com>
792
793 * gcore.h (load_corefile): Don't declare.
794
795 2020-07-27 Tom de Vries <tdevries@suse.de>
796
797 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
798 * config.in: Regenerate.
799 * configure: Regenerate.
800
801 2020-07-26 Eli Zaretskii <eliz@gnu.org>
802
803 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
804 ws2tcpip.h. When checking whether socklen_t type is defined, use
805 ws2tcpip.h if it is available and sys/socket.h isn't.
806 * configure: Regenerate.
807 * config.in: Regenerate.
808
809 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 PR fortran/23051
812 PR fortran/26139
813 * valops.c (value_ind): Pass address to
814 readjust_indirect_value_type.
815 * value.c (readjust_indirect_value_type): Make parameter
816 non-const, and add extra address parameter. Resolve original type
817 before using it.
818 * value.h (readjust_indirect_value_type): Update function
819 signature and comment.
820
821 2020-07-25 Tom de Vries <tdevries@suse.de>
822
823 PR symtab/26243
824 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
825 entries.
826
827 2020-07-24 Aaron Merey <amerey@redhat.com>
828
829 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
830 * configure: Rebuild.
831
832 2020-07-23 Kevin Buettner <kevinb@redhat.com>
833
834 PR corefiles/26294
835 * corelow.c (_initialize_corelow): Add period to help text
836 for "maintenance print core-file-backed-mappings".
837
838 2020-07-23 Pedro Alves <pedro@palves.net>
839
840 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
841 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
842 meanwhile.
843 * frame.c (frame_cache_generation, get_frame_cache_generation):
844 New.
845 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
846 (get_prev_frame_if_no_cycle): On exception, don't touch
847 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
848 * frame.h (get_frame_cache_generation): Declare.
849
850 2020-07-23 Tom de Vries <tdevries@suse.de>
851
852 PR tui/26282
853 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
854 New default constructor.
855
856 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
859 exclude non-statement entries.
860
861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
862
863 * NEWS (New commands): Mention new command
864 "maintenance print core-file-backed-mappings".
865
866 2020-07-22 Kevin Buettner <kevinb@redhat.com>
867
868 * corelow.c (gdbcmd.h): Include.
869 (core_target::info_proc_mappings): New method.
870 (get_current_core_target): New function.
871 (maintenance_print_core_file_backed_mappings): New function.
872 (_initialize_corelow): Add core-file-backed-mappings to
873 "maint print" commands.
874
875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
876
877 * linux-tdep.c (dump_note_entry_p): New function.
878 (linux_dump_mapping_p_ftype): New typedef.
879 (linux_find_memory_regions_full): Add new parameter,
880 should_dump_mapping_p.
881 (linux_find_memory_regions): Adjust call to
882 linux_find_memory_regions_full.
883 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
884 call to linux_find_memory_regions_full.
885
886 2020-07-22 Kevin Buettner <kevinb@redhat.com>
887
888 * corelow.c (solist.h, unordered_map): Include.
889 (class core_target): Add field m_core_file_mappings and
890 method build_file_mappings.
891 (core_target::core_target): Call build_file_mappings.
892 (core_target::~core_target): Free memory associated with
893 m_core_file_mappings.
894 (core_target::build_file_mappings): New method.
895 (core_target::xfer_partial): Use m_core_file_mappings
896 for memory transfers.
897 * linux-tdep.c (linux_read_core_file_mappings): New
898 function.
899 (linux_core_info_proc_mappings): Rewrite to use
900 linux_read_core_file_mappings.
901 (linux_init_abi): Register linux_read_core_file_mappings.
902
903 2020-07-22 Kevin Buettner <kevinb@redhat.com>
904
905 * arch-utils.c (default_read_core_file_mappings): New function.
906 * arch-utils.c (default_read_core_file_mappings): Declare.
907 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
908 * gdbarch.h, gdbarch.c: Regenerate.
909
910 2020-07-22 Kevin Buettner <kevinb@redhat.com>
911
912 PR corefiles/25631
913 * corelow.c (core_target:xfer_partial): Revise
914 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
915 case after first checking the stratum beneath the core
916 target.
917 (has_all_memory): Return true.
918 * target.c (raw_memory_xfer_partial): Revise comment
919 regarding use of has_all_memory.
920
921 2020-07-22 Kevin Buettner <kevinb@redhat.com>
922
923 * exec.h (section_table_xfer_memory): Revise declaration,
924 replacing section name parameter with an optional callback
925 predicate.
926 * exec.c (section_table_xfer_memory): Likewise.
927 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
928 of section_table_xfer_memory.
929
930 2020-07-22 Tom Tromey <tromey@adacore.com>
931
932 * mi/mi-cmd-stack.c (list_args_or_locals): Use
933 lookup_symbol_search_name.
934
935 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
936
937 * python/py-registers.c (gdbpy_register_object_data_init): Remove
938 redundant local variable.
939 (gdbpy_get_register_descriptor): Extract descriptor vector as a
940 reference, not pointer, update code accordingly.
941
942 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
943 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
944
945 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
946 * jit.c (jit_breakpoint_re_set_internal): Use the
947 `skip_jit_symbol_lookup` field.
948
949 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
950 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951
952 * jit.c (jit_read_descriptor): Define the descriptor address once,
953 use twice.
954 (jit_breakpoint_deleted): Move the declaration of the loop variable
955 `iter` into the loop header.
956 (jit_breakpoint_re_set_internal): Move the declaration of the local
957 variable `objf_data` to the first point of definition.
958 (jit_event_handler): Move the declaration of local variables
959 `code_entry`, `entry_addr`, and `objf` to their first point of use.
960 Rename `objf` to `jited`.
961
962 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
965 Remove.
966 * jit.c (get_jiter_objfile_data): Update.
967
968 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
969 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * jit.c (struct jit_program_space_data): Remove.
972 (jit_program_space_key): Remove.
973 (jiter_objfile_data::~jiter_objfile_data): Remove program space
974 stuff.
975 (get_jit_program_space_data): Remove.
976 (jit_breakpoint_deleted): Iterate on all of the program space's
977 objfiles.
978 (jit_inferior_init): Likewise.
979 (jit_breakpoint_re_set_internal): Likewise. Also change return
980 type to void.
981 (jit_breakpoint_re_set): Pass current_program_space to
982 jit_breakpoint_re_set_internal.
983
984 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
985
986 * jit.h (struct jiter_objfile_data) <cached_code_address,
987 jit_breakpoint>: Move to here from ...
988 * jit.c (jit_program_space_data): ... here.
989 (jiter_objfile_data::~jiter_objfile_data): Update.
990 (jit_breakpoint_deleted): Update.
991 (jit_breakpoint_re_set_internal): Update.
992
993 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
996 checks.
997 (jit_read_descriptor): Remove NULL check.
998 (jit_event_handler): Add an assertion.
999
1000 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * jit.h (struct jit_objfile_data): Split into...
1003 (struct jiter_objfile_data): ... this ...
1004 (struct jited_objfile_data): ... and this.
1005 * objfiles.h (struct objfile) <jit_data>: Remove.
1006 <jiter_data, jited_data>: New fields.
1007 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1008 (jiter_objfile_data::~jiter_objfile_data): ... this.
1009 (get_jit_objfile_data): Rename to ...
1010 (get_jiter_objfile_data): ... this.
1011 (add_objfile_entry): Update.
1012 (jit_read_descriptor): Use get_jiter_objfile_data.
1013 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1014 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1015 (jit_inferior_exit_hook): Use objfile's jited_data field.
1016
1017 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * jit.h: Forward-declare `struct minimal_symbol`.
1020 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1021 constructor, destructor, and an objfile* field.
1022 * jit.c (jit_objfile_data): Remove.
1023 (struct jit_objfile_data): Migrate from here to jit.h.
1024 (jit_objfile_data::~jit_objfile_data): New destructor
1025 implementation with code moved from free_objfile_data.
1026 (free_objfile_data): Delete.
1027 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1028 (jit_find_objf_with_entry_addr): Ditto.
1029 (jit_inferior_exit_hook): Ditto.
1030 (_initialize_jit): Remove the call to
1031 register_objfile_data_with_cleanup.
1032 * objfiles.h (struct objfile) <jit_data>: New field.
1033
1034 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1035
1036 * jit.h: Forward-declare `struct objfile`.
1037 (jit_event_handler): Add a second parameter, the JITer objfile.
1038 * jit.c (jit_read_descriptor): Change the signature to take the
1039 JITer objfile as an argument instead of the jit_program_space_data.
1040 (jit_inferior_init): Update the call to jit_read_descriptor.
1041 (jit_event_handler): Use the new JITer objfile argument when calling
1042 jit_read_descriptor.
1043 * breakpoint.c (handle_jit_event): Update the call to
1044 jit_event_handler to pass the JITer objfile.
1045
1046 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1047
1048 * gdbarch.c: Regenerate.
1049 * gdbarch.h: Regenerate.
1050 * gdbarch.sh (handle_segmentation_fault): Remove method.
1051 * infrun.c (handle_segmentation_fault): Remove.
1052 (print_signal_received_reason): Remove call to
1053 handle_segmentation_fault.
1054
1055 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1056
1057 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1058 Rename to sparc64_linux_report_signal_info and add siggnal
1059 argument.
1060 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1061 instead of sparc64_linux_handle_segmentation_fault.
1062
1063 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1064
1065 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1066 i386_linux_report_signal_info instead of
1067 i386_linux_handle_segmentation_fault.
1068 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1069 to i386_linux_report_signal_info and add siggnal argument.
1070 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1071 of i386_linux_handle_segmentation_fault.
1072 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1073 to i386_linux_report_signal_info and add siggnal argument.
1074
1075 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1076
1077 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1078 hook if present.
1079
1080 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1081
1082 * gdbarch.c: Regenerate.
1083 * gdbarch.h: Regenerate.
1084 * gdbarch.sh (report_signal_info): New method.
1085 * infrun.c (print_signal_received_reason): Invoke gdbarch
1086 report_signal_info hook if present.
1087
1088 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * python/py-registers.c : Add 'unordered_map' include.
1091 (gdbpy_new_reggroup): Renamed to...
1092 (gdbpy_get_reggroup): ...this. Update to only create register
1093 group descriptors when needed.
1094 (gdbpy_reggroup_iter_next): Update.
1095
1096 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * python/py-registers.c (gdbpy_register_object_data): New static
1099 global.
1100 (gdbpy_register_object_data_init): New function.
1101 (gdbpy_new_register_descriptor): Renamed to...
1102 (gdbpy_get_register_descriptor): ...this, and update to reuse
1103 existing register descriptors where possible.
1104 (gdbpy_register_descriptor_iter_next): Update.
1105 (gdbpy_initialize_registers): Register new gdbarch data.
1106
1107 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * linux-nat.c (stopped_pids): Make static.
1110
1111 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 PR ada/26235
1114 * gdbtypes.c (ada_discrete_type_low_bound,
1115 ada_discrete_type_high_bound): Handle undefined bounds.
1116
1117 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1118
1119 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1120 declaration.
1121 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1122 function.
1123
1124 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1125
1126 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1127 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1128 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1129 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1130 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1131 method.
1132
1133 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1134
1135 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1136 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1137 which are deprecated in Guile 3.0.
1138 * configure.ac (try_guile_versions): Add "guile-3.0".
1139 * configure (try_guile_versions): Regenerate.
1140 * NEWS: Update entry.
1141
1142 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1143 Doug Evans <dje@google.com>
1144
1145 PR gdb/21104
1146 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1147 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1148 USING_GUILE_BEFORE_2_2.
1149 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1150 Change type to 'scm_t_port_type *'.
1151 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1152 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1153 parameter and honor it. Update callers.
1154 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1155 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1156 functions.
1157 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1158 USING_GUILE_BEFORE_2_2.
1159 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1160 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1161 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1162 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1163 and 'SCM_PORT_TYPE'.
1164 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1165 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1166 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1167 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1168 [!USING_GUILE_BEFORE_2_2]: New functions.
1169 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1170 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1171 'gdbscm_memory_port_read'.
1172 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1173 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1174 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1175 function.
1176 (ioscm_init_memory_port): Remove.
1177 (ioscm_init_memory_port_stream): New function
1178 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1179 function.
1180 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1181 Return scm_from_uint (0).
1182 (gdbscm_set_memory_port_read_buffer_size_x)
1183 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1184 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1185 Return scm_from_uint (0).
1186 (gdbscm_set_memory_port_write_buffer_size_x)
1187 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1188 * configure.ac (try_guile_versions): Add "guile-2.2".
1189 * configure: Regenerate.
1190 * NEWS: Add entry.
1191
1192 2020-07-18 Tom Tromey <tom@tromey.com>
1193
1194 * linux-nat.c (linux_multi_process): Remove.
1195 (linux_nat_target::supports_multi_process): Return true.
1196
1197 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1200 (riscv_lookup_target_description): Return pointer out of
1201 unique_ptr.
1202 * target-descriptions.c (allocate_target_description): Add
1203 comment.
1204 (target_desc_deleter::operator()): Likewise.
1205 * target-descriptions.h (struct target_desc_deleter): Moved to
1206 gdbsupport/tdesc.h.
1207 (target_desc_up): Likewise.
1208
1209 2020-07-17 Tom Tromey <tromey@adacore.com>
1210
1211 * linux-nat.c (linux_nat_target::supports_non_stop)
1212 (linux_nat_target::always_non_stop_p): Use "true".
1213 (linux_nat_target::supports_disable_randomization): Use "true" and
1214 "false".
1215
1216 2020-07-16 Caroline Tice <cmtice@google.com>
1217
1218 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1219 (RNGLIST_HEADER_SIZE64): New constant definition.
1220 (struct dwop_section_names): Add rnglists_dwo.
1221 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1222 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1223 (struct dwo_sections): Add rnglists field.
1224 (read_attribut_reprocess): Add tag parameter.
1225 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1226 (cu_debug_rnglists_section): New function (decl & definition).
1227 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1228 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1229 die whose range is being checked; get rnglist section from
1230 cu_debug_rnglists_section, to get from either objfile or dwo file as
1231 appropriate. Add cases for DW_RLE_base_addressx,
1232 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1233 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1234 test inside if-condition and updating complaint message.
1235 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1236 dwarf2_rnglists_process.
1237 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1238 dwarf2_ranges_process.
1239 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1240 need_ranges_base and update comment appropriately. Also pass die tag
1241 to dwarf2_ranges_read.
1242 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1243 need_ranges_base and update comment appropriately. Also pass die tag
1244 to dwarf2_ranges_process.
1245 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1246 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1247 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1248 need_ranges_base and update comment appropriately. Also pass die tag
1249 to read_attribute_reprocess and dwarf2_ranges_read.
1250 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1251 and update function comment appropriately.
1252 (read_loclist_index): Call read_loclists_rnglists_header instead of
1253 read_loclist_header.
1254 (read_rnglist_index): New function.
1255 (read_attribute_reprocess): Add tag parameter. Add code for
1256 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1257 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1258
1259 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1262 being resolved.
1263
1264 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * arch-utils.c (show_architecture): Update formatting of messages.
1267
1268 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1269
1270 * gdbtypes.h (struct type) <bounds>: Handle array and string
1271 types.
1272 * ada-lang.c (assign_aggregate): Use type::bounds on
1273 array/string type.
1274 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1275 * c-varobj.c (c_number_of_children): Likewise.
1276 (c_describe_child): Likewise.
1277 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1278 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1279 (f_type_print_base): Likewise.
1280 * f-valprint.c (f77_array_offset_tbl): Likewise.
1281 (f77_get_upperbound): Likewise.
1282 (f77_print_array_1): Likewise.
1283 * guile/scm-type.c (gdbscm_type_range): Likewise.
1284 * m2-typeprint.c (m2_array): Likewise.
1285 (m2_is_long_set_of_type): Likewise.
1286 * m2-valprint.c (get_long_set_bounds): Likewise.
1287 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1288 * python/py-type.c (typy_range): Likewise.
1289 * rust-lang.c (rust_internal_print_type): Likewise.
1290 * type-stack.c (type_stack::follow_types): Likewise.
1291 * valarith.c (value_subscripted_rvalue): Likewise.
1292 * valops.c (value_cast): Likewise.
1293
1294 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1297 callers to use the equivalent accessor methods.
1298
1299 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1300
1301 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1302 (struct type) <bit_stride>: New method.
1303 (TYPE_BIT_STRIDE): Remove.
1304 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1305
1306 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1309 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1310 callers to use the equivalent accessor methods instead.
1311
1312 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1313
1314 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1315 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1316 callers to use the equivalent accessor methods instead.
1317
1318 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1319
1320 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1321 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1322 to use dynamic_prop::kind.
1323
1324 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1325
1326 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1327 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1328 to get the bound property's kind and check against
1329 PROP_UNDEFINED.
1330
1331 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1332
1333 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1334 all callers to use type::range_bounds followed by
1335 dynamic_prop::{low,high}.
1336
1337 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1340 const_val, set_const_val, baton, set_locexpr, set_loclist,
1341 set_addr_offset, variant_parts, set_variant_parts,
1342 original_type, set_original_type>: New methods.
1343 <kind>: Rename to...
1344 <m_kind>: ... this. Update all users to use the new methods
1345 instead.
1346 <data>: Rename to...
1347 <m_data>: ... this. Update all users to use the new methods
1348 instead.
1349
1350 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1351
1352 * gdbtypes.c (get_discrete_bounds): Return failure if
1353 the range type's bounds are not both defined and constant
1354 values.
1355 (get_array_bounds): Update comment. Remove undefined bound check.
1356
1357 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1360 the type::bounds method directly.
1361
1362 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1365 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1366 are used to set the range type's bounds to use set_bounds.
1367
1368 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1369
1370 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1371
1372 2020-07-10 Pedro Alves <pedro@palves.net>
1373
1374 * gdbthread.h (inferior_ref): Define.
1375 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1376 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1377 * thread.c
1378 (scoped_restore_current_thread::restore):
1379 Adjust to gdb::ref_ptr.
1380 (scoped_restore_current_thread::~scoped_restore_current_thread):
1381 Remove manual decref handling.
1382 (scoped_restore_current_thread::scoped_restore_current_thread):
1383 Adjust to use
1384 inferior_ref::new_reference/thread_info_ref::new_reference.
1385 Incref the thread before calling get_frame_id instead of after.
1386 Let TARGET_CLOSE_ERROR propagate.
1387
1388 2020-07-10 Pedro Alves <pedro@palves.net>
1389
1390 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1391 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1392 NOT_AVAILABLE_ERROR.
1393 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1394 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1395
1396 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1397 Pedro Alves <pedro@palves.net>
1398
1399 PR gdb/26199
1400 * infrun.c (threads_are_resumed_pending_p): Delete.
1401 (do_target_wait): Remove threads_are_executing and
1402 threads_are_resumed_pending_p checks from the inferior_matches
1403 lambda. Update comments.
1404
1405 2020-07-10 Pedro Alves <pedro@palves.net>
1406
1407 PR gdb/26199
1408 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1409 executing threads.
1410
1411 2020-07-10 Pedro Alves <pedro@palves.net>
1412
1413 PR gdb/26199
1414 * infrun.c (handle_no_resumed): Handle multiple targets.
1415
1416 2020-07-10 Pedro Alves <pedro@palves.net>
1417
1418 PR gdb/26199
1419 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1420 target_is_async_p.
1421
1422 2020-07-10 Pedro Alves <pedro@palves.net>
1423
1424 PR gdb/26199
1425 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1426 threads, not all threads.
1427
1428 2020-07-10 Pedro Alves <pedro@palves.net>
1429
1430 PR gdb/26199
1431 * remote.c (remote_target::open_1): Pass remote target pointer as
1432 data to create_async_event_handler.
1433 (remote_async_inferior_event_handler): Mark async event handler
1434 before returning if the remote target still has either pending
1435 events or unacknowledged notifications.
1436
1437 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1438
1439 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1440 declaration.
1441 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1442 function.
1443
1444 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1445
1446 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1447 inferior_ptid.
1448
1449 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1450
1451 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1452 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1453 AT_FREEBSD_PS_STRINGS.
1454
1455 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1456
1457 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1458 of debugfile path on Windows.
1459
1460 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1461
1462 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1463 argument to 'data'.
1464
1465 2020-07-08 Tom Tromey <tromey@adacore.com>
1466
1467 * ada-lang.c (ada_exception_message_1): Use read_memory.
1468
1469 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 PR python/22748
1472 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1473 special handling for inline frames.
1474 * findvar.c (value_of_register_lazy): Skip inline frames when
1475 creating lazy register values.
1476 * frame.c (frame_id_computed_p): Delete definition.
1477 * frame.h (frame_id_computed_p): Delete declaration.
1478
1479 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * NEWS: Mention additions to Python API.
1482 * python/py-arch.c (archpy_register_groups): New function.
1483 (arch_object_methods): Add 'register_groups' method.
1484 * python/py-registers.c (reggroup_iterator_object): New struct.
1485 (reggroup_object): New struct.
1486 (gdbpy_new_reggroup): New function.
1487 (gdbpy_reggroup_to_string): New function.
1488 (gdbpy_reggroup_name): New function.
1489 (gdbpy_reggroup_iter): New function.
1490 (gdbpy_reggroup_iter_next): New function.
1491 (gdbpy_new_reggroup_iterator): New function
1492 (gdbpy_initialize_registers): Register new types.
1493 (reggroup_iterator_object_type): Define new Python type.
1494 (gdbpy_reggroup_getset): New static global.
1495 (reggroup_object_type): Define new Python type.
1496 * python/python-internal.h
1497
1498 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1501 * python/py-arch.c (archpy_registers): New function.
1502 (arch_object_methods): Add 'registers' method.
1503 * python/py-registers.c: New file.
1504 * python/python-internal.h
1505 (gdbpy_new_register_descriptor_iterator): Declare.
1506 (gdbpy_initialize_registers): Declare.
1507 * python/python.c (do_start_initialization): Call
1508 gdbpy_initialize_registers.
1509 * NEWS: Mention additions to the Python API.
1510
1511 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1512
1513 * NEWS: Mention new Python API method.
1514 * python/py-unwind.c (pending_framepy_architecture): New function.
1515 (pending_frame_object_methods): Add architecture method.
1516
1517 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * gdbarch.c: Regenerate.
1520 * gdbarch.h: Regenerate.
1521 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1522 (gdbarch_data): Use internal_error for the case where
1523 deprecated_set_gdbarch_data was originally needed.
1524 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1525 and use passed in obstack.
1526 (libunwind_frame_set_descr): Should no longer get back NULL from
1527 gdbarch_data.
1528 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1529 type.
1530 * user-regs.c (user_regs_init): Update parameters, and use passed
1531 in obstack.
1532 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1533 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1534
1535 2020-07-06 Tom de Vries <tdevries@suse.de>
1536
1537 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1538 End-Of-Sequence in lte_is_less_than.
1539 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1540 "gdb: Don't reorder line table entries too much when sorting".
1541
1542 2020-07-06 Tom de Vries <tdevries@suse.de>
1543
1544 PR tui/26205
1545 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1546
1547 2020-07-05 Tom de Vries <tdevries@suse.de>
1548
1549 PR build/26187
1550 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1551 std::uncaught_exceptions instead of deprecated
1552 std::uncaught_exception.
1553
1554 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * macroexp.h (macro_stringify): Return
1557 gdb::unique_xmalloc_ptr<char>.
1558 * macroexp.c (macro_stringify): Likewise.
1559 * macrotab.c (fixup_definition): Update.
1560
1561 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1564 (lex_one_token): Update.
1565 * macroexp.c (struct macro_buffer) <release>: Return
1566 gdb::unique_xmalloc_ptr<char>.
1567 (macro_stringify): Update.
1568 (macro_expand): Update.
1569 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1570 * macroexp.h (macro_expand_next): Likewise.
1571
1572 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * macroexp.h (macro_lookup_ftype): Remove.
1575 (macro_expand, macro_expand_once, macro_expand_next): Remove
1576 lookup function parameters, add scope parameter.
1577 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1578 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1579 * macroscope.h (standard_macro_lookup): Change parameter type
1580 to macro_scope.
1581 * macroscope.c (standard_macro_lookup): Likewise.
1582 * c-exp.y (lex_one_token): Update.
1583 * macrocmd.c (macro_expand_command): Likewise.
1584 (macro_expand_once_command): Likewise.
1585
1586 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1587
1588 * inf-loop.c (inferior_event_handler): Remove client_data param.
1589 * inf-loop.h (inferior_event_handler): Likewise.
1590 * infcmd.c (step_1): Adjust.
1591 * infrun.c (proceed): Adjust.
1592 (fetch_inferior_event): Remove client_data param.
1593 (infrun_async_inferior_event_handler): Adjust.
1594 * infrun.h (fetch_inferior_event): Remove `void *` param.
1595 * linux-nat.c (handle_target_event): Adjust.
1596 * record-btrace.c (record_btrace_handle_async_inferior_event):
1597 Adjust.
1598 * record-full.c (record_full_async_inferior_event_handler):
1599 Adjust.
1600 * remote.c (remote_async_inferior_event_handler): Adjust.
1601
1602 2020-07-01 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1605 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1606
1607 2020-07-01 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1610 tui_gen_win_info.
1611 (tui_win_info::make_window): Merge with
1612 tui_gen_win_info::make_window.
1613 (tui_win_info::make_visible): Move from tui_gen_win_info.
1614 * tui/tui-win.c (tui_win_info::max_width): Move from
1615 tui_gen_win_info.
1616 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1617 type.
1618 <window_factory>: Likewise.
1619 * tui/tui-layout.c (tui_win_info::resize): Move from
1620 tui_gen_win_info.
1621 (make_standard_window): Change return type.
1622 (get_locator_window, tui_get_window_by_name): Likewise.
1623 (tui_layout_window::apply): Remove a cast.
1624 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1625 (struct tui_win_info): Merge with tui_gen_win_info.
1626 (struct tui_gen_win_info): Remove.
1627
1628 2020-07-01 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-stack.h (struct tui_locator_window): Derive from
1631 tui_win_info.
1632 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1633 <can_box>: New method.
1634
1635 2020-07-01 Tom Tromey <tom@tromey.com>
1636
1637 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1638
1639 2020-07-01 Tom Tromey <tom@tromey.com>
1640
1641 * tui/tui-regs.c (tui_data_window::display_registers_from)
1642 (tui_data_window::display_registers_from)
1643 (tui_data_window::first_data_item_displayed)
1644 (tui_data_window::delete_data_content_windows): Update.
1645 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1646 Remove.
1647 (tui_data_window::check_register_values): Update.
1648 (tui_data_item_window::rerender): Add parameters. Update.
1649 (tui_data_item_window::refresh_window): Remove.
1650 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1651 virtual.
1652 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1653 tui_gen_win_info.
1654 <refresh_window, max_height, min_height>: Remove.
1655 <rerender>: Add parameters.
1656 <x, y, visible>: New members.
1657 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1658 <m_item_width>: New member.
1659
1660 2020-07-01 Tom Tromey <tom@tromey.com>
1661
1662 * tui/tui-regs.c (tui_data_window::show_register_group)
1663 (tui_data_window::check_register_values): Update.
1664 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1665 from item_no.
1666
1667 2020-07-01 Tom Tromey <tom@tromey.com>
1668
1669 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1670 useless "if".
1671
1672 2020-07-01 Tom Tromey <tom@tromey.com>
1673
1674 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1675 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1676
1677 2020-07-01 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1680 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1681 (struct tui_line_or_address): Move from tui-data.h.
1682 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1683 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1684 (tui_cmd_window, tui_source_window_base, tui_source_window)
1685 (tui_disasm_window): Don't declare.
1686 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1687 to tui-winsource.h.
1688 (SINGLE_KEY): Move to tui-stack.c.
1689
1690 2020-07-01 Tom Tromey <tom@tromey.com>
1691
1692 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1693 std::string.
1694 * tui/tui-regs.c (class tab_expansion_file): New.
1695 (tab_expansion_file::write): New method.
1696 (tui_register_format): Change return type. Use
1697 tab_expansion_file.
1698 (tui_get_register, tui_data_window::display_registers_from)
1699 (tui_data_item_window::rerender): Update.
1700 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1701 * tui/tui-io.c (tui_expand_tabs): Remove.
1702
1703 2020-07-01 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1706
1707 2020-07-01 Fangrui Song <maskray@google.com>
1708
1709 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1710
1711 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1712
1713 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1714 forms for DW_AT_associated and DW_AT_allocated attributes,
1715 which is already checked in function attr_to_dynamic_prop.
1716
1717 2020-06-30 Tom Tromey <tromey@adacore.com>
1718
1719 * dwarf2/read.c (quirk_rust_enum): Correctly call
1720 alloc_rust_variant for default-less enum.
1721
1722 2020-06-30 Tom Tromey <tromey@adacore.com>
1723
1724 PR build/26183:
1725 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1726 gdb::to_string.
1727
1728 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1731 * gdbarch.h: Re-generate.
1732
1733 2020-06-28 Tom Tromey <tom@tromey.com>
1734
1735 * command.h (cmd_types): Remove.
1736 (cmd_type): Don't declare.
1737 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1738 typedef.
1739 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1740 * cli/cli-decode.c (cmd_type): Remove.
1741
1742 2020-06-27 Pedro Alves <palves@redhat.com>
1743
1744 * fork-child.c (prefork_hook): Adjust.
1745 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1746 Delete.
1747 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1748 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1749 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1750 Remove declarations.
1751 (struct inferior) <set_tty, tty>: New methods.
1752 (struct inferior) <terminal>: Rename to ...
1753 (struct inferior) <m_terminal>: ... this and make private.
1754 * main.c (captured_main_1): Adjust.
1755 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1756 (mi_cmd_inferior_tty_show): Adjust.
1757 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1758 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1759
1760 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1761
1762 * configure.ac: Add --enable-libctf: handle --disable-static
1763 properly.
1764 * acinclude.m4: sinclude ../config/enable.m4.
1765 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1766 (LIBCTF): Substitute in.
1767 (CTF_DEPS): New, likewise.
1768 (CLIBS): libctf needs symbols from libbfd: move earlier.
1769 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1770 flags.
1771 * ctfread.c: Surround in ENABLE_LIBCTF.
1772 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1773 * configure: Regenerate.
1774 * config.in: Likewise.
1775
1776 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1779
1780 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * inferior.h (struct inferior) <terminal>: Change type to
1783 gdb::unique_xmalloc_ptr<char>.
1784 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1785 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1786 field, adjust to unique pointer.
1787 (get_inferior_io_terminal): Adjust to unique pointer.
1788
1789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1792 registers, not just the known core set of registers.
1793
1794 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1797 fflags, frm, and fcsr registers.
1798 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1799 restore groups.
1800 (riscv_tdesc_unknown_reg): New function.
1801 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1802 tdesc_use_registers.
1803 * riscv-tdep.h (struct gdbarch_tdep): Add
1804 unknown_csrs_first_regnum, unknown_csrs_count,
1805 duplicate_fflags_regnum, duplicate_frm_regnum, and
1806 duplicate_fcsr_regnum fields.
1807
1808 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1811 callback, use the callback (when not null) to help number unknown
1812 registers.
1813 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1814 (tdesc_use_registers): Add extra parameter to declaration.
1815
1816 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1819 in the file.
1820 (class riscv_pending_register_alias): Likewise.
1821 (riscv_register_feature::register_info): Change 'required_p' field
1822 to 'required', and change its type. Add 'check' member function.
1823 (riscv_register_feature::register_info::check): Define new member
1824 function.
1825 (riscv_xreg_feature): Change initialisation of 'required' field.
1826 (riscv_freg_feature): Likewise.
1827 (riscv_virtual_feature): Likewise.
1828 (riscv_csr_feature): Likewise.
1829 (riscv_check_tdesc_feature): Take extra parameter, the csr
1830 tdesc_feature, rewrite the function to use the new
1831 riscv_register_feature::register_info::check function.
1832 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1833
1834 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * features/Makefile: Remove all references to the deleted files
1837 below.
1838 * features/riscv/32bit-csr.c: Deleted.
1839 * features/riscv/32bit-csr.xml: Deleted.
1840 * features/riscv/64bit-csr.c: Deleted.
1841 * features/riscv/64bit-csr.xml: Deleted.
1842 * features/riscv/rebuild-csr-xml.sh: Deleted.
1843
1844 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1847 whitespace error for declaration of names member variable.
1848 (struct riscv_register_feature): Add new prefer_first_name member
1849 variable, and fix whitespace error in declaration of registers.
1850 (riscv_xreg_feature): Initialize prefer_first_name field.
1851 (riscv_freg_feature): Likewise.
1852 (riscv_virtual_feature): Likewise.
1853 (riscv_csr_feature): Likewise.
1854 (riscv_register_name): Expand on comments. Remove register name
1855 modifications for CSR and virtual registers.
1856
1857 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1858
1859 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1860 errors.
1861
1862 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1865 riscv-opc.h.
1866 (class riscv_pending_register_alias): New class.
1867 (riscv_check_tdesc_feature): Take vector of pending aliases and
1868 populate it as appropriate.
1869 (riscv_setup_register_aliases): Delete.
1870 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1871 to riscv_check_tdesc_feature in all cases. Use the vector to
1872 create the register aliases.
1873
1874 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1875
1876 * sol2-tdep.c (sol2_static_transform_name): Remove.
1877 (sol2_init_abi): Don't register it.
1878 * gdbarch.sh (static_transform_name): Remove.
1879 * gdbarch.c, gdbarch.h: Regenerate.
1880
1881 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1882 gdbarch_static_transform_name.
1883 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1884 * stabsread.c (define_symbol) <'X'>: Remove.
1885 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1886 handling.
1887 <'V'>: Likewise.
1888 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1889 <'S'>: Remove call to gdbarch_static_transform_name.
1890
1891 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892
1893 * procfs.c (procfs_pre_trace): New function.
1894 (procfs_target::create_inferior): Pass it to fork_inferior.
1895
1896 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1897
1898 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1899 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1900 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1901 sol2-tdep.o, sparc-sol2-tdep.o.
1902 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1903 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1904 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1905 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1906
1907 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1908
1909 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1910 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1911 Call sol2_init_abi.
1912 Remove calls to set_gdbarch_skip_solib_resolver,
1913 set_gdbarch_core_pid_to_str.
1914 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1915 (i386_sol2_static_transform_name): Remove.
1916 (i386_sol2_init_abi): Call sol2_init_abi.
1917 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1918 set_gdbarch_static_transform_name,
1919 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1920 Use sol2_sigtramp_p.
1921 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1922 (sol2_sigtramp_p): New function.
1923 (sol2_static_transform_name): New function.
1924 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1925 (sol2_init_abi): New function.
1926 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1927 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1928 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1929 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1930 (sparc_sol2_static_transform_name): Remove.
1931 (sparc32_sol2_init_abi): Call sol2_init_abi.
1932 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1933 set_gdbarch_static_transform_name,
1934 set_gdbarch_skip_solib_resolver,
1935 set_gdbarch_core_pid_to_str.
1936 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1937 (sparc_sol2_static_transform_name): Remove
1938 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1939 call sol2_sigtramp_p.
1940 (sparc64_sol2_init_abi): Call sol2_init_abi.
1941 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1942 set_gdbarch_static_transform_name,
1943 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1944
1945 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1946
1947 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1948 * exec.c (validate_exec_file): If from_tty, set both
1949 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1950 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1951 and from_tty, unconditionally ask a confirmation.
1952
1953 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * target-descriptions.c (tdesc_architecture_name): Protect against
1956 NULL pointer dereference.
1957 (maint_print_xml_tdesc_cmd): New function.
1958 (_initialize_target_descriptions): Register new 'maint print
1959 xml-tdesc' command and give it the filename completer.
1960 * NEWS: Mention new 'maint print xml-tdesc' command.
1961
1962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * target-descriptions.c (class tdesc_compatible_info): New class.
1965 (struct target_desc): Change type of compatible vector.
1966 (tdesc_compatible_p): Update for change in type of
1967 target_desc::compatible.
1968 (tdesc_compatible_info_list): New function.
1969 (tdesc_compatible_info_arch_name): New function.
1970 (tdesc_add_compatible): Update for change in type of
1971 target_desc::compatible.
1972 (print_c_tdesc::visit_pre): Likewise.
1973
1974 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1977 whitespace to underscore.
1978 (maint_print_c_tdesc_cmd): Use fake filename for target
1979 descriptions that came from the target.
1980 (_initialize_target_descriptions): Add filename command completion
1981 for 'maint print c-tdesc'.
1982
1983 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1984
1985 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1986 lines.
1987
1988 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1991 lines.
1992 (dwarf2_find_location_expression): Likewise.
1993 (call_site_parameter_matches): Likewise.
1994 (dwarf2_compile_expr_to_ax): Likewise.
1995 (disassemble_dwarf_expression): Likewise.
1996 (loclist_describe_location): Likewise.
1997
1998 2020-06-23 Pedro Alves <palves@redhat.com>
1999
2000 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2001 progspace-and-thread.h. Include scoped-mock-context.h instead.
2002 (register_to_value_test): Use scoped_mock_context.
2003 * regcache.c: Include "scoped-mock-context.h".
2004 (cooked_read_test): Don't error out if a target is already pushed.
2005 Use scoped_mock_context. Adjust.
2006 * scoped-mock-context.h: New file.
2007
2008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2011 initializer.
2012 (ada_language::is_string_type_p): New member function.
2013 * c-lang.c (c_language_data): Delete la_is_string_type_p
2014 initializer.
2015 (cplus_language_data): Likewise.
2016 (asm_language_data): Likewise.
2017 (minimal_language_data): Likewise.
2018 * d-lang.c (d_language_data): Likewise.
2019 * f-lang.c (f_is_string_type_p): Delete function, implementation
2020 moved to f_language::is_string_type_p.
2021 (f_language_data): Delete la_is_string_type_p initializer.
2022 (f_language::is_string_type_p): New member function,
2023 implementation from f_is_string_type_p.
2024 * go-lang.c (go_is_string_type_p): Delete function, implementation
2025 moved to go_language::is_string_type_p.
2026 (go_language_data): Delete la_is_string_type_p initializer.
2027 (go_language::is_string_type_p): New member function,
2028 implementation from go_is_string_type_p.
2029 * language.c (language_defn::is_string_type_p): Define new member
2030 function.
2031 (default_is_string_type_p): Make static, add comment copied from
2032 header file.
2033 (unknown_language_data): Delete la_is_string_type_p initializer.
2034 (unknown_language::is_string_type_p): New member function.
2035 (auto_language_data): Delete la_is_string_type_p initializer.
2036 (auto_language::is_string_type_p): New member function.
2037 * language.h (language_data): Delete la_is_string_type_p field.
2038 (language_defn::is_string_type_p): Declare new function.
2039 (default_is_string_type_p): Delete desclaration, move comment to
2040 definition.
2041 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2042 moved to m2_language::is_string_type_p.
2043 (m2_language_data): Delete la_is_string_type_p initializer.
2044 (m2_language::is_string_type_p): New member function,
2045 implementation from m2_is_string_type_p.
2046 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2047 initializer.
2048 * opencl-lang.c (opencl_language_data): Likewise.
2049 * p-lang.c (pascal_is_string_type_p): Delete function,
2050 implementation moved to pascal_language::is_string_type_p.
2051 (pascal_language_data): Delete la_is_string_type_p initializer.
2052 (pascal_language::is_string_type_p): New member function,
2053 implementation from pascal_is_string_type_p.
2054 * rust-lang.c (rust_is_string_type_p): Delete function,
2055 implementation moved to rust_language::is_string_type_p.
2056 (rust_language_data): Delete la_is_string_type_p initializer.
2057 (rust_language::is_string_type_p): New member function,
2058 implementation from rust_is_string_type_p.
2059 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2060 is_string_type_p.
2061
2062 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * ada-lang.c (ada_language_data): Delete la_print_typedef
2065 initializer.
2066 (ada_language::print_typedef): New member function.
2067 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2068 (cplus_language_data): Likewise.
2069 (asm_language_data): Likewise.
2070 (minimal_language_data): Likewise.
2071 * d-lang.c (d_language_data): Likewise.
2072 * f-lang.c (f_language_data): Likewise.
2073 (f_language::print_typedef): New member function.
2074 * go-lang.c (go_language_data): Delete la_print_typedef
2075 initializer.
2076 * language.c (language_defn::print_typedef): Define member
2077 function.
2078 (unknown_language_data): Delete la_print_typedef initializer.
2079 (unknown_language::print_typedef): New member function.
2080 (auto_language_data): Delete la_print_typedef initializer.
2081 (auto_language::print_typedef): New member function.
2082 * language.h (language_data): Delete la_print_typedef field.
2083 (language_defn::print_typedef): Declare new member function.
2084 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2085 (default_print_typedef): Delete declaration.
2086 * m2-lang.c (m2_language_data): Delete la_print_typedef
2087 initializer.
2088 (m2_language::print_typedef): New member function.
2089 * objc-lang.c (objc_language_data): Delete la_print_typedef
2090 initializer.
2091 * opencl-lang.c (opencl_language_data): Likewise.
2092 * p-lang.c (pascal_language_data): Likewise.
2093 (pascal_language::print_typedef): New member function.
2094 * rust-lang.c (rust_print_typedef): Delete function,
2095 implementation moved to rust_language::print_typedef.
2096 (rust_language): Delete la_print_typedef initializer.
2097 (rust_language::print_typedef): New member function,
2098 implementation from rust_print_typedef.
2099 * typeprint.c (default_print_typedef): Delete.
2100
2101 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2104 (ada_language::printstr): New member function.
2105 * c-lang.c (c_language_data): Delete la_printstr initializer.
2106 (cplus_language_data): Likewise.
2107 (asm_language_data): Likewise.
2108 (minimal_language_data): Likewise.
2109 * d-lang.c (d_language_data): Likewise.
2110 * f-lang.c (f_printstr): Rename to f_language::printstr.
2111 (f_language_data): Delete la_printstr initializer.
2112 (f_language::printstr): New member function, implementation from
2113 f_printstr.
2114 * go-lang.c (go_language_data): Delete la_printstr initializer.
2115 * language.c (language_defn::printstr): Define new member
2116 function.
2117 (unk_lang_printstr): Delete.
2118 (unknown_language_data): Delete la_printstr initializer.
2119 (unknown_language::printstr): New member function.
2120 (auto_language_data): Delete la_printstr initializer.
2121 (auto_language::printstr): New member function.
2122 * language.h (language_data): Delete la_printstr field.
2123 (language_defn::printstr): Declare new member function.
2124 (LA_PRINT_STRING): Update call to printstr.
2125 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2126 (m2_language_data): Delete la_printstr initializer.
2127 (m2_language::printstr): New member function, implementation from
2128 m2_printstr.
2129 * objc-lang.c (objc_language_data): Delete la_printstr
2130 initializer.
2131 * opencl-lang.c (opencl_language_data): Likewise.
2132 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2133 (pascal_language_data): Delete la_printstr initializer.
2134 (pascal_language::printstr): New member function, implementation
2135 from pascal_printstr.
2136 * p-lang.h (pascal_printstr): Delete declaration.
2137 * rust-lang.c (rust_printstr): Update header comment.
2138 (rust_language_data): Delete la_printstr initializer.
2139 (rust_language::printstr): New member function.
2140
2141 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2144 (ada_language::printchar): New member function.
2145 * c-lang.c (c_language_data): Delete la_printchar initializer.
2146 (cplus_language_data): Likewise.
2147 (asm_language_data): Likewise.
2148 (minimal_language_data): Likewise.
2149 * d-lang.c (d_language_data): Likewise.
2150 * f-lang.c (f_printchar): Rename to f_language::printchar.
2151 (f_language_data): Delete la_printchar initializer.
2152 (f_language::printchar): New member function, implementation from
2153 f_printchar.
2154 * go-lang.c (go_language_data): Delete la_printchar initializer.
2155 * language.c (unk_lang_printchar): Delete.
2156 (language_defn::printchar): Define new member function.
2157 (unknown_language_data): Delete la_printchar initializer.
2158 (unknown_language::printchar): New member function.
2159 (auto_language_data): Delete la_printchar initializer.
2160 (auto_language::printchar): New member function.
2161 * language.h (language_data): Delete la_printchar field.
2162 (language_defn::printchar): Declare new member function.
2163 (LA_PRINT_CHAR): Update call to printchar.
2164 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2165 (m2_language::printchar): New member function.
2166 * objc-lang.c (objc_language_data): Delete la_printchar
2167 initializer.
2168 * opencl-lang.c (opencl_language_data): Likewise.
2169 * p-lang.c (pascal_language_data): Delete la_printchar
2170 initializer.
2171 (pascal_language::printchar): New member function.
2172 * rust-lang.c (rust_printchar): Rename to
2173 rust_language::printchar.
2174 (rust_language_data): Delete la_printchar initializer.
2175 (rust_language::printchar): New member function, implementation
2176 from rust_printchar.
2177
2178 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2181 (ada_language_data): Delete la_emitchar initializer.
2182 (ada_language::emitchar): New member function, implementation from
2183 emit_char.
2184 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2185 (cplus_language_data): Likewise.
2186 (asm_language_data): Likewise.
2187 (minimal_language_data): Likewise.
2188 * d-lang.c (d_language_data): Likewise.
2189 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2190 (f_language_data): Delete la_emitchar initializer.
2191 (f_language::emitchar): New member function, implementation from
2192 f_emit_char.
2193 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2194 * language.c (unk_lang_emit_char): Delete.
2195 (language_defn::emitchar): New member function definition.
2196 (unknown_language_data): Delete la_emitchar initializer.
2197 (unknown_language::emitchar): New member function.
2198 (auto_language_data): Delete la_emitchar initializer.
2199 (auto_language::emitchar): New member function.
2200 * language.h (language_data): Delete la_emitchar field.
2201 (language_defn::emitchar): New member field declaration.
2202 (LA_EMIT_CHAR): Update call to emitchar.
2203 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2204 (m2_language_data): Delete la_emitchar initializer.
2205 (m2_language::emitchar): New member function, implementation from
2206 m2_emit_char.
2207 * objc-lang.c (objc_language_data): Delete la_emitchar
2208 initializer.
2209 * opencl-lang.c (opencl_language_data): Likewise.
2210 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2211 (pascal_language_data): Delete la_emitchar initializer.
2212 (pascal_language::emitchar): New member function, implementation
2213 from pascal_emit_char.
2214 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2215 (rust_language_data): Delete la_emitchar initializer.
2216 (rust_language::emitchar): New member function, implementation
2217 from rust_emitchar.
2218
2219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2222 (ada_language_data): Delete la_post_parser initializer.
2223 (ada_language::post_parser): New member function.
2224 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2225 (cplus_language_data): Likewise.
2226 (asm_language_data): Likewise.
2227 (minimal_language_data): Likewise.
2228 * d-lang.c (d_language_data): Likewise.
2229 * f-lang.c (f_language_data): Likewise.
2230 * go-lang.c (go_language_data): Likewise.
2231 * language.c (unknown_language_data): Likewise.
2232 (auto_language_data): Likewise.
2233 * language.h (language_data): Delete la_post_parser field.
2234 (language_defn::post_parser): New member function.
2235 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2236 * objc-lang.c (objc_language_data): Likewise.
2237 * opencl-lang.c (opencl_language_data): Likewise.
2238 * p-lang.c (pascal_language_data): Likewise.
2239 * parse.c (parse_exp_in_context): Update call to post_parser.
2240 (null_post_parser): Delete definition.
2241 * parser-defs.h (null_post_parser): Delete declaration.
2242 * rust-lang.c (rust_language_data): Delete la_post_parser
2243 initializer.
2244
2245 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * ada-lang.c (parse): Rename to ada_language::parser.
2248 (ada_language_data): Delete la_parser initializer.
2249 (ada_language::parser): New member function, implementation from
2250 parse.
2251 * c-lang.c (c_language_data): Delete la_parser initializer.
2252 (cplus_language_data): Likewise.
2253 (asm_language_data): Likewise.
2254 (minimal_language_data): Likewise.
2255 * d-lang.c (d_language_data): Likewise.
2256 (d_language::parser): New member function.
2257 * f-lang.c (f_language_data): Delete la_parser initializer.
2258 (f_language::parser): New member function.
2259 * go-lang.c (go_language_data): Delete la_parser initializer.
2260 (go_language::parser): New member function.
2261 * language.c (unk_lang_parser): Delete.
2262 (language_defn::parser): Define new member function.
2263 (unknown_language_data): Delete la_parser initializer.
2264 (unknown_language::parser): New member function.
2265 (auto_language_data): Delete la_parser initializer.
2266 (auto_language::parser): New member function.
2267 * language.h (language_data): Delete la_parser field.
2268 (language_defn::parser): Declare new member function.
2269 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2270 (m2_language::parser): New member function.
2271 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2272 * opencl-lang.c (opencl_language_data): Likewise.
2273 * p-lang.c (pascal_language_data): Likewise.
2274 (pascal_language::parser): New member function.
2275 * parse.c (parse_exp_in_context): Update call to parser.
2276 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2277 (rust_language::parser): New member function.
2278
2279 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * top.c (print_gdb_configuration): Print --with-python-libdir
2282 configuration value.
2283
2284 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2285
2286 * NEWS: Mention change to the alias command.
2287
2288 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2289
2290 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2291 (alias_command_completer)
2292 (make_alias_options_def_group): New functions.
2293 (alias_opts, alias_option_defs): New struct and array.
2294 (alias_usage_error): Update usage.
2295 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2296 Use option framework.
2297 (_initialize_cli_cmds): Update alias command help.
2298 Update aliases command help.
2299 (show_user):
2300 Add NULL for new default_args lookup_cmd argument.
2301 (valid_command_p): Rename to validate_aliased_command.
2302 Add NULL for new default_args lookup_cmd argument. Verify that the
2303 aliased_command has no default args.
2304 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2305 (lookup_cmd_1, lookup_cmd): New argument default_args.
2306 (add_alias_cmd):
2307 Add NULL for new default_args lookup_cmd argument.
2308 (print_help_for_command): Show default args under the layout
2309 alias some_alias = some_aliased_cmd some_alias_default_arg.
2310 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2311 xfree default_args in destructor.
2312 * cli/cli-script.c (process_next_line, do_define_command):
2313 Add NULL for new default_args lookup_cmd argument.
2314 * command.h: Declare new default_args argument in lookup_cmd
2315 and lookup_cmd_1.
2316 * completer.c (complete_line_internal_1):
2317 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2318 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2319 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2320 Likewise.
2321 * infcmd.c (_initialize_infcmd): Likewise.
2322 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2323 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2324 * python/py-param.c (add_setshow_generic): Likewise.
2325 * remote.c (_initialize_remote): Likewise.
2326 * top.c (execute_command): Prepend default_args if command has some.
2327 (set_verbose):
2328 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2329 * tracepoint.c (validate_actionline, encode_actions_1):
2330 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2331
2332 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2333
2334 * jit.c (jit_read_descriptor): Use bool as the return type.
2335 (jit_breakpoint_re_set_internal): Use bool as the return type.
2336 Invert the return value logic; return true if the jit breakpoint
2337 has been successfully initialized.
2338 (jit_inferior_init): Update the call to
2339 jit_breakpoint_re_set_internal.
2340
2341 2020-06-22 Pedro Alves <palves@redhat.com>
2342
2343 PR gdb/25939
2344 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2345 Use the current inferior instead. Don't return
2346 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2347 wait again.
2348 * sol-thread.c (sol_thread_target::wait): Don't reference
2349 inferior_ptid.
2350 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2351 (sol_update_thread_list_callback): Use the current inferior's pid
2352 instead of inferior_ptid.
2353
2354 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2355
2356 * procfs.c: Cleanup many comments.
2357
2358 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2359 (AFTER_WATCHFLAG): Replace by value.
2360
2361 (MAIN_PROC_NAME_FORMAT): Inline ...
2362 (create_procinfo): ... here.
2363
2364 (procfs_debug_inferior): Remove SYS_exec handling.
2365 (syscall_is_exec): Likewise.
2366 (procfs_set_exec_trap): Likewise.
2367
2368 (syscall_is_lwp_exit): Inline in callers.
2369 (syscall_is_exit): Likewise.
2370 (syscall_is_exec): Likewise.
2371 (syscall_is_lwp_create): Likewise.
2372
2373 (invalidate_cache): Remove #if 0 code.
2374
2375 (make_signal_thread_runnable): Remove.
2376 (procfs_target::resume): Remove #if 0 code.
2377
2378 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2379
2380 PR gdb/25939
2381 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2382 call ...
2383 (procfs_target::create_inferior): ... here.
2384
2385 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2386
2387 * exec.c (validate_exec_file): Ensure the build-id is up to
2388 date by calling reopen_exec_file (that checks file timestamp
2389 to decide to re-read the file).
2390
2391 2020-06-18 Pedro Alves <palves@redhat.com>
2392
2393 PR gdb/25412
2394 * gdbthread.h (delete_thread, delete_thread_silent)
2395 (find_thread_ptid): Update comments.
2396 * thread.c (current_thread_): New global.
2397 (is_current_thread): Move higher, and reimplement.
2398 (inferior_thread): Reimplement.
2399 (set_thread_exited): Use bool. Add assertions.
2400 (add_thread_silent): Simplify thread-reuse handling by always
2401 calling delete_thread.
2402 (delete_thread): Remove intro comment.
2403 (find_thread_ptid): Skip exited threads.
2404 (switch_to_thread_no_regs): Write to current_thread_.
2405 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2406 INFERIOR_PTID. Clear current_thread_.
2407
2408 2020-06-18 Pedro Alves <palves@redhat.com>
2409
2410 * aix-thread.c (pd_update): Use switch_to_thread.
2411
2412 2020-06-18 Pedro Alves <palves@redhat.com>
2413
2414 * ravenscar-thread.c (ravenscar_thread_target): Update.
2415 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2416 (ravenscar_thread_target::add_active_thread): ... this. Don't
2417 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2418 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2419
2420 2020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * nat/windows-nat.c (current_windows_thread): Remove.
2423 * nat/windows-nat.h (current_windows_thread): Remove.
2424 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2425 Adjust.
2426 (display_selectors): Adjust to fetch the current
2427 windows_thread_info based on inferior_ptid.
2428 (fake_create_process): No longer write to current_windows_thread.
2429 (windows_nat_target::get_windows_debug_event):
2430 Don't set inferior_ptid or current_windows_thread.
2431 (windows_nat_target::wait): Adjust to not rely on
2432 current_windows_thread.
2433 (do_initial_windows_stuff): Now a method of windows_nat_target.
2434 Switch to the last_ptid thread.
2435 (windows_nat_target::attach): Adjust.
2436 (windows_nat_target::detach): Use switch_to_no_thread instead of
2437 writing to inferior_ptid directly.
2438 (windows_nat_target::create_inferior): Adjust.
2439
2440 2020-06-18 Pedro Alves <palves@redhat.com>
2441
2442 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2443
2444 2020-06-18 Pedro Alves <palves@redhat.com>
2445
2446 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2447 after creating it, instead of writing to inferior_ptid. Don't
2448 write to inferior_ptid.
2449
2450 2020-06-18 Pedro Alves <palves@redhat.com>
2451
2452 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2453
2454 2020-06-18 Pedro Alves <palves@redhat.com>
2455
2456 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2457 it, instead of writing to inferior_ptid.
2458
2459 2020-06-18 Pedro Alves <palves@redhat.com>
2460
2461 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2462 to inferior_ptid.
2463
2464 2020-06-18 Pedro Alves <palves@redhat.com>
2465
2466 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2467 instead of writing to inferior_ptid directly.
2468
2469 2020-06-18 Pedro Alves <palves@redhat.com>
2470
2471 * corelow.c (core_target::close): Use switch_to_no_thread instead
2472 of writing to inferior_ptid directly.
2473 (add_to_thread_list, core_target_open): Use switch_to_thread
2474 instead of writing to inferior_ptid directly.
2475
2476 2020-06-18 Pedro Alves <palves@redhat.com>
2477
2478 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2479 inferior_ptid.
2480 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2481 inferior_ptid.
2482 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2483 inferior_ptid directly.
2484 (darwin_nat_target::init_thread_list): Switch to thread, instead
2485 of writing to inferior_ptid.
2486 (darwin_nat_target::attach): Don't write to inferior_ptid.
2487 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2488
2489 2020-06-18 Pedro Alves <palves@redhat.com>
2490
2491 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2492 thread.
2493 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2494 Instead use switch_to_thread.
2495 (gnu_nat_target::detach): Use switch_to_no_thread
2496 instead of writing to inferior_ptid directly. Used passed-in
2497 inferior instead of looking up the inferior by pid.
2498
2499 2020-06-18 Pedro Alves <palves@redhat.com>
2500
2501 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2502 inferior_ptid.
2503
2504 2020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2507 inferior_ptid.
2508 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2509 thread.
2510 (nto_procfs_target::detach): Avoid referencing
2511 inferior_ptid. Use switch_to_no_thread instead of writing to
2512 inferior_ptid directly.
2513 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2514 instead of writing to inferior_ptid directly.
2515 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2516 to thread.
2517
2518 2020-06-18 Pedro Alves <palves@redhat.com>
2519
2520 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2521 after creating it, instead of writing to inferior_ptid.
2522 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2523 to inferior_ptid directly.
2524 (gdbsim_target::wait): Don't write to inferior_ptid.
2525
2526 2020-06-18 Pedro Alves <palves@redhat.com>
2527
2528 * remote.c (remote_target::remote_notice_new_inferior): Use
2529 switch_to_thread instead of writing to inferior_ptid directly.
2530 (remote_target::add_current_inferior_and_thread): Use
2531 switch_to_no_thread instead of writing to inferior_ptid directly.
2532 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2533 and switch_to_thread instead of using set_current_inferior or
2534 writing to inferior_ptid directly.
2535
2536 2020-06-18 Pedro Alves <palves@redhat.com>
2537
2538 * tracectf.c (ctf_target_open): Switch to added thread instead of
2539 writing to inferior_ptid directly.
2540 (ctf_target::close): Use switch_to_no_thread instead of writing to
2541 inferior_ptid directly.
2542
2543 2020-06-18 Pedro Alves <palves@redhat.com>
2544
2545 * tracefile-tfile.c (tfile_target_open): Don't write to
2546 inferior_ptid directly, instead switch to added thread.
2547 (tfile_target::close): Use switch_to_no_thread instead of writing
2548 to inferior_ptid directly.
2549
2550 2020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2553 (procfs_target::detach): Use switch_to_no_thread
2554 instead of writing to inferior_ptid directly.
2555 (do_attach): Change return type to void. Switch to the added
2556 thread.
2557 (procfs_target::create_inferior): Switch to the added thread.
2558 (procfs_do_thread_registers): Don't write to inferior_ptid.
2559
2560 2020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2563 of writing to inferior_ptid.
2564 (scoped_restore_exited_inferior): Delete.
2565 (handle_vfork_child_exec_or_exit): Simplify using
2566 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2567 instead of writing to inferior_ptid.
2568 (THREAD_STOPPED_BY): Delete.
2569 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2570 (thread_stopped_by_hw_breakpoint): Delete.
2571 (save_waitstatus): Use
2572 scoped_restore_current_thread+switch_to_thread, and call
2573 target_stopped_by_watchpoint instead of
2574 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2575 instead of thread_stopped_by_sw_breakpoint, and
2576 target_stopped_by_hw_breakpoint instead of
2577 thread_stopped_by_hw_breakpoint.
2578 (handle_inferior_event)
2579 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2580 inferior_ptid directly, nor
2581 set_current_inferior/set_current_program_space. Use
2582 switch_to_thread / switch_to_inferior_no_thread instead.
2583
2584 2020-06-18 Pedro Alves <palves@redhat.com>
2585
2586 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2587 instead of writing to inferior_ptid.
2588
2589 2020-06-18 Pedro Alves <palves@redhat.com>
2590
2591 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2592 added thread.
2593 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2594 to the added thread.
2595 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2596 instead of writing to inferior_ptid.
2597
2598 2020-06-18 Pedro Alves <palves@redhat.com>
2599
2600 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2601 (register_to_value_test): Mock a program_space too. Heap-allocate
2602 the address space. Don't write to inferior_ptid. Use
2603 switch_to_thread instead.
2604
2605 2020-06-18 Pedro Alves <palves@redhat.com>
2606
2607 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2608 Delete.
2609 (find_signalled_thread()): New, factored out from
2610 linux_make_corefile_notes and adjusted to handle exited threads.
2611 (linux_make_corefile_notes): Adjust to use the new
2612 find_signalled_thread.
2613
2614 2020-06-18 Pedro Alves <palves@redhat.com>
2615
2616 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2617 of saving/restoring inferior_ptid.
2618
2619 2020-06-17 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2622 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2623 declare.
2624 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2625
2626 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2629 of partial symtabs.
2630
2631 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * regformats/reg-arm.dat: Remove.
2634 * regformats/reg-bfin.dat: Remove.
2635 * regformats/reg-cris.dat: Remove.
2636 * regformats/reg-crisv32.dat: Remove.
2637 * regformats/reg-m32r.dat: Remove.
2638 * regformats/reg-tilegx.dat: Remove.
2639 * regformats/reg-tilegx32.dat: Remove.
2640
2641 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * features/Makefile (WHICH): Remove arm files.
2644 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2645 * regformats/arm/arm-with-neon.dat: Remove.
2646 * regformats/arm/arm-with-vfpv2.dat: Remove.
2647 * regformats/arm/arm-with-vfpv3.dat: Remove.
2648
2649 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * features/Makefile (XMLTOC): Remove rx.xml.
2652
2653 2020-06-17 Pedro Alves <palves@redhat.com>
2654
2655 * gdbthread.h (thread_control_state) <trap_expected> Update
2656 comments.
2657
2658 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2661 ada_language::lookup_symbol_nonlocal.
2662 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2663 (ada_language::lookup_symbol_nonlocal): New member function,
2664 implementation from ada_lookup_symbol_nonlocal.
2665 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2666 initializer.
2667 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2668 initializer.
2669 (cplus_language::lookup_symbol_nonlocal): New member function.
2670 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2671 (minimal_language_data) Likewise.
2672 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2673 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2674 initializer.
2675 (d_language::lookup_symbol_nonlocal): New member function.
2676 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2677 initializer.
2678 (f_language::lookup_symbol_nonlocal): New member function.
2679 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2680 initializer.
2681 * language.c (unknown_language_data): Likewise.
2682 (auto_language_data): Likewise.
2683 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2684 field.
2685 (language_defn::lookup_symbol_nonlocal): New member function.
2686 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2687 initializer.
2688 * objc-lang.c (objc_language_data): Likewise.
2689 * opencl-lang.c (opencl_language_data): Likewise.
2690 * p-lang.c (pascal_language_data): Likewise.
2691 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2692 rust_language::lookup_symbol_nonlocal.
2693 (rust_language_data): Delete la_lookup_symbol_nonlocal
2694 initializer.
2695 (rust_language::lookup_symbol_nonlocal): New member function,
2696 implementation from rust_lookup_symbol_nonlocal.
2697 * symtab.c (lookup_symbol_aux): Update call to
2698 lookup_symbol_nonlocal.
2699 (basic_lookup_symbol_nonlocal): Rename to...
2700 (language_defn::lookup_symbol_nonlocal): ...this, and update
2701 header comment. Remove language_defn parameter, and replace with
2702 uses of `this'.
2703 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2704
2705 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2708 initializer.
2709 (ada_language::value_print_inner): New member function.
2710 * c-lang.c (c_language_data): Delete la_value_print_inner
2711 initializer.
2712 (cplus_language_data): Likewise.
2713 (asm_language_data): Likewise.
2714 (minimal_language_data): Likewise.
2715 * d-lang.c (d_language_data): Likewise.
2716 (d_language::value_print_inner): New member function.
2717 * f-lang.c (f_language_data): Delete la_value_print_inner
2718 initializer.
2719 (f_language::value_print_inner): New member function.
2720 * f-lang.h (f_value_print_innner): Rename to...
2721 (f_value_print_inner): ...this (note spelling of 'inner').
2722 * f-valprint.c (f_value_print_innner): Rename to...
2723 (f_value_print_inner): ...this (note spelling of 'inner').
2724 * go-lang.c (go_language_data): Delete la_value_print_inner
2725 initializer.
2726 (go_language::value_print_inner): New member function.
2727 * language.c (language_defn::value_print_inner): Define new member
2728 function.
2729 (unk_lang_value_print_inner): Delete.
2730 (unknown_language_data): Delete la_value_print_inner initializer.
2731 (unknown_language::value_print_inner): New member function.
2732 (auto_language_data): Delete la_value_print_inner initializer.
2733 (auto_language::value_print_inner): New member function.
2734 * language.h (language_data): Delete la_value_print_inner field.
2735 (language_defn::value_print_inner): Delcare new member function.
2736 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2737 initializer.
2738 (m2_language::value_print_inner): New member function.
2739 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2740 initializer.
2741 * opencl-lang.c (opencl_language_data): Likewise.
2742 * p-lang.c (pascal_language_data): Likewise.
2743 (pascal_language::value_print_inner): New member function.
2744 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2745 initializer.
2746 (rust_language::value_print_inner): New member function.
2747 * valprint.c (do_val_print): Update call to value_print_inner.
2748
2749 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * ada-lang.c (ada_language_data): Delete la_value_print
2752 initializer.
2753 (ada_language::value_print): New member function.
2754 * c-lang.c (c_language_data): Delete la_value_print initializer.
2755 (cplus_language_data): Likewise.
2756 (asm_language_data): Likewise.
2757 (minimal_language_data): Likewise.
2758 * d-lang.c (d_language_data): Likewise.
2759 * f-lang.c (f_language_data): Likewise.
2760 * go-lang.c (go_language_data): Likewise.
2761 * language.c (unk_lang_value_print): Delete.
2762 (language_defn::value_print): Define new member function.
2763 (unknown_language_data): Delete la_value_print initializer.
2764 (unknown_language::value_print): New member function.
2765 (auto_language_data): Delete la_value_print initializer.
2766 (auto_language::value_print): New member function.
2767 * language.h (language_data): Delete la_value_print field.
2768 (language_defn::value_print): Declare new member function.
2769 (LA_VALUE_PRINT): Update call to value_print.
2770 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2771 * objc-lang.c (objc_language_data): Likewise.
2772 * opencl-lang.c (opencl_language_data): Likewise.
2773 * p-lang.c (pascal_language_data): Likewise.
2774 (pascal_language::value_print): New member function.
2775 * rust-lang.c (rust_language_data): Delete la_value_print
2776 initializer.
2777
2778 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2779
2780 * ada-lang.c (ada_watch_location_expression): Rename to
2781 ada_language::watch_location_expression.
2782 (ada_language_data): Delete la_watch_location_expression
2783 initializer.
2784 (ada_language::watch_location_expression): New member function,
2785 implementation from ada_watch_location_expression.
2786 * breakpoint.c (watch_command_1): Update call to
2787 watch_location_expression.
2788 * c-lang.c (c_watch_location_expression): Rename to
2789 language_defn::watch_location_expression.
2790 (c_language_data): Delete la_watch_location_expression
2791 initializer.
2792 (cplus_language_data): Likewise.
2793 (asm_language_data): Likewise.
2794 (minimal_language_data): Likewise.
2795 * c-lang.h (c_watch_location_expression): Delete declaration.
2796 * d-lang.c (d_language_data): Delete la_watch_location_expression
2797 initializer.
2798 * f-lang.c (f_language_data): Likewise.
2799 * go-lang.c (go_language_data): Likewise.
2800 * language.c (language_defn::watch_location_expression): Member
2801 function implementation from c_watch_location_expression.
2802 (unknown_language_data): Delete la_watch_location_expression
2803 initializer.
2804 (auto_language_data): Likewise.
2805 * language.h (language_data): Delete la_watch_location_expression
2806 field.
2807 (language_defn::watch_location_expression): Declare new member
2808 function.
2809 * m2-lang.c (m2_language_data): Delete
2810 la_watch_location_expression initializer.
2811 * objc-lang.c (objc_language_data): Likewise.
2812 * opencl-lang.c (opencl_language_data): Likewise.
2813 * p-lang.c (pascal_language_data): Likewise.
2814 * rust-lang.c (rust_watch_location_expression): Rename to
2815 rust_language::watch_location_expression.
2816 (rust_language_data): Delete la_watch_location_expression
2817 initializer.
2818 (rust_language::watch_location_expression): New member function,
2819 implementation from rust_watch_location_expression.
2820
2821 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2824 ada_language::collect_symbol_completion_matches.
2825 (ada_language_data): Delete la_collect_symbol_completion_matches
2826 initializer.
2827 (ada_language::collect_symbol_completion_matches): New member
2828 function, implementation from
2829 ada_collect_symbol_completion_matches.
2830 * c-lang.c (c_language_data): Delete
2831 la_collect_symbol_completion_matches initializer.
2832 (cplus_language_data): Likewise.
2833 (asm_language_data): Likewise.
2834 (minimal_language_data): Likewise.
2835 * d-lang.c (d_language_data): Likewise.
2836 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2837 f_language::collect_symbol_completion_matches.
2838 (f_language_data): Delete la_collect_symbol_completion_matches
2839 initializer.
2840 (f_language::collect_symbol_completion_matches) New member
2841 function, implementation from f_collect_symbol_completion_matches.
2842 * go-lang.c (go_language_data): Delete
2843 la_collect_symbol_completion_matches initializer.
2844 * language.c (unknown_language_data): Likewise.
2845 (auto_language_data): Likewise.
2846 * language.h (language_data): Delete
2847 la_collect_symbol_completion_matches field.
2848 (language_defn::collect_symbol_completion_matches): New member
2849 function.
2850 * m2-lang.c (m2_language_data): Delete
2851 la_collect_symbol_completion_matches initializer.
2852 * objc-lang.c (objc_language_data): Likewise.
2853 * opencl-lang.c (opencl_language_data): Likewise.
2854 * p-lang.c (pascal_language_data): Likewise.
2855 * rust-lang.c (rust_language_data): Likewise.
2856 * symtab.c (default_collect_symbol_completion_matches): Delete.
2857 (collect_symbol_completion_matches): Update call to
2858 collect_symbol_completion_matches.
2859 (collect_symbol_completion_matches_type): Likewise.
2860 * symtab.h (default_collect_symbol_completion_matches): Delete
2861 declaration.
2862
2863 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2866 (ada_language_data): Delete la_word_break_characters initializer.
2867 (ada_language::word_break_characters): New member function.
2868 * c-lang.c (c_language_data): Delete la_word_break_characters
2869 initializer.
2870 (cplus_language_data): Likewise.
2871 (asm_language_data): Likewise.
2872 (minimal_language_data): Likewise.
2873 * completer.c: Update global comment.
2874 (advance_to_expression_complete_word_point): Update call to
2875 word_break_characters.
2876 (complete_files_symbols): Likewise.
2877 (complete_line_internal_1): Likewise.
2878 (default_completer_handle_brkchars): Likewise.
2879 (skip_quoted_chars): Likewise.
2880 * d-lang.c (d_language_data): Delete la_word_break_characters
2881 initializer.
2882 * f-lang.c (f_word_break_characters): Delete.
2883 (f_language_data): Delete la_word_break_characters initializer.
2884 (f_language::word_break_characters): New member function.
2885 * go-lang.c (go_language_data): Delete la_word_break_characters
2886 initializer.
2887 * language.c (unknown_language_data): Likewise.
2888 (auto_language_data): Likewise.
2889 * language.h (default_word_break_characters): Move declaration to
2890 earlier in the file.
2891 (language_data): Delete la_word_break_characters field.
2892 (language_defn::word_break_characters): New member function.
2893 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2894 initializer.
2895 * objc-lang.c (objc_language_data): Likewise.
2896 * opencl-lang.c (opencl_language_data): Likewise.
2897 * p-lang.c (pascal_language_data): Likewise.
2898 * rust-lang.c (rust_language_data): Likewise.
2899
2900 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2903 (ada_language_data): Delete la_get_symbol_name_matcher
2904 initializer.
2905 (language_defn::get_symbol_name_matcher_inner): New member
2906 function.
2907 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2908 initializer.
2909 (cplus_language_data): Likewise.
2910 (cplus_language::get_symbol_name_matcher_inner): New member
2911 function.
2912 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2913 (minimal_language_data): Likewise.
2914 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2915 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2916 initializer.
2917 * dictionary.c (iter_match_first_hashed): Update call to
2918 get_symbol_name_matcher.
2919 (iter_match_next_hashed): Likewise.
2920 (iter_match_next_linear): Likewise.
2921 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2922 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2923 initializer.
2924 (f_language::get_symbol_name_matcher_inner): New member function.
2925 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2926 initializer.
2927 * language.c (default_symbol_name_matcher): Update header comment,
2928 make static.
2929 (language_defn::get_symbol_name_matcher): New definition.
2930 (language_defn::get_symbol_name_matcher_inner): Likewise.
2931 (get_symbol_name_matcher): Delete.
2932 (unknown_language_data): Delete la_get_symbol_name_matcher
2933 initializer.
2934 (auto_language_data): Likewise.
2935 * language.h (language_data): Delete la_get_symbol_name_matcher
2936 field.
2937 (language_defn::get_symbol_name_matcher): New member function.
2938 (language_defn::get_symbol_name_matcher_inner): Likewise.
2939 (default_symbol_name_matcher): Delete declaration.
2940 * linespec.c (find_methods): Update call to
2941 get_symbol_name_matcher.
2942 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2943 initializer.
2944 * minsyms.c (lookup_minimal_symbol): Update call to
2945 get_symbol_name_matcher.
2946 (iterate_over_minimal_symbols): Likewise.
2947 * objc-lang.c (objc_language_data): Delete
2948 la_get_symbol_name_matcher initializer.
2949 * opencl-lang.c (opencl_language_data): Likewise.
2950 * p-lang.c (pascal_language_data): Likewise.
2951 * psymtab.c (psymbol_name_matches): Update call to
2952 get_symbol_name_matcher.
2953 * rust-lang.c (rust_language_data): Delete
2954 la_get_symbol_name_matcher initializer.
2955 * symtab.c (symbol_matches_search_name): Update call to
2956 get_symbol_name_matcher.
2957 (compare_symbol_name): Likewise.
2958
2959 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * ada-lang.c (ada_language_data): Delete la_compute_program
2962 initializer.
2963 * c-lang.c (c_language_data): Likewise.
2964 (c_language::compute_program): New member function.
2965 (cplus_language_data): Delete la_compute_program initializer.
2966 (cplus_language::compute_program): New member function.
2967 (asm_language_data): Delete la_compute_program initializer.
2968 (minimal_language_data): Likewise.
2969 * c-lang.h (c_compute_program): Update comment.
2970 (cplus_compute_program): Likewise.
2971 * compile/compile-c-support.c (c_compute_program): Likewise.
2972 (cplus_compute_program): Likewise.
2973 * compile/compile.c (compile_to_object): Update call to
2974 la_compute_program.
2975 * d-lang.c (d_language_data): Delete la_compute_program
2976 initializer.
2977 * f-lang.c (f_language_data): Likewise.
2978 * go-lang.c (go_language_data): Likewise.
2979 * language.c (unknown_language_data): Likewise.
2980 (auto_language_data): Likewise.
2981 * language.h (language_data): Delete la_compute_program field.
2982 (language_defn::compute_program): New member function.
2983 * m2-lang.c (m2_language_data): Delete la_compute_program
2984 initializer.
2985 * objc-lang.c (objc_language_data): Likewise.
2986 * opencl-lang.c (opencl_language_data): Likewise.
2987 * p-lang.c (pascal_language_data): Likewise.
2988 * rust-lang.c (rust_language_data): Likewise.
2989
2990 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * ada-lang.c (ada_language_data) Delete
2993 la_class_name_from_physname initializer.
2994 * c-lang.c (c_language_data): Likewise.
2995 (cplus_language_data): Likewise.
2996 (cplus_language::class_name_from_physname): New member function.
2997 (asm_language_data): Delete la_class_name_from_physname
2998 initializer.
2999 (minimal_language_data): Likewise.
3000 * d-lang.c (d_language_data): Likewise.
3001 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3002 method on language_defn class.
3003 (guess_full_die_structure_name): Likewise.
3004 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3005 initializer.
3006 * go-lang.c (go_language_data): Likewise.
3007 * language.c (language_class_name_from_physname): Delete.
3008 (unk_lang_class_name): Delete.
3009 (unknown_language_data): Delete la_class_name_from_physname
3010 initializer.
3011 (auto_language_data): Likewise.
3012 * language.h (language_data): Delete la_class_name_from_physname
3013 field.
3014 (language_defn::class_name_from_physname): New function.
3015 (language_class_name_from_physname): Delete declaration.
3016 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3017 initializer.
3018 * objc-lang.c (objc_language_data): Likewise.
3019 * opencl-lang.c (opencl_language_data): Likewise.
3020 * p-lang.c (pascal_language_data): Likewise.
3021 * rust-lang.c (rust_language_data): Likewise.
3022
3023 2020-06-16 Tom Tromey <tom@tromey.com>
3024
3025 * tui/tui-data.h (STATUS_NAME): New macro.
3026 * tui/tui-layout.c (tui_remove_some_windows)
3027 (initialize_known_windows, tui_register_window)
3028 (tui_layout_split::remove_windows, initialize_layouts)
3029 (tui_new_layout_command): Don't use hard-coded window names.
3030
3031 2020-06-16 Tom Tromey <tom@tromey.com>
3032
3033 PR tui/25348:
3034 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3035 tui_initialize_readline. Only run once. Call rl_initialize.
3036 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3037 tui_initialize_readline.
3038 * tui/tui-io.c (tui_setup_io): Call
3039 tui_ensure_readline_initialized.
3040 * tui/tui-interp.c (tui_interp::init): Update.
3041
3042 2020-06-16 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3045 Also preserve the status window.
3046
3047 2020-06-16 Tom Tromey <tom@tromey.com>
3048
3049 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3050 where m_window==nullptr.
3051
3052 2020-06-15 Tom Tromey <tromey@adacore.com>
3053
3054 * windows-nat.c (windows_nat::handle_output_debug_string):
3055 Update.
3056 (windows_nat::handle_ms_vc_exception): Update.
3057 * target.h (target_read_string): Change API.
3058 * target.c (target_read_string): Change API.
3059 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3060 Update.
3061 * solib-frv.c (frv_current_sos): Update.
3062 * solib-dsbt.c (dsbt_current_sos): Update.
3063 * solib-darwin.c (darwin_current_sos): Update.
3064 * linux-thread-db.c (inferior_has_bug): Update.
3065 * expprint.c (print_subexp_standard): Update.
3066 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3067 (ada_exception_message_1): Update.
3068
3069 2020-06-15 Tom Tromey <tromey@adacore.com>
3070
3071 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3072
3073 2020-06-15 Tom Tromey <tromey@adacore.com>
3074
3075 * valprint.c (read_string): Update comment.
3076 * target.c (MIN): Remove.
3077 (target_read_string): Rewrite.
3078
3079 2020-06-15 Tom Tromey <tromey@adacore.com>
3080
3081 * corefile.c (read_memory_string): Remove.
3082 * ada-valprint.c (ada_value_print_ptr): Update.
3083 * ada-lang.h (ada_tag_name): Change return type.
3084 * ada-lang.c (type_from_tag): Update.
3085 (ada_tag_name_from_tsd): Change return type. Use
3086 target_read_string.
3087 (ada_tag_name): Likewise.
3088 * gdbcore.h (read_memory_string): Don't declare.
3089
3090 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3091
3092 * symtab.c (rbreak_command): Ignore Windows drive colon.
3093
3094 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * NEWS: Mention removed GDBserver host support.
3097
3098 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3099
3100 * features/riscv/rebuild-csr-xml.sh: Updated.
3101
3102 2020-06-11 Tom Tromey <tom@tromey.com>
3103
3104 PR gdb/18318:
3105 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3106
3107 2020-06-09 Jonny Grant <jg@jguk.org>
3108 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * main.c (captured_main_1): Don't print new line after help.
3111 (print_gdb_help): add mailing list and IRC channel information
3112 to --help. Add new lines between items in the footer. Remove
3113 quotes around bug url.
3114
3115 2020-06-11 Keith Seitz <keiths@redhat.com>
3116
3117 PR gdb/21356
3118 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3119 Resolve typedefs for type length calculations.
3120
3121 2020-06-10 Tom de Vries <tdevries@suse.de>
3122
3123 PR ada/24713
3124 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3125 (write_psymbols): Enable .gdb_index for ada.
3126 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3127 ada.
3128
3129 2020-06-10 Tom de Vries <tdevries@suse.de>
3130
3131 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3132 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3133 namei" instead of "const char *name" argument.
3134 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3135 dw2_symtab_iter_init.
3136
3137 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3140 to use type::field and field::type instead.
3141
3142 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3145 to use field::type instead.
3146
3147 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (struct field) <type, set_type>: New methods.
3150 Rename `type` field to...
3151 <m_type>: ... this. Change references throughout to use type or
3152 set_type methods.
3153 (FIELD_TYPE): Use field::type. Change call sites that modify
3154 the field's type to use field::set_type instead.
3155
3156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3157
3158 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3159 to use type::index_type instead.
3160
3161 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3164 methods.
3165 (TYPE_INDEX_TYPE): Use type::index_type.
3166 * gdbtypes.c (create_array_type_with_stride): Likewise.
3167
3168 2020-06-07 Tom Tromey <tom@tromey.com>
3169
3170 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3171 parameter.
3172 (generic_value_print): Update.
3173
3174 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 Revert commit 982a38f60b0.
3177 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3178
3179 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3182 avoid use after free.
3183
3184 2020-06-05 Tom de Vries <tdevries@suse.de>
3185
3186 * NEWS: Fix typos.
3187
3188 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3189
3190 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3191 the per_bfd object.
3192 (dwarf2_read_debug_names): Likewise.
3193 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3194 object when re-using a per_bfd object with an index.
3195
3196 2020-06-03 Tom de Vries <tdevries@suse.de>
3197
3198 PR symtab/26046
3199 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3200 children for C++.
3201 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3202 DW_TAG_subprogram.
3203
3204 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_language_data): Delete skip_trampoline
3207 initializer.
3208 * c-lang.c (c_language_data): Likewise.
3209 (cplus_language_data): Likewise.
3210 (cplus_language::skip_trampoline): New member function.
3211 (asm_language_data): Delete skip_trampoline initializer.
3212 (minimal_language_data): Likewise.
3213 * d-lang.c (d_language_data): Likewise.
3214 * f-lang.c (f_language_data): Likewise.
3215 * go-lang.c (go_language_data): Likewise.
3216 * language.c (unk_lang_trampoline): Delete function.
3217 (skip_language_trampoline): Update.
3218 (unknown_language_data): Delete skip_trampoline initializer.
3219 (auto_language_data): Likewise.
3220 * language.h (language_data): Delete skip_trampoline field.
3221 (language_defn::skip_trampoline): New function.
3222 * m2-lang.c (m2_language_data): Delete skip_trampoline
3223 initializer.
3224 * objc-lang.c (objc_skip_trampoline): Delete function, move
3225 implementation to objc_language::skip_trampoline.
3226 (objc_language_data): Delete skip_trampoline initializer.
3227 (objc_language::skip_trampoline): New member function with
3228 implementation from objc_skip_trampoline.
3229 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3230 initializer.
3231 * p-lang.c (pascal_language_data): Likewise.
3232 * rust-lang.c (rust_language_data): Likewise.
3233
3234 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3237 (ada_language::demangle): New member function.
3238 * c-lang.c (c_language_data): Delete la_demangle initializer.
3239 (cplus_language_data): Delete la_demangle initializer.
3240 (cplus_language::demangle): New member function.
3241 (asm_language_data): Delete la_demangle initializer.
3242 (minimal_language_data): Delete la_demangle initializer.
3243 * d-lang.c (d_language_data): Delete la_demangle initializer.
3244 (d_language::demangle): New member function.
3245 * f-lang.c (f_language_data): Delete la_demangle initializer.
3246 (f_language::demangle): New member function.
3247 * go-lang.c (go_language_data): Delete la_demangle initializer.
3248 (go_language::demangle): New member function.
3249 * language.c (language_demangle): Update.
3250 (unk_lang_demangle): Delete.
3251 (unknown_language_data): Delete la_demangle initializer.
3252 (unknown_language::demangle): New member function.
3253 (auto_language_data): Delete la_demangle initializer.
3254 (auto_language::demangle): New member function.
3255 * language.h (language_data): Delete la_demangle field.
3256 (language_defn::demangle): New function.
3257 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3258 * objc-lang.c (objc_language_data): Delete la_demangle
3259 initializer.
3260 (objc_language::demangle): New member function.
3261 * opencl-lang.c (opencl_language_data): Delete la_demangle
3262 initializer.
3263 * p-lang.c (pascal_language_data): Likewise.
3264 * rust-lang.c (rust_language_data): Likewise.
3265 (rust_language::demangle): New member function.
3266
3267 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * ada-lang.c (ada_language_data): Delete la_print_type
3270 initializer.
3271 (ada_language::print_type): New member function.
3272 * c-lang.c (c_language_data): Delete la_print_type initializer.
3273 (c_language::print_type): New member function.
3274 (cplus_language_data): Delete la_print_type initializer.
3275 (cplus_language::print_type): New member function.
3276 (asm_language_data): Delete la_print_type initializer.
3277 (asm_language::print_type): New member function.
3278 (minimal_language_data): Delete la_print_type initializer.
3279 (minimal_language::print_type): New member function.
3280 * d-lang.c (d_language_data): Delete la_print_type initializer.
3281 (d_language::print_type): New member function.
3282 * f-lang.c (f_language_data): Delete la_print_type initializer.
3283 (f_language::print_type): New member function.
3284 * go-lang.c (go_language_data): Delete la_print_type initializer.
3285 (go_language::print_type): New member function.
3286 * language.c (unk_lang_print_type): Delete.
3287 (unknown_language_data): Delete la_print_type initializer.
3288 (unknown_language::print_type): New member function.
3289 (auto_language_data): Delete la_print_type initializer.
3290 (auto_language::print_type): New member function.
3291 * language.h (language_data): Delete la_print_type field.
3292 (language_defn::print_type): New function.
3293 (LA_PRINT_TYPE): Update.
3294 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3295 (m2_language::print_type): New member function.
3296 * objc-lang.c (objc_language_data): Delete la_print_type
3297 initializer.
3298 (objc_language::print_type): New member function.
3299 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3300 to opencl_language::print_type.
3301 (opencl_language_data): Delete la_print_type initializer.
3302 (opencl_language::print_type): New member function, implementation
3303 from opencl_print_type.
3304 * p-lang.c (pascal_language_data): Delete la_print_type
3305 initializer.
3306 (pascal_language::print_type): New member function.
3307 * rust-lang.c (rust_print_type): Delete, implementation moved to
3308 rust_language::print_type.
3309 (rust_language_data): Delete la_print_type initializer.
3310 (rust_language::print_type): New member function, implementation
3311 from rust_print_type.
3312
3313 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3316 implementation moves to...
3317 (ada_language::sniff_from_mangled_name): ...here. Update return
3318 type.
3319 (ada_language_data): Delete la_sniff_from_mangled_name
3320 initializer.
3321 * c-lang.c (c_language_data): Likewise.
3322 (cplus_language_data): Likewise.
3323 (cplus_language::sniff_from_mangled_name): New member function,
3324 implementation taken from gdb_sniff_from_mangled_name.
3325 (asm_language_data): Delete la_sniff_from_mangled_name
3326 initializer.
3327 (minimal_language_data): Likewise.
3328 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3329 implementation moves to cplus_language::sniff_from_mangled_name.
3330 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3331 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3332 moves to...
3333 (d_language::sniff_from_mangled_name): ...here.
3334 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3335 * f-lang.c (f_language_data): Likewise.
3336 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3337 moves to...
3338 (go_language::sniff_from_mangled_name): ...here.
3339 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3340 * language.c (language_sniff_from_mangled_name): Delete.
3341 (unknown_language_data): Delete la_sniff_from_mangled_name
3342 initializer.
3343 (auto_language_data): Likewise.
3344 * language.h (language_data): Delete la_sniff_from_mangled_name
3345 field.
3346 (language_defn::sniff_from_mangled_name): New function.
3347 (language_sniff_from_mangled_name): Delete declaration.
3348 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3349 field.
3350 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3351 implementation moves to...
3352 (objc_language::sniff_from_mangled_name): ...here.
3353 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3354 * opencl-lang.c (opencl_language_data): Likewise.
3355 * p-lang.c (pascal_language_data): Likewise.
3356 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3357 implementation moves to...
3358 (rust_language::sniff_from_mangled_name): ...here.
3359 (rust_language_data): Delete la_sniff_from_mangled_name
3360 initializer.
3361 * symtab.c (symbol_find_demangled_name): Call
3362 sniff_from_mangled_name member function.
3363
3364 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3367 initializer.
3368 * c-lang.c (c_language_data): Likewise.
3369 (cplus_language_data): Likewise.
3370 (cplus_language::search_name_hash): New member function.
3371 (asm_language_data): Delete la_search_name_hash initializer.
3372 (minimal_language_data): Likewise.
3373 * d-lang.c (d_language_data): Likewise.
3374 * dictionary.c (default_search_name_hash): Rename to...
3375 (language_defn::search_name_hash): ...this.
3376 * f-lang.c (f_language_data): Likewise.
3377 (f_language::search_name_hash): New member function.
3378 * go-lang.c (go_language_data): Delete la_search_name_hash
3379 initializer.
3380 * language.c (unknown_language_data): Likewise.
3381 (auto_language_data): Likewise.
3382 * language.h (struct language_data): Delete la_search_name_hash
3383 field.
3384 (language_defn::search_name_hash): Declare new member function.
3385 (default_search_name_hash): Delete declaration.
3386 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3387 initializer.
3388 * objc-lang.c (objc_language_data): Likewise.
3389 * opencl-lang.c (opencl_language_data): Likewise.
3390 * p-lang.c (pascal_language_data): Likewise.
3391 * rust-lang.c (rust_language_data): Likewise.
3392 * symtab.c (search_name_hash): Update call.
3393
3394 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3397 initializer.
3398 * c-lang.c (class compile_instance): Declare.
3399 (c_language_data): Delete la_get_compile_instance initializer.
3400 (c_language::get_compile_instance): New member function.
3401 (cplus_language_data): Delete la_get_compile_instance initializer.
3402 (cplus_language::get_compile_instance): New member function.
3403 (asm_language_data): Delete la_get_compile_instance initializer.
3404 (minimal_language_data): Likewise.
3405 * c-lang.h (c_get_compile_context): Update comment.
3406 (cplus_get_compile_context): Update comment.
3407 * compile/compile.c (compile_to_object): Update calls, don't rely
3408 on function pointer being NULL.
3409 * d-lang.c (d_language_data): Delete la_get_compile_instance
3410 initializer.
3411 * f-lang.c (f_language_data): Likewise.
3412 * go-lang.c (go_language_data): Likewise.
3413 * language.c (unknown_language_data): Likewise.
3414 (auto_language_data): Likewise.
3415 * language.h (language_data): Delete la_get_compile_instance field.
3416 (language_defn::get_compile_instance): New member function.
3417 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3418 initializer.
3419 * objc-lang.c (objc_language_data): Likewise.
3420 * opencl-lang.c (opencl_language_data): Likewise.
3421 * p-lang.c (pascal_language_data): Likewise.
3422 * rust-lang.c (rust_language_data): Likewise.
3423
3424 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * ada-lang.c (ada_add_all_symbols): Update comment.
3427 (ada_iterate_over_symbols): Delete, move implementation to...
3428 (ada_language::iterate_over_symbols): ...here, a new member
3429 function, rewrite to use range based for loop.
3430 (ada_language_data): Delete la_iterate_over_symbols initializer.
3431 * c-lang.c (c_language_data): Likewise.
3432 (cplus_language_data): Likewise.
3433 (asm_language_data): Likewise.
3434 (minimal_language_data): Likewise.
3435 * d-lang.c (d_language_data): Likewise.
3436 * f-lang.c (f_language_data): Likewise.
3437 * go-lang.c (go_language_data): Likewise.
3438 * language.c (unknown_language_data): Likewise.
3439 (auto_language_data): Likewise.
3440 * language.h (language_data): Delete la_iterate_over_symbols field.
3441 (language_defn::iterate_over_symbols): New member function.
3442 (LA_ITERATE_OVER_SYMBOLS): Update.
3443 * linespec.c (iterate_over_all_matching_symtabs): Update.
3444 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3445 initializer.
3446 * objc-lang.c (objc_language_data): Likewise.
3447 * opencl-lang.c (opencl_language_data): Likewise.
3448 * p-lang.c (pascal_language_data): Likewise.
3449 * rust-lang.c (rust_language_data): Likewise.
3450
3451 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * ada-lang.c (ada_language_data): Delete
3454 la_lookup_transparent_type initializer.
3455 * c-lang.c (c_language_data): Likewise.
3456 (cplus_language_data): Likewise.
3457 (cplus_language::lookup_transparent_type): New member function.
3458 (asm_language_data): Delete la_lookup_transparent_type
3459 initializer.
3460 (minimal_language_data): Likewise.
3461 * d-lang.c (d_language_data): Likewise.
3462 * f-lang.c (f_language_data): Likewise.
3463 * go-lang.c (go_language_data): Likewise.
3464 * language.c (unknown_language_data): Likewise.
3465 (auto_language_data): Likewise.
3466 * language.h (struct language_data): Delete
3467 la_lookup_transparent_type field.
3468 (language_defn::lookup_transparent_type): New member function.
3469 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3470 initializer.
3471 * objc-lang.c (objc_language_data): Likewise.
3472 * opencl-lang.c (opencl_language_data): Likewise.
3473 * p-lang.c (pascal_language_data): Likewise.
3474 * rust-lang.c (rust_language_data): Likewise.
3475 * symtab.c (symbol_matches_domain): Update call.
3476
3477 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * ada-lang.c (ada_language_arch_info): Delete function, move
3480 implementation to...
3481 (ada_language::language_arch_info): ...here, a new member
3482 function.
3483 (ada_language_data): Delete la_language_arch_info.
3484 * c-lang.c (c_language_data): Likewise.
3485 (c_language::language_arch_info): New member function.
3486 (cplus_language_arch_info): Delete function, move
3487 implementation to...
3488 (cplus_language::language_arch_info): ...here, a new member
3489 function.
3490 (cplus_language_data): Delete la_language_arch_info.
3491 (asm_language_data): Likewise.
3492 (asm_language::language_arch_info): New member function.
3493 (minimal_language_data): Delete la_language_arch_info.
3494 (minimal_language::language_arch_info): New member function.
3495 * d-lang.c (d_language_arch_info): Delete function, move
3496 implementation to...
3497 (d_language::language_arch_info): ...here, a new member
3498 function.
3499 (d_language_data): Delete la_language_arch_info.
3500 * f-lang.c (f_language_arch_info): Delete function, move
3501 implementation to...
3502 (f_language::language_arch_info): ...here, a new member
3503 function.
3504 (f_language_data): Delete la_language_arch_info.
3505 * go-lang.c (go_language_arch_info): Delete function, move
3506 implementation to...
3507 (go_language::language_arch_info): ...here, a new member
3508 function.
3509 (go_language_data): Delete la_language_arch_info.
3510 * language.c (unknown_language_data): Likewise.
3511 (unknown_language::language_arch_info): New member function.
3512 (auto_language_data): Delete la_language_arch_info.
3513 (auto_language::language_arch_info): New member function.
3514 (language_gdbarch_post_init): Update call to
3515 la_language_arch_info.
3516 * language.h (language_data): Delete la_language_arch_info
3517 function pointer.
3518 (language_defn::language_arch_info): New function.
3519 * m2-lang.c (m2_language_arch_info): Delete function, move
3520 implementation to...
3521 (m2_language::language_arch_info): ...here, a new member
3522 function.
3523 (m2_language_data): Delete la_language_arch_info.
3524 * objc-lang.c (objc_language_arch_info): Delete function, move
3525 implementation to...
3526 (objc_language::language_arch_info): ...here, a new member
3527 function.
3528 (objc_language_data): Delete la_language_arch_info.
3529 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3530 implementation to...
3531 (opencl_language::language_arch_info): ...here, a new member
3532 function.
3533 (opencl_language_data): Delete la_language_arch_info.
3534 * p-lang.c (pascal_language_arch_info): Delete function, move
3535 implementation to...
3536 (pascal_language::language_arch_info): ...here, a new member
3537 function.
3538 (pascal_language_data): Delete la_language_arch_info.
3539 * rust-lang.c (rust_language_arch_info): Delete function, move
3540 implementation to...
3541 (rust_language::language_arch_info): ...here, a new member
3542 function.
3543 (rust_language_data): Delete la_language_arch_info.
3544
3545 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3548 initializer.
3549 * c-lang.c (c_language_data): Likewise.
3550 (cplus_language_data): Likewise.
3551 (cplus_language::pass_by_reference_info): New method.
3552 (asm_language_data): Delete la_pass_by_reference initializer.
3553 (minimal_language_data): Likewise.
3554 * cp-abi.c (cp_pass_by_reference): Remove use of
3555 default_pass_by_reference.
3556 * d-lang.c (d_language_data): Likewise.
3557 * f-lang.c (f_language_data): Likewise.
3558 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3559 default_pass_by_reference.
3560 * go-lang.c (go_language_data): Likewise.
3561 * language.c (language_pass_by_reference): Update.
3562 (default_pass_by_reference): Delete.
3563 (unknown_language_data): Delete la_pass_by_reference
3564 initializer.
3565 (auto_language_data): Likewise.
3566 * language.h (struct language_data): Delete la_pass_by_reference
3567 field.
3568 (language_defn::pass_by_reference_info): New member function.
3569 (default_pass_by_reference): Delete declaration.
3570 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3571 initializer.
3572 * objc-lang.c (objc_language_data): Likewise.
3573 * opencl-lang.c (opencl_language_data): Likewise.
3574 * p-lang.c (pascal_language_data): Likewise.
3575 * rust-lang.c (rust_language_data): Likewise.
3576
3577 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * ada-lang.c (ada_read_var_value): Delete function, move
3580 implementation to...
3581 (ada_language::read_var_value): ...here.
3582 (ada_language_data): Delete la_read_var_value initializer.
3583 * c-lang.c (c_language_data): Likewise.
3584 (cplus_language_data): Likewise.
3585 (minimal_language_data): Likewise.
3586 * d-lang.c (d_language_data): Likewise.
3587 * f-lang.c (f_language_data): Likewise.
3588 * findvar.c (default_read_var_value): Rename to...
3589 (language_defn::read_var_value): ...this.
3590 * findvar.c (read_var_value): Update header comment, and change to
3591 call member function instead of function pointer.
3592 * go-lang.c (go_language_data): Likewise.
3593 * language.c (unknown_language_data): Delete la_read_var_value
3594 initializer.
3595 (auto_language_data): Likewise.
3596 * language.h (struct language_data): Delete la_read_var_value
3597 field.
3598 (language_defn::read_var_value): New member function.
3599 (default_read_var_value): Delete declaration.
3600 * m2-lang.c (m2_language_data): Delete la_read_var_value
3601 initializer.
3602 * objc-lang.c (objc_language_data): Likewise.
3603 * opencl-lang.c (opencl_language_data): Likewise.
3604 * p-lang.c (pascal_language_data): Likewise.
3605 * rust-lang.c (rust_language_data): Likewise.
3606 * value.h (default_read_var_value): Delete declaration.
3607
3608 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * ada-lang.c (ada_print_array_index): Delete function, move
3611 implementation to...
3612 (ada_language::print_array_index): ...here.
3613 (ada_language_data): Delete la_print_array_index initializer.
3614 * c-lang.c (c_language_data): Likewise.
3615 (cplus_language_data): Likewise.
3616 (minimal_language_data): Likewise.
3617 * d-lang.c (d_language_data): Likewise.
3618 * f-lang.c (f_language_data): Likewise.
3619 * go-lang.c (go_language_data): Likewise.
3620 * language.c (default_print_array_index): Delete function, move
3621 implementation to...
3622 (language_defn::print_array_index): ...here.
3623 (unknown_language_data): Delete la_print_array_index initializer.
3624 (auto_language_data): Likewise.
3625 * language.h (struct language_data): Delete la_print_array_index
3626 field.
3627 (language_defn::print_array_index): New member function.
3628 (LA_PRINT_ARRAY_INDEX): Update.
3629 (default_print_array_index): Delete declaration.
3630 * m2-lang.c (m2_language_data): Delete la_print_array_index
3631 initializer.
3632 * objc-lang.c (objc_language_data): Likewise.
3633 * opencl-lang.c (opencl_language_data): Likewise.
3634 * p-lang.c (pascal_language_data): Likewise.
3635 * rust-lang.c (rust_language_data): Likewise.
3636
3637 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3638
3639 * gdb/ada-lang.c (ada_language_defn): Convert to...
3640 (ada_language_data): ...this.
3641 (class ada_language): New class.
3642 (ada_language_defn): New static global.
3643 * gdb/c-lang.c (c_language_defn): Convert to...
3644 (c_language_data): ...this.
3645 (class c_language): New class.
3646 (c_language_defn): New static global.
3647 (cplus_language_defn): Convert to...
3648 (cplus_language_data): ...this.
3649 (class cplus_language): New class.
3650 (cplus_language_defn): New static global.
3651 (asm_language_defn): Convert to...
3652 (asm_language_data): ...this.
3653 (class asm_language): New class.
3654 (asm_language_defn): New static global.
3655 (minimal_language_defn): Convert to...
3656 (minimal_language_data): ...this.
3657 (class minimal_language): New class.
3658 (minimal_language_defn): New static global.
3659 * gdb/d-lang.c (d_language_defn): Convert to...
3660 (d_language_data): ...this.
3661 (class d_language): New class.
3662 (d_language_defn): New static global.
3663 * gdb/f-lang.c (f_language_defn): Convert to...
3664 (f_language_data): ...this.
3665 (class f_language): New class.
3666 (f_language_defn): New static global.
3667 * gdb/go-lang.c (go_language_defn): Convert to...
3668 (go_language_data): ...this.
3669 (class go_language): New class.
3670 (go_language_defn): New static global.
3671 * gdb/language.c (unknown_language_defn): Remove declaration.
3672 (current_language): Initialize to nullptr, real initialization is
3673 moved to _initialize_language.
3674 (languages): Delete global.
3675 (language_defn::languages): Define.
3676 (set_language_command): Use language_defn::languages.
3677 (set_language): Likewise.
3678 (range_error): Likewise.
3679 (language_enum): Likewise.
3680 (language_def): Likewise.
3681 (add_set_language_command): Use language_def::languages for the
3682 language list, and language_def to lookup language pointers.
3683 (skip_language_trampoline): Use language_defn::languages.
3684 (unknown_language_defn): Convert to...
3685 (unknown_language_data): ...this.
3686 (class unknown_language): New class.
3687 (unknown_language_defn): New static global.
3688 (auto_language_defn): Convert to...
3689 (auto_language_data): ...this.
3690 (class auto_language): New class.
3691 (auto_language_defn): New static global.
3692 (language_gdbarch_post_init): Use language_defn::languages.
3693 (_initialize_language): Initialize current_language.
3694 * gdb/language.h (struct language_defn): Rename to...
3695 (struct language_data): ...this.
3696 (struct language_defn): New.
3697 (auto_language_defn): Delete.
3698 (unknown_language_defn): Delete.
3699 (minimal_language_defn): Delete.
3700 (ada_language_defn): Delete.
3701 (asm_language_defn): Delete.
3702 (c_language_defn): Delete.
3703 (cplus_language_defn): Delete.
3704 (d_language_defn): Delete.
3705 (f_language_defn): Delete.
3706 (go_language_defn): Delete.
3707 (m2_language_defn): Delete.
3708 (objc_language_defn): Delete.
3709 (opencl_language_defn): Delete.
3710 (pascal_language_defn): Delete.
3711 (rust_language_defn): Delete.
3712 * gdb/m2-lang.c (m2_language_defn): Convert to...
3713 (m2_language_data): ...this.
3714 (class m2_language): New class.
3715 (m2_language_defn): New static global.
3716 * gdb/objc-lang.c (objc_language_defn): Convert to...
3717 (objc_language_data): ...this.
3718 (class objc_language): New class.
3719 (objc_language_defn): New static global.
3720 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3721 (opencl_language_data): ...this.
3722 (class opencl_language): New class.
3723 (opencl_language_defn): New static global.
3724 * gdb/p-lang.c (pascal_language_defn): Convert to...
3725 (pascal_language_data): ...this.
3726 (class pascal_language): New class.
3727 (pascal_language_defn): New static global.
3728 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3729 language pointer, update comment format.
3730 * gdb/rust-lang.c (rust_language_defn): Convert to...
3731 (rust_language_data): ...this.
3732 (class rust_language): New class.
3733 (rust_language_defn): New static global.
3734
3735 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3738 member variable.
3739 <m_stmt_at_address>: New member variable.
3740 (lnp_state_machine::record_line): Don't record some lines, update
3741 tracking of is_stmt at the same address.
3742 (lnp_state_machine::lnp_state_machine): Initialise new member
3743 variables.
3744
3745 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3746
3747 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3748 "-include gnu-nat-mig.h".
3749 * gnu-nat-mig.h: New file.
3750 * gnu-nat.c: Include "gnu-nat-mig.h".
3751 (exc_server, msg_reply_server, notify_server,
3752 process_reply_server): Remove declarations.
3753
3754 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3755
3756 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3757 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3758 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3759 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3760 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3761 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3762 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3763 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3764 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3765 to gnu_nat_target class.
3766 * gnu-nat.c: Likewise.
3767 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3768 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3769 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3770 object.
3771 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3772 instead of `gnu_target'.
3773
3774 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3775
3776 * i386-gnu-tdep.c: Include "gdbcore.h"
3777 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3778 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3779 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3780 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3781 i386_gnu_sigcontext_addr): New functions
3782 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3783 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3784 tdep.
3785
3786 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3787
3788 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3789 before fork_inferior call. Avoid calling it if target_is_pushed returns
3790 true.
3791
3792 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3793
3794 * gnu-nat.h (gnu_target): New variable declaration.
3795 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3796 gnu_target.
3797 * gnu-nat.c (gnu_target): New variable.
3798 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3799 add_thread_silent, and add_thread calls.
3800 (gnu_nat_target::create_inferior): Pass gnu_target to
3801 add_thread_silent, thread_change_ptid call.
3802 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3803 call.
3804
3805 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3806
3807 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3808 (gnu_nat_target::find_memory_regions): Remove unused
3809 `old_address' variable.
3810
3811 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3812
3813 * gnu-nat.c: Include "gdbarch.h".
3814
3815 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3816
3817 * reply_mig_hack.awk (Error return): Cast function through
3818 void *, to bypass compiler function call check.
3819
3820 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3821
3822 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3823 $(srcdir)/reply_mig_hack.awk.
3824
3825 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3826
3827 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3828
3829 2020-05-30 Jonny Grant <jg@jguk.org>
3830
3831 * configure.ac (ACX_BUGURL): change bug URL to https.
3832
3833 2020-05-30 Pedro Alves <palves@redhat.com>
3834
3835 * cp-support.c (replace_typedefs_template): New.
3836 (replace_typedefs_qualified_name): Handle
3837 DEMANGLE_COMPONENT_TEMPLATE.
3838
3839 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3842 dwarf2/index-cache.h, dwarf2/index-write.c,
3843 dwarf2/index-write.h, dwarf2/line-header.c,
3844 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3845 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3846 variables and fields from `dwarf2_per_objfile` to just
3847 `per_objfile` throughout.
3848
3849 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3852 <push_dwarf_reg_entry_value>: Add comment.
3853
3854 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3855 Keith Seitz <keiths@redhat.com>
3856
3857 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3858 instead of PyEval_ReleaseLock.
3859 (class gdbpy_gil): Move to earlier in file.
3860 (finalize_python): Set gdb_python_initialized.
3861 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3862 when not initialized.
3863
3864 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3867 <push_dwarf_reg_entry_value>: Remove assert. Override
3868 per_objfile with caller_per_objfile.
3869
3870 2020-05-28 Tom de Vries <tdevries@suse.de>
3871
3872 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3873 PR gold/15646 workaround to symbol kind "type".
3874
3875 2020-05-27 Tom Tromey <tromey@adacore.com>
3876
3877 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3878
3879 2020-05-27 Tom Tromey <tromey@adacore.com>
3880
3881 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3882 Use htab_find_with_hash.
3883 <add_abbrev>: Remove "abbrev_number" parameter.
3884 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3885 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3886 (hash_abbrev): Add comment.
3887 (abbrev_table::lookup_abbrev): Move to header file.
3888 (abbrev_table::read): Update.
3889
3890 2020-05-27 Tom Tromey <tromey@adacore.com>
3891
3892 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3893 method.
3894 <canonical_name>: New member.
3895 <raw_name>: Rename from "name".
3896 (partial_die_info): Initialize canonical_name.
3897 (scan_partial_symbols): Check raw_name.
3898 (partial_die_parent_scope, partial_die_full_name)
3899 (add_partial_symbol, add_partial_subprogram)
3900 (add_partial_enumeration, load_partial_dies): Use "name" method.
3901 (partial_die_info::name): New method.
3902 (partial_die_info::read, guess_partial_die_structure_name)
3903 (partial_die_info::fixup): Update.
3904
3905 2020-05-27 Tom Tromey <tromey@adacore.com>
3906
3907 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3908 <get_ref_die_offset>: Inline.
3909 <get_ref_die_offset_complaint>: New method.
3910 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3911 (attribute::get_ref_die_offset_complaint): Rename from
3912 get_ref_die_offset. Just issue complaint.
3913
3914 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3915
3916 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3917
3918 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3919
3920 * exec.c (exec_file_attach): Use errno value of first openp failure.
3921
3922 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3923
3924 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3925 Don't close thread handle.
3926
3927 2020-05-27 Tom Tromey <tom@tromey.com>
3928 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3931 shared_ptr.
3932 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3933 member.
3934 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3935 dwarf2_per_bfd_objfile_data_key>: New globals.
3936 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3937 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3938 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3939 shared.
3940 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3941 short-circuit when sharing.
3942 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3943 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3944
3945 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3948 to...
3949 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3950 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3951
3952 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3955 build_name_components, find_name_components_bounds>:
3956 Add per_objfile parameter.
3957 (struct mapped_index) <symbol_name_at>: Likewise.
3958 (struct mapped_debug_names): Remove constructor.
3959 <dwarf2_per_objfile>: Remove field.
3960 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3961 (mapped_index_base::find_name_components_bounds,
3962 mapped_index_base::build_name_components,
3963 dw2_expand_symtabs_matching_symbol): Likewise.
3964 (class mock_mapped_index) <symbol_name_at>: Likewise.
3965 (check_match): Likewise.
3966 (check_find_bounds_finds): Likewise.
3967 (test_mapped_index_find_name_component_bounds): Update.
3968 (CHECK_MATCH): Update.
3969 (dw2_expand_symtabs_matching): Update.
3970 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3971 per_objfile parameter.
3972 <find_vec_in_debug_names>: Likewise.
3973 <m_per_objfile>: New field.
3974 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3975 parameter.
3976 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3977 (dw2_debug_names_iterator::next): Update.
3978 (dw2_debug_names_lookup_symbol): Update.
3979 (dw2_debug_names_expand_symtabs_for_function): Update.
3980 (dw2_debug_names_map_matching_symbols): Update.
3981 (dw2_debug_names_expand_symtabs_matching): Update.
3982 (dwarf2_read_debug_names): Update.
3983
3984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3987 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3988 move to dwarf2_per_objfile.
3989 <read_in_chain>: Remove.
3990 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3991 remove_all_cus, age_comp_units>: New methods.
3992 <m_dwarf2_cus>: New member.
3993 (struct dwarf2_per_cu_data) <cu>: Remove.
3994 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3995 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3996 moved to methods of dwarf2_per_objfile.
3997 (dwarf2_clear_marks): Remove.
3998 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3999 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4000 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4001 (dwarf2_per_objfile::remove_all_cus): New.
4002 (class free_cached_comp_units) <~free_cached_comp_units>:
4003 Update.
4004 (load_cu): Update.
4005 (dw2_do_instantiate_symtab): Adjust.
4006 (fill_in_sig_entry_from_dwo_entry): Adjust.
4007 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4008 (cutu_reader::cutu_reader): Likewise.
4009 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4010 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4011 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4012 and dwarf2_per_objfile::age_comp_units.
4013 (load_partial_comp_unit): Update.
4014 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4015 (process_queue): Likewise.
4016 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4017 backlink.
4018 (dwarf2_read_addr_index): Likewise.
4019 (follow_die_offset): Likewise.
4020 (dwarf2_fetch_die_loc_sect_off): Likewise.
4021 (dwarf2_fetch_constant_bytes): Likewise.
4022 (dwarf2_fetch_die_type_sect_off): Likewise.
4023 (follow_die_sig_1): Likewise.
4024 (load_full_type_unit): Likewise.
4025 (read_signatured_type): Likewise.
4026 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4027 (dwarf2_cu::~dwarf2_cu): Remove.
4028 (dwarf2_per_objfile::get_cu): New.
4029 (dwarf2_per_objfile::set_cu): New.
4030 (age_cached_comp_units): Rename to...
4031 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4032 to std::unordered_map.
4033 (free_one_cached_comp_unit): Rename to...
4034 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4035 to std::unordered_map.
4036 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4037 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4038 a dwarf2_per_objfile in data.
4039 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4040 (dwarf2_clear_marks): Remove.
4041
4042 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4045 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4046 (init_tu_and_read_dwo_dies): Likewise.
4047 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4048 (cutu_reader::cutu_reader): Likewise.
4049 (load_partial_comp_unit): Likewise.
4050 (process_psymtab_comp_unit): Update.
4051 (build_type_psymtabs_1): Update.
4052 (process_skeletonless_type_unit): Update.
4053 (load_full_comp_unit): Update.
4054 (find_partial_die): Update.
4055 (dwarf2_read_addr_index): Update.
4056 (read_signatured_type): Update.
4057
4058 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4059
4060 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4061 m_header_read_in>: New fields.
4062 <get_header>: New method.
4063 * dwarf2/read.c (per_cu_header_read_in): Remove.
4064 (dwarf2_per_cu_data::get_header): New.
4065 (dwarf2_per_cu_data::addr_size): Update.
4066 (dwarf2_per_cu_data::offset_size): Update.
4067 (dwarf2_per_cu_data::ref_addr_size): Update.
4068
4069 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4072 (dw2_do_instantiate_symtab): Update.
4073 (queue_and_load_all_dwo_tus): Change parameter from
4074 dwarf2_per_cu_data to dwarf2_cu.
4075 (dwarf2_fetch_die_loc_sect_off): Update.
4076 (dwarf2_fetch_constant_bytes): Update.
4077 (dwarf2_fetch_die_type_sect_off): Update.
4078
4079 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * dwarf2/read.c (process_full_comp_unit,
4082 process_full_type_unit): Remove per_cu, per_objfile paramters.
4083 Add dwarf2_cu parameter.
4084 (process_queue): Update.
4085
4086 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4087
4088 * dwarf2/read.c (create_cu_from_index_list): Replace
4089 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4090 (create_cus_from_index_list): Likewise.
4091 (create_cus_from_index): Likewise.
4092 (create_signatured_type_table_from_index): Likewise.
4093 (create_cus_from_debug_names_list): Likewise.
4094 (create_cus_from_debug_names): Likewise.
4095 (dwarf2_read_gdb_index): Update.
4096 (dwarf2_read_debug_names): Update.
4097
4098 2020-05-27 Tom Tromey <tom@tromey.com>
4099 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * dwarf2/read.h (struct dwarf2_per_objfile)
4102 <get_type_for_signatured_type, set_type_for_signatured_type>:
4103 New methods.
4104 <m_type_map>: New member.
4105 (struct signatured_type) <type>: Remove.
4106 * dwarf2/read.c
4107 (dwarf2_per_objfile::get_type_for_signatured_type,
4108 dwarf2_per_objfile::set_type_for_signatured_type): New.
4109 (get_signatured_type): Use new methods.
4110
4111 2020-05-27 Tom Tromey <tom@tromey.com>
4112 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4115 (struct dwarf2_per_objfile) <type_units>: New member.
4116 <get_type_unit_group_unshareable>: New method.
4117 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4118 num_symtabs, symtabs>: Remove; move to
4119 type_unit_group_unshareable.
4120 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4121 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4122 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4123
4124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.h (struct dwarf2_per_cu_data):
4127 <dwarf2_per_objfile>: Remove.
4128 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4129 dwarf2_per_objfile.
4130 (create_signatured_type_table_from_index): Likewise.
4131 (create_signatured_type_table_from_debug_names): Likewise.
4132 (create_debug_type_hash_table): Likewise.
4133 (fill_in_sig_entry_from_dwo_entry): Likewise.
4134 (create_type_unit_group): Likewise.
4135 (read_comp_units_from_section): Likewise.
4136 (create_cus_hash_table): Likewise.
4137
4138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4141 dwarf2_per_cu_data::dwarf2_per_objfile.
4142 (compute_compunit_symtab_includes): Likewise.
4143 (dwarf2_cu::start_symtab): Likewise.
4144
4145 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4146
4147 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4148 parameter.
4149 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4150 (read_namespace_alias): Update.
4151 (lookup_die_type): Update.
4152 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4153 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4154 Update.
4155 (disassemble_dwarf_expression): Update.
4156
4157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.h (struct dwarf2_queue_item): Add
4160 dwarf2_per_objfile parameter, assign new parameter.
4161 <per_objfile>: New field.
4162 * dwarf2/read.c (free_one_cached_comp_unit): Add
4163 dwarf2_per_objfile parameter.
4164 (queue_comp_unit): Likewise.
4165 (dw2_do_instantiate_symtab): Update.
4166 (process_psymtab_comp_unit): Update.
4167 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4168 (process_imported_unit_die): Update.
4169 (queue_and_load_dwo_tu): Update.
4170 (follow_die_offset): Update.
4171 (follow_die_sig_1): Update.
4172
4173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4176 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4177 (read_call_site_scope): Assign per_objfile.
4178 (dwarf2_per_cu_data::objfile): Remove.
4179 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4180 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4181 dwarf2_per_objfile parameter.
4182 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4183 dwarf2_per_objfile parameter.
4184 (dwarf_expr_reg_to_entry_parameter): Add output
4185 dwarf2_per_objfile parameter.
4186 (locexpr_get_frame_base): Update.
4187 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4188 <push_dwarf_reg_entry_value>: Update.
4189 <call_site_to_target_addr>: Update.
4190 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4191 parameter.
4192 (value_of_dwarf_reg_entry): Update.
4193 (rw_pieced_value): Update.
4194 (indirect_synthetic_pointer): Update.
4195 (dwarf2_evaluate_property): Update.
4196 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4197 parameter.
4198 (locexpr_read_variable): Update.
4199 (locexpr_get_symbol_read_needs): Update.
4200 (loclist_read_variable): Update.
4201
4202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4205 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4206 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4207 parameter.
4208 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4209 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4210 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4211 parameter.
4212 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4213 sect_variable_value): Add dwarf2_per_objfile parameter.
4214 (class dwarf_evaluate_loc_desc) <dwarf_call,
4215 dwarf_variable_value>: Update.
4216 (fetch_const_value_from_synthetic_pointer): Add
4217 dwarf2_per_objfile parameter.
4218 (fetch_const_value_from_synthetic_pointer): Update.
4219 (coerced_pieced_ref): Update.
4220 (class symbol_needs_eval_context) <dwarf_call,
4221 dwarf_variable_value>: Update.
4222 (dwarf2_compile_expr_to_ax): Update.
4223
4224 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4227 parameter.
4228 (dwarf2_evaluate_loc_desc_full): Update.
4229
4230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4233 parameter.
4234 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4235 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4236 dwarf2_per_objfile parameter.
4237 (decode_debug_loc_dwo_addresses): Likewise.
4238 (dwarf2_find_location_expression): Update.
4239 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4240 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4241 parameter.
4242 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4243 parameter.
4244 (locexpr_describe_location_1): Likewise.
4245 (locexpr_describe_location): Update.
4246
4247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4250 Remove.
4251 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4252 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4253 (dwarf2_compile_property_to_c): Update.
4254 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4255 use text offset from objfile.
4256 (locexpr_tracepoint_var_ref): Update.
4257 (locexpr_generate_c_location): Update.
4258 (loclist_describe_location): Update.
4259 (loclist_tracepoint_var_ref): Update.
4260 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4261 dwarf2_per_objfile parameter.
4262 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4263 use text offset from objfile.
4264 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4265
4266 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * dwarf2/expr.h (struct dwarf_expr_context)
4269 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4270 <offset>: Remove.
4271 <per_objfile>: New member.
4272 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4273 dwarf2_per_objfile parameter. Don't set offset, set
4274 per_objfile.
4275 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4276 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4277 a dwarf2_per_objfile object instead of an offset.
4278 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4279 constructor.
4280 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4281 to dwarf2_expr_executor constructor. Don't set offset.
4282 (dwarf2_fetch_cfa_info): Update.
4283 (struct dwarf2_frame_cache) <text_offset>: Remove.
4284 <per_objfile>: New field.
4285 (dwarf2_frame_cache): Update.
4286 (dwarf2_frame_prev_register): Update.
4287 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4288 <dwarf_evaluate_loc_desc>: Add constructor.
4289 (dwarf2_evaluate_loc_desc_full): Update.
4290 (dwarf2_locexpr_baton_eval): Update.
4291 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4292 Add constructor.
4293 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4294
4295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4298 addr_sized_int_type>: Move to dwarf2_cu.
4299 <int_type>: Move to dwarf2_per_objfile.
4300 (struct dwarf2_per_objfile) <int_type>: Move here.
4301 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4302 addr_sized_int_type>: Move here.
4303 (read_func_scope): Update.
4304 (read_array_type): Update.
4305 (read_tag_string_type): Update.
4306 (attr_to_dynamic_prop): Update.
4307 (dwarf2_per_cu_data::int_type): Rename to...
4308 (dwarf2_per_objfile::int_type): ... this.
4309 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4310 (dwarf2_cu::addr_sized_int_type): ... this.
4311 (read_subrange_type): Update.
4312 (dwarf2_per_cu_data::addr_type): Rename to...
4313 (dwarf2_cu::addr_type): ... this.
4314 (set_die_type): Update.
4315
4316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4319 data through per_cu->cu.
4320
4321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4324 dwarf2_per_cu_data parameter fo dwarf2_cu.
4325 (lookup_dwo_type_unit): Likewise.
4326 (read_cutu_die_from_dwo): Likewise.
4327 (lookup_dwo_unit): Likewise.
4328 (open_and_init_dwo_file): Likewise.
4329 (lookup_dwo_cutu): Likewise.
4330 (lookup_dwo_comp_unit): Likewise.
4331 (lookup_dwo_type_unit): Likewise.
4332 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4333 (cutu_reader::cutu_reader): Update.
4334
4335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4338 parameter.
4339 (process_full_type_unit): Likewise.
4340 (process_queue): Update.
4341
4342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * dwarf2/read.c (recursively_compute_inclusions): Add
4345 dwarf2_per_objfile parameter.
4346 (compute_compunit_symtab_includes): Likewise.
4347 (process_cu_includes): Update.
4348
4349 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4352 parameter.
4353 (create_type_unit_group): Update.
4354 (process_psymtab_comp_unit_reader): Update.
4355 (build_type_psymtabs_reader): Update.
4356
4357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4360 object through m_this_cu->cu.
4361
4362 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4365 the info parameter.
4366 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4367
4368 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4369
4370 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4371 per_objfile parameter.
4372 (load_full_type_unit): Add per_objfile parameter.
4373 (read_signatured_type): Likewise.
4374 (load_full_comp_unit): Likewise.
4375 (load_cu): Likewise.
4376 (dw2_do_instantiate_symtab): Likewise.
4377 (dw2_get_file_names): Likewise.
4378 (dw2_map_symtabs_matching_filename): Update.
4379 (dw_expand_symtabs_matching_file_matcher): Update.
4380 (dw2_map_symbol_filenames): Update.
4381 (process_psymtab_comp_unit): Add per_objfile parameter.
4382 (build_type_psymtabs_1): Update.
4383 (process_skeletonless_type_unit): Update.
4384 (dwarf2_build_psymtabs_hard): Update.
4385 (load_partial_comp_unit): Add per_objfile parameter.
4386 (scan_partial_symbols): Update.
4387 (load_full_comp_unit): Add per_objfile parameter.
4388 (process_imported_unit_die): Update.
4389 (create_cus_hash_table): Update.
4390 (find_partial_die): Update.
4391 (dwarf2_read_addr_index): Update.
4392 (follow_die_offset): Update.
4393 (dwarf2_fetch_die_loc_sect_off): Update.
4394 (dwarf2_fetch_constant_bytes): Update.
4395 (dwarf2_fetch_die_type_sect_off): Update.
4396 (follow_die_sig_1): Update.
4397 (load_full_type_unit): Add per_objfile parameter.
4398 (read_signatured_type): Likewise.
4399
4400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4401
4402 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4403 of objfile_name.
4404
4405 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4406
4407 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4408 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4409 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4410 field.
4411 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4412 (create_cus_from_index): Update.
4413 (dwarf2_read_gdb_index): Update.
4414 (create_cus_from_debug_names): Update.
4415 (dwarf2_read_debug_names): Update.
4416 (get_abbrev_section_for_cu): Update.
4417 (create_all_comp_units): Update.
4418 (read_attribute_value): Update.
4419 (get_debug_line_section): Update.
4420 * dwarf2/index-cache.c (index_cache::store): Update.
4421 * dwarf2/index-write.c (save_gdb_index_command): Update.
4422 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4423
4424 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4427 member.
4428 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4429 dwarf2_per_cu_data::per_bfd.
4430 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4431 (create_type_unit_group): Likewise.
4432 (queue_comp_unit): Remove reference to
4433 per_cu->dwarf2_per_objfile.
4434 (maybe_queue_comp_unit): Likewise.
4435 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4436 (create_cus_hash_table): Assign new field.
4437
4438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * dwarf2/read.c: Replace
4441 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4442 dwarf2_cu->per_objfile throughout.
4443
4444 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4447 parameter, don't use per_cu->dwarf2_per_objfile.
4448 (dw2_instantiate_symtab): Likewise.
4449 (dw2_find_last_source_symtab): Update.
4450 (dw2_map_expand_apply): Update.
4451 (dw2_lookup_symbol): Update.
4452 (dw2_expand_symtabs_for_function): Update.
4453 (dw2_expand_all_symtabs): Update.
4454 (dw2_expand_symtabs_with_fullname): Update.
4455 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4456 don't use per_cu->dwarf2_per_objfile.
4457 (dw2_expand_marked_cus): Update.
4458 (dw2_find_pc_sect_compunit_symtab): Update.
4459 (dw2_debug_names_lookup_symbol): Update.
4460 (dw2_debug_names_expand_symtabs_for_function): Update.
4461 (dw2_debug_names_map_matching_symbols): Update.
4462 (dwarf2_psymtab::expand_psymtab): Update.
4463
4464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4467 <per_objfile>: New member.
4468 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4469 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4470 call to dwarf2_cu.
4471 (cutu_reader::cutu_reader): Update.
4472 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4473
4474 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4477 struct dwarf2_per_objfile.
4478 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4479 dwarf2_per_bfd.
4480 * dwarf2/read.c (set_die_type): Update.
4481 (get_die_type_at_offset): Update.
4482
4483 2020-05-27 Tom Tromey <tom@tromey.com>
4484 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4487 method.
4488 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4489 get_symtab, set_symtab>: New methods.
4490 <m_symtabs>: New field.
4491 (struct dwarf2_psymtab): Derive from partial_symtab.
4492 <readin_p, get_compunit_symtab>: Declare methods.
4493 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4494 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4495 New methods.
4496 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4497 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4498 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4499 (dw2_symtab_iter_next, dw2_print_stats)
4500 (dw2_expand_symtabs_with_fullname)
4501 (dw2_expand_symtabs_matching_one)
4502 (dw_expand_symtabs_matching_file_matcher)
4503 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4504 (dw2_debug_names_iterator::next)
4505 (dw2_debug_names_map_matching_symbols)
4506 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4507 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4508 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4509 New methods.
4510 (get_compunit_symtab, process_full_comp_unit)
4511 (process_full_type_unit): Update.
4512 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4513
4514 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4517 then introduce a new dwarf2_per_objfile type.
4518 <read_line_string>: Move to the new dwarf2_per_objfile type.
4519 <objfile>: Likewise.
4520 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4521 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4522 dwarf2_per_objfile->per_bfd.
4523 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4524 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4525 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4526 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4527 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4528 (dwarf2_per_objfile::locate_sections): Rename to...
4529 (dwarf2_per_bfd::locate_sections): ... this.
4530 (dwarf2_per_objfile::get_cutu): Rename to...
4531 (dwarf2_per_bfd::get_cutu): ... this.
4532 (dwarf2_per_objfile::get_cu): Rename to...
4533 (dwarf2_per_bfd::get_cu): ... this.
4534 (dwarf2_per_objfile::get_tu): Rename to...
4535 (dwarf2_per_bfd::get_tu): ... this.
4536 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4537 (dwarf2_per_bfd::allocate_per_cu): ... this.
4538 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4539 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4540 (get_gdb_index_contents_ftype): Change parameter from
4541 dwarf2_per_objfile to dwarf2_per_bfd.
4542 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4543 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4544
4545 2020-05-27 Tom Tromey <tom@tromey.com>
4546 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4549 (allocate_piece_closure): Set "per_objfile" member.
4550 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4551 (locexpr_describe_location, loclist_describe_location): Use new
4552 member.
4553 * dwarf2/read.c (read_call_site_scope)
4554 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4555 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4556 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4557 handle_data_member_location): Set per_objfile member.
4558 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4559 member.
4560 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4561
4562 2020-05-27 Tom Tromey <tom@tromey.com>
4563
4564 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4565 allocate_signatured_type>: Declare new methods.
4566 <m_num_psymtabs>: New member.
4567 (struct dwarf2_per_cu_data) <index>: New member.
4568 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4569 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4570 (create_cu_from_index_list): Use allocate_per_cu.
4571 (create_signatured_type_table_from_index)
4572 (create_signatured_type_table_from_debug_names)
4573 (create_debug_type_hash_table, add_type_unit)
4574 (read_comp_units_from_section): Use allocate_signatured_type.
4575
4576 2020-05-27 Tom Tromey <tom@tromey.com>
4577
4578 * psymtab.c (partial_map_expand_apply)
4579 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4580 (psym_lookup_global_symbol_language)
4581 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4582 (psym_print_stats, psym_expand_symtabs_for_function)
4583 (psym_map_symbol_filenames, psym_map_matching_symbols)
4584 (psym_expand_symtabs_matching)
4585 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4586 (maintenance_check_psymtabs): Update.
4587 * psympriv.h (struct partial_symtab) <readin_p,
4588 get_compunit_symtab>: Add objfile parameter.
4589 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4590 Likewise.
4591 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4592 get_compunit_symtab>: Likewise.
4593 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4594
4595 2020-05-27 Tom Tromey <tom@tromey.com>
4596
4597 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4598 member.
4599 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4600 (create_cu_from_index_list)
4601 (create_signatured_type_table_from_index)
4602 (create_signatured_type_table_from_debug_names)
4603 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4604 (dwarf2_create_include_psymtab)
4605 (create_debug_type_hash_table, add_type_unit)
4606 (create_type_unit_group, read_comp_units_from_section)
4607 (dwarf2_compute_name, create_cus_hash_table)
4608 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4609 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4610 obstack.
4611 (dw2_get_real_path): Likewise. Change argument to
4612 dwarf2_per_objfile.
4613
4614 2020-05-27 Luis Machado <luis.machado@linaro.org>
4615
4616 PR tdep/26000
4617 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4618 for ldrd (immediate).
4619
4620 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4621
4622 * command.h: Add comment giving the name of class_tui.
4623 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4624 create the fake command for the help for class_tui.
4625
4626 2020-05-26 Tom Tromey <tromey@adacore.com>
4627
4628 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4629 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4630 (val_atr): New function.
4631 (value_val_atr): Use it.
4632 * ada-valprint.c (print_optional_low_bound): Change low bound
4633 handling for enums.
4634 (val_print_packed_array_elements): Don't call discrete_position.
4635 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4636 discrete_position for enum types.
4637 * language.c (default_print_array_index): Change type.
4638 * language.h (struct language_defn) <la_print_array_index>: Add
4639 index_type parameter, change type of index_value.
4640 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4641 (default_print_array_index): Update.
4642 * valprint.c (maybe_print_array_index): Don't call
4643 value_from_longest. Update.
4644 (value_print_array_elements): Don't call discrete_position.
4645
4646 2020-05-26 Tom Tromey <tromey@adacore.com>
4647
4648 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4649 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4650
4651 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4652
4653 PR gdb/13519
4654 * avr-tdep.c (avr_integer_to_address): Return data or code
4655 address accordingly to the second 'type' argument of the
4656 function.
4657
4658 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4659
4660 * infcmd.c, inferior.h: (construct_inferior_arguments):
4661 Moved function from here to gdbsupport/common-inferior.{h,cc}
4662
4663 2020-05-23 Tom Tromey <tom@tromey.com>
4664
4665 Revert commit eca1f90c:
4666 * NEWS: Remove entry for completion styling.
4667 * completer.c (_rl_completion_prefix_display_length): Move
4668 declaration later.
4669 (gdb_fnprint): Revert.
4670 (gdb_display_match_list_1): Likewise.
4671 * cli/cli-style.c (completion_prefix_style)
4672 (completion_difference_style, completion_suffix_style): Remove.
4673 (_initialize_cli_style): Revert.
4674 * cli/cli-style.h (completion_prefix_style)
4675 (completion_difference_style, completion_suffix_style): Don't
4676 declare.
4677
4678 2020-05-24 Pedro Alves <palves@redhat.com>
4679
4680 * symtab.c (completion_list_add_name): Return boolean indication
4681 of whether the symbol matched.
4682 (completion_list_add_symbol): Don't try to remove C++ aliases if
4683 the symbol didn't match in the first place.
4684 * symtab.h (completion_list_add_name): Return bool.
4685
4686 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4687
4688 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4689 type::field.
4690
4691 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4692
4693 GDB 9.2 released.
4694
4695 2020-05-23 Tom Tromey <tom@tromey.com>
4696
4697 * NEWS: Add entry for completion styling.
4698 * completer.c (_rl_completion_prefix_display_length): Move
4699 declaration earlier.
4700 (gdb_fnprint): Use completion_style.
4701 (gdb_display_match_list_1): Likewise.
4702 * cli/cli-style.c (completion_prefix_style)
4703 (completion_difference_style, completion_suffix_style): New
4704 globals.
4705 (_initialize_cli_style): Register new globals.
4706 * cli/cli-style.h (completion_prefix_style)
4707 (completion_difference_style, completion_suffix_style): Declare.
4708
4709 2020-05-23 Pedro Alves <palves@redhat.com>
4710
4711 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4712 (parse_escape): Use ISDIGIT instead of isdigit.
4713 (puts_debug): Use gdb_isprint instead of isprint.
4714 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4715 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4716 ISSPACE instead of isspace.
4717 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4718 instead of isspace.
4719 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4720 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4721 instead of isxdigit and ISDIGIT instead of isdigit.
4722
4723 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (struct type) <field>: New method.
4726 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4727 or type::field.
4728
4729 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4732 (TYPE_FIELDS): Use type::fields. Change all call sites that
4733 modify the propery to use type::set_fields instead.
4734
4735 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4738 type::num_fields instead.
4739
4740 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4743 methods.
4744 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4745 that modify the number of fields to use type::set_num_fields
4746 instead.
4747
4748 2020-05-22 Tom Tromey <tromey@adacore.com>
4749
4750 * compile/compile-object-load.h (munmap_list_free): Don't
4751 declare.
4752
4753 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4754
4755 * annotate.c (annotate_source_line): Update return type, add call
4756 to update current symtab and line.
4757 * annotate.h (annotate_source_line): Update return type, and
4758 extend header comment.
4759 * source.c (info_line_command): Check annotation_level before
4760 calling annotate_source_line.
4761 * stack.c (print_frame_info): If calling annotate_source_line
4762 returns true, then don't print any other source line information.
4763
4764 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4767
4768 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * coffread.c (patch_type): Remove NULL check before xfree.
4771 * corefile.c (set_gnutarget): Likewise.
4772 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4773 * exec.c (build_section_table): Likewise.
4774 * remote.c (remote_target::pass_signals): Likewise.
4775 * utils.c (n_spaces): Likewise.
4776 * cli/cli-script.c (document_command): Likewise.
4777 * i386-windows-tdep.c (core_process_module_section): Likewise.
4778 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4779
4780 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * symfile.c (reread_symbols): Clear objfile's section_offsets
4783 vector and section indices, re-compute them by calling
4784 sym_offsets.
4785
4786 2020-05-20 Tom Tromey <tromey@adacore.com>
4787
4788 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4789 (desc_one_bound, desc_index_type): Compute field name.
4790
4791 2020-05-20 Tom de Vries <tdevries@suse.de>
4792
4793 PR symtab/25833
4794 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4795
4796 2020-05-20 Alan Modra <amodra@gmail.com>
4797
4798 PR 25993
4799 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4800 bfd_set_filename.
4801 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4802 passed to bfd_set_filename.
4803 * symfile-mem.c (add_vsyscall_page): Likewise for string
4804 passed to symbol_file_add_from_memory.
4805 (symbol_file_add_from_memory): Make name param a const char* and
4806 don't strdup.
4807
4808 2020-05-20 Alan Modra <amodra@gmail.com>
4809
4810 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4811 rather than accessing bfd->filename directly.
4812 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4813 and use bfd_section_name.
4814 * dwarf2/frame.c (decode_frame_entry): Likewise.
4815 * exec.c (exec_set_section_address): Likewise.
4816 * solib-aix.c (solib_aix_bfd_open): Likewise.
4817 * stap-probe.c (get_stap_base_address): Likewise.
4818 * symfile.c (reread_symbols): Likewise.
4819
4820 2020-05-19 Tom Tromey <tromey@adacore.com>
4821
4822 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4823
4824 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4825
4826 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4827
4828 2020-05-19 Pedro Alves <palves@redhat.com>
4829
4830 * NEWS (set exec-file-mismatch): Adjust entry.
4831 * exec.c: Include "build-id.h".
4832 (validate_exec_file): Try to match build IDs instead of filenames.
4833 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4834 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4835 and pass down 'warn_if_slow'.
4836 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4837 gdb_bfd_open_closure to pass it down.
4838 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4839
4840 2020-05-19 Pedro Alves <palves@redhat.com>
4841
4842 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4843 * target.c (target_fileio_open_1): Rename to target_fileio_open
4844 and make extern. Use bool.
4845 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4846 (target_fileio_read_alloc_1): Adjust.
4847 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4848 (target_fileio_open_warn_if_slow): Delete declaration.
4849
4850 2020-05-19 Pedro Alves <palves@redhat.com>
4851
4852 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4853 Adjust all callers.
4854
4855 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4856
4857 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4858 whether disp is negative.
4859
4860 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * symfile.h (struct symfile_segment_data)
4863 <~symfile_segment_data>: Remove.
4864 <segment_info>: Change to std::vector.
4865 * symfile.c (default_symfile_segments): Update.
4866 * elfread.c (elf_symfile_segments): Update.
4867
4868 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4871 <segments>: New.
4872 <segment_bases, segment_sizes>: Remove.
4873 * symfile.c (default_symfile_segments): Update.
4874 * elfread.c (elf_symfile_segments): Update.
4875 * remote.c (remote_target::get_offsets): Update.
4876 * solib-target.c (solib_target_relocate_section_addresses):
4877 Update.
4878
4879 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * symfile.h (struct symfile_segment_data): Initialize fields.
4882 <~symfile_segment_data>: Add.
4883 (symfile_segment_data_up): New.
4884 (struct sym_fns) <sym_segments>: Return a
4885 symfile_segment_data_up.
4886 (default_symfile_segments): Return a symfile_segment_data_up.
4887 (free_symfile_segment_data): Remove.
4888 (get_symfile_segment_data): Return a symfile_segment_data_up.
4889 * symfile.c (default_symfile_segments): Likewise.
4890 (get_symfile_segment_data): Likewise.
4891 (free_symfile_segment_data): Remove.
4892 (symfile_find_segment_sections): Update.
4893 * elfread.c (elf_symfile_segments): Return a
4894 symfile_segment_data_up.
4895 * remote.c (remote_target::get_offsets): Update.
4896 * solib-target.c (solib_target_relocate_section_addresses):
4897 Update.
4898 * symfile-debug.c (debug_sym_segments): Return a
4899 symfile_segment_data_up.
4900
4901 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4902
4903 PR build/25981
4904 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4905 Hardcode register numbers.
4906
4907 PR build/25981
4908 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4909 procfs_find_LDT_entry): Remove.
4910 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4911 procfs_find_LDT_entry): Remove.
4912 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4913 Remove.
4914
4915 2020-05-17 Pedro Alves <palves@redhat.com>
4916 Andrew Burgess <andrew.burgess@embecosm.com>
4917 Keno Fischer <keno@juliacomputing.com>
4918
4919 PR gdb/25741
4920 * breakpoint.c (build_target_condition_list): Update comments.
4921 (build_target_command_list): Update comments and skip matching
4922 locations.
4923 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4924 a separate function. Simplify "set breakpoint auto-hw off"
4925 handling.
4926 (insert_breakpoints): Update comment.
4927 (tracepoint_locations_match): New parameter. For breakpoints,
4928 compare location types too, if the caller wants to.
4929 (handle_automatic_hardware_breakpoints): New functions.
4930 (bp_location_is_less_than): Also sort by location type and
4931 hardware breakpoint length.
4932 (update_global_location_list): Handle "set breakpoint auto-hw on"
4933 here.
4934 (update_breakpoint_locations): Ask breakpoint_locations_match to
4935 ignore location types.
4936
4937 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4940 type::name instead.
4941
4942 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * gdbtypes.h (struct type) <name, set_name>: New methods.
4945 (TYPE_CODE): Use type::name. Change all call sites used to set
4946 the name to use type::set_name instead.
4947
4948 2020-05-16 Tom Tromey <tom@tromey.com>
4949
4950 * top.c (quit_force): Update.
4951 * infrun.c (handle_no_resumed): Update.
4952 * top.h (all_uis): New function.
4953 (ALL_UIS): Remove.
4954
4955 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4958
4959 2020-05-16 Pedro Alves <palves@redhat.com>
4960
4961 * ia64-linux-nat.c
4962 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4963 Declare method.
4964 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4965
4966 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4969 (sparc64_adi_info): Likewise.
4970
4971 2020-05-15 Tom Tromey <tom@tromey.com>
4972
4973 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4974 block_objfile.
4975 (lookup_objfile_from_block): Remove.
4976 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4977 (lookup_global_symbol): Use block_objfile.
4978 * symtab.h (lookup_objfile_from_block): Don't declare.
4979 * printcmd.c (clear_dangling_display_expressions): Use
4980 block_objfile.
4981 * parse.c (operator_check_standard): Use block_objfile.
4982
4983 2020-05-15 Tom Tromey <tom@tromey.com>
4984
4985 * language.c (language_alloc_type_symbol): Set
4986 SYMBOL_SECTION.
4987 * symtab.c (initialize_objfile_symbol): Remove.
4988 (allocate_symbol): Remove.
4989 (allocate_template_symbol): Remove.
4990 * dwarf2/read.c (fixup_go_packaging): Use "new".
4991 (new_symbol): Use "new".
4992 (read_variable): Don't call initialize_objfile_symbol. Use
4993 "new".
4994 (read_func_scope): Use "new".
4995 * xcoffread.c (process_xcoff_symbol): Don't call
4996 initialize_objfile_symbol.
4997 (SYMBOL_DUP): Remove.
4998 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4999 "new".
5000 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5001 (allocate_template_symbol): Don't declare.
5002 (struct symbol): Add copy constructor. Change defaults.
5003 * jit.c (finalize_symtab): Use "new".
5004 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5005 Use "new".
5006 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5007 (common_block_end): Use "new".
5008 * mdebugread.c (parse_symbol): Use "new".
5009 (new_symbol): Likewise.
5010
5011 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5012
5013 * NEWS: Mention changes to help and apropos.
5014
5015 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5016
5017 * command.h (enum command_class): Improve comments, document
5018 that class_alias is for user-defined aliases, give the class
5019 name for each class, remove unused class_xdb.
5020 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5021 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5022 by a precise class.
5023 * infcmd.c (_initialize_infcmd): Likewise.
5024 * reverse.c (_initialize_reverse): Likewise.
5025 * stack.c (_initialize_stack): Likewise.
5026 * symfile.c (_initialize_symfile): Likewise.
5027 * tracepoint.c (_initialize_tracepoint): Likewise.
5028
5029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5030
5031 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5032 when their aliased command is traversed.
5033 (help_cmd): Add fput_command_names_styled call to
5034 output command name and aliases when command has an alias.
5035
5036 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5039 * cli/cli-decode.c (help_cmd_list): Declare as static,
5040 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5041 a command together with the command.
5042 (fput_command_name_styled, fput_command_names_styled): New functions.
5043 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5044 fput_command_name_styled.
5045 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5046 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5047
5048 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5049
5050 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5051 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5052 * command.h (cmd_show_list): Likewise.
5053 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5054 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5055
5056 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5057
5058 * unittests/command-def-selftests.c (traverse_command_structure):
5059 Verify all commands of a list have the same prefix command and
5060 that only the top cmdlist commands have a null prefix.
5061
5062 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5063
5064 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5065 as prefix, not one of its aliases.
5066 (set_cmd_prefix): Remove.
5067 (do_add_cmd): Centralize the setting of the prefix of a command, when
5068 command is defined after its full chain of prefix commands.
5069 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5070 (add_setshow_cmd_full): Likewise.
5071 (update_prefix_field_of_prefixed_commands): New function.
5072 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5073 update_prefix_field_of_prefixed_commands.
5074 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5075 addresses of remote_set_cmdlist and remote_show_cmdlist given
5076 as argument, not the address of an argument.
5077 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5078 * gdb/remote.c (_initialize_remote): Likewise.
5079
5080 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5081
5082 * cli/cli-cmds.c (alias_command): Check for an existing alias
5083 using lookup_cmd_composition, as valid_command_p is too strict
5084 and forbids aliases that are the prefix of an existing alias
5085 or command.
5086 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5087 command is properly recognised as a valid command.
5088
5089 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5090
5091 * unittests/help-doc-selftests.c: Rename to
5092 unittests/command-def-selftests.c
5093 * unittests/command-def-selftests.c (help_doc_tests): Update some
5094 comments.
5095 (command_structure_tests, traverse_command_structure): New namespace
5096 and function.
5097 (command_structure_invariants_tests): New function.
5098 (_initialize_command_def_selftests) Renamed from
5099 _initialize_help_doc_selftests, register command_structure_invariants
5100 selftest.
5101
5102 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5103
5104 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5105 an alias of 'show'.
5106
5107 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5108
5109 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5110 ada_is_fixed_point_type. Update all callers.
5111 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5112 all callers.
5113 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5114 Update all callers.
5115 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5116 print_fixed_point_type. Update all callers.
5117 * ada-valprint.c (ada_value_print_num): Replace call to
5118 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5119
5120 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5121
5122 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5123 processors.
5124 (cpu_supports_bts): Add CV_AMD case.
5125
5126 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5127 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * infrun.c (stop_all_threads): Collect multiple wait events at
5130 each pass.
5131
5132 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5135 type::code instead.
5136
5137 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * gdbtypes.h (struct type) <code, set_code>: New methods.
5140 (TYPE_CODE): Use type::code. Change all call sites used to set
5141 the code to use type::set_code instead.
5142
5143 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5144 Tom de Vries <tdevries@suse.de>
5145 Pedro Alves <palves@redhat.com>
5146
5147 PR threads/25478
5148 * infrun.c (stop_all_threads): Do NOT ignore
5149 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5150 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5151 received.
5152 (handle_no_resumed): Remove code handling a live inferior with no
5153 threads.
5154 * remote.c (has_single_non_exited_thread): New.
5155 (remote_target::update_thread_list): Do not delete a thread if is
5156 the last thread of the process.
5157 * thread.c (thread_select): Call delete_exited_threads instead of
5158 prune_threads.
5159
5160 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5161
5162 * infrun.c (stop_all_threads): Enable/disable thread events of all
5163 targets. Move a debug message denoting the end of the function
5164 into the SCOPED_EXIT block.
5165
5166 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5167
5168 * process-stratum-target.h: Include <set>.
5169 (all_non_exited_process_targets, switch_to_target_no_thread): New
5170 function declarations.
5171 * process-stratum-target.c (all_non_exited_process_targets)
5172 (switch_to_target_no_thread): New function implementations.
5173
5174 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5175
5176 * infrun.c (handle_inferior_event): Extract out a piece of code
5177 into...
5178 (mark_non_executing_threads): ...this new function.
5179
5180 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5181
5182 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5183 use.
5184
5185 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5186
5187 * regcache.c (regcache_read_pc_protected): New function
5188 implementation that returns 0 if the PC cannot read via
5189 'regcache_read_pc'.
5190 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5191 instead of 'regcache_read_pc'.
5192 (keep_going_pass_signal): Ditto.
5193
5194 2020-05-13 Tom Tromey <tromey@adacore.com>
5195
5196 * ada-lang.c (align_value): Remove.
5197 (ada_template_to_fixed_record_type_1): Use align_up.
5198
5199 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5200
5201 * async-event.c: Update the copyright year.
5202 * async-event.h: Update the copyright year.
5203
5204 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * objfiles.h (is_addr_in_objfile,
5207 shared_objfile_contains_address_p): Return bool.
5208 * objfile.c (is_addr_in_objfile,
5209 shared_objfile_contains_address_p): Return bool.
5210
5211 2020-05-11 Tom Tromey <tromey@adacore.com>
5212
5213 * cli/cli-cmds.c (info_command): Restore.
5214 (_initialize_cli_cmds): Use add_prefix_command for "info".
5215 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5216
5217 2020-05-11 Tom Tromey <tromey@adacore.com>
5218
5219 * ada-lang.c (ada_value_primitive_field): Now public.
5220 * ada-lang.h (ada_value_primitive_field): Declare.
5221 * ada-valprint.c (print_field_values): Use
5222 ada_value_primitive_field for wrapper fields.
5223
5224 2020-05-11 Tom de Vries <tdevries@suse.de>
5225
5226 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5227 MODULE_DOMAIN.
5228
5229 2020-05-11 Tom de Vries <tdevries@suse.de>
5230
5231 PR symtab/25941
5232 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5233 with length 0, if not gdb-produced.
5234 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5235
5236 2020-05-09 Tom de Vries <tdevries@suse.de>
5237
5238 PR gdb/25955
5239 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5240 calculation.
5241
5242 2020-05-09 Tom Tromey <tom@tromey.com>
5243
5244 * top.c (server_command): Now bool.
5245 * top.h (server_command): Now bool.
5246
5247 2020-05-08 Tom Tromey <tromey@adacore.com>
5248
5249 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5250 already being processed.
5251
5252 2020-05-08 Tom Tromey <tom@tromey.com>
5253
5254 * printcmd.c (struct display) <next>: Remove.
5255 <display>: New constructor.
5256 <exp_string>: Now a std::string.
5257 <enabled_p>: Now a bool.
5258 (display_number): Move definition earlier.
5259 (displays): Rename from display_chain. Now a std::vector.
5260 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5261 (display_command): Update.
5262 (do_one_display, disable_display)
5263 (enable_disable_display_command, do_enable_disable_display):
5264 Update.
5265 (free_display): Remove.
5266 (clear_displays): Rewrite.
5267 (delete_display): Update.
5268 (map_display_numbers): Use function_view. Remove "data"
5269 parameter. Update.
5270 (do_delete_display): Remove.
5271 (undisplay_command): Update.
5272 (do_one_display, do_displays, disable_display)
5273 (info_display_command): Update.
5274 (do_enable_disable_display): Remove.
5275 (enable_disable_display_command)
5276 (clear_dangling_display_expressions): Update.
5277
5278 2020-05-08 Tom Tromey <tom@tromey.com>
5279
5280 * symtab.c (set_symbol_cache_size)
5281 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5282 (maintenance_print_symbol_cache_statistics): Update.
5283 * symmisc.c (print_symbol_bcache_statistics)
5284 (print_objfile_statistics, maintenance_print_objfiles)
5285 (maintenance_info_symtabs, maintenance_check_symtabs)
5286 (maintenance_expand_symtabs, maintenance_info_line_tables):
5287 Update.
5288 * symfile-debug.c (set_debug_symfile): Update.
5289 * source.c (forget_cached_source_info): Update.
5290 * python/python.c (gdbpy_progspaces): Update.
5291 * psymtab.c (maintenance_info_psymtabs): Update.
5292 * probe.c (parse_probes): Update.
5293 * linespec.c (iterate_over_all_matching_symtabs)
5294 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5295 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5296 * exec.c (exec_target::close): Update.
5297 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5298 * breakpoint.c (print_one_breakpoint_location)
5299 (create_longjmp_master_breakpoint)
5300 (create_std_terminate_master_breakpoint): Update.
5301 * progspace.c (program_spaces): Now a std::vector.
5302 (maybe_new_address_space): Update.
5303 (add_program_space): Remove.
5304 (program_space::program_space): Update.
5305 (remove_program_space): Update.
5306 (number_of_program_spaces): Remove.
5307 (print_program_space, update_address_spaces): Update.
5308 * progspace.h (program_spaces): Change type.
5309 (ALL_PSPACES): Remove.
5310 (number_of_program_spaces): Don't declare.
5311 (struct program_space) <next>: Remove.
5312
5313 2020-05-08 Tom Tromey <tom@tromey.com>
5314
5315 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5316 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5317 (enable_break): Update.
5318 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5319 (frv_fdpic_find_canonical_descriptor): Update.
5320 (frv_fetch_objfile_link_map): Update.
5321 * progspace.c (program_space::free_all_objfiles): Update.
5322 (program_space::solibs): New method.
5323 * progspace.h (struct program_space) <solibs>: New method.
5324 * solist.h (master_so_list): Don't declare.
5325 (ALL_SO_LIBS): Remove.
5326 * solib.h (so_list_head): Remove.
5327 (update_solib_list): Update comment.
5328 * solib.c (master_so_list): Remove.
5329 (solib_used, update_solib_list, solib_add)
5330 (info_sharedlibrary_command, clear_solib)
5331 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5332
5333 2020-05-08 Tom Tromey <tom@tromey.com>
5334
5335 * extension.c (extension_languages): Now a std::array.
5336 (ALL_EXTENSION_LANGUAGES): Remove.
5337 (get_ext_lang_defn, get_ext_lang_of_file)
5338 (eval_ext_lang_from_control_command): Update.
5339 (finish_ext_lang_initialization)
5340 (auto_load_ext_lang_scripts_for_objfile)
5341 (ext_lang_type_printers::ext_lang_type_printers)
5342 (apply_ext_lang_type_printers)
5343 (ext_lang_type_printers::~ext_lang_type_printers)
5344 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5345 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5346 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5347 (get_matching_xmethod_workers, ext_lang_colorize)
5348 (ext_lang_before_prompt): Update.
5349 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5350
5351 2020-05-08 Tom Tromey <tom@tromey.com>
5352
5353 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5354 overload.
5355 <swap_string, m_string>: Remove.
5356 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5357 Update.
5358 * stabsread.c (define_symbol, read_type): Update.
5359 * linespec.c (find_linespec_symbols): Update.
5360 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5361 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5362 * dbxread.c (read_dbx_symtab): Update.
5363 * cp-support.h (cp_canonicalize_string_full)
5364 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5365 Return unique_xmalloc_ptr.
5366 * cp-support.c (inspect_type): Update.
5367 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5368 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5369 Likewise.
5370 * c-typeprint.c (print_name_maybe_canonical): Update.
5371 * break-catch-throw.c (check_status_exception_catchpoint):
5372 Update.
5373
5374 2020-05-08 Tom de Vries <tdevries@suse.de>
5375
5376 * infrun.c (follow_fork): Copy current_line and current_symtab to
5377 child thread.
5378
5379 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * async-event.c (struct async_signal_handler, struct
5382 async_event_handler): Reformat, remove typedef.
5383
5384 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5387 access thistype->main_type->dyn_prop_list directly.
5388
5389 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5392 (remove_dyn_prop): Remove. Update all users to use
5393 type::remove_dyn_prop.
5394 * gdbtypes.c (remove_dyn_prop): Rename to...
5395 (type::remove_dyn_prop): ... this.
5396
5397 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5398
5399 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5400 (add_dyn_prop): Remove. Update all users to use
5401 type::add_dyn_prop.
5402 * gdbtypes.c (add_dyn_prop): Rename to...
5403 (type::add_dyn_prop): ... this.
5404
5405 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5408 (get_dyn_prop): Remove. Update all users to use
5409 type::dyn_prop.
5410 * gdbtypes.c (get_dyn_prop): Rename to...
5411 (type::dyn_prop): ... this.
5412
5413 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5416
5417 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5420 instruction, skip it if it's there.
5421
5422 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5425
5426 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5429 * gdbtypes.c (recursive_dump_type): Remove use of
5430 TYPE_INCOMPLETE.
5431
5432 2020-05-03 Tom Tromey <tom@tromey.com>
5433
5434 * breakpoint.c (catch_command, tcatch_command): Remove.
5435 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5436 add_show_prefix_cmd.
5437 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5438 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5439 Remove.
5440 (add_internal_problem_command): Use add_basic_prefix_cmd,
5441 add_show_prefix_cmd.
5442 * mips-tdep.c (set_mipsfpu_command): Remove.
5443 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5444 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5445 (_initialize_index_cache): Use add_basic_prefix_cmd.
5446 * memattr.c (dummy_cmd): Remove.
5447 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5448 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5449 (_initialize_tui_win): Use add_basic_prefix_cmd,
5450 add_show_prefix_cmd.
5451 * cli/cli-logging.c (set_logging_command): Remove.
5452 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5453 add_show_prefix_cmd.
5454 (show_logging_command): Remove.
5455 * target.c (target_command): Remove.
5456 (add_target): Use add_basic_prefix_cmd.
5457
5458 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5459
5460 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5461
5462 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5463
5464 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5465 info_command.
5466
5467 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5468
5469 * nbsd-nat.c (nbsd_enable_proc_events)
5470 (nbsd_nat_target::post_startup_inferior): Add.
5471 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5472 (nbsd_nat_target::update_thread_list): Rewrite.
5473 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5474 "PTRACE_LWP_CREATE".
5475 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5476
5477 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5478
5479 * stack.c (_initialize_stack): Remove duplicated creation
5480 of "frame" command and "f" alias.
5481
5482 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5483
5484 PR gdb/18706
5485 * gdbtypes.c (check_typedef): Calculate size of array of
5486 stubbed type.
5487
5488 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5489
5490 PR gdb/15559
5491 * i386-tdep.c (i386_push_dummy_call): Call
5492 i386_thiscall_push_dummy_call.
5493 (i386_thiscall_push_dummy_call): New function.
5494 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5495 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5496 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5497
5498 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * gdbarch.sh (do_read): Add shellcheck disable directive for
5501 warning SC2162.
5502
5503 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5506 "referenced but not assigned" warning.
5507
5508 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * gdbarch.sh: Remove code that sets fallbackdefault.
5511
5512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * gdbarch.sh: Use shell operators && and || instead of
5515 -a and -o.
5516
5517 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * gdbarch.sh: Use $(...) instead of `...`.
5520
5521 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5522
5523 * gdbarch.sh: Use double quotes around variables.
5524
5525 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * gdbarch.sh: Use %s with printf, instead of variables in the
5528 format string.
5529
5530 2020-04-29 Tom Tromey <tromey@adacore.com>
5531
5532 PR ada/25875:
5533 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5534 type fields here.
5535 (read_enumeration_type): Call
5536 update_enumeration_type_from_children later. Update comments.
5537 (process_enumeration_scope): Don't create type fields.
5538
5539 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5540
5541 * nbsd-tdep.c: Include "xml-syscall.h".
5542 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5543
5544 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5545
5546 * nbsd-nat.c: Include "sys/wait.h".
5547 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5548 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5549 (nbsd_nat_target::remove_exec_catchpoint)
5550 (nbsd_nat_target::set_syscall_catchpoint): Add.
5551 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5552 (nbsd_nat_target::insert_exec_catchpoint)
5553 (nbsd_nat_target::remove_exec_catchpoint)
5554 (nbsd_nat_target::set_syscall_catchpoint): Add.
5555 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5556 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5557 `nbsd_get_syscall_number'.
5558
5559 2020-04-29 Tom Tromey <tom@tromey.com>
5560
5561 * stack.c (print_block_frame_labels): Remove.
5562
5563 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5564
5565 PR gdb/17320
5566 * ada-valprint.c (val_print_packed_array_elements): Move array
5567 end bracket to new line.
5568 (ada_val_print_string): Remove extra spaces before first array
5569 element.
5570 * c-valprint.c (c_value_print_array): Likewise.
5571 * m2-valprint.c (m2_print_array_contents): Likewise.
5572 (m2_value_print_inner): Likewise.
5573 * p-valprint.c (pascal_value_print_inner): Likewise.
5574 * valprint.c (generic_val_print_array): Likewise.
5575 (value_print_array_elements): Move first array element and array
5576 end bracket to new line.
5577
5578 2020-04-29 Tom de Vries <tdevries@suse.de>
5579
5580 PR symtab/25889
5581 * linespec.c (find_method): Fix ix calculation.
5582
5583 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5584
5585 * syscalls/update-netbsd.sh: New file.
5586 * syscalls/netbsd.xml: Regenerate.
5587 * data-directory/Makefile.in: Register `netbsd.xml' in
5588 `SYSCALLS_FILES'.
5589
5590 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * syscalls/update-freebsd.sh: Add double quotes.
5593
5594 2020-04-28 Tom Tromey <tom@tromey.com>
5595
5596 * NEWS: Update.
5597 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5598 (cmdpy_init): Allow class_tui.
5599
5600 2020-04-28 Mark Williams <mark@myosotissp.com>
5601
5602 PR gdb/24480
5603 * dwarf2read.c: Add missing assingments to list_in_scope when
5604 start_symtab was already called.
5605
5606 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5607
5608 PR gdb/25881
5609 * dwarf2/read.c (offset_map_type): Use
5610 gdb:hash_enum<sect_offset> as hash function.
5611
5612 2020-04-28 Tom de Vries <tdevries@suse.de>
5613
5614 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5615 with DW_AT_signature.
5616
5617 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * configure.ac: Remove check for fs_base/gs_base in
5620 user_regs_struct.
5621 * configure: Re-generate.
5622 * config.in: Re-generate.
5623 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5624 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5625 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5626
5627 2020-04-27 Luis Machado <luis.machado@linaro.org>
5628
5629 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5630 problematic inline frame unwinding situation.
5631 * frame.c (frame_id_computed_p): New function.
5632 * frame.h (frame_id_computed_p): New prototype.
5633
5634 2020-04-26 Tom Tromey <tom@tromey.com>
5635
5636 * command.h (enum command_class) <class_pseudo>: Remove.
5637
5638 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5639
5640 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5641 and whitespace.
5642
5643 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5644
5645 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5646 `PT_GET_PROCESS_STATE' block.
5647
5648 2020-04-24 Tom Tromey <tom@tromey.com>
5649
5650 * symtab.h (symbol_get_demangled_name): Don't declare.
5651 * symtab.c (symbol_get_demangled_name): Remove.
5652 (general_symbol_info::natural_name)
5653 (general_symbol_info::demangled_name): Update.
5654
5655 2020-04-24 Tom Tromey <tom@tromey.com>
5656
5657 PR rust/25025:
5658 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5659
5660 2020-04-24 Tom Tromey <tom@tromey.com>
5661
5662 PR symtab/12707:
5663 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5664 exists.
5665 (new_symbol): Likewise.
5666 * compile/compile-object-load.c (get_out_value_type): Use
5667 symbol_matches_search_name.
5668
5669 2020-04-24 Tom Tromey <tom@tromey.com>
5670
5671 * dwarf2/read.c (add_partial_symbol): Do not call
5672 compute_and_set_names.
5673
5674 2020-04-24 Tom Tromey <tom@tromey.com>
5675
5676 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5677 overload.
5678
5679 2020-04-24 Tom Tromey <tom@tromey.com>
5680
5681 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5682 (add_psymbol_to_list): New overload. Make old overload call new
5683 one.
5684 * psympriv.h (add_psymbol_to_list): New overload.
5685
5686 2020-04-24 Tom Tromey <tom@tromey.com>
5687
5688 * dwarf2/read.c (partial_die_info::read) <case
5689 DW_AT_linkage_name>: Use value_as_string.
5690 (dwarf2_string_attr): Use value_as_string.
5691 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5692 method.
5693 * dwarf2/attribute.c (attribute::value_as_string): New method.
5694
5695 2020-04-24 Tom Tromey <tom@tromey.com>
5696
5697 * symtab.c (general_symbol_info::natural_name)
5698 (general_symbol_info::demangled_name): Check for language_rust.
5699
5700 2020-04-24 Tom Tromey <tom@tromey.com>
5701
5702 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5703 (dwarf2_physname): ... from here.
5704 (partial_die_info::read): Add Rust "{" hack.
5705
5706 2020-04-24 Tom Tromey <tom@tromey.com>
5707
5708 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5709 method.
5710 (symbol_set_demangled_name): Don't declare.
5711 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5712 symbol_set_demangled_name.
5713 (general_symbol_info::set_language)
5714 (general_symbol_info::compute_and_set_names): Update.
5715 * minsyms.c (minimal_symbol_reader::install): Update.
5716 * dwarf2/read.c (new_symbol): Update.
5717
5718 2020-04-24 Tom Tromey <tromey@adacore.com>
5719
5720 PR python/23662:
5721 * python/py-type.c (convert_field): Handle
5722 FIELD_LOC_KIND_DWARF_BLOCK.
5723 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5724 (typy_get_dynamic): Nw function.
5725 (type_object_getset): Add "dynamic".
5726 * NEWS: Add entry.
5727
5728 2020-04-24 Tom Tromey <tromey@adacore.com>
5729
5730 * ada-typeprint.c (print_choices, print_variant_part)
5731 (print_record_field_types_dynamic): New functions.
5732 (print_record_field_types): Use print_record_field_types_dynamic.
5733
5734 2020-04-24 Tom Tromey <tromey@adacore.com>
5735
5736 * dwarf2/read.c (handle_data_member_location): New overload.
5737 (dwarf2_add_field): Use it.
5738 (decode_locdesc): Add "computed" parameter. Update comment.
5739 * gdbtypes.c (is_dynamic_type_internal): Also look for
5740 FIELD_LOC_KIND_DWARF_BLOCK.
5741 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5742 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5743 virtual base classes.
5744 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5745 FIELD_LOC_KIND_DWARF_BLOCK.
5746
5747 2020-04-24 Tom Tromey <tromey@adacore.com>
5748
5749 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5750 * gdbtypes.c (is_dynamic_type_internal): Check
5751 TYPE_HAS_DYNAMIC_LENGTH.
5752 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5753 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5754 New macros.
5755 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5756 constant.
5757
5758 2020-04-24 Tom Tromey <tromey@adacore.com>
5759
5760 * dwarf2/read.c (struct variant_field): Rewrite.
5761 (struct variant_part_builder): New.
5762 (struct nextfield): Remove "variant" field. Add "offset".
5763 (struct field_info): Add "current_variant_part" and
5764 "variant_parts".
5765 (alloc_discriminant_info): Remove.
5766 (alloc_rust_variant): New function.
5767 (quirk_rust_enum): Update.
5768 (dwarf2_add_field): Set "offset" member. Don't handle
5769 DW_TAG_variant_part.
5770 (offset_map_type): New typedef.
5771 (convert_variant_range, create_one_variant)
5772 (create_one_variant_part, create_variant_parts)
5773 (add_variant_property): New functions.
5774 (dwarf2_attach_fields_to_type): Call add_variant_property.
5775 (read_structure_type): Don't handle DW_TAG_variant_part.
5776 (handle_variant_part, handle_variant): New functions.
5777 (handle_struct_member_die): Use them.
5778 (process_structure_scope): Don't handle variant parts.
5779 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5780 (struct discriminant_info): Remove.
5781 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5782 (struct main_type) <flag_discriminated_union>: Remove.
5783 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5784 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5785 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5786 Update.
5787 * valops.c (value_union_variant): Remove.
5788 * value.h (value_union_variant): Don't declare.
5789
5790 2020-04-24 Tom Tromey <tromey@adacore.com>
5791
5792 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5793 (ada_value_primitive_packed_val): Update.
5794 * ada-valprint.c (ada_value_print_1): Update.
5795 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5796 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5797 just an address. Use evaluate_for_locexpr_baton.
5798 (dwarf2_evaluate_property): Update.
5799 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5800 array_view.
5801 * findvar.c (default_read_var_value): Update.
5802 * gdbtypes.c (compute_variant_fields_inner)
5803 (resolve_dynamic_type_internal): Update.
5804 (resolve_dynamic_type): Change type of valaddr parameter.
5805 * gdbtypes.h (resolve_dynamic_type): Update.
5806 * valarith.c (value_subscripted_rvalue): Update.
5807 * value.c (value_from_contents_and_address): Update.
5808
5809 2020-04-24 Tom Tromey <tromey@adacore.com>
5810
5811 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5812 "push_initial_value" parameter.
5813 (dwarf2_evaluate_property): Likewise.
5814 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5815
5816 2020-04-24 Tom Tromey <tromey@adacore.com>
5817
5818 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5819 (variant::matches, compute_variant_fields_recurse)
5820 (compute_variant_fields_inner, compute_variant_fields): New
5821 functions.
5822 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5823 Use resolved_type after type is made.
5824 (operator==): Add new cases.
5825 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5826 (struct discriminant_range, struct variant, struct variant_part):
5827 New.
5828 (union dynamic_prop_data) <variant_parts, original_type>: New
5829 members.
5830 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5831 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5832 constants.
5833 * value.c (unpack_bits_as_long): Now public.
5834 * value.h (unpack_bits_as_long): Declare.
5835
5836 2020-04-24 Tom Tromey <tromey@adacore.com>
5837
5838 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5839 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5840
5841 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5842
5843 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5844
5845 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5846
5847 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5848 (remove_fork_catchpoint, post_startup_inferior)
5849 (post_attach): Move...
5850 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5851 (remove_fork_catchpoint, post_startup_inferior)
5852 (post_attach): ...here.
5853 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5854 (remove_fork_catchpoint, post_startup_inferior)
5855 (post_attach): Move...
5856 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5857 (remove_fork_catchpoint, post_startup_inferior)
5858 (post_attach): ...here.
5859
5860 2020-04-24 Tom Tromey <tromey@adacore.com>
5861
5862 * nat/windows-nat.h (struct windows_thread_info)
5863 <pc_adjusted>: New member.
5864 * windows-nat.c (windows_fetch_one_register): Check
5865 pc_adjusted.
5866 (windows_nat_target::get_windows_debug_event)
5867 (windows_nat_target::wait): Set pc_adjusted.
5868
5869 2020-04-24 Tom de Vries <tdevries@suse.de>
5870
5871 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5872 Run gdb-add-index inside temp dir.
5873
5874 2020-04-23 Tom Tromey <tromey@adacore.com>
5875
5876 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5877 in loop.
5878
5879 2020-04-23 Luis Machado <luis.machado@linaro.org>
5880
5881 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5882 get_frame_register instead of gdbarch_unwind_pc.
5883
5884 2020-04-23 Tom de Vries <tdevries@suse.de>
5885
5886 * symtab.c (lookup_global_symbol): Prefer def over decl.
5887
5888 2020-04-23 Tom de Vries <tdevries@suse.de>
5889
5890 PR symtab/25807
5891 * block.c (best_symbol, better_symbol): Promote to external.
5892 * block.h (best_symbol, better_symbol): Declare.
5893 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5894 decl.
5895
5896 2020-04-23 Tom Tromey <tromey@adacore.com>
5897
5898 PR ada/25837:
5899 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5900 "const char *", not a "const std::string &".
5901 <name_and_matcher::operator==>: Update.
5902 * unittests/lookup_name_info-selftests.c: Change type of
5903 "result".
5904
5905 2020-04-23 Tom Tromey <tom@tromey.com>
5906
5907 * inferior.h (iterate_over_inferiors): Don't declare.
5908 * inferior.c (iterate_over_inferiors): Remove.
5909 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5910 Remove.
5911 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5912 use iterate_over_inferiors.
5913 (darwin_resume_inferior_it)
5914 (struct resume_inferior_threads_param)
5915 (darwin_resume_inferior_threads_it): Remove.
5916 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5917
5918 2020-04-23 Tom de Vries <tdevries@suse.de>
5919
5920 * blockframe.c (find_pc_partial_function): Use
5921 find_pc_sect_compunit_symtab rather than
5922 objfile->sf->qf->find_pc_sect_compunit_symtab.
5923
5924 2020-04-22 Tom de Vries <tdevries@suse.de>
5925
5926 PR symtab/25764
5927 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5928 in psymtabs.
5929
5930 2020-04-22 Tom de Vries <tdevries@suse.de>
5931
5932 PR symtab/25801
5933 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5934 symtabs.
5935
5936 2020-04-22 Tom de Vries <tdevries@suse.de>
5937
5938 PR symtab/25700
5939 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5940 CU if already created.
5941
5942 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5943
5944 * infrun.c (displaced_step_fixup): Switch to the event_thread
5945 before calling displaced_step_restore, not after.
5946
5947 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5948
5949 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5950 its inferior is not recorded by us.
5951 (record_btrace_target_open): Replace call to
5952 all_non_exited_threads () with call to current_inferior
5953 ()->non_exited_threads ().
5954 (record_btrace_target::stop_recording): Likewise.
5955 (record_btrace_target::close): Likewise.
5956 (record_btrace_target::wait): Likewise.
5957 (record_btrace_target::record_stop_replaying): Likewise.
5958
5959 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5960
5961 * btrace.c (btrace_enable): Throw an error on double enables and
5962 when enabling recording fails.
5963 (btrace_disable): Throw an error if the thread is not recorded.
5964
5965 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5966
5967 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5968 request if we do not have a thread_info.
5969
5970 2020-04-21 Tom de Vries <tdevries@suse.de>
5971
5972 PR gdb/25471
5973 * thread.c
5974 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5975 exception in get_frame_id.
5976
5977 2020-04-20 Tom Tromey <tromey@adacore.com>
5978
5979 * python/python.c (struct gdbpy_event): Mark move constructor as
5980 noexcept.
5981 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5982 constructor as noexcept.
5983 * completer.h (struct completion_result): Mark move constructor as
5984 noexcept.
5985 * completer.c (completion_result::completion_result): Use
5986 initialization style. Don't call reset_match_list.
5987
5988 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5989
5990 * MAINTAINERS (Write After Approval): Add myself.
5991
5992 2020-04-18 Tom Tromey <tom@tromey.com>
5993
5994 * windows-tdep.c (init_w32_command_list)
5995 (w32_prefix_command_valid): Restore.
5996 (_initialize_windows_tdep): Call init_w32_command_list.
5997
5998 2020-04-18 Tom Tromey <tom@tromey.com>
5999
6000 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6001 * value.c (value_fn_field): Update.
6002 * valops.c (find_function_in_inferior)
6003 (value_allocate_space_in_inferior): Update.
6004 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6005 Update.
6006 * tui/tui-source.c (tui_source_window::set_contents): Update.
6007 * symtab.c (lookup_global_or_static_symbol)
6008 (find_function_start_sal_1, skip_prologue_sal)
6009 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6010 * symmisc.c (dump_msymbols, dump_symtab_1)
6011 (maintenance_print_one_line_table): Update.
6012 * symfile.c (init_entry_point_info, section_is_mapped)
6013 (list_overlays_command, simple_read_overlay_table)
6014 (simple_overlay_update_1): Update.
6015 * stap-probe.c (handle_stap_probe): Update.
6016 * stabsread.c (dbx_init_float_type, define_symbol)
6017 (read_one_struct_field, read_enum_type, read_range_type): Update.
6018 * source.c (info_line_command): Update.
6019 * python/python.c (gdbpy_source_objfile_script)
6020 (gdbpy_execute_objfile_script): Update.
6021 * python/py-type.c (save_objfile_types): Update.
6022 * python/py-objfile.c (py_free_objfile): Update.
6023 * python/py-inferior.c (python_new_objfile): Update.
6024 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6025 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6026 (maintenance_check_psymtabs): Update.
6027 * printcmd.c (info_address_command): Update.
6028 * objfiles.h (struct objfile) <arch>: New method, from
6029 get_objfile_arch.
6030 (get_objfile_arch): Don't declare.
6031 * objfiles.c (get_objfile_arch): Remove.
6032 (filter_overlapping_sections): Update.
6033 * minsyms.c (msymbol_is_function): Update.
6034 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6035 (output_nondebug_symbol): Update.
6036 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6037 (mdebug_expand_psymtab): Update.
6038 * machoread.c (macho_add_oso_symfile): Update.
6039 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6040 Update.
6041 * linux-fork.c (checkpoint_command): Update.
6042 * linespec.c (convert_linespec_to_sals): Update.
6043 * jit.c (finalize_symtab): Update.
6044 * infrun.c (insert_exception_resume_from_probe): Update.
6045 * ia64-tdep.c (ia64_find_unwind_table): Update.
6046 * hppa-tdep.c (internalize_unwinds): Update.
6047 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6048 Update.
6049 * gcore.c (call_target_sbrk): Update.
6050 * elfread.c (record_minimal_symbol, elf_symtab_read)
6051 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6052 (elf_gnu_ifunc_resolve_by_got): Update.
6053 * dwarf2/read.c (create_addrmap_from_index)
6054 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6055 (read_debug_names_from_section)
6056 (process_psymtab_comp_unit_reader, add_partial_symbol)
6057 (add_partial_subprogram, process_full_comp_unit)
6058 (read_file_scope, read_func_scope, read_lexical_block_scope)
6059 (read_call_site_scope, dwarf2_ranges_read)
6060 (dwarf2_record_block_ranges, dwarf2_add_field)
6061 (mark_common_block_symbol_computed, read_tag_pointer_type)
6062 (read_tag_string_type, dwarf2_init_float_type)
6063 (dwarf2_init_complex_target_type, read_base_type)
6064 (partial_die_info::read, partial_die_info::read)
6065 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6066 (dwarf2_fetch_die_loc_sect_off): Update.
6067 * dwarf2/loc.c (dwarf2_find_location_expression)
6068 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6069 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6070 (dwarf2_loc_desc_get_symbol_read_needs)
6071 (locexpr_describe_location_piece, locexpr_describe_location_1)
6072 (loclist_describe_location): Update.
6073 * dwarf2/index-write.c (write_debug_names): Update.
6074 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6075 * dtrace-probe.c (dtrace_process_dof): Update.
6076 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6077 (process_one_symbol): Update.
6078 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6079 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6080 (coff_read_enum_type): Update.
6081 * cli/cli-cmds.c (edit_command, list_command): Update.
6082 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6083 * breakpoint.c (create_overlay_event_breakpoint)
6084 (create_longjmp_master_breakpoint)
6085 (create_std_terminate_master_breakpoint)
6086 (create_exception_master_breakpoint, get_sal_arch): Update.
6087 * block.c (block_gdbarch): Update.
6088 * annotate.c (annotate_source_line): Update.
6089
6090 2020-04-17 Tom Tromey <tromey@adacore.com>
6091
6092 * auto-load.c (show_auto_load_cmd): Remove.
6093 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6094 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6095 (maintenance_print_arc_command): Remove.
6096 * tui/tui-win.c (tui_command): Remove.
6097 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6098 * tui/tui-layout.c (tui_layout_command): Remove.
6099 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6100 * python/python.c (user_set_python, user_show_python): Remove.
6101 (_initialize_python): Use add_basic_prefix_cmd,
6102 add_show_prefix_cmd.
6103 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6104 (install_gdb_commands): Use add_basic_prefix_cmd,
6105 add_show_prefix_cmd.
6106 (info_guile_command): Remove.
6107 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6108 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6109 add_show_prefix_cmd.
6110 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6111 Remove do_set and do_show parameters.
6112 * cli/cli-style.c (set_style, show_style): Remove.
6113 (_initialize_cli_style): Use add_basic_prefix_cmd,
6114 add_show_prefix_cmd.
6115 (cli_style_option::add_setshow_commands): Remove do_set and
6116 do_show parameters.
6117 (cli_style_option::add_setshow_commands): Use
6118 add_basic_prefix_cmd, add_show_prefix_cmd.
6119 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6120 (set_style_name): Remove.
6121 * cli/cli-dump.c (dump_command, append_command): Remove.
6122 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6123 (tekhex_dump_command, binary_dump_command)
6124 (binary_append_command): Remove.
6125 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6126 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6127 (init_w32_command_list): Remove; move into ...
6128 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6129 * valprint.c (set_print, show_print, set_print_raw)
6130 (show_print_raw): Remove.
6131 (_initialize_valprint): Use add_basic_prefix_cmd,
6132 add_show_prefix_cmd.
6133 * typeprint.c (set_print_type, show_print_type): Remove.
6134 (_initialize_typeprint): Use add_basic_prefix_cmd,
6135 add_show_prefix_cmd.
6136 * record.c (set_record_command, show_record_command): Remove.
6137 (_initialize_record): Use add_basic_prefix_cmd,
6138 add_show_prefix_cmd.
6139 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6140 add_show_prefix_cmd.
6141 (info_command, show_command, set_debug, show_debug): Remove.
6142 * top.h (set_history, show_history): Don't declare.
6143 * top.c (set_history, show_history): Remove.
6144 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6145 (unset_tdesc_cmd): Remove.
6146 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6147 add_show_prefix_cmd.
6148 * symtab.c (info_module_command): Remove.
6149 (_initialize_symtab): Use add_basic_prefix_cmd.
6150 * symfile.c (overlay_command): Remove.
6151 (_initialize_symfile): Use add_basic_prefix_cmd.
6152 * sparc64-tdep.c (info_adi_command): Remove.
6153 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6154 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6155 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6156 add_show_prefix_cmd.
6157 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6158 (_initialize_serial): Use add_basic_prefix_cmd,
6159 add_show_prefix_cmd.
6160 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6161 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6162 add_show_prefix_cmd.
6163 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6164 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6165 add_show_prefix_cmd.
6166 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6167 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6168 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6169 add_show_prefix_cmd.
6170 * remote.c (remote_command, set_remote_cmd): Remove.
6171 (_initialize_remote): Use add_basic_prefix_cmd.
6172 * record-full.c (set_record_full_command)
6173 (show_record_full_command): Remove.
6174 (_initialize_record_full): Use add_basic_prefix_cmd,
6175 add_show_prefix_cmd.
6176 * record-btrace.c (cmd_set_record_btrace)
6177 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6178 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6179 (cmd_show_record_btrace_pt): Remove.
6180 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6181 add_show_prefix_cmd.
6182 * ravenscar-thread.c (set_ravenscar_command)
6183 (show_ravenscar_command): Remove.
6184 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6185 add_show_prefix_cmd.
6186 * mips-tdep.c (show_mips_command, set_mips_command)
6187 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6188 add_show_prefix_cmd.
6189 * maint.c (maintenance_command, maintenance_info_command)
6190 (maintenance_check_command, maintenance_print_command)
6191 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6192 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6193 add_show_prefix_cmd.
6194 (show_per_command_cmd): Remove.
6195 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6196 Remove.
6197 (maintenance_show_test_settings_cmd): Remove.
6198 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6199 add_show_prefix_cmd.
6200 * maint-test-options.c (maintenance_test_options_command):
6201 Remove.
6202 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6203 * macrocmd.c (macro_command): Remove
6204 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6205 * language.c (set_check, show_check): Remove.
6206 (_initialize_language): Use add_basic_prefix_cmd,
6207 add_show_prefix_cmd.
6208 * infcmd.c (unset_command): Remove.
6209 (_initialize_infcmd): Use add_basic_prefix_cmd.
6210 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6211 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6212 add_show_prefix_cmd.
6213 * go32-nat.c (go32_info_dos_command): Remove.
6214 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6215 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6216 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6217 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6218 (_initialize_frame): Use add_basic_prefix_cmd,
6219 add_show_prefix_cmd.
6220 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6221 (_initialize_dcache): Use add_basic_prefix_cmd,
6222 add_show_prefix_cmd.
6223 * cp-support.c (maint_cplus_command): Remove.
6224 (_initialize_cp_support): Use add_basic_prefix_cmd.
6225 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6226 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6227 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6228 add_basic_prefix_cmd, add_show_prefix_cmd.
6229 * breakpoint.c (save_command): Remove.
6230 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6231 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6232 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6233 add_show_prefix_cmd.
6234 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6235 (set_ada_command, show_ada_command): Remove.
6236 (_initialize_ada_language): Use add_basic_prefix_cmd,
6237 add_show_prefix_cmd.
6238 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6239
6240 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6241
6242 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6243 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6244
6245 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6248 warning messages.
6249
6250 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6253 import table is not at beginning of .idata section.
6254
6255 2020-04-16 Pedro Alves <palves@redhat.com>
6256
6257 * inferior.c (delete_inferior): Use delete operator directly
6258 instead of delete_program_space.
6259 * progspace.c (add_program_space): New, factored out from
6260 program_space::program_space.
6261 (remove_program_space): New, factored out from
6262 delete_program_space.
6263 (program_space::program_space): Remove intro comment. Rewrite.
6264 (program_space::~program_space): Remove intro comment. Call
6265 remove_program_space.
6266 (delete_program_space): Delete.
6267 * progspace.h (program_space::program_space): Make explicit. Move
6268 intro comment here, adjusted.
6269 (program_space::~program_space): Move intro comment here,
6270 adjusted.
6271 (delete_program_space): Remove.
6272
6273 2020-04-16 Tom Tromey <tromey@adacore.com>
6274
6275 * windows-nat.c (windows_nat::handle_access_violation): New
6276 function.
6277 * nat/windows-nat.h (handle_access_violation): Declare.
6278 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6279 windows-nat.c. Call handle_access_violation.
6280
6281 2020-04-16 Tom de Vries <tdevries@suse.de>
6282
6283 PR symtab/25791
6284 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6285 CUs without psymtab.
6286
6287 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6288
6289 * python/python.c (do_start_initialization): Don't call
6290 PyEval_InitThreads for Python 3.9 and beyond.
6291
6292 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6293
6294 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6295 thread functions.
6296 (obsd_nat_target::wait): Likewise.
6297
6298 2020-04-15 Tom Tromey <tromey@adacore.com>
6299
6300 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6301 (DEBUG_EXCEPT): Use debug_printf.
6302
6303 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * completer.c (class completion_tracker::completion_hash_entry)
6306 <hash_name>: New member function.
6307 (completion_tracker::discard_completions): New callback to hash a
6308 completion_hash_entry, pass this to htab_create_alloc.
6309
6310 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6311
6312 * windows-nat.c (windows_make_so): Warn rather than stopping with
6313 an error if realpath() fails.
6314
6315 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6316
6317 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6318 (nbsd_nat_target::info_proc): Add do_status.
6319
6320 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6321 Tom de Vries <tdevries@suse.de>
6322
6323 PR symtab/25718
6324 * psympriv.h (struct partial_symtab::read_symtab)
6325 (struct partial_symtab::expand_psymtab)
6326 (struct partial_symtab::read_dependencies): Update comments.
6327 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6328 read_symtab for includer.
6329 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6330 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6331 (struct dwarf2_include_psymtab::m_readin): Remove.
6332 (struct dwarf2_include_psymtab::includer): New member function.
6333 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6334
6335 2020-04-14 Tom de Vries <tdevries@suse.de>
6336
6337 PR symtab/25720
6338 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6339 with NULL symbol_matcher and lookup_name.
6340 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6341 and lookup_name.
6342 * dwarf2/read.c (dw2_expand_symtabs_matching)
6343 (dw2_debug_names_expand_symtabs_matching): Same.
6344 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6345 Make lookup_name a pointer. Update comment.
6346 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6347 lookup_name being a pointer.
6348 * symfile.c (expand_symtabs_matching): Same.
6349 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6350 * linespec.c (iterate_over_all_matching_symtabs): Same.
6351
6352 2020-04-13 Tom Tromey <tom@tromey.com>
6353
6354 * run-on-main-thread.c: Update include.
6355 * unittests/main-thread-selftests.c: Update include.
6356 * tui/tui-win.c: Update include.
6357 * tui/tui-io.c: Update include.
6358 * tui/tui-interp.c: Update include.
6359 * tui/tui-hooks.c: Update include.
6360 * top.h: Update include.
6361 * top.c: Update include.
6362 * ser-base.c: Update include.
6363 * remote.c: Update include.
6364 * remote-notif.c: Update include.
6365 * remote-fileio.c: Update include.
6366 * record-full.c: Update include.
6367 * record-btrace.c: Update include.
6368 * python/python.c: Update include.
6369 * posix-hdep.c: Update include.
6370 * mingw-hdep.c: Update include.
6371 * mi/mi-main.c: Update include.
6372 * mi/mi-interp.c: Update include.
6373 * main.c: Update include.
6374 * linux-nat.c: Update include.
6375 * interps.c: Update include.
6376 * infrun.c: Update include.
6377 * inf-loop.c: Update include.
6378 * event-top.c: Update include.
6379 * event-loop.c: Move to ../gdbsupport/.
6380 * event-loop.h: Move to ../gdbsupport/.
6381 * async-event.h: Update include.
6382 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6383
6384 2020-04-13 Tom Tromey <tom@tromey.com>
6385
6386 * tui/tui-win.c: Include async-event.h.
6387 * remote.c: Include async-event.h.
6388 * remote-notif.c: Include async-event.h.
6389 * record-full.c: Include async-event.h.
6390 * record-btrace.c: Include async-event.h.
6391 * infrun.c: Include async-event.h.
6392 * event-top.c: Include async-event.h.
6393 * event-loop.h: Move some declarations to async-event.h.
6394 * event-loop.c: Don't include ser-event.h or top.h. Move some
6395 code to async-event.c.
6396 * async-event.h: New file.
6397 * async-event.c: New file.
6398 * Makefile.in (COMMON_SFILES): Add async-event.c.
6399 (HFILES_NO_SRCDIR): Add async-event.h.
6400
6401 2020-04-13 Tom Tromey <tom@tromey.com>
6402
6403 * utils.c (flush_streams): New function.
6404 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6405
6406 2020-04-13 Tom Tromey <tom@tromey.com>
6407
6408 * event-loop.c (handle_file_event): Use warning, not
6409 printf_unfiltered.
6410
6411 2020-04-13 Tom Tromey <tom@tromey.com>
6412
6413 * event-loop.c: Include <chrono>.
6414
6415 2020-04-13 Tom Tromey <tom@tromey.com>
6416
6417 * gdb_select.h: Move to ../gdbsupport/.
6418 * event-loop.c: Update include path.
6419 * top.c: Update include path.
6420 * ser-base.c: Update include path.
6421 * ui-file.c: Update include path.
6422 * ser-tcp.c: Update include path.
6423 * guile/scm-ports.c: Update include path.
6424 * posix-hdep.c: Update include path.
6425 * ser-unix.c: Update include path.
6426 * gdb_usleep.c: Update include path.
6427 * mingw-hdep.c: Update include path.
6428 * inflow.c: Update include path.
6429 * infrun.c: Update include path.
6430 * event-top.c: Update include path.
6431
6432 2020-04-13 Tom Tromey <tom@tromey.com>
6433
6434 * configure: Rebuild.
6435 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6436
6437 2020-04-13 Tom Tromey <tom@tromey.com>
6438
6439 * event-loop.h (start_event_loop): Don't declare.
6440 * event-loop.c (start_event_loop): Move...
6441 * main.c (start_event_loop): ...here. Now static.
6442
6443 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6444
6445 * MAINTAINERS: Update my email address.
6446
6447 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6448
6449 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6450 IP_ALL.
6451
6452 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6453
6454 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6455 (nbsd_nat_target::info_proc): Add do_cmdline.
6456
6457 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6458
6459 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6460 (nbsd_nat_target::info_proc): Add do_cwd.
6461
6462 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6463
6464 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6465
6466 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6467
6468 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6469 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6470 (nbsd_nat_target::info_proc): New functions.
6471 * nbsd-nat.c (kinfo_get_vmmap): New function.
6472 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6473 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6474 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6475 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6476 functions.
6477 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6478 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6479 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6480 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6481 (KINFO_VME_FLAG_GROWS_DOWN): New.
6482
6483 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6484
6485 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6486 bit shift.
6487
6488 2020-04-10 Tom Tromey <tromey@adacore.com>
6489
6490 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6491
6492 2020-04-10 Tom Tromey <tromey@adacore.com>
6493
6494 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6495 separate debug files.
6496
6497 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6498
6499 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6500 Move to...
6501 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6502 ... here.
6503 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6504 Check for STATUS_WX86_BREAKPOINT.
6505 (windows_nat_target::wait): Same.
6506
6507 2020-04-10 Tom de Vries <tdevries@suse.de>
6508
6509 PR cli/25808
6510 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6511
6512 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6515 (Write After Approval): Remove Tom de Vries.
6516
6517 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6518
6519 revert partially:
6520 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6521
6522 * buildsym.c (record_line): Fix undefined behavior and preserve
6523 lines at eof.
6524
6525 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6526
6527 * auxv.h (svr4_auxv_parse): New.
6528 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6529 and generic_auxv_parse.
6530 (svr4_auxv_parse): Add.
6531 * obsd-tdep.c: Include "auxv.h".
6532 (obsd_auxv_parse): Remove.
6533 (obsd_init_abi): Remove comment.
6534 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6535 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6536 * nbsd-tdep.c: Include "auxv.h".
6537 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6538
6539 2020-04-08 Tom Tromey <tromey@adacore.com>
6540
6541 * nat/windows-nat.h (last_wait_event): Don't declare.
6542 (wait_for_debug_event): Update comment.
6543 * nat/windows-nat.c (last_wait_event): Now static.
6544
6545 2020-04-08 Tom Tromey <tromey@adacore.com>
6546
6547 * windows-nat.c (wait_for_debug_event): Move to
6548 nat/windows-nat.c.
6549 * nat/windows-nat.h (wait_for_debug_event): Declare.
6550 * nat/windows-nat.c (wait_for_debug_event): Move from
6551 windows-nat.c. No longer static.
6552
6553 2020-04-08 Tom Tromey <tromey@adacore.com>
6554
6555 * windows-nat.c (get_windows_debug_event): Use
6556 fetch_pending_stop.
6557 * nat/windows-nat.h (fetch_pending_stop): Declare.
6558 * nat/windows-nat.c (fetch_pending_stop): New function.
6559
6560 2020-04-08 Tom Tromey <tromey@adacore.com>
6561
6562 * windows-nat.c (windows_continue): Use matching_pending_stop and
6563 continue_last_debug_event.
6564 * nat/windows-nat.h (matching_pending_stop)
6565 (continue_last_debug_event): Declare.
6566 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6567 (matching_pending_stop, continue_last_debug_event): New
6568 functions.
6569
6570 2020-04-08 Tom Tromey <tromey@adacore.com>
6571
6572 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6573 (handle_exception_result): Move to nat/windows-nat.h.
6574 (DEBUG_EXCEPTION_SIMPLE): Remove.
6575 (windows_nat::handle_ms_vc_exception): New function.
6576 (handle_exception): Move to nat/windows-nat.c.
6577 (get_windows_debug_event): Update.
6578 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6579 nat/windows-nat.c.
6580 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6581 (handle_exception_result): Move from windows-nat.c.
6582 (handle_exception): Declare.
6583 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6584 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6585 windows-nat.c.
6586
6587 2020-04-08 Tom Tromey <tromey@adacore.com>
6588
6589 * windows-nat.c (exception_count, event_count): Remove.
6590 (handle_exception, get_windows_debug_event)
6591 (do_initial_windows_stuff): Update.
6592
6593 2020-04-08 Tom Tromey <tromey@adacore.com>
6594
6595 * windows-nat.c (windows_nat::handle_load_dll)
6596 (windows_nat::handle_unload_dll): Rename. No longer static.
6597 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6598 Declare.
6599
6600 2020-04-08 Tom Tromey <tromey@adacore.com>
6601
6602 * complaints.h (stop_whining): Declare at top-level.
6603 (complaint): Don't declare stop_whining.
6604
6605 2020-04-08 Tom Tromey <tromey@adacore.com>
6606
6607 * windows-nat.c (windows_nat::handle_output_debug_string):
6608 Rename. No longer static.
6609 * nat/windows-nat.h (handle_output_debug_string): Declare.
6610
6611 2020-04-08 Tom Tromey <tromey@adacore.com>
6612
6613 * windows-nat.c (current_process_handle, current_process_id)
6614 (main_thread_id, last_sig, current_event, last_wait_event)
6615 (current_windows_thread, desired_stop_thread_id, pending_stops)
6616 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6617 (display_selectors, fake_create_process)
6618 (get_windows_debug_event): Update.
6619 * nat/windows-nat.h (current_process_handle, current_process_id)
6620 (main_thread_id, last_sig, current_event, last_wait_event)
6621 (current_windows_thread, desired_stop_thread_id, pending_stops)
6622 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6623 * nat/windows-nat.c (current_process_handle, current_process_id)
6624 (main_thread_id, last_sig, current_event, last_wait_event)
6625 (current_windows_thread, desired_stop_thread_id, pending_stops)
6626 (siginfo_er): New globals. Move from windows-nat.c.
6627
6628 2020-04-08 Tom Tromey <tromey@adacore.com>
6629
6630 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6631 (handle_load_dll): Update.
6632 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6633
6634 2020-04-08 Tom Tromey <tromey@adacore.com>
6635
6636 * windows-nat.c (enum thread_disposition_type): Move to
6637 nat/windows-nat.h.
6638 (windows_nat::thread_rec): Rename from thread_rec. No longer
6639 static.
6640 (windows_add_thread, windows_nat_target::fetch_registers)
6641 (windows_nat_target::store_registers, handle_exception)
6642 (windows_nat_target::resume, get_windows_debug_event)
6643 (windows_nat_target::get_tib_address)
6644 (windows_nat_target::thread_name)
6645 (windows_nat_target::thread_alive): Update.
6646 * nat/windows-nat.h (enum thread_disposition_type): Move from
6647 windows-nat.c.
6648 (thread_rec): Declare.
6649
6650 2020-04-08 Tom Tromey <tromey@adacore.com>
6651
6652 * windows-nat.c: Add "using namespace".
6653 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6654 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6655
6656 2020-04-08 Tom Tromey <tromey@adacore.com>
6657
6658 * nat/windows-nat.h (struct windows_thread_info): Declare
6659 destructor.
6660 * nat/windows-nat.c (~windows_thread_info): New.
6661
6662 2020-04-08 Tom Tromey <tromey@adacore.com>
6663
6664 PR gdb/22992
6665 * windows-nat.c (current_event): Update comment.
6666 (last_wait_event, desired_stop_thread_id): New globals.
6667 (struct pending_stop): New.
6668 (pending_stops): New global.
6669 (windows_nat_target) <stopped_by_sw_breakpoint>
6670 <supports_stopped_by_sw_breakpoint>: New methods.
6671 (windows_fetch_one_register): Add assertions. Adjust PC.
6672 (windows_continue): Handle pending stops. Suspend other threads
6673 when stepping. Use last_wait_event
6674 (wait_for_debug_event): New function.
6675 (get_windows_debug_event): Use wait_for_debug_event. Handle
6676 pending stops. Queue spurious stops.
6677 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6678 (windows_nat_target::kill): Use wait_for_debug_event.
6679 * nat/windows-nat.h (struct windows_thread_info)
6680 <stopped_at_software_breakpoint>: New field.
6681 * nat/windows-nat.c (windows_thread_info::resume): Clear
6682 stopped_at_software_breakpoint.
6683
6684 2020-04-08 Tom Tromey <tromey@adacore.com>
6685
6686 * windows-nat.c (enum thread_disposition_type): New.
6687 (thread_rec): Replace "get_context" parameter with "disposition";
6688 change type.
6689 (windows_add_thread, windows_nat_target::fetch_registers)
6690 (windows_nat_target::store_registers, handle_exception)
6691 (windows_nat_target::resume, get_windows_debug_event)
6692 (windows_nat_target::get_tib_address)
6693 (windows_nat_target::thread_name)
6694 (windows_nat_target::thread_alive): Update.
6695
6696 2020-04-08 Tom Tromey <tromey@adacore.com>
6697
6698 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6699 (windows_continue): Use windows_continue::resume.
6700 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6701 resume>: Declare new methods.
6702 * nat/windows-nat.c: New file.
6703 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6704
6705 2020-04-08 Tom Tromey <tromey@adacore.com>
6706
6707 * windows-nat.c (windows_add_thread, windows_delete_thread)
6708 (windows_nat_target::fetch_registers)
6709 (windows_nat_target::store_registers, fake_create_process)
6710 (windows_nat_target::resume, windows_nat_target::resume)
6711 (get_windows_debug_event, windows_nat_target::wait)
6712 (windows_nat_target::pid_to_str)
6713 (windows_nat_target::get_tib_address)
6714 (windows_nat_target::get_ada_task_ptid)
6715 (windows_nat_target::thread_name)
6716 (windows_nat_target::thread_alive): Use lwp, not tid.
6717
6718 2020-04-08 Tom Tromey <tromey@adacore.com>
6719
6720 * windows-nat.c (handle_exception)
6721 (windows_nat_target::thread_name): Update.
6722 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6723 <name>: Now unique_xmalloc_ptr.
6724
6725 2020-04-08 Tom Tromey <tromey@adacore.com>
6726
6727 * windows-nat.c (thread_rec)
6728 (windows_nat_target::fetch_registers): Update.
6729 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6730 Update comment.
6731 <debug_registers_changed, reload_context>: Now bool.
6732
6733 2020-04-08 Tom Tromey <tromey@adacore.com>
6734
6735 * windows-nat.c (windows_add_thread): Use new.
6736 (windows_init_thread_list, windows_delete_thread): Use delete.
6737 (get_windows_debug_event): Update.
6738 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6739 destructor, and initializers.
6740
6741 2020-04-08 Tom Tromey <tromey@adacore.com>
6742
6743 * windows-nat.c (struct windows_thread_info): Remove.
6744 * nat/windows-nat.h: New file.
6745
6746 2020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6749 (thread_rec, windows_add_thread, windows_delete_thread)
6750 (windows_continue): Update.
6751
6752 2020-04-08 Tom Tromey <tromey@adacore.com>
6753
6754 * windows-nat.c (struct windows_thread_info): Remove typedef.
6755 (thread_head): Remove.
6756 (thread_list): New global.
6757 (thread_rec, windows_add_thread, windows_init_thread_list)
6758 (windows_delete_thread, windows_continue): Update.
6759
6760 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6761
6762 * windows-tdep.h (windows_init_abi): Add comment.
6763 (cygwin_init_abi): New declaration.
6764 * windows-tdep.c: Split signal enumeration in two, one for
6765 Windows and one for Cygwin.
6766 (windows_gdb_signal_to_target): Only deal with signal of the
6767 Windows OS ABI.
6768 (cygwin_gdb_signal_to_target): New function.
6769 (windows_init_abi): Rename to windows_init_abi_common, don't set
6770 gdb_signal_to_target gdbarch method. Add new new function with
6771 this name.
6772 (cygwin_init_abi): New function.
6773 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6774 comment. Don't call windows_init_abi.
6775 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6776 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6777 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6778 i386_windows_init_abi_common, don't call windows_init_abi. Add
6779 a new function of this name.
6780 (i386_cygwin_init_abi): New function.
6781 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6782 OS ABI Cygwin.
6783
6784 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6787 parameter.c.
6788 (dwarf2_read_gdb_index): Update.
6789
6790 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6791
6792 * nbsd-tdep.c: Include "objfiles.h".
6793 (nbsd_skip_solib_resolver): New.
6794 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6795
6796 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6797
6798 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6799 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6800 with DW_LLE_base_addressx are being emitted in DWARFv5.
6801 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6802 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6803 unsigned integer.
6804
6805 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6806
6807 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6808 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6809 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6810 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6811 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6812 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6813 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6814
6815
6816 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6817
6818 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6819 (read_loclist_index): New function definition.
6820 (lookup_loclist_base): New function definition.
6821 (read_loclist_header): New function definition.
6822 (dwarf2_cu): Add loclist_base and loclist_header field.
6823 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6824 (read_full_die_1): Read the value of DW_AT_loclists_base.
6825 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6826 (read_attribute_value): Handle DW_FORM_loclistx.
6827 (skip_one_die): Handle DW_FORM_loclistx.
6828 (loclist_header): New structure declaration.
6829 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6830
6831 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6834 constructor. Remove `addr` parameter from other constructor and
6835 add `per_cu` parameter.
6836 * dwarf2/read.c (create_partial_symtab): Update.
6837
6838 2020-04-07 Tom de Vries <tdevries@suse.de>
6839
6840 PR symtab/25796
6841 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6842 (partial_die_info::fixup): Inherit has_const_value.
6843
6844 2020-04-07 Tom de Vries <tdevries@suse.de>
6845
6846 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6847 symbols without address.
6848
6849 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6850
6851 * nbsd-nat.h (struct thread_info): Add forward declaration.
6852 (nbsd_nat_target::thread_alive): Add.
6853 (nbsd_nat_target::thread_name): Likewise.
6854 (nbsd_nat_target::update_thread_list): Likewise.
6855 (update_thread_list::post_attach): Likewise.
6856 (post_attach::pid_to_str): Likewise.
6857 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6858 (nbsd_thread_lister): Add.
6859 (nbsd_nat_target::thread_alive): Likewise.
6860 (nbsd_nat_target::thread_name): Likewise.
6861 (nbsd_add_threads): Likewise.
6862 (update_thread_list::post_attach): Likewise.
6863 (nbsd_nat_target::update_thread_list): Likewise.
6864 (post_attach::pid_to_str): Likewise.
6865
6866 2020-04-06 Tom Tromey <tromey@adacore.com>
6867
6868 * ada-valprint.c (print_variant_part): Extract the variant field.
6869 (print_field_values): Use the field as the outer value when
6870 recursing.
6871
6872 2020-04-06 Tom Tromey <tromey@adacore.com>
6873
6874 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6875 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6876 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6877 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6878 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6879
6880 2020-04-06 Tom Tromey <tromey@adacore.com>
6881
6882 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6883 TYPE_CODE_ERROR.
6884
6885 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6886
6887 * nbsd-tdep.c: Include "gdbarch.h".
6888 Define enum with NetBSD signal numbers.
6889 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6890 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6891 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6892 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6893 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6894 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6895 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6896 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6897 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6898 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6899 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6900 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6901
6902 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6903
6904 PR gdb/25325
6905 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6906
6907 2020-04-03 Tom Tromey <tromey@adacore.com>
6908
6909 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6910 Read constant block.
6911
6912 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6913
6914 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6915 (gdb_bfd_get_full_section_contents): New declaration.
6916 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6917 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6918 gdb_bfd_get_full_section_contents.
6919
6920 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6921
6922 * exec.c (build_section_table): Replace internal_error with
6923 gdb_assert.
6924 (section_table_xfer_memory_partial): Likewise.
6925 * mdebugread.c (parse_partial_symbols): Likewise.
6926 * psymtab.c (lookup_partial_symbol): Likewise.
6927 * utils.c (wrap_here): Likewise.
6928
6929 2020-04-02 Tom Tromey <tromey@adacore.com>
6930
6931 * f-lang.c (build_fortran_types): Use arch_type to initialize
6932 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6933
6934 2020-04-02 Tom Tromey <tromey@adacore.com>
6935
6936 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6937 of attributes.
6938
6939 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6940 Bernd Edlinger <bernd.edlinger@hotmail.de>
6941 Tom Tromey <tromey@adacore.com>
6942
6943 * buildsym.c (buildsym_compunit::record_line): Remove
6944 deduplication code.
6945
6946 2020-04-02 Tom de Vries <tdevries@suse.de>
6947
6948 PR ada/24671
6949 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6950
6951 2020-04-02 Tom de Vries <tdevries@suse.de>
6952
6953 * dwarf2/read.c (dwarf2_gdb_index_functions,
6954 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6955 NULL.
6956 * psymtab.c (psym_lookup_global_symbol_language): New function.
6957 (psym_functions): Init psym_lookup_global_symbol_language with
6958 psym_lookup_global_symbol_language.
6959 * symfile-debug.c (debug_sym_quick_functions): Init
6960 lookup_global_symbol_language with NULL.
6961 * symfile.c (set_initial_language): Remove fixme comment.
6962 * symfile.h (struct quick_symbol_functions): Add
6963 lookup_global_symbol_language.
6964 * symtab.c (find_quick_global_symbol_language): New function.
6965 (find_main_name): Use find_quick_global_symbol_language.
6966
6967 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6968
6969 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6970
6971 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6972
6973 * buildsym.c (record_line): Fix undefined behavior and preserve
6974 lines at eof.
6975
6976 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6977
6978 * buildsym.c (record_line): Fix the resizing condition.
6979
6980 2020-04-01 Tom Tromey <tom@tromey.com>
6981
6982 * value.h (value_literal_complex): Add comment.
6983 * valops.c (value_literal_complex): Refer to value.h.
6984
6985 2020-04-01 Tom Tromey <tom@tromey.com>
6986
6987 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6988 (scalar_type): New rule, from typebase.
6989 (typebase): Use scalar_type. Recognize complex types.
6990 (field_name): Handle FLOAT_KEYWORD.
6991 (ident_tokens): Add _Complex and __complex__.
6992
6993 2020-04-01 Tom Tromey <tom@tromey.com>
6994
6995 PR exp/25299:
6996 * valarith.c (promotion_type, complex_binop): New functions.
6997 (scalar_binop): Handle complex numbers. Use promotion_type.
6998 (value_pos, value_neg, value_complement): Handle complex numbers.
6999
7000 2020-04-01 Tom Tromey <tom@tromey.com>
7001
7002 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7003 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7004 (parse_number): Handle complex numbers.
7005
7006 2020-04-01 Tom Tromey <tom@tromey.com>
7007
7008 * c-valprint.c (c_decorations): Change complex suffix to "i".
7009
7010 2020-04-01 Tom Tromey <tom@tromey.com>
7011
7012 * valprint.c (generic_value_print_complex): Use accessors.
7013 * value.h (value_real_part, value_imaginary_part): Declare.
7014 * valops.c (value_real_part, value_imaginary_part): New
7015 functions.
7016 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7017
7018 2020-04-01 Tom Tromey <tom@tromey.com>
7019
7020 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7021 (read_range_type): Update.
7022 * mdebugread.c (basic_type): Update.
7023 * go-lang.c (build_go_types): Use init_complex_type.
7024 * gdbtypes.h (struct main_type) <complex_type>: New member.
7025 (init_complex_type): Update.
7026 (arch_complex_type): Don't declare.
7027 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7028 Make name if none given. Use alloc_type_copy. Look for cached
7029 complex type.
7030 (arch_complex_type): Remove.
7031 (gdbtypes_post_init): Use init_complex_type.
7032 * f-lang.c (build_fortran_types): Use init_complex_type.
7033 * dwarf2/read.c (read_base_type): Update.
7034 * d-lang.c (build_d_types): Use init_complex_type.
7035 * ctfread.c (read_base_type): Update.
7036
7037 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7038
7039 * infrun.c (stop_all_threads): Update assertion, plus when
7040 stopping threads, take into account that we might be trying
7041 to stop an all-stop target.
7042 (stop_waiting): Call 'stop_all_threads' if there exists a
7043 non-stop target.
7044
7045 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7046
7047 * target.h (exists_non_stop_target): New function declaration.
7048 * target.c (exists_non_stop_target): New function.
7049
7050 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7051
7052 PR gdb/24789
7053 * eval.c (is_integral_or_integral_reference): New function.
7054 (evaluate_subexp_standard): Allow integer references in
7055 pointer arithmetic.
7056
7057 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7058
7059 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7060 check for no ptid in the stop reply when the target is non-stop.
7061
7062 2020-04-01 Tom Tromey <tromey@adacore.com>
7063
7064 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7065 "name" parameter to rvalue reference. Initialize m_name_holder.
7066 <lookup_name_info>: New overloads.
7067 <name>: Return gdb::string_view.
7068 <c_str>: New method.
7069 <make_ignore_params>: Update.
7070 <search_name_hash>: Update.
7071 <language_lookup_name>: Return const char *.
7072 <m_name>: Change type.
7073 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7074 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7075 (lookup_name_info::match_any): Update.
7076 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7077 Update.
7078 * minsyms.c (linkage_name_str): Update.
7079 * language.c (default_symbol_name_matcher): Update.
7080 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7081 Update.
7082 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7083 (ada_lookup_name_info::ada_lookup_name_info): Update.
7084 (literal_symbol_name_matcher): Update.
7085
7086 2020-04-01 Tom Tromey <tromey@adacore.com>
7087
7088 * psymtab.c (psymtab_search_name): Remove function.
7089 (psym_lookup_symbol): Create search name and lookup name here.
7090 (lookup_partial_symbol): Remove "name" parameter; add
7091 lookup_name.
7092 (psym_expand_symtabs_for_function): Update.
7093
7094 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7095
7096 PR tui/25597:
7097 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7098
7099 2020-03-31 Tom Tromey <tromey@adacore.com>
7100
7101 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7102 memcpy.
7103
7104 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7105
7106 * features/riscv/32bit-csr.xml: Regenerated.
7107 * features/riscv/64bit-csr.xml: Regenerated.
7108
7109 2020-03-30 Tom Tromey <tromey@adacore.com>
7110
7111 * ada-valprint.c (print_variant_part): Update.
7112 * ada-lang.h (ada_which_variant_applies): Update.
7113 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7114 outer_valaddr parameters; replace with "outer" value parameter.
7115 (to_fixed_variant_branch_type): Update.
7116
7117 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7118
7119 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7120 <list>. Remove inclusion of observable.h.
7121 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7122 (struct arch_lwp_info): New struct.
7123 (class ppc_linux_dreg_interface): New class.
7124 (struct ppc_linux_process_info): New struct.
7125 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7126 <low_new_clone, low_forget_process, low_prepare_to_resume>
7127 <copy_thread_dreg_state, mark_thread_stale>
7128 <mark_debug_registers_changed, register_hw_breakpoint>
7129 <clear_hw_breakpoint, register_wp, clear_wp>
7130 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7131 <num_memory_accesses, get_trigger_type>
7132 <create_watchpoint_request, hwdebug_point_cmp>
7133 <init_arch_lwp_info, get_arch_lwp_info>
7134 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7135 methods.
7136 <struct ptid_hash>: New inner struct.
7137 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7138 members.
7139 (saved_dabr_value, hwdebug_info, max_slots_number)
7140 (struct hw_break_tuple, struct thread_points, ppc_threads)
7141 (have_ptrace_hwdebug_interface)
7142 (hwdebug_find_thread_points_by_tid)
7143 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7144 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7145 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7146 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7147 use m_dreg_interface.
7148 (hwdebug_point_cmp): Change to...
7149 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7150 reference arguments instead of pointers.
7151 (ppc_linux_nat_target::ranged_break_num_registers): Use
7152 m_dreg_interface.
7153 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7154 m_dreg_interface. Call register_hw_breakpoint.
7155 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7156 m_dreg_interface. Call clear_hw_breakpoint.
7157 (get_trigger_type): Change to...
7158 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7159 comment.
7160 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7161 use m_dreg_interface. Call register_hw_breakpoint.
7162 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7163 use m_dreg_interface. Call clear_hw_breakpoint.
7164 (can_use_watchpoint_cond_accel): Change to...
7165 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7166 method. Update comment, use m_dreg_interface and
7167 m_process_info.
7168 (calculate_dvc): Change to...
7169 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7170 m_dreg_interface.
7171 (num_memory_accesses): Change to...
7172 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7173 (check_condition): Change to...
7174 (ppc_linux_nat_target::check_condition): ...this method.
7175 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7176 comment, use m_dreg_interface.
7177 (create_watchpoint_request): Change to...
7178 (ppc_linux_nat_target::create_watchpoint_request): ...this
7179 method. Use m_dreg_interface.
7180 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7181 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7182 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7183 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7184 (ppc_linux_nat_target::low_forget_process)
7185 (ppc_linux_nat_target::low_new_fork)
7186 (ppc_linux_nat_target::low_new_clone)
7187 (ppc_linux_nat_target::low_delete_thread)
7188 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7189 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7190 only call mark_thread_stale.
7191 (ppc_linux_thread_exit): Remove.
7192 (ppc_linux_nat_target::stopped_data_address): Change to...
7193 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7194 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7195 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7196 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7197 comment. Call low_stopped_data_address.
7198 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7199 m_dreg_interface.
7200 (ppc_linux_nat_target::masked_watch_num_registers): Use
7201 m_dreg_interface.
7202 (ppc_linux_nat_target::copy_thread_dreg_state)
7203 (ppc_linux_nat_target::mark_thread_stale)
7204 (ppc_linux_nat_target::mark_debug_registers_changed)
7205 (ppc_linux_nat_target::register_hw_breakpoint)
7206 (ppc_linux_nat_target::clear_hw_breakpoint)
7207 (ppc_linux_nat_target::register_wp)
7208 (ppc_linux_nat_target::clear_wp)
7209 (ppc_linux_nat_target::init_arch_lwp_info)
7210 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7211 (_initialize_ppc_linux_nat): Remove observer callback.
7212
7213 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7214
7215 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7216 (ppc_linux_nat_target::auxv_parse)
7217 (ppc_linux_nat_target::read_description)
7218 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7219 Move up.
7220
7221 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7222
7223 * linux-nat.h (low_new_clone): New method.
7224 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7225
7226 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7227
7228 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7229 (dbx_expand_psymtab): ... this.
7230 (start_psymtab): Update.
7231 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7232 (mdebug_expand_psymtab): ... this.
7233 (parse_partial_symbols): Update.
7234 (new_psymtab): Update.
7235 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7236 (xcoff_expand_psymtab): ... this.
7237 (xcoff_start_psymtab): Update.
7238
7239 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7240
7241 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7242 <expand_dependencies>: ... this.
7243 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7244 (partial_symtab::expand_dependencies): ... this.
7245 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7246 Update.
7247 (dwarf2_psymtab::expand_psymtab): Update.
7248 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7249 * mdebugread.c (psymtab_to_symtab_1): Update.
7250 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7251
7252 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7253
7254 * psympriv.h (discard_psymtab): Remove.
7255 * dbxread.c (dbx_end_psymtab): Update.
7256 * xcoffread.c (xcoff_end_psymtab): Update.
7257
7258 2020-03-28 Tom Tromey <tom@tromey.com>
7259
7260 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7261 comment.
7262
7263 2020-03-28 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7266
7267 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7268
7269 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7270
7271 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7272
7273 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7274
7275 2020-03-26 Tom Tromey <tom@tromey.com>
7276
7277 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7278 (mark_common_block_symbol_computed, read_tag_string_type)
7279 (attr_to_dynamic_prop, read_subrange_type): Update.
7280 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7281 to be methods on struct attribute.
7282 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7283 (read_call_site_scope, partial_die_info::read)
7284 (partial_die_info::read, lookup_die_type, follow_die_ref):
7285 Update.
7286 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7287 from dwarf2_get_ref_die_offset.
7288 (attribute::constant_value): New method, from
7289 dwarf2_get_attr_constant_value.
7290 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7291 Declare method.
7292 <constant_value>: New method.
7293
7294 2020-03-26 Tom Tromey <tom@tromey.com>
7295
7296 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7297 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7298 (dwarf_type_encoding_name): Move to stringify.c.
7299 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7300 * dwarf2/stringify.c: New file.
7301 * dwarf2/stringify.h: New file.
7302
7303 2020-03-26 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7306 Rewrite.
7307
7308 2020-03-26 Tom Tromey <tom@tromey.com>
7309
7310 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7311 methods.
7312 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7313 (lookup_ranges_base): Likewise.
7314 (read_cutu_die_from_dwo, read_full_die_1): Update.
7315
7316 2020-03-26 Tom Tromey <tom@tromey.com>
7317
7318 * dwarf2/read.c (read_import_statement, read_file_scope)
7319 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7320 (read_lexical_block_scope, read_call_site_scope)
7321 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7322 (handle_struct_member_die, process_structure_scope)
7323 (update_enumeration_type_from_children)
7324 (process_enumeration_scope, read_array_type, read_common_block)
7325 (read_namespace, read_module, read_subroutine_type): Update.
7326 (sibling_die): Remove.
7327
7328 2020-03-26 Tom Tromey <tom@tromey.com>
7329
7330 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7331 (build_type_psymtabs_reader, read_structure_type)
7332 (read_enumeration_type, read_full_die_1): Update.
7333 (dwarf2_attr_no_follow): Move to die.h.
7334 * dwarf2/die.h (struct die_info) <attr>: New method.
7335
7336 2020-03-26 Tom Tromey <tom@tromey.com>
7337
7338 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7339 <base_address>: Now an optional.
7340 (dwarf2_find_base_address, dwarf2_rnglists_process)
7341 (dwarf2_ranges_process, fill_in_loclist_baton)
7342 (dwarf2_symbol_mark_computed): Update.
7343
7344 2020-03-26 Tom Tromey <tom@tromey.com>
7345
7346 * dwarf2/read.c (struct die_info): Move to die.h.
7347 * dwarf2/die.h: New file.
7348
7349 2020-03-26 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7352 * dwarf2/read.c
7353 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7354 Move to line-header.c.
7355 (read_checked_initial_length_and_offset, read_formatted_entries):
7356 Likewise.
7357 (dwarf_decode_line_header): Split into two.
7358 * dwarf2/line-header.c
7359 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7360 Move from read.c.
7361 (read_checked_initial_length_and_offset, read_formatted_entries):
7362 Likewise.
7363 (dwarf_decode_line_header): New function, split from read.c.
7364
7365 2020-03-26 Tom Tromey <tom@tromey.com>
7366
7367 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7368 Declare method.
7369 * dwarf2/read.c (read_attribute_value): Update.
7370 (dwarf2_per_objfile::read_line_string): Rename from
7371 read_indirect_line_string.
7372 (read_formatted_entries): Update.
7373
7374 2020-03-26 Tom Tromey <tom@tromey.com>
7375
7376 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7377 variable.
7378
7379 2020-03-26 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7382 const.
7383 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7384 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7385 parameter const.
7386
7387 2020-03-26 Tom Tromey <tom@tromey.com>
7388
7389 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7390 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7391 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7392 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7393
7394 2020-03-26 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7397 file_names_size, file_full_name, file_file_name>: Use const.
7398 <file_name_at, file_names>: Add const overload.
7399 * dwarf2/line-header.c (line_header::file_file_name)
7400 (line_header::file_full_name): Update.
7401
7402 2020-03-26 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7405 (macro_start_file, consume_improper_spaces)
7406 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7407 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7408 (dwarf_decode_macros): Move to macro.c.
7409 * dwarf2/macro.c: New file.
7410 * dwarf2/macro.h: New file.
7411 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7412
7413 2020-03-26 Tom Tromey <tom@tromey.com>
7414
7415 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7416 method.
7417 * dwarf2/section.c: New method. From
7418 read_indirect_string_at_offset_from.
7419 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7420 (read_indirect_string_at_offset_from): Move to section.c.
7421 (read_indirect_string_at_offset): Rewrite.
7422 (read_indirect_line_string_at_offset): Remove.
7423 (read_indirect_string, read_indirect_line_string)
7424 (dwarf_decode_macro_bytes): Update.
7425
7426 2020-03-26 Tom Tromey <tom@tromey.com>
7427
7428 * dwarf2/section.h (struct dwarf2_section_info)
7429 <overload_complaint>: Declare.
7430 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7431 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7432 Rename from dwarf2_section_buffer_overflow_complaint.
7433 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7434 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7435
7436 2020-03-26 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7439 Declare.
7440 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7441 Move from read.c.
7442 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7443 to section.c.
7444
7445 2020-03-26 Tom Tromey <tom@tromey.com>
7446
7447 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7448
7449 2020-03-26 Tom Tromey <tom@tromey.com>
7450
7451 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7452 "builder".
7453 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7454 parameter.
7455 (dwarf_decode_macros): Update.
7456
7457 2020-03-26 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2/read.c (read_attribute_value): Update.
7460 (read_indirect_string_from_dwz): Move to dwz.c; change into
7461 method.
7462 (dwarf_decode_macro_bytes): Update.
7463 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7464 * dwarf2/dwz.c: New file.
7465 * Makefile.in (COMMON_SFILES): Add dwz.c.
7466
7467 2020-03-26 Tom Tromey <tom@tromey.com>
7468
7469 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7470 * dwarf2/read.c: Add include.
7471 * dwarf2/index-write.c: Add include.
7472 * dwarf2/index-cache.c: Add include.
7473 * dwarf2/dwz.h: New file.
7474
7475 2020-03-25 Tom Tromey <tom@tromey.com>
7476
7477 * compile/compile-object-load.c (get_out_value_type): Mention
7478 correct symbol name in error message.
7479
7480 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7481
7482 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7483
7484 2020-03-25 Tom de Vries <tdevries@suse.de>
7485
7486 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7487 * symmisc.c (dump_symtab_1): Print user and includes fields.
7488 (maintenance_info_symtabs): Same.
7489
7490 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7491
7492 PR gdb/25534
7493 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7494 (riscv_regcache_cooked_write): New function.
7495 (riscv_push_dummy_call): Use new function.
7496 (riscv_return_value): Likewise.
7497
7498 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7499
7500 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7501 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7502 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7503 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7504 * infrun.c (follow_fork): Likewise.
7505 (follow_fork_inferior): Likewise.
7506 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7507 * linux-nat.h (class linux_nat_target): Likewise.
7508 * remote.c (class remote_target) <follow_fork>: Likewise.
7509 (remote_target::follow_fork): Likewise.
7510 * target-delegates.c: Re-generate.
7511 * target.c (default_follow_fork): Likewise.
7512 (target_follow_fork): Likewise.
7513 * target.h (struct target_ops) <follow_fork>: Likewise.
7514 (target_follow_fork): Likewise.
7515
7516 2020-03-24 Tom de Vries <tdevries@suse.de>
7517
7518 * psymtab.c (maintenance_info_psymtabs): Print user field.
7519
7520 2020-03-20 Tom Tromey <tromey@adacore.com>
7521
7522 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7523 const.
7524 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7525 const.
7526
7527 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * ptrace.m4: Don't check for ptrace declaration.
7530 * config.in: Re-generate.
7531 * configure: Re-generate.
7532 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7533 not defined.
7534
7535 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7536
7537 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7538 `PTRACE_TYPE_RET'.
7539 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7540 * sparc-nat.c (gdb_ptrace): Likewise.
7541 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7542
7543 2020-03-20 Tom Tromey <tromey@adacore.com>
7544
7545 * c-exp.y (lex_one_token): Fix assert.
7546
7547 2020-03-20 Tom Tromey <tromey@adacore.com>
7548
7549 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7550 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7551 strncpy call.
7552
7553 2020-03-20 Tom Tromey <tromey@adacore.com>
7554
7555 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7556
7557 2020-03-20 Tom Tromey <tromey@adacore.com>
7558
7559 * ada-valprint.c (print_variant_part): Remove parameters; switch
7560 to value-based API.
7561 (print_field_values): Likewise.
7562 (ada_val_print_struct_union): Likewise.
7563 (ada_value_print_1): Update.
7564
7565 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7566
7567 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7568 nbsd_nat_target instead of inf_ptrace_target.
7569 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7570 nbsd_nat_target.
7571
7572 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7573
7574 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7575 it to the ptrace call.
7576 * (store_registers): Likewise.
7577
7578 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7579
7580 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7581 it to the ptrace call.
7582 * (store_registers): Likewise.
7583
7584 2020-03-19 Luis Machado <luis.machado@linaro.org>
7585
7586 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7587 valid, fetch vg value from ptrace.
7588
7589 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7590 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7591 * inf-ptrace.c: Likewise.
7592 * (gdb_ptrace): Add.
7593 * (inf_ptrace_target::resume): Update.
7594 * (inf_ptrace_target::xfer_partial): Likewise.
7595 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7596 * (inf_ptrace_peek_poke): Update.
7597
7598 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7599
7600 * x86-bsd-nat.c (gdb_ptrace): New.
7601 * (x86bsd_dr_set): Add new argument `ptid'.
7602 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7603 x86bsd_dr_set_addr): Update.
7604
7605 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * remote.c (remote_target::process_stop_reply): Handle events for
7608 all threads differently.
7609
7610 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7611
7612 * completer.c (completion_tracker::remove_completion): Define new
7613 function.
7614 * completer.h (completion_tracker::remove_completion): Declare new
7615 function.
7616 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7617 when adding a C++ function symbol.
7618
7619 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * completer.c (completion_tracker::completion_hash_entry): Define
7622 new class.
7623 (advance_to_filename_complete_word_point): Call
7624 recompute_lowest_common_denominator.
7625 (completion_tracker::completion_tracker): Call discard_completions
7626 to setup the hash table.
7627 (completion_tracker::discard_completions): Allow for being called
7628 from the constructor, pass new equal function, and element deleter
7629 when constructing the hash table. Initialise new class member
7630 variables.
7631 (completion_tracker::maybe_add_completion): Remove use of
7632 m_entries_vec, and store more information into m_entries_hash.
7633 (completion_tracker::recompute_lcd_visitor): New function, most
7634 content taken from...
7635 (completion_tracker::recompute_lowest_common_denominator):
7636 ...here, this now just visits each item in the hash calling the
7637 above visitor.
7638 (completion_tracker::build_completion_result): Remove use of
7639 m_entries_vec, call recompute_lowest_common_denominator.
7640 * completer.h (completion_tracker::have_completions): Remove use
7641 of m_entries_vec.
7642 (completion_tracker::completion_hash_entry): Declare new class.
7643 (completion_tracker::recompute_lowest_common_denominator): Change
7644 function signature.
7645 (completion_tracker::recompute_lcd_visitor): Declare new function.
7646 (completion_tracker::m_entries_vec): Delete.
7647 (completion_tracker::m_entries_hash): Initialize to NULL.
7648 (completion_tracker::m_lowest_common_denominator_valid): New
7649 member variable.
7650 (completion_tracker::m_lowest_common_denominator_max_length): New
7651 member variable.
7652
7653 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7654
7655 * regformats/regdef.h: Put reg in gdb namespace.
7656
7657 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7658
7659 * i386-bsd-nat.c (gdb_ptrace): New.
7660 * (i386bsd_fetch_inferior_registers,
7661 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7662 * (i386bsd_fetch_inferior_registers,
7663 i386bsd_store_inferior_registers) Use gdb_ptrace.
7664
7665 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7666
7667 * amd64-bsd-nat.c (gdb_ptrace): New.
7668 * (amd64bsd_fetch_inferior_registers,
7669 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7670 * (amd64bsd_fetch_inferior_registers,
7671 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7672
7673 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7674
7675 * user-regs.c (user_reg::read): Rename to...
7676 (user_reg::xread): ...this.
7677 * (append_user_reg): Rename argument `read' to `xread'.
7678 * (user_reg_add_builtin): Likewise.
7679 * (user_reg_add): Likewise.
7680 * (value_of_user_reg): Likewise.
7681
7682 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7683
7684 * sparc-nat.c (gdb_ptrace): New.
7685 * sparc-nat.c (sparc_fetch_inferior_registers)
7686 (sparc_store_inferior_registers) Remove obsolete comment.
7687 * sparc-nat.c (sparc_fetch_inferior_registers)
7688 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7689 * sparc-nat.c (sparc_fetch_inferior_registers)
7690 (sparc_store_inferior_registers) Use gdb_ptrace.
7691
7692 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7693
7694 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7695 it to the ptrace call.
7696 * sh-nbsd-nat.c (store_registers): Likewise.
7697
7698 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7699
7700 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7701 nbsd_nat_target instead of inf_ptrace_target.
7702 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7703 nbsd_nat_target.
7704
7705 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7706
7707 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7708
7709 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7710
7711 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7712 <sys/sysctl.h>.
7713 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7714
7715 2020-03-17 Tom de Vries <tdevries@suse.de>
7716
7717 PR gdb/23710
7718 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7719 fields.
7720 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7721 fields.
7722 (process_imported_unit_die): Skip import of c++ CUs.
7723
7724 2020-03-16 Tom Tromey <tom@tromey.com>
7725
7726 * p-valprint.c (pascal_object_print_value): Initialize
7727 base_value.
7728
7729 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7730 Shahab Vahedi <shahab@synopsys.com>
7731
7732 * Makefile.in: Add arch/arc.o
7733 * configure.tgt: Likewise.
7734 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7735 (_initialize_arc_tdep): Don't initialize old target descriptions.
7736 (arc_read_description): New function to cache target descriptions.
7737 * arc-tdep.h (arc_read_description): Add proto type.
7738 * arch/arc.c: New file.
7739 * arch/arc.h: Likewise.
7740 * features/Makefile: Replace old target descriptions with new.
7741 * features/arc-arcompact.c: Remove.
7742 * features/arc-arcompact.xml: Likewise.
7743 * features/arc-v2.c: Likewise
7744 * features/arc-v2.xml: Likewise
7745 * features/arc/aux-arcompact.xml: New file.
7746 * features/arc/aux-v2.xml: Likewise.
7747 * features/arc/core-arcompact.xml: Likewise.
7748 * features/arc/core-v2.xml: Likewise.
7749 * features/arc/aux-arcompact.c: Generate.
7750 * features/arc/aux-v2.c: Likewise.
7751 * features/arc/core-arcompact.c: Likewise.
7752 * features/arc/core-v2.c: Likewise.
7753 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7754
7755 2020-03-16 Tom Tromey <tromey@adacore.com>
7756
7757 PR gdb/25663:
7758 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7759 putting value into bcache.
7760
7761 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7762
7763 PR gdb/21500
7764 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7765 to...
7766 (amd64_windows_init_abi_common): ... this. Don't set size of
7767 long type.
7768 (amd64_windows_init_abi): New function.
7769 (amd64_cygwin_init_abi): New function.
7770 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7771 the Cygwin OS ABI.
7772 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7773 comment.
7774
7775 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7776
7777 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7778 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7779 (pe_import_directory_entry): New struct type.
7780 (is_linked_with_cygwin_dll): New function.
7781 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7782 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7783 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7784
7785 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7788 i386_cygwin_core_osabi_sniffer.
7789
7790 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * i386-cygwin-tdep.c: Rename to...
7793 * i386-windows-tdep.c: ... this.
7794 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7795 i386-windows-tdep.c.
7796 * configure.tgt: Likewise.
7797
7798 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7801 * osabi.c (gdb_osabi_names): Add "Windows".
7802 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7803 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7804 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7805 i386_cygwin_osabi_sniffer.
7806 (_initialize_i386_cygwin_tdep): Register OS ABI
7807 GDB_OSABI_WINDOWS for i386.
7808 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7809 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7810 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7811 for x86-64.
7812 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7813 when the target matches '*-*-mingw*'.
7814
7815 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * defs.h (enum gdb_osabi): Move to...
7818 * osabi.h (enum gdb_osabi): ... here.
7819 * gdbarch.sh: Include osabi.h in gdbarch.h.
7820 * gdbarch.h: Re-generate.
7821
7822 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7825 function.
7826 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7827
7828 2020-03-14 Tom Tromey <tom@tromey.com>
7829
7830 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7831 for C++.
7832 (c_type_print_modifier): Likewise. Add "language" parameter.
7833 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7834 (c_type_print_base_1): Update.
7835 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7836 constants.
7837 * type-stack.c (type_stack::insert): Handle tp_atomic and
7838 tp_restrict.
7839 (type_stack::follow_type_instance_flags): Likewise.
7840 (type_stack::follow_types): Likewise. Merge type-following code.
7841 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7842 (space_identifier, cv_with_space_id)
7843 (const_or_volatile_or_space_identifier_noopt)
7844 (const_or_volatile_or_space_identifier): Remove.
7845 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7846 rules.
7847 (ptr_operator, typebase): Update.
7848 (enum token_flag) <FLAG_C>: New constant.
7849 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7850 "_Atomic".
7851 (lex_one_token): Handle FLAG_C.
7852
7853 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7854
7855 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7856 it to the ptrace call.
7857 * m68k-bsd-nat.c (store_registers): Likewise.
7858
7859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7860
7861 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7862 gdb_byte *.
7863 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7864 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7865 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7866
7867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7868
7869 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7870 nbsd_nat_target instead of inf_ptrace_target.
7871 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7872 nbsd_nat_target.
7873
7874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7875
7876 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7877 register_t.
7878
7879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7880
7881 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7882 it to the ptrace call.
7883 * alpha-bsd-nat.c (store_registers): Likewise.
7884
7885 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7886
7887 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7888 includes.
7889 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7890 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7891 fill_fpregset): Likewise.
7892
7893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7894
7895 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7896 nbsd_nat_target instead of inf_ptrace_target.
7897 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7898 nbsd_nat_target.
7899
7900 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7901
7902 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7903 register_t.
7904
7905 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7906
7907 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7908 it to the ptrace call.
7909 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7910 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7911 * arm-nbsd-nat.c (store_register): Likewise.
7912 * arm-nbsd-nat.c (store_regs): Likewise.
7913 * arm-nbsd-nat.c (store_fp_register): Likewise.
7914 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7915
7916 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7917
7918 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7919 nbsd_nat_target instead of inf_ptrace_target.
7920 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7921 nbsd_nat_target.
7922
7923 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7924
7925 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7926 it to the ptrace call.
7927 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7928
7929 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7930
7931 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7932 it to the ptrace call.
7933 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7934
7935 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7936
7937 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7938 gdb_byte *.
7939 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7940
7941 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7942
7943 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7944 instead of inf_ptrace_target.
7945 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7946 nbsd_nat_target.
7947
7948 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7949
7950 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7951 register_t.
7952
7953 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7954
7955 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7956 register_t.
7957
7958 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7959
7960 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7961 register_t.
7962
7963 2020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * value.h (val_print): Don't declare.
7966 * valprint.h (val_print_array_elements)
7967 (val_print_scalar_formatted, generic_val_print): Don't declare.
7968 * valprint.c (generic_val_print_array): Take a struct value.
7969 (generic_val_print_ptr, generic_val_print_memberptr)
7970 (generic_val_print_bool, generic_val_print_int)
7971 (generic_val_print_char, generic_val_print_complex)
7972 (generic_val_print): Remove.
7973 (generic_value_print): Update.
7974 (do_val_print): Remove unused parameters. Don't call
7975 la_val_print.
7976 (val_print): Remove.
7977 (common_val_print): Update. Don't call value_check_printable.
7978 (val_print_scalar_formatted, val_print_array_elements): Remove.
7979 * rust-lang.c (rust_val_print): Remove.
7980 (rust_language_defn): Update.
7981 * p-valprint.c (pascal_val_print): Remove.
7982 (pascal_value_print_inner): Update.
7983 (pascal_object_print_val_fields, pascal_object_print_val):
7984 Remove.
7985 (pascal_object_print_static_field): Update.
7986 * p-lang.h (pascal_val_print): Don't declare.
7987 * p-lang.c (pascal_language_defn): Update.
7988 * opencl-lang.c (opencl_language_defn): Update.
7989 * objc-lang.c (objc_language_defn): Update.
7990 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7991 * m2-lang.h (m2_val_print): Don't declare.
7992 * m2-lang.c (m2_language_defn): Update.
7993 * language.h (struct language_defn) <la_val_print>: Remove.
7994 * language.c (unk_lang_value_print_inner): Rename. Change
7995 argument types.
7996 (unknown_language_defn, auto_language_defn): Update.
7997 * go-valprint.c (go_val_print): Remove.
7998 * go-lang.h (go_val_print): Don't declare.
7999 * go-lang.c (go_language_defn): Update.
8000 * f-valprint.c (f_val_print): Remove.
8001 * f-lang.h (f_value_print): Don't declare.
8002 * f-lang.c (f_language_defn): Update.
8003 * d-valprint.c (d_val_print): Remove.
8004 * d-lang.h (d_value_print): Don't declare.
8005 * d-lang.c (d_language_defn): Update.
8006 * cp-valprint.c (cp_print_value_fields)
8007 (cp_print_value_fields_rtti, cp_print_value): Remove.
8008 (cp_print_static_field): Update.
8009 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8010 (c_val_print_struct, c_val_print_union, c_val_print_int)
8011 (c_val_print_memberptr, c_val_print): Remove.
8012 * c-lang.h (c_val_print_array, cp_print_value_fields)
8013 (cp_print_value_fields_rtti): Don't declare.
8014 * c-lang.c (c_language_defn, cplus_language_defn)
8015 (asm_language_defn, minimal_language_defn): Update.
8016 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8017 (ada_val_print_enum): Take a struct value.
8018 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8019 (ada_val_print): Remove.
8020 (ada_value_print_1): Update.
8021 (printable_val_type): Remove.
8022 * ada-lang.h (ada_val_print): Don't declare.
8023 * ada-lang.c (ada_language_defn): Update.
8024
8025 2020-03-13 Tom Tromey <tom@tromey.com>
8026
8027 * valprint.c (do_val_print): Update.
8028 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8029 a struct value.
8030 (value_to_value_object_no_release): Declare.
8031 * python/py-value.c (value_to_value_object_no_release): New
8032 function.
8033 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8034 struct value.
8035 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8036 function.
8037 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8038 a struct value.
8039 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8040 Declare.
8041 (gdbscm_apply_val_pretty_printer): Take a struct value.
8042 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8043 value.
8044 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8045 value.
8046 * extension-priv.h (struct extension_language_ops)
8047 <apply_val_pretty_printer>: Take a struct value.
8048 * cp-valprint.c (cp_print_value): Create a struct value.
8049 (cp_print_value): Update.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * ada-valprint.c (print_field_values): Call common_val_print.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * ada-valprint.c (val_print_packed_array_elements): Remove
8058 bitoffset and val parameters. Call common_val_print.
8059 (ada_val_print_string): Remove offset, address, and original_value
8060 parameters.
8061 (ada_val_print_array): Update.
8062 (ada_value_print_array): New function.
8063 (ada_value_print_1): Call it.
8064
8065 2020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * ada-valprint.c (ada_value_print): Use common_val_print.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * ada-valprint.c (ada_value_print_num): New function.
8076 (ada_value_print_1): Use it.
8077
8078 2020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8081
8082 2020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * ada-valprint.c (ada_value_print_ptr): New function.
8085 (ada_value_print_1): Use it.
8086
8087 2020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8090 call common_val_print.
8091 (ada_val_print_1): Update.
8092 (ada_value_print_1): New function.
8093 (ada_value_print_inner): Rewrite.
8094
8095 2020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * cp-valprint.c (cp_print_value_fields): Update.
8098 (cp_print_value): New function.
8099
8100 2020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * m2-valprint.c (m2_value_print_inner): Use
8103 cp_print_value_fields.
8104 * cp-valprint.c (cp_print_value_fields): New function.
8105 * c-valprint.c (c_value_print_struct): New function.
8106 (c_value_print_inner): Use c_value_print_struct.
8107 * c-lang.h (cp_print_value_fields): Declare.
8108
8109 2020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * c-valprint.c (c_value_print_array): New function.
8112 (c_value_print_inner): Use it.
8113
8114 2020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * c-valprint.c (c_value_print_memberptr): New function.
8117 (c_value_print_inner): Use it.
8118
8119 2020-03-13 Tom Tromey <tom@tromey.com>
8120
8121 * c-valprint.c (c_value_print_int): New function.
8122 (c_value_print_inner): Use it.
8123
8124 2020-03-13 Tom Tromey <tom@tromey.com>
8125
8126 * c-valprint.c (c_value_print_ptr): New function.
8127 (c_value_print_inner): Use it.
8128
8129 2020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * c-valprint.c (c_value_print_inner): Rewrite.
8132
8133 2020-03-13 Tom Tromey <tom@tromey.com>
8134
8135 * valprint.c (generic_value_print_complex): New function.
8136 (generic_value_print): Use it.
8137
8138 2020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * valprint.c (generic_val_print_float): Don't call
8141 val_print_scalar_formatted.
8142 (generic_val_print, generic_value_print): Update.
8143
8144 2020-03-13 Tom Tromey <tom@tromey.com>
8145
8146 * valprint.c (generic_value_print_char): New function
8147 (generic_value_print): Use it.
8148
8149 2020-03-13 Tom Tromey <tom@tromey.com>
8150
8151 * valprint.c (generic_value_print_int): New function.
8152 (generic_value_print): Use it.
8153
8154 2020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * valprint.c (generic_value_print_bool): New function.
8157 (generic_value_print): Use it.
8158
8159 2020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * valprint.c (generic_val_print_func): Simplify.
8162 (generic_val_print, generic_value_print): Update.
8163
8164 2020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * valprint.c (generic_val_print_flags): Remove.
8167 (generic_val_print, generic_value_print): Update.
8168 (val_print_type_code_flags): Add original_value parameter.
8169
8170 2020-03-13 Tom Tromey <tom@tromey.com>
8171
8172 * valprint.c (generic_val_print): Update.
8173 (generic_value_print): Update.
8174 * valprint.c (generic_val_print_enum): Don't call
8175 val_print_scalar_formatted.
8176
8177 2020-03-13 Tom Tromey <tom@tromey.com>
8178
8179 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8180 * valprint.c (generic_value_print_ptr): New function.
8181
8182 2020-03-13 Tom Tromey <tom@tromey.com>
8183
8184 * valprint.c (generic_value_print): Rewrite.
8185
8186 2020-03-13 Tom Tromey <tom@tromey.com>
8187
8188 * p-valprint.c (pascal_object_print_value_fields)
8189 (pascal_object_print_value): New functions.
8190
8191 2020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * p-valprint.c (pascal_value_print_inner): Rewrite.
8194
8195 2020-03-13 Tom Tromey <tom@tromey.com>
8196
8197 * f-valprint.c (f_value_print_innner): Rewrite.
8198
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * m2-valprint.c (m2_print_unbounded_array): New overload.
8202 (m2_print_unbounded_array): Update.
8203 (m2_print_array_contents): Take a struct value.
8204 (m2_value_print_inner): Rewrite.
8205
8206 2020-03-13 Tom Tromey <tom@tromey.com>
8207
8208 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8209 (d_value_print_inner): New function.
8210 * d-lang.h (d_value_print_inner): Declare.
8211 * d-lang.c (d_language_defn): Use d_value_print_inner.
8212
8213 2020-03-13 Tom Tromey <tom@tromey.com>
8214
8215 * go-valprint.c (go_value_print_inner): New function.
8216 * go-lang.h (go_value_print_inner): Declare.
8217 * go-lang.c (go_language_defn): Use go_value_print_inner.
8218
8219 2020-03-13 Tom Tromey <tom@tromey.com>
8220
8221 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8222 API.
8223 (rust_val_print): Rewrite.
8224 (rust_value_print_inner): New function, from rust_val_print.
8225 (rust_language_defn): Use rust_value_print_inner.
8226
8227 2020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * ada-valprint.c (ada_value_print_inner): New function.
8230 * ada-lang.h (ada_value_print_inner): Declare.
8231 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8232
8233 2020-03-13 Tom Tromey <tom@tromey.com>
8234
8235 * f-valprint.c (f_value_print_innner): New function.
8236 * f-lang.h (f_value_print_innner): Declare.
8237 * f-lang.c (f_language_defn): Use f_value_print_innner.
8238
8239 2020-03-13 Tom Tromey <tom@tromey.com>
8240
8241 * p-valprint.c (pascal_value_print_inner): New function.
8242 * p-lang.h (pascal_value_print_inner): Declare.
8243 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * m2-valprint.c (m2_value_print_inner): New function.
8248 * m2-lang.h (m2_value_print_inner): Declare.
8249 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8250
8251 2020-03-13 Tom Tromey <tom@tromey.com>
8252
8253 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8254 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8255 * c-valprint.c (c_value_print_inner): New function.
8256 * c-lang.h (c_value_print_inner): Declare.
8257 * c-lang.c (c_language_defn, cplus_language_defn)
8258 (asm_language_defn, minimal_language_defn): Use
8259 c_value_print_inner.
8260
8261 2020-03-13 Tom Tromey <tom@tromey.com>
8262
8263 * p-valprint.c (pascal_object_print_value_fields): Now static.
8264 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8265
8266 2020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * c-valprint.c (c_val_print_array): Simplify.
8269
8270 2020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * valprint.c (value_print_array_elements): New function.
8273 * valprint.h (value_print_array_elements): Declare.
8274
8275 2020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8278 * mips-tdep.c (mips_print_register): Use
8279 value_print_scalar_formatted.
8280
8281 2020-03-13 Tom Tromey <tom@tromey.com>
8282
8283 * valprint.h (value_print_scalar_formatted): Declare.
8284 * valprint.c (value_print_scalar_formatted): New function.
8285
8286 2020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * valprint.h (generic_value_print): Declare.
8289 * valprint.c (generic_value_print): New function.
8290
8291 2020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.c (do_val_print): Call la_value_print_inner, if
8294 available.
8295 * rust-lang.c (rust_language_defn): Update.
8296 * p-lang.c (pascal_language_defn): Update.
8297 * opencl-lang.c (opencl_language_defn): Update.
8298 * objc-lang.c (objc_language_defn): Update.
8299 * m2-lang.c (m2_language_defn): Update.
8300 * language.h (struct language_defn) <la_value_print_inner>: New
8301 member.
8302 * language.c (unknown_language_defn, auto_language_defn): Update.
8303 * go-lang.c (go_language_defn): Update.
8304 * f-lang.c (f_language_defn): Update.
8305 * d-lang.c (d_language_defn): Update.
8306 * c-lang.c (c_language_defn, cplus_language_defn)
8307 (asm_language_defn, minimal_language_defn): Update.
8308 * ada-lang.c (ada_language_defn): Update.
8309
8310 2020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * c-valprint.c (c_value_print): Use common_val_print.
8313
8314 2020-03-13 Tom Tromey <tom@tromey.com>
8315
8316 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8317
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * f-valprint.c (f77_print_array_1, f_val_print): Use
8321 common_val_print.
8322
8323 2020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * riscv-tdep.c (riscv_print_one_register_info): Use
8326 common_val_print.
8327
8328 2020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * mi/mi-main.c (output_register): Use common_val_print.
8331
8332 2020-03-13 Tom Tromey <tom@tromey.com>
8333
8334 * infcmd.c (default_print_one_register_info): Use
8335 common_val_print.
8336
8337 2020-03-13 Tom Tromey <tom@tromey.com>
8338
8339 * valprint.h (common_val_print_checked): Declare.
8340 * valprint.c (common_val_print_checked): New function.
8341 * stack.c (print_frame_arg): Use common_val_print_checked.
8342
8343 2020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * valprint.c (do_val_print): New function, from val_print.
8346 (val_print): Use do_val_print.
8347 (common_val_print): Use do_val_print.
8348
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * valprint.c (value_print): Use scoped_value_mark.
8352
8353 2020-03-13 Tom de Vries <tdevries@suse.de>
8354
8355 PR symtab/25646
8356 * psymtab.c (partial_symtab::partial_symtab): Don't set
8357 globals_offset and statics_offset. Push element onto
8358 current_global_psymbols and current_static_psymbols stacks.
8359 (concat): New function.
8360 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8361 element from current_global_psymbols and current_static_psymbols
8362 stacks. Concat popped elements to global_psymbols and
8363 static_symbols.
8364 (add_psymbol_to_list): Use current_global_psymbols and
8365 current_static_psymbols stacks.
8366 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8367 current_static_psymbols fields.
8368
8369 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8370
8371 * corelow.c (sniff_core_bfd): Remove.
8372 (class core_target) <m_core_vec>: Remove.
8373 (core_target::core_target): Update.
8374 (core_file_fns): Remove.
8375 (deprecated_add_core_fns): Remove.
8376 (default_core_sniffer): Remove.
8377 (sniff_core_bfd): Remove.
8378 (default_check_format): Remove.
8379 (gdb_check_format): Remove.
8380 (core_target_open): Update.
8381 (core_target::get_core_register_section): Update.
8382 (get_core_registers_cb): Update.
8383 (core_target::fetch_registers): Update.
8384 * gdbcore.h (struct core_fns): Remove.
8385 (deprecated_add_core_fns): Remove.
8386 (default_core_sniffer): Remove.
8387 (default_check_format): Remove.
8388
8389 2020-03-12 Tom Tromey <tom@tromey.com>
8390
8391 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8392 CORE_ADDR.
8393 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8394
8395 2020-03-12 Tom Tromey <tom@tromey.com>
8396
8397 * remote.c (remote_target::download_tracepoint)
8398 (remote_target::enable_tracepoint)
8399 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8400 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8401 sprintf_vma.
8402
8403 2020-03-12 Tom Tromey <tom@tromey.com>
8404
8405 * symfile-mem.c: Update CORE_ADDR size assert.
8406
8407 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8408
8409 * selftest.m4: Move to gdbsupport/.
8410 * acinclude.m4: Update path to selftest.m4.
8411
8412 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8413
8414 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8415 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8416 gdbarch-selfselftests.c and selftest-arch.c.
8417 (SUBDIR_UNITTESTS_OBS): Rename to...
8418 (SELFTESTS_OBS): ... this.
8419 (COMMON_SFILES): Remove disasm-selftests.c and
8420 gdbarch-selftests.c.
8421 * configure.ac: Don't add selftest-arch.{c,o} to
8422 CONFIG_{SRCS,OBS}.
8423 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8424 preprocessor conditions.
8425
8426 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * configure.ac: Don't source bfd/development.sh.
8429 * selftest.m4: Modify comment.
8430 * configure: Re-generate.
8431
8432 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8433
8434 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8435 not "true" or "false".
8436 * configure: Re-generate.
8437
8438 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8439
8440 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8441 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8442 renamed to arm_nbsd_supply_gregset.
8443 (fetch_register): Update to call arm_nbsd_supply_gregset.
8444 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8445 (arm_netbsd_nat_target::fetch_registers): Update.
8446 (fetch_elfcore_registers): Removed.
8447 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8448 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8449 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8450 not require NetBSD system headers.
8451 (arm_nbsd_regset): New struct.
8452 (arm_nbsd_iterate_over_regset_sections): New function.
8453 (arm_netbsd_init_abi_common): Updated to call
8454 set_gdbarch_iterate_over_regset_sections.
8455 * arm-nbsd-tdep.h: New file.
8456
8457 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8458
8459 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8460 recursion.
8461
8462 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * configure: Re-generate.
8465
8466 2020-03-11 Tom Tromey <tromey@adacore.com>
8467
8468 * ada-typeprint.c (print_choices): Fix comment.
8469
8470 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8473 previous item in the list, when the list has no items.
8474
8475 2020-03-11 Tom de Vries <tdevries@suse.de>
8476
8477 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8478 PROP_LOCLIST handling code.
8479
8480 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * buildsym-legacy.c (record_line): Pass extra parameter to
8483 record_line.
8484 * buildsym.c (buildsym_compunit::record_line): Take an extra
8485 parameter, reduce duplication in the line table, and record the
8486 is_stmt flag in the line table.
8487 * buildsym.h (buildsym_compunit::record_line): Add extra
8488 parameter.
8489 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8490 non-statement lines.
8491 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8492 this to the symtab builder.
8493 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8494 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8495 through to dwarf_record_line_1.
8496 * infrun.c (process_event_stop_test): When stepping, don't stop at
8497 a non-statement instruction, and only refresh the step info when
8498 we land in the middle of a line's range. Also add an extra
8499 comment.
8500 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8501 field.
8502 * record-btrace.c (btrace_find_line_range): Only record lines
8503 marked as is-statement.
8504 * stack.c (frame_show_address): Show the frame address if we are
8505 in a non-statement sal.
8506 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8507 (maintenance_print_one_line_table): Print a header for the is_stmt
8508 column, and include is_stmt information in the output.
8509 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8510 preference to non-statements.
8511 (find_pcs_for_symtab_line): Prefer is-statement entries.
8512 (find_line_common): Likewise.
8513 * symtab.h (struct linetable_entry): Add is_stmt field.
8514 (struct symtab_and_line): Likewise.
8515 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8516 arranging the line table.
8517
8518 2020-03-07 Tom de Vries <tdevries@suse.de>
8519
8520 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8521 DIE.
8522
8523 2020-03-07 Tom Tromey <tom@tromey.com>
8524
8525 * valops.c (value_literal_complex): Remove obsolete comment.
8526 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8527 comment.
8528
8529 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8530
8531 * infrun.h: Forward-declare thread_info.
8532 (set_step_info): Add thread_info parameter, add doc.
8533 * infrun.c (set_step_info): Add thread_info parameter, move doc
8534 to header.
8535 * infrun.c (process_event_stop_test): Pass thread to
8536 set_step_info call.
8537 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8538 set_step_info.
8539 (prepare_one_step): Add thread_info parameter, pass it to
8540 set_step_frame and prepare_one_step (recursive) call.
8541 (step_1): Pass thread to prepare_one_step call.
8542 (step_command_fsm::should_stop): Pass thread to
8543 prepare_one_step.
8544 (until_next_fsm): Pass thread to set_step_frame call.
8545 (finish_command): Pass thread to set_step_info call.
8546
8547 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8548
8549 * windows-tdep.c (windows_solib_create_inferior_hook):
8550 Check if inferior is running.
8551
8552 2020-03-06 Tom de Vries <tdevries@suse.de>
8553
8554 * NEWS: Fix "the the".
8555 * ctfread.c: Same.
8556
8557 2020-03-06 Tom de Vries <tdevries@suse.de>
8558
8559 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8560
8561 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * .dir-locals.el: Add a comment referencing the other copies of
8564 this file.
8565
8566 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8567
8568 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8569 psargs.
8570
8571 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8572
8573 * .gitattributes: New file.
8574
8575 2020-03-04 Tom Tromey <tom@tromey.com>
8576
8577 * symmisc.c (print_symbol_bcache_statistics)
8578 (print_objfile_statistics): Update.
8579 * symfile.c (allocate_symtab): Use intern.
8580 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8581 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8582 macro_cache>: Remove.
8583 <string_cache>: New member.
8584 (struct objfile) <intern>: New methods.
8585 * elfread.c (elf_symtab_read): Use intern.
8586 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8587 (dwarf2_compute_name, dwarf2_physname)
8588 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8589 names.
8590 (guess_partial_die_structure_name): Update.
8591 (partial_die_info::fixup): Intern name.
8592 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8593 name.
8594 (dwarf2_name): Intern name. Update.
8595 * buildsym.c (buildsym_compunit::get_macro_table): Use
8596 string_cache.
8597
8598 2020-03-04 Tom Tromey <tom@tromey.com>
8599
8600 * jit.c (bfd_open_from_target_memory): Make "target" const.
8601 * corefile.c (gnutarget): Now const.
8602 * gdbcore.h (gnutarget): Now const.
8603
8604 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8605
8606 * NEWS: Mention support for WOW64 processes.
8607 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8608 (amd64_windows_segment_register_p): Remove static.
8609 (_initialize_amd64_windows_nat): Update.
8610 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8611 * i386-windows-nat.c (context_offset): Update.
8612 (i386_mappings): Rename and remove static.
8613 (i386_windows_segment_register_p): Remove static.
8614 (_initialize_i386_windows_nat): Update.
8615 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8616 (STATUS_WX86_SINGLE_STEP): New macro.
8617 (EnumProcessModulesEx): New macro.
8618 (Wow64SuspendThread): New macro.
8619 (Wow64GetThreadContext): New macro.
8620 (Wow64SetThreadContext): New macro.
8621 (Wow64GetThreadSelectorEntry): New macro.
8622 (windows_set_context_register_offsets): Add static.
8623 (windows_set_segment_register_p): Likewise.
8624 (windows_add_thread): Adapt for WOW64 processes.
8625 (windows_fetch_one_register): Likewise.
8626 (windows_nat_target::fetch_registers): Likewise.
8627 (windows_store_one_register): Likewise.
8628 (display_selector): Likewise.
8629 (display_selectors): Likewise.
8630 (handle_exception): Likewise.
8631 (windows_continue): Likewise.
8632 (windows_nat_target::resume): Likewise.
8633 (windows_add_all_dlls): Likewise.
8634 (do_initial_windows_stuff): Likewise.
8635 (windows_nat_target::attach): Likewise.
8636 (windows_get_exec_module_filename): Likewise.
8637 (windows_nat_target::create_inferior): Likewise.
8638 (windows_xfer_siginfo): Likewise.
8639 (_initialize_loadable): Initialize Wow64SuspendThread,
8640 Wow64GetThreadContext, Wow64SetThreadContext,
8641 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8642 * windows-nat.h (windows_set_context_register_offsets):
8643 Remove declaration.
8644 (windows_set_segment_register_p): Likewise.
8645 (i386_windows_segment_register_p): Add declaration.
8646 (amd64_windows_segment_register_p): Likewise.
8647
8648 2020-03-04 Luis Machado <luis.machado@linaro.org>
8649
8650 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8651 in "info registers" for AArch64/ARM.
8652
8653 The change caused "info registers" to not print GPR's.
8654
8655 gdb/ChangeLog:
8656
8657 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8658
8659 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8660 when reg->group is empty and reggroup is not.
8661
8662 2020-03-03 Tom Tromey <tromey@adacore.com>
8663
8664 * dwarf2/frame.c (struct dwarf2_frame_cache)
8665 <checked_tailcall_bottom, entry_cfa_sp_offset,
8666 entry_cfa_sp_offset_p>: Remove members.
8667 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8668 (dwarf2_frame_prev_register): Don't call
8669 dwarf2_tailcall_sniffer_first.
8670 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8671 * frame-unwind.c (add_unwinder): New fuction.
8672 (frame_unwind_init): Use it. Add tailcall unwinder.
8673
8674 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8675 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8676
8677 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8678 value should be printed as true.
8679
8680 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8681
8682 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8683 (windows_init_abi): Set and use windows_so_ops.
8684
8685 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8686
8687 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8688 when verifying if dealing with a convenience variable.
8689
8690 2020-03-03 Luis Machado <luis.machado@linaro.org>
8691
8692 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8693
8694 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8695
8696 * infrun.c (gdbarch_supports_displaced_stepping): New.
8697 (use_displaced_stepping): Break up conditions in smaller pieces.
8698 Use gdbarch_supports_displaced_stepping.
8699 (displaced_step_prepare_throw): Use
8700 gdbarch_supports_displaced_stepping.
8701
8702 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8703
8704 * NEWS: Mention new behaviour of the history filename.
8705 * top.c (write_history_p): Add comment.
8706 (show_write_history_p): Add header comment, give a different
8707 message when history writing is on, but the history filename is
8708 empty.
8709 (history_filename): Add comment.
8710 (history_filename_empty): New function.
8711 (show_history_filename): Add header comment, give a different
8712 message when the filename is empty.
8713 (init_history): Compare history_filename against nullptr, and only
8714 read history if the filename is not empty.
8715 (set_history_filename): Add header comment, and only make
8716 non-empty filenames absolute.
8717 (init_main): Make the filename argument to 'set history filename'
8718 optional.
8719
8720 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8721
8722 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8723 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8724 (fetch_fp_register): Update.
8725 (fetch_fp_regs): Update.
8726 (store_fp_register): Update.
8727 (store_fp_regs): Update.
8728 (arm_netbsd_nat_target::read_description): New function.
8729 (fetch_elfcore_registers): Update.
8730
8731 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8732
8733 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8734 general_thread if the stop reply is missing a thread-id.
8735 (remote_target::process_stop_reply): Use the first non-exited
8736 thread if the target didn't pass a thread-id.
8737 * infrun.c (do_target_wait): Move call to
8738 switch_to_inferior_no_thread to ....
8739 (do_target_wait_1): ... here.
8740
8741 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8742
8743 * debuginfod-support.c: Include defs.h first.
8744
8745 2020-02-28 Tom de Vries <tdevries@suse.de>
8746
8747 * symfile.c (set_initial_language): Use default language for lookup.
8748
8749 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8752 reader variable, pass `this` to read_cutu_die_from_dwo.
8753
8754 2020-02-27 Aaron Merey <amerey@redhat.com>
8755
8756 * source.c (open_source_file): Check for nullptr when computing
8757 srcpath.
8758
8759 2020-02-27 Tom Tromey <tromey@adacore.com>
8760
8761 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8762 member.
8763 (dwarf2_add_field): Don't update nfields.
8764 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8765
8766 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8769 abs.
8770
8771 2020-02-26 Tom Tromey <tom@tromey.com>
8772
8773 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8774 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8775 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8776 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8777 per_cu_data.
8778
8779 2020-02-26 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/index-write.c (psym_index_map): Change type.
8782 (add_address_entry_worker, write_one_signatured_type)
8783 (recursively_count_psymbols, recursively_write_psymbols)
8784 (class debug_names, psyms_seen_size, write_gdbindex)
8785 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8786
8787 2020-02-26 Aaron Merey <amerey@redhat.com>
8788
8789 * Makefile.in: Handle optional debuginfod support.
8790 * NEWS: Update.
8791 * README: Add --with-debuginfod summary.
8792 * config.in: Regenerate.
8793 * configure: Regenerate.
8794 * configure.ac: Handle optional debuginfod support.
8795 * debuginfod-support.c: debuginfod helper functions.
8796 * debuginfod-support.h: Ditto.
8797 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8798 summary.
8799 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8800 when a dwz file cannot be found.
8801 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8802 debuginfo file cannot be found.
8803 * source.c (open_source_file): Query debuginfod servers when a
8804 source file cannot be found.
8805 * top.c (print_gdb_configuration): Include
8806 --{with,without}-debuginfod in the output.
8807
8808 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8809
8810 * thread.c (thr_try_catch_cmd): Print thread name.
8811
8812 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8813
8814 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8815 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8816 dwarf2_fetch_die_type_sect_off): Move to...
8817 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8818 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8819 dwarf2_fetch_die_type_sect_off): ... here.
8820 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8821 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8822 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8823
8824 2020-02-26 Tom de Vries <tdevries@suse.de>
8825
8826 PR gdb/25603
8827 * symfile.c (set_initial_language): Exit-early if
8828 language_mode == language_mode_manual.
8829
8830 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8831
8832 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8833 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8834 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8835
8836 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * gdbtypes.c (create_array_type_with_stride): Handle negative
8839 array strides.
8840 * valarith.c (value_subscripted_rvalue): Likewise.
8841
8842 2020-02-25 Luis Machado <luis.machado@linaro.org>
8843
8844 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8845
8846 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8847
8848 * loc.h (dwarf2_get_die_type): Move to...
8849 * read.h (dwarf2_get_die_type): ... here.
8850 * read.c (dwarf2_get_die_type): Move doc to header.
8851
8852 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8853
8854 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8855 'gnulib/Makefile.in' to the list.
8856
8857 2020-02-24 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8860 Remove.
8861 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8862 XOBNEWVEC.
8863
8864 2020-02-24 Tom Tromey <tom@tromey.com>
8865
8866 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8867 New method.
8868 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8869 (dw2_do_instantiate_symtab, dw2_get_file_names)
8870 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8871
8872 2020-02-24 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8875 make_scoped_restore.
8876 (dwarf2_psymtab::read_symtab): Don't clear
8877 reading_partial_symbols.
8878
8879 2020-02-24 Tom de Vries <tdevries@suse.de>
8880
8881 PR gdb/25592
8882 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8883
8884 2020-02-24 Tom de Vries <tdevries@suse.de>
8885
8886 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8887 commands layout next/prev/regs.
8888
8889 2020-02-22 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8892 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8893
8894 2020-02-22 Tom Tromey <tom@tromey.com>
8895
8896 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8897
8898 2020-02-22 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8901 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8902 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8903 * tui/tui.c (_initialize_tui): Add usage text.
8904
8905 2020-02-22 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui-win.c (tui_set_focus_command)
8908 (tui_set_win_height_command): Use error_no_arg.
8909 (_initialize_tui_win): Update help text.
8910 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8911
8912 2020-02-22 Tom Tromey <tom@tromey.com>
8913
8914 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8915 * tui/tui-disasm.h (struct tui_disasm_window)
8916 <display_start_addr>: Declare.
8917 * tui/tui-source.h (struct tui_source_window)
8918 <display_start_addr>: Declare.
8919 * tui/tui-winsource.h (struct tui_source_window_base)
8920 <show_source_line, display_start_addr>: New methods.
8921 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8922 Rename and move to protected section.
8923 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8924 (tui_source_window_base::do_erase_source_content): Update.
8925 (tui_source_window_base::show_source_line): Now a method.
8926 (tui_source_window_base::show_source_content)
8927 (tui_source_window_base::tui_source_window_base)
8928 (tui_source_window_base::rerender)
8929 (tui_source_window_base::refill)
8930 (tui_source_window_base::do_scroll_horizontal)
8931 (tui_source_window_base::set_is_exec_point_at)
8932 (tui_source_window_base::update_breakpoint_info)
8933 (tui_source_window_base::update_exec_info): Update.
8934 * tui/tui-source.c (tui_source_window::set_contents)
8935 (tui_source_window::showing_source_p)
8936 (tui_source_window::do_scroll_vertical)
8937 (tui_source_window::location_matches_p)
8938 (tui_source_window::line_is_displayed): Update.
8939 (tui_source_window::display_start_addr): New method.
8940 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8941 (tui_disasm_window::do_scroll_vertical)
8942 (tui_disasm_window::location_matches_p): Update.
8943 (tui_disasm_window::display_start_addr): New method.
8944
8945 2020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * NEWS: Add entry for gdb.register_window_type.
8948 * tui/tui-layout.h (window_factory): New typedef.
8949 (tui_register_window): Declare.
8950 * tui/tui-layout.c (saved_tui_windows): New global.
8951 (tui_apply_current_layout): Use it.
8952 (tui_register_window): New function.
8953 * python/python.c (do_start_initialization): Call
8954 gdbpy_initialize_tui.
8955 (python_GdbMethods): Add "register_window_type" function.
8956 * python/python-internal.h (gdbpy_register_tui_window)
8957 (gdbpy_initialize_tui): Declare.
8958 * python/py-tui.c: New file.
8959 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8960
8961 2020-02-22 Tom Tromey <tom@tromey.com>
8962
8963 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8964
8965 2020-02-22 Tom Tromey <tom@tromey.com>
8966
8967 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8968 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8969 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8970 (tui_set_win_focus_to): Move from tui-win.c.
8971
8972 2020-02-22 Tom Tromey <tom@tromey.com>
8973
8974 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8975 functions.
8976 (known_window_types): New global.
8977 (tui_get_window_by_name): Reimplement.
8978 (initialize_known_windows): New function.
8979 (validate_window_name): Rewrite.
8980 (_initialize_tui_layout): Call initialize_known_windows.
8981
8982 2020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8985 Remove constants.
8986 * tui/tui-winsource.h (struct tui_source_window_base)
8987 <tui_source_window_base>: Remove parameter.
8988 * tui/tui-winsource.c
8989 (tui_source_window_base::tui_source_window_base): Remove
8990 parameter.
8991 (tui_source_window_base::refill): Update.
8992 * tui/tui-stack.h (struct tui_locator_window)
8993 <tui_locator_window>: Update.
8994 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8995 Default the constructor.
8996 * tui/tui-regs.h (struct tui_data_item_window)
8997 <tui_data_item_window>: Default the constructor.
8998 (struct tui_data_window) <tui_data_window>: Likewise.
8999 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9000 Default the constructor.
9001 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9002 Default the constructor.
9003 <type>: Remove.
9004 (struct tui_win_info) <tui_win_info>: Default the constructor.
9005 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9006 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9007 Default the constructor.
9008
9009 2020-02-22 Tom Tromey <tom@tromey.com>
9010
9011 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9012 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9013 * tui/tui-win.c (tui_resize_all): Don't call
9014 tui_delete_invisible_windows.
9015 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9016 done.
9017 (tui_set_layout): Update.
9018 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9019 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9020 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9021
9022 2020-02-22 Tom Tromey <tom@tromey.com>
9023
9024 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9025 correctly.
9026
9027 2020-02-22 Tom Tromey <tom@tromey.com>
9028
9029 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9030
9031 2020-02-22 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui-winsource.h (struct tui_source_window_iterator)
9034 <inner_iterator>: New etytypedef.
9035 <tui_source_window_iterator>: Take "end" parameter.
9036 <tui_source_window_iterator>: Take iterator.
9037 <operator*, advance>: Update.
9038 <m_iter>: Change type.
9039 <m_end>: New field.
9040 (struct tui_source_windows) <begin, end>: Update.
9041 * tui/tui-layout.c (tui_windows): New global.
9042 (tui_apply_current_layout): Clear tui_windows.
9043 (tui_layout_window::apply): Update tui_windows.
9044 * tui/tui-data.h (tui_windows): Declare.
9045 (all_tui_windows): Now inline function.
9046 (class tui_window_iterator, struct all_tui_windows): Remove.
9047
9048 2020-02-22 Tom Tromey <tom@tromey.com>
9049
9050 PR tui/17850:
9051 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9052 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9053 "height" argument.
9054 (class tui_layout_window) <get_sizes>: Likewise.
9055 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9056 argument.
9057 <get_sizes>: Add "height" argument.
9058 <m_vertical>: New field.
9059 * tui/tui-layout.c (tui_layout_split::clone): Update.
9060 (tui_layout_split::get_sizes): Add "height" argument.
9061 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9062 (tui_new_layout_command): Parse "-horizontal".
9063 (_initialize_tui_layout): Update help string.
9064 (tui_layout_split::specification): Add "-horizontal" when needed.
9065 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9066 argument.
9067 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9068 New methods.
9069
9070 2020-02-22 Tom Tromey <tom@tromey.com>
9071
9072 * tui/tui-layout.h (enum tui_adjust_result): New.
9073 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9074 (class tui_layout_window) <adjust_size>: Return
9075 tui_adjust_result. Rewrite.
9076 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9077 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9078
9079 2020-02-22 Tom Tromey <tom@tromey.com>
9080
9081 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9082 parameter and return types.
9083 (class tui_layout_base) <specification>: Add "depth".
9084 (class tui_layout_window) <specification>: Add "depth".
9085 (class tui_layout_split) <specification>: Add "depth".
9086 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9087 and return types.
9088 (tui_new_layout_command): Parse sub-layouts.
9089 (_initialize_tui_layout): Update help string.
9090 (tui_layout_window::specification): Add "depth".
9091 (add_layout_command): Update.
9092
9093 2020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 * NEWS: Add "tui new-layout" item.
9096 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9097 Add new-layout command to help text.
9098 (validate_window_name): New function.
9099 (tui_new_layout_command): New function.
9100 (_initialize_tui_layout): Register "new-layout".
9101 (tui_layout_window::specification): New method.
9102 (tui_layout_window::specification): New method.
9103 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9104 method.
9105 (class tui_layout_window) <specification>: New method.
9106 (class tui_layout_split) <specification>: New method.
9107
9108 2020-02-22 Tom Tromey <tom@tromey.com>
9109
9110 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9111 * tui/tui-win.c (window_name_completer): Update comment.
9112 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9113 Declare method.
9114 (class tui_layout_window) <replace_window>: Likewise.
9115 (class tui_layout_split) <replace_window>: Likewise.
9116 (tui_set_layout): Don't declare.
9117 (tui_set_initial_layout): Declare function.
9118 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9119 (asm_regs_layout): New globals.
9120 (tui_current_layout, show_layout): Remove.
9121 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9122 (find_layout, tui_apply_layout): New function.
9123 (layout_completer): Remove.
9124 (tui_next_layout): Reimplement.
9125 (tui_next_layout_command): New function.
9126 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9127 (tui_regs_layout): Reimplement.
9128 (tui_regs_layout_command): New function.
9129 (extract_display_start_addr): Rewrite.
9130 (next_layout, prev_layout): Remove.
9131 (tui_layout_window::replace_window): New method.
9132 (tui_layout_split::replace_window): New method.
9133 (destroy_layout): New function.
9134 (layout_list): New global.
9135 (add_layout_command): New function.
9136 (initialize_layouts): Update.
9137 (tui_layout_command): New function.
9138 (_initialize_tui_layout): Install "layout" commands.
9139 * tui/tui-data.h (enum tui_layout_type): Remove.
9140 (tui_current_layout): Don't declare.
9141
9142 2020-02-22 Tom Tromey <tom@tromey.com>
9143
9144 * tui/tui-regs.c (tui_reg_layout): Remove.
9145 (tui_reg_command): Use tui_regs_layout.
9146 * tui/tui-layout.h (tui_reg_command): Declare.
9147 * tui/tui-layout.c (tui_reg_command): New function.
9148
9149 2020-02-22 Tom Tromey <tom@tromey.com>
9150
9151 * tui/tui.c (tui_rl_delete_other_windows): Call
9152 tui_remove_some_windows.
9153 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9154 Declare method.
9155 (class tui_layout_window) <remove_windows>: New method.
9156 (class tui_layout_split) <remove_windows>: Declare.
9157 (tui_remove_some_windows): Declare.
9158 * tui/tui-layout.c (tui_remove_some_windows): New function.
9159 (tui_layout_split::remove_windows): New method.
9160
9161 2020-02-22 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9164 * tui/tui-layout.h (tui_next_layout): Declare.
9165 * tui/tui-layout.c (tui_next_layout): New function.
9166
9167 2020-02-22 Tom Tromey <tom@tromey.com>
9168
9169 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9170 correct coordinates.
9171
9172 2020-02-22 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9175 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9176 DATA_WIN case.
9177
9178 2020-02-22 Tom Tromey <tom@tromey.com>
9179
9180 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9181 TUI_DISASM_WIN, not tui_win_list.
9182
9183 2020-02-22 Tom Tromey <tom@tromey.com>
9184
9185 * valprint.c (generic_val_print_enum_1)
9186 (val_print_type_code_flags): Style member names.
9187 * rust-lang.c (val_print_struct, rust_print_enum)
9188 (rust_print_struct_def, rust_internal_print_type): Style member
9189 names.
9190 * p-valprint.c (pascal_object_print_value_fields): Style member
9191 names. Only call fprintf_symbol_filtered for static members.
9192 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9193 * f-valprint.c (f_val_print): Style member names.
9194 * f-typeprint.c (f_type_print_base): Style member names.
9195 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9196 call fprintf_symbol_filtered for static members.
9197 (cp_print_class_member): Style member names.
9198 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9199 member names.
9200 * ada-valprint.c (ada_print_scalar): Style enum names.
9201 (ada_val_print_enum): Likewise.
9202 * ada-typeprint.c (print_enum_type): Style enum names.
9203
9204 2020-02-21 Tom Tromey <tom@tromey.com>
9205
9206 * psympriv.h (struct partial_symtab): Update comment.
9207
9208 2020-02-21 Tom Tromey <tromey@adacore.com>
9209
9210 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9211 type is CORE_ADDR.
9212
9213 2020-02-21 Tom de Vries <tdevries@suse.de>
9214
9215 PR gdb/25534
9216 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9217 if dependencies[i]->user != NULL.
9218
9219 2020-02-21 Ali Tamur <tamur@google.com>
9220
9221 * dwarf2/read.c (dwarf2_name): Add null check.
9222
9223 2020-02-20 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9226 ">=", in binary search.
9227 (dwarf2_find_containing_comp_unit): New overload.
9228 (run_test): New self-test.
9229 (_initialize_dwarf2_read): Register new test.
9230
9231 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9232
9233 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9234 * riscv-tdep.h: Likewise.
9235 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9236 rv32-only CSR.
9237 * features/riscv/64bit-csr.xml: Regenerated.
9238
9239 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9240 Tom Tromey <tom@tromey.com>
9241
9242 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9243 of 'fputc_unfiltered'.
9244 (putchar_unfiltered): Call 'fputc_unfiltered'.
9245 (fputc_unfiltered): Call 'fputs_unfiltered'.
9246
9247 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * config.in: Regenerate.
9250 * configure: Regenerate.
9251 * configure.ac: Add --with-python-libdir option.
9252 * main.c: Use WITH_PYTHON_LIBDIR.
9253
9254 2020-02-19 Tom Tromey <tom@tromey.com>
9255
9256 * symtab.c (general_symbol_info::compute_and_set_names): Use
9257 obstack_strndup. Simplify call to symbol_set_demangled_name.
9258
9259 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * dwarf2/read.c (allocate_signatured_type_table,
9262 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9263 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9264 Remove objfile parameter, update all callers.
9265
9266 2020-02-19 Doug Evans <dje@google.com>
9267
9268 PR rust/25535
9269 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9270 rust_enum_variant calculation.
9271
9272 2020-02-19 Tom Tromey <tromey@adacore.com>
9273
9274 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9275
9276 2020-02-19 Tom Tromey <tromey@adacore.com>
9277
9278 * ada-lang.c (cache_symbol): Use obstack_strdup.
9279
9280 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9281
9282 * configure: Regenerate.
9283
9284 2020-02-19 Tom Tromey <tromey@adacore.com>
9285
9286 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9287 NULL check.
9288
9289 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9290
9291 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9292
9293 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9294
9295 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9296 if GDBSERVER is not defined.
9297 (riscv_tdesc_cache): Likewise, also store const target_desc.
9298 (STATIC_IN_GDB): Define.
9299 (riscv_create_target_description): Update declaration with
9300 STATIC_IN_GDB.
9301 (riscv_lookup_target_description): New function, only define if
9302 GDBSERVER is not defined.
9303 * arch/riscv.h (riscv_create_target_description): Declare only
9304 when GDBSERVER is defined.
9305 (riscv_lookup_target_description): New declaration when GDBSERVER
9306 is not defined.
9307 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9308 (riscv_linux_read_features): ...this, and return
9309 riscv_gdbarch_features instead of target_desc.
9310 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9311 (riscv_linux_read_description): Rename to...
9312 (riscv_linux_read_features): ...this.
9313 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9314 Update to use riscv_gdbarch_features and
9315 riscv_lookup_target_description.
9316 * riscv-tdep.c (riscv_find_default_target_description): Use
9317 riscv_lookup_target_description instead of
9318 riscv_create_target_description.
9319
9320 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * valprint.c (generic_val_print_enum_1): When printing a flag
9323 enum with value 0 and there is no enumerator with value 0, print
9324 just "0" instead of "(unknown: 0x0)".
9325
9326 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * valprint.c (generic_val_print_enum_1): Print unknown part of
9329 flag enum in hex.
9330
9331 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9334 flag enums to contain duplicate enumerators.
9335 * valprint.c (generic_val_print_enum_1): Update comment.
9336
9337 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * dwarf2/read.c: Include "count-one-bits.h".
9340 (update_enumeration_type_from_children): If an enumerator has
9341 multiple bits set, don't treat the enumeration as a "flag enum".
9342 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9343 of flag enums have 0 or 1 bit set.
9344
9345 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9346
9347 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9348 conversion.
9349 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9350 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9351 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9352 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9353 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9354
9355 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9358
9359 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9362 displaced_step_closure_up.
9363 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9364 (struct displaced_step_closure_up):
9365 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9366 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9367 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9368 Likewise.
9369 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9370 * gdbarch.c, gdbarch.h: Re-generate.
9371 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9372 displaced_step_closure_up.
9373 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9374 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9375 * infrun.h (displaced_step_closure_up): New type alias.
9376 (struct displaced_step_inferior_state) <step_closure>: Change
9377 type to displaced_step_closure_up.
9378 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9379 displaced_step_closure_up.
9380 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9381
9382 2020-02-14 Tom Tromey <tom@tromey.com>
9383
9384 * minidebug.c (gnu_debug_key): New global.
9385 (find_separate_debug_file_in_section): Use it.
9386
9387 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9390 std::unique_ptr.
9391 * gdbarch.c: Re-generate.
9392 * gdbarch.h: Re-generate.
9393 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9394 change.
9395 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9396 type to std::unique_ptr.
9397 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9398 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9399 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9400 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9401 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9402 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9403 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9404 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9405 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9406
9407 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9408
9409 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9410 std::unique_ptr.
9411 (displaced_step_clear): Rename to...
9412 (displaced_step_reset): ... this. Just call displaced->reset ().
9413 (displaced_step_clear_cleanup): Rename to...
9414 (displaced_step_reset_cleanup): ... this.
9415 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9416 (displaced_step_fixup): Likewise.
9417 (resume_1): Likewise.
9418 (handle_inferior_event): Restore child's memory before calling
9419 displaced_step_fixup on the parent.
9420 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9421 to std::unique_ptr.
9422 <step_closure>: Change type to std::unique_ptr.
9423
9424 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9425
9426 * arm-tdep.c: Include count-one-bits.h.
9427 (cleanup_block_store_pc): Use count_one_bits.
9428 (cleanup_block_load_pc): Use count_one_bits.
9429 (arm_copy_block_xfer): Use count_one_bits.
9430 (thumb2_copy_block_xfer): Use count_one_bits.
9431 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9432 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9433 (thumb_get_next_pcs_raw): Use count_one_bits.
9434 (arm_get_next_pcs_raw): Use count_one_bits_l.
9435 * arch/arm.c (bitcount): Remove.
9436 * arch/arm.h (bitcount): Remove.
9437
9438 2020-02-14 Tom Tromey <tromey@adacore.com>
9439
9440 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9441 Update.
9442 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9443 * dwarf2/loc.c (call_site_find_chain_1): Return
9444 unique_xmalloc_ptr.
9445 (call_site_find_chain): Likewise.
9446
9447 2020-02-14 Richard Biener <rguenther@suse.de>
9448
9449 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9450 on expression with division operators.
9451
9452 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9453
9454 * MAINTAINERS (Write After Approval): Adding myself.
9455
9456 2020-02-12 Tom Tromey <tom@tromey.com>
9457
9458 * event-loop.c (event_data, gdb_event, event_handler_func):
9459 Remove.
9460
9461 2020-02-12 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9464 (dwarf2_frame_objfile_data): Add comment.
9465 (find_comp_unit, set_comp_unit): New functions.
9466 (dwarf2_frame_find_fde): Use find_comp_unit.
9467 (dwarf2_build_frame_info): Use set_comp_unit.
9468
9469 2020-02-12 Tom Tromey <tom@tromey.com>
9470
9471 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9472 (comp_unit): Don't initialize objfile.
9473 (execute_cfa_program): Add text_offset parameter.
9474 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9475 (dwarf2_frame_cache): Update.
9476 (dwarf2_build_frame_info): Don't set "objfile" member.
9477
9478 2020-02-12 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9481 (decode_frame_entry): Likewise.
9482 (dwarf2_build_frame_info): Update.
9483
9484 2020-02-12 Tom Tromey <tom@tromey.com>
9485
9486 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9487 (decode_frame_entry_1): Use the comp_unit obstack.
9488
9489 2020-02-12 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/frame.c (struct comp_unit): Add initializers and
9492 constructor.
9493 (dwarf2_frame_objfile_data): Store a comp_unit.
9494 (dwarf2_frame_find_fde): Update.
9495 (dwarf2_build_frame_info): Use "new".
9496
9497 2020-02-12 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9500 (dwarf2_fde_table): Typedef for std::vector.
9501 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9502 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9503 (decode_frame_entry): Update.
9504 (dwarf2_build_frame_info): Use "new".
9505
9506 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9507
9508 * arm-tdep.c (arm_gdbarch_init): Update.
9509 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9510 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9511 have_neon, is_m>: Change to bool.
9512
9513 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9514
9515 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9516
9517 2020-02-12 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9520
9521 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9522
9523 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9524 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9525
9526 2020-02-11 Tom Tromey <tom@tromey.com>
9527
9528 * psymtab.h: Update comment.
9529
9530 2020-02-11 Tom Tromey <tom@tromey.com>
9531
9532 * gdb_obstack.h (struct auto_obstack): Use
9533 DISABLE_COPY_AND_ASSIGN.
9534
9535 2020-02-11 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/frame.h (struct objfile): Don't forward declare.
9538
9539 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9540
9541 * cris-tdep.c (cris_supply_gregset): Change signature to match
9542 what struct regset expects.
9543 (cris_regset): New struct.
9544 (fetch_core_registers): Remove.
9545 (cris_iterate_over_regset_sections): New function.
9546 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9547 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9548
9549 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9550
9551 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9552 registers.
9553
9554 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9555
9556 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9557
9558 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * configure: Re-generate.
9561
9562 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9563
9564 * configure: Re-generate.
9565
9566 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * acinclude: Update warning.m4 path.
9569 * warning.m4: Move to gdbsupport.
9570
9571 2020-02-11 Tom Tromey <tromey@adacore.com>
9572
9573 * remote.c (remote_console_output): Update.
9574 * printcmd.c (printf_command): Update.
9575 * event-loop.c (gdb_wait_for_event): Update.
9576 * linux-nat.c (sigchld_handler): Update.
9577 * remote-sim.c (gdb_os_write_stdout): Update.
9578 (gdb_os_flush_stdout): Update.
9579 (gdb_os_flush_stderr): Update.
9580 (gdb_os_write_stderr): Update.
9581 * exceptions.c (print_exception): Update.
9582 * remote-fileio.c (remote_fileio_func_read): Update.
9583 (remote_fileio_func_write): Update.
9584 * tui/tui.c (tui_enable): Update.
9585 * tui/tui-interp.c (tui_interp::init): Update.
9586 * utils.c (init_page_info): Update.
9587 (putchar_unfiltered, fputc_unfiltered): Update.
9588 (gdb_flush): Update.
9589 (emit_style_escape): Update.
9590 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9591 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9592 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9593 (stderr_file::write): Update.
9594 (stderr_file::puts): Update.
9595 * ui-file.h (ui_file_isatty, ui_file_write)
9596 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9597 (ui_file_puts): Don't declare.
9598
9599 2020-02-10 Tom de Vries <tdevries@suse.de>
9600
9601 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9602 sentinel to char *.
9603
9604 2020-02-09 Tom de Vries <tdevries@suse.de>
9605
9606 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9607 filename if it matches "<artificial>".
9608
9609 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9610
9611 * windows-tdep.c (struct enum_value_name): New struct.
9612 (create_enum): New function.
9613 (windows_get_siginfo_type): Create and use enum types.
9614
9615 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9616
9617 * NEWS: Mention $_siginfo support for Windows.
9618 * windows-nat.c (handle_exception): Set siginfo_er.
9619 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9620 (windows_xfer_siginfo): New function.
9621 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9622 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9623 (init_windows_gdbarch_data): New function.
9624 (get_windows_gdbarch_data): New function.
9625 (windows_get_siginfo_type): New function.
9626 (windows_init_abi): Register windows_get_siginfo_type.
9627 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9628
9629 2020-02-08 Tom Tromey <tom@tromey.com>
9630
9631 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9632 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9633 <keep>: Declare method.
9634 <m_keep>: Remove member.
9635 <~cutu_reader>: Remove.
9636 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9637 (cutu_reader::cutu_reader): Update.
9638 (cutu_reader::keep): Rename from ~cutu_reader.
9639 (process_psymtab_comp_unit, build_type_psymtabs_1)
9640 (process_skeletonless_type_unit, load_partial_comp_unit)
9641 (load_full_comp_unit, dwarf2_read_addr_index)
9642 (read_signatured_type): Update.
9643
9644 2020-02-08 Tom Tromey <tom@tromey.com>
9645
9646 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9647 "want_partial_unit" parameter.
9648 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9649 Inline check for DW_TAG_partial_unit.
9650 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9651
9652 2020-02-08 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9655 read.c.
9656 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9657 read.c.
9658
9659 2020-02-08 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.c (read_address): Move to comp-unit.c.
9662 (dwarf2_rnglists_process, dwarf2_ranges_process)
9663 (read_attribute_value, dwarf_decode_lines_1)
9664 (var_decode_location, decode_locdesc): Update.
9665 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9666 read.c. Remove "cu" parameter.
9667 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9668 method.
9669
9670 2020-02-08 Tom Tromey <tom@tromey.com>
9671
9672 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9673 (read_indirect_line_string): Update.
9674 * dwarf2/comp-unit.c (read_offset): Remove.
9675 (read_comp_unit_head): Update.
9676 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9677 method.
9678 (read_offset): Don't declare.
9679
9680 2020-02-08 Tom Tromey <tom@tromey.com>
9681
9682 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9683 * dwarf2/read.c (struct comp_unit_head): Move to
9684 dwarf2/comp-unit.h.
9685 (enum class rcuh_kind): Move to comp-unit.h.
9686 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9687 (read_comp_unit_head, error_check_comp_unit_head)
9688 (read_and_check_comp_unit_head): Move to comp-unit.c.
9689 (read_offset, dwarf_unit_type_name): Likewise.
9690 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9691 (cutu_reader::cutu_reader, read_call_site_scope)
9692 (find_partial_die, follow_die_offset): Update.
9693 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9694
9695 2020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/read.c (read_offset_1): Move to leb.c.
9698 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9699 (dwarf_decode_macro_bytes): Update.
9700 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9701 * dwarf2/leb.h (read_offset): Declare.
9702
9703 2020-02-08 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2/read.c (dwarf2_section_size): Remove.
9706 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9707 Update.
9708 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9709
9710 2020-02-08 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2/read.c (read_initial_length): Move to leb.c.
9713 * dwarf2/leb.h (read_initial_length): Declare.
9714 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9715 handle_nonstd parameter.
9716 * dwarf2/frame.c (read_initial_length): Remove.
9717 (decode_frame_entry_1): Update.
9718
9719 2020-02-08 Tom Tromey <tom@tromey.com>
9720
9721 * dwarf2/loc.c (dwarf2_find_location_expression)
9722 (dwarf_evaluate_loc_desc::get_tls_address)
9723 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9724 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9725 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9726 (dwarf2_compile_property_to_c)
9727 (dwarf2_loc_desc_get_symbol_read_needs)
9728 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9729 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9730 (loclist_describe_location, loclist_tracepoint_var_ref)
9731 (loclist_generate_c_location): Update.
9732 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9733 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9734 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9735 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9736 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9737 (dwarf2_per_cu_data::addr_size)
9738 (dwarf2_per_cu_data::ref_addr_size)
9739 (dwarf2_per_cu_data::text_offset)
9740 (dwarf2_per_cu_data::addr_type): Now methods.
9741 (per_cu_header_read_in): Make per_cu "const".
9742 (dwarf2_version): Remove.
9743 (dwarf2_per_cu_data::int_type): Now a method.
9744 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9745 (set_die_type, read_array_type, read_subrange_index_type)
9746 (read_tag_string_type, read_subrange_type): Update.
9747 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9748 offset_size, ref_addr_size, text_offset, addr_type, version,
9749 objfile, int_type, addr_sized_int_type>: Declare methods.
9750
9751 2020-02-08 Tom Tromey <tom@tromey.com>
9752
9753 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9754 Move earlier.
9755
9756 2020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2/read.h (dwarf_line_debug): Declare.
9759 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9760 * dwarf2/read.c: Move line_header code to new files.
9761 (dwarf_line_debug): No longer static.
9762 * dwarf2/line-header.c: New file.
9763 * dwarf2/line-header.h: New file.
9764
9765 2020-02-08 Tom Tromey <tom@tromey.com>
9766
9767 * dwarf2/read.c (struct line_header) <file_full_name,
9768 file_file_name>: Return unique_xmalloc_ptr.
9769 (line_header::file_file_name): Update.
9770 (line_header::file_full_name): Update.
9771 (dw2_get_file_names_reader): Update.
9772 (macro_start_file): Update.
9773
9774 2020-02-08 Tom Tromey <tom@tromey.com>
9775
9776 * dwarf2/read.c (struct line_header) <file_full_name,
9777 file_file_name>: Declare methods.
9778 (dw2_get_file_names_reader): Update.
9779 (file_file_name): Now a method.
9780 (file_full_name): Likewise.
9781 (macro_start_file): Update.
9782
9783 2020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (dwarf_always_disassemble)
9786 (show_dwarf_always_disassemble): Move to loc.c.
9787 (_initialize_dwarf2_read): Move "always-disassemble" registration
9788 to loc.c.
9789 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9790 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9791 static.
9792 (show_dwarf_always_disassemble): Move from read.c.
9793 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9794
9795 2020-02-08 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9798 (create_quick_file_names_table): Return htab_up.
9799 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9800 Update.
9801 * dwarf2/read.h (struct dwarf2_per_objfile)
9802 <quick_file_names_table>: Now htab_up.
9803
9804 2020-02-08 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9807
9808 2020-02-08 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9811 Rewrite.
9812 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9813 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9814 (abbrev_table::abbrev_table): No longer inline.
9815 (ABBREV_HASH_SIZE): Remove.
9816 (abbrev_table::m_abbrevs): Now an htab_up.
9817
9818 2020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9821 (cutu_reader): Update.
9822 (build_type_psymtabs_1): Update.
9823 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9824 (abbrev_table::alloc_abbrev): Update.
9825 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9826 (abbrev_table::read): New static method, renamed from
9827 abbrev_table_read_table.
9828 (abbrev_table::alloc_abbrev)
9829 (abbrev_table::add_abbrev): Now private.
9830 (abbrev_table::abbrev_table): Now private.
9831 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9832
9833 2020-02-08 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9836 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9837 htab_up.
9838
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9842 htab_up.
9843 (lookup_dwo_unit_in_dwp): Update.
9844 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9845 on obstack.
9846
9847 2020-02-08 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9850 obstack.
9851
9852 2020-02-08 Tom Tromey <tom@tromey.com>
9853
9854 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9855 line_header_hash.
9856 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9857 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9858 Change type to htab_up.
9859
9860 2020-02-08 Tom Tromey <tom@tromey.com>
9861
9862 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9863 htab_up. Don't allocate on obstack.
9864 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9865 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9866 Change type to htab_up.
9867
9868 2020-02-08 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9871 Change type to htab_up.
9872 * dwarf2/read.c (create_signatured_type_table_from_index)
9873 (create_signatured_type_table_from_debug_names)
9874 (create_all_type_units, add_type_unit)
9875 (lookup_dwo_signatured_type, lookup_signatured_type)
9876 (process_skeletonless_type_unit): Update.
9877 (create_debug_type_hash_table, create_debug_types_hash_table):
9878 Change type of types_htab.
9879 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9880 htab_up. Don't allocate on obstack.
9881 (create_cus_hash_table): Change type of cus_htab parameter.
9882 (struct dwo_file) <cus, tus>: Now htab_up.
9883 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9884 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9885 (queue_and_load_all_dwo_tus): Update.
9886 * dwarf2/index-write.c (write_gdbindex): Update.
9887 (write_debug_names): Update.
9888
9889 2020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9892 dwarf2/read.c. Remove "next" member. Add constructor ntad
9893 destructor.
9894 (struct dwarf2_per_objfile) <queue>: New member.
9895 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9896 dwarf2/read.h.
9897 (dwarf2_queue, dwarf2_queue_tail): Remove.
9898 (class dwarf2_queue_guard): Add parameter to constructor. Use
9899 DISABLE_COPY_AND_ASSIGN.
9900 <m_per_objfile>: New member.
9901 <~dwarf2_queue_guard>: Rewrite.
9902 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9903 Update.
9904 (~dwarf2_queue_item): New.
9905
9906 2020-02-08 Tom Tromey <tom@tromey.com>
9907
9908 * dwarf2/read.c (struct die_info) <has_children>: New member.
9909 (dw2_get_file_names_reader): Remove has_children.
9910 (dw2_get_file_names): Update.
9911 (read_cutu_die_from_dwo): Remove has_children.
9912 (cutu_reader::init_tu_and_read_dwo_dies)
9913 (cutu_reader::cutu_reader): Update.
9914 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9915 Remove has_children.
9916 (build_type_psymtabs_1, process_skeletonless_type_unit)
9917 (load_partial_comp_unit, load_full_comp_unit): Update.
9918 (create_dwo_cu_reader): Remove has_children.
9919 (create_cus_hash_table, read_die_and_children): Update.
9920 (read_full_die_1,read_full_die): Remove has_children.
9921 (read_signatured_type): Update.
9922 (class cutu_reader) <has_children>: Remove.
9923
9924 2020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/expr.c: Rename from dwarf2expr.c.
9927 * dwarf2/expr.h: Rename from dwarf2expr.h.
9928 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9929 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9930 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9931 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9932 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9933 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9934 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9935 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9936 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9937 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9938 * dwarf2/loc.c: Rename from dwarf2loc.c.
9939 * dwarf2/loc.h: Rename from dwarf2loc.h.
9940 * dwarf2/read.c: Rename from dwarf2read.c.
9941 * dwarf2/read.h: Rename from dwarf2read.h.
9942 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9943 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9944 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9945 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9946 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9947 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9948 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9949 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9950 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9951 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9952 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9953 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9954 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9955 Update.
9956 * Makefile.in (COMMON_SFILES): Update.
9957 (HFILES_NO_SRCDIR): Update.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9962 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9963
9964 2020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2read.h (struct die_info): Don't declare.
9967
9968 2020-02-08 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2read.h (die_info_ptr): Remove typedef.
9971
9972 2020-02-08 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2read.c (read_call_site_scope)
9975 (handle_data_member_location, dwarf2_add_member_fn)
9976 (mark_common_block_symbol_computed, read_common_block)
9977 (attr_to_dynamic_prop, partial_die_info::read)
9978 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9979 (dwarf2_symbol_mark_computed, set_die_type): Update.
9980 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9981 method.
9982 (attr_form_is_block): Don't declare.
9983 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9984
9985 2020-02-08 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2read.c (dwarf2_find_base_address, )
9988 (read_call_site_scope, rust_containing_type)
9989 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9990 (handle_data_member_location, dwarf2_add_member_fn)
9991 (get_alignment, read_structure_type, process_structure_scope)
9992 (mark_common_block_symbol_computed, read_common_block)
9993 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9994 (partial_die_info::read, read_attribute_value, new_symbol)
9995 (lookup_die_type, dwarf2_get_ref_die_offset)
9996 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9997 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9998 (dwarf2_symbol_mark_computed): Update.
9999 * dwarf2/attribute.h (struct attribute) <value_as_address,
10000 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10001 methods.
10002 (value_as_address, attr_form_is_section_offset)
10003 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10004 * dwarf2/attribute.c (attribute::value_as_address)
10005 (attribute::form_is_section_offset, attribute::form_is_constant)
10006 (attribute::form_is_ref): Now methods.
10007
10008 2020-02-08 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2read.c (struct attribute, DW_STRING)
10011 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10012 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10013 (attr_form_is_block, attr_form_is_section_offset)
10014 (attr_form_is_constant, attr_form_is_ref): Move.
10015 * dwarf2/attribute.h: New file.
10016 * dwarf2/attribute.c: New file, from dwarf2read.c.
10017 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10018
10019 2020-02-08 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10022 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10023 Move.
10024 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10025 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10026 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10027 abbrev.c.
10028 * dwarf2/abbrev.h: New file.
10029 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10030 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10031
10032 2020-02-08 Tom Tromey <tom@tromey.com>
10033
10034 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10035 (dwarf2_section_size, dwarf2_get_section_info)
10036 (create_signatured_type_table_from_debug_names)
10037 (create_addrmap_from_aranges, read_debug_names_from_section)
10038 (get_gdb_index_contents_from_section, read_comp_unit_head)
10039 (error_check_comp_unit_head, read_abbrev_offset)
10040 (create_debug_type_hash_table, init_cu_die_reader)
10041 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10042 (read_comp_units_from_section, create_cus_hash_table)
10043 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10044 (create_dwp_v2_section, dwarf2_rnglists_process)
10045 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10046 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10047 (read_indirect_string_from_dwz, read_addr_index_1)
10048 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10049 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10050 (fill_in_loclist_baton): Update.
10051 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10052 get_containing_section, get_bfd_owner, get_bfd_section,
10053 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10054 (dwarf2_read_section, get_section_name, get_section_file_name)
10055 (get_containing_section, get_section_bfd_owner)
10056 (get_section_bfd_section, get_section_name, get_section_file_name)
10057 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10058 declare.
10059 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10060 (dwarf2_section_info::get_bfd_owner)
10061 (dwarf2_section_info::get_bfd_section)
10062 (dwarf2_section_info::get_name)
10063 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10064 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10065 (dwarf2_section_info::read): Now methods.
10066 * dwarf-index-write.c (class debug_names): Update.
10067
10068 2020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10071 Move to dwarf2/section.h.
10072 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10073 (get_section_bfd_section, get_section_name)
10074 (get_section_file_name, get_section_id, get_section_flags)
10075 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10076 dwarf2/section.c.
10077 * dwarf2/section.h: New file.
10078 * dwarf2/section.c: New file, from dwarf2read.c.
10079 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10080
10081 2020-02-08 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10084 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10085 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10086 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10087 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10088 * dwarf2/leb.h: New file, from dwarf2read.c.
10089 * dwarf2/leb.c: New file, from dwarf2read.c.
10090 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10091 Remove.
10092 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10093 (COMMON_SFILES): Add dwarf2/leb.c.
10094
10095 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10096
10097 GDB 9.1 released.
10098
10099 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10100
10101 PR gdb/25190:
10102 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10103 * gdb/remote.c (remote_console_output): Update.
10104 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10105 (ui_file_puts): ...this.
10106 * gdb/ui-file.h (ui_file_puts): Add declaration.
10107 * gdb/utils.c (emit_style_escape): Update.
10108 (flush_wrap_buffer): Update.
10109 (fputs_maybe_filtered): Update.
10110 (fputs_unfiltered): Add function.
10111
10112 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10113
10114 * gdb/event-loop.c (gdb_wait_for_event): Update.
10115 * gdb/printcmd.c (printf_command): Update.
10116 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10117 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10118 (gdb_os_flush_stderr): Update.
10119 * gdb/remote.c (remote_console_output): Update.
10120 * gdb/ui-file.c (gdb_flush): Rename to...
10121 (ui_file_flush): ...this.
10122 (stderr_file::write): Update.
10123 (stderr_file::puts): Update.
10124 * gdb/ui-file.h (gdb_flush): Rename to...
10125 (ui_file_flush): ...this.
10126 * gdb/utils.c (gdb_flush): Add function.
10127 * gdb/utils.h (gdb_flush): Add declaration.
10128
10129 2020-02-07 Tom Tromey <tromey@adacore.com>
10130
10131 PR breakpoints/24915:
10132 * source.c (find_and_open_source): Do not check basenames_may_differ.
10133
10134 2020-02-07 Tom Tromey <tom@tromey.com>
10135
10136 * README: Update gdbserver documentation.
10137 * gdbserver: Move to top level.
10138 * configure.tgt (build_gdbserver): Remove.
10139 * configure.ac: Remove --enable-gdbserver.
10140 * configure: Rebuild.
10141 * Makefile.in (distclean): Don't mention gdbserver.
10142
10143 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10144
10145 * source-cache.c (source_cache::ensure): Surround
10146 get_plain_source_lines with a try/catch.
10147 (source_cache::get_line_charpos): Get rid of try/catch
10148 and only check for the return value of "ensure".
10149 * tui/tui-source.c (tui_source_window::set_contents):
10150 Simplify "nlines" calculation.
10151
10152 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10153
10154 * MAINTAINERS (Write After Approval): Add myself.
10155
10156 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10157
10158 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10159 function call.
10160
10161 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10162
10163 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10164
10165 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10166
10167 * nat/riscv-linux-tdesc.h: New file.
10168 * nat/riscv-linux-tdesc.c: New file, taking code from...
10169 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10170 ... here.
10171 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10172 NATDEPFILES.
10173
10174 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10177 we don't set the fake simulator ptid to the null_ptid.
10178
10179 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10182 * gdbthread.h (class thread_info) <resumed>: Likewise.
10183 * infrun.c (resume_1): Likewise.
10184 (proceed): Likewise.
10185 (infrun_thread_stop_requested): Likewise.
10186 (stop_all_threads): Likewise.
10187 (handle_inferior_event): Likewise.
10188 (restart_threads): Likewise.
10189 (finish_step_over): Likewise.
10190 (keep_going_stepped_thread): Likewise.
10191 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10192 (linux_handle_extended_wait): Likewise.
10193 * record-btrace.c (get_thread_current_frame_id): Likewise.
10194 * record-full.c (record_full_wait_1): Likewise.
10195 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10196 * target.c (target_resume): Likewise.
10197 * thread.c (set_running_thread): Likewise.
10198
10199 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10200
10201 * f-valprint.c (f77_print_array_1): Changed datatype of index
10202 variable to LONGEST from int to enable it to contain bound
10203 values correctly.
10204
10205 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10206
10207 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10208 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10209 offsets according to FLEN determined.
10210 (riscv_linux_nat_target::read_description): Determine FLEN
10211 dynamically.
10212 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10213 according to FLEN determined.
10214 (riscv_linux_nat_target::store_registers): Likewise.
10215
10216 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10217
10218 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10219 when reg->group is empty and reggroup is not.
10220
10221 2020-01-31 Tom Tromey <tromey@adacore.com>
10222
10223 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10224 Call beneath target's mourn_inferior after unpushing.
10225
10226 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10227
10228 PR tui/9765
10229 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10230 have enough lines to fill the screen, still return the lowest
10231 address we found.
10232
10233 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10236 '-', '<', and '>' commands.
10237
10238 2020-01-29 Pedro Alves <palves@redhat.com>
10239 Sergio Durigan Junior <sergiodj@redhat.com>
10240
10241 * infcmd.c (construct_inferior_arguments): Assert that
10242 'argc' is greater than 0.
10243
10244 2020-01-29 Luis Machado <luis.machado@linaro.org>
10245
10246 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10247 (BRK_INSN_MASK): Define to 0xd4200000.
10248 (aarch64_program_breakpoint_here_p): New function.
10249 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10250 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10251 breakpoint.c.
10252 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10253 breakpoint.h
10254 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10255 call gdbarch_program_breakpoint_here_p.
10256 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10257 default_program_breakpoint_here_p, changed return type to bool and
10258 simplified.
10259 * breakpoint.h (program_breakpoint_here): Moved prototype to
10260 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10261 return type to bool.
10262 * gdbarch.c: Regenerate.
10263 * gdbarch.h: Regenerate.
10264 * gdbarch.sh (program_breakpoint_here_p): New method.
10265 * infrun.c (handle_signal_stop): Call
10266 gdbarch_program_breakpoint_here_p.
10267
10268 2020-01-26 Tom Tromey <tom@tromey.com>
10269
10270 * ctfread.c (struct ctf_fp_info): Reindent.
10271 (_initialize_ctfread): Remove.
10272
10273 2020-01-26 Tom Tromey <tom@tromey.com>
10274
10275 * psymtab.c (partial_map_expand_apply)
10276 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10277 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10278 (psym_print_stats, psym_expand_symtabs_for_function)
10279 (psym_map_symbol_filenames, psym_map_matching_symbols)
10280 (psym_expand_symtabs_matching)
10281 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10282 (maintenance_check_psymtabs): Use new methods.
10283 * psympriv.h (struct partial_symtab) <readin_p,
10284 get_compunit_symtab>: New methods.
10285 <readin, compunit_symtab>: Remove members.
10286 (struct standard_psymtab): New.
10287 (struct legacy_psymtab): Derive from standard_psymtab.
10288 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10289 standard_psymtab.
10290 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10291
10292 2020-01-26 Tom Tromey <tom@tromey.com>
10293
10294 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10295 read_dependencies. Add assert.
10296 * psymtab.c (partial_symtab::read_dependencies): New method.
10297 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10298 method.
10299 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10300 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10301 read_dependencies.
10302 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10303 Add assert.
10304
10305 2020-01-26 Tom Tromey <tom@tromey.com>
10306
10307 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10308 Call expand_psymtab.
10309 (xcoff_read_symtab): Call expand_psymtab.
10310 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10311 legacy_expand_psymtab.
10312 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10313 method.
10314 (struct legacy_psymtab) <expand_psymtab>: Implement.
10315 <legacy_expand_psymtab>: New member.
10316 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10317 (parse_partial_symbols): Set legacy_expand_psymtab.
10318 (psymtab_to_symtab_1): Change argument order. Call
10319 expand_psymtab.
10320 (new_psymtab): Set legacy_expand_psymtab.
10321 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10322 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10323 expand_psymtab.
10324 (dwarf2_psymtab::expand_psymtab): Rename from
10325 psymtab_to_symtab_1. Call expand_psymtab.
10326 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10327 (dbx_end_psymtab): Likewise.
10328 (dbx_psymtab_to_symtab_1): Change argument order. Call
10329 expand_psymtab.
10330 (dbx_read_symtab): Call expand_psymtab.
10331 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10332 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10333 (ctf_psymtab::read_symtab): Call expand_psymtab.
10334
10335 2020-01-26 Tom Tromey <tom@tromey.com>
10336
10337 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10338 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10339 messages.
10340 * mdebugread.c (mdebug_read_symtab): Remove prints.
10341 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10342 assert.
10343 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10344
10345 2020-01-26 Tom Tromey <tom@tromey.com>
10346
10347 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10348 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10349 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10350 legacy_symtab.
10351 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10352 * psymtab.c (psymtab_to_symtab): Call method.
10353 (dump_psymtab): Update.
10354 * psympriv.h (struct partial_symtab): Add virtual destructor.
10355 <read_symtab>: New method.
10356 (struct legacy_symtab): New.
10357 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10358 (struct pst_map) <pst>: Now a legacy_psymtab.
10359 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10360 (new_psymtab): Use legacy_psymtab.
10361 * dwarf2read.h (struct dwarf2_psymtab): New.
10362 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10363 * dwarf2read.c (dwarf2_create_include_psymtab)
10364 (dwarf2_build_include_psymtabs, create_type_unit_group)
10365 (create_partial_symtab, process_psymtab_comp_unit_reader)
10366 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10367 (set_partial_user): Use dwarf2_psymtab.
10368 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10369 (psymtab_to_symtab_1, process_full_comp_unit)
10370 (process_full_type_unit, dwarf2_ranges_read)
10371 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10372 (dwarf_decode_lines): Use dwarf2_psymtab.
10373 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10374 (add_address_entry_worker, write_one_signatured_type)
10375 (recursively_count_psymbols, recursively_write_psymbols)
10376 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10377 (write_debug_names): Likewise.
10378 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10379 <pst>: Now a legacy_psymtab.
10380 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10381 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10382 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10383 * ctfread.c (struct ctf_psymtab): New.
10384 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10385 ctf_psymtab.
10386 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10387 (create_partial_symtab): Return a ctf_psymtab.
10388 (scan_partial_symbols): Update.
10389
10390 2020-01-26 Tom Tromey <tom@tromey.com>
10391
10392 * xcoffread.c (xcoff_start_psymtab): Use new.
10393 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10394 renamed from start_psymtab_common.
10395 * psympriv.h (struct partial_symtab): Add new constructor.
10396 (start_psymtab_common): Don't declare.
10397 * mdebugread.c (parse_partial_symbols): Use new.
10398 * dwarf2read.c (create_partial_symtab): Use new.
10399 * dbxread.c (start_psymtab): Use new.
10400 * ctfread.c (create_partial_symtab): Use new.
10401
10402 2020-01-26 Tom Tromey <tom@tromey.com>
10403
10404 * xcoffread.c (xcoff_end_psymtab): Use new.
10405 * psymtab.c (start_psymtab_common): Use new.
10406 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10407 Update.
10408 * psympriv.h (struct partial_symtab): Add parameters to
10409 constructor. Don't inline.
10410 (allocate_psymtab): Don't declare.
10411 * mdebugread.c (new_psymtab): Use new.
10412 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10413 * dbxread.c (dbx_end_psymtab): Use new.
10414
10415 2020-01-26 Tom Tromey <tom@tromey.com>
10416
10417 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10418 allocate_psymtab. Update documentation.
10419 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10420 allocate_psymtab. Do not use new.
10421 (allocate_psymtab): Use new. Update.
10422
10423 2020-01-26 Tom Tromey <tom@tromey.com>
10424
10425 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10426 * psymtab.c (psym_print_stats): Update.
10427 * psympriv.h (struct partial_symtab) <readin,
10428 psymtabs_addrmap_supported, anonymous>: Now bool.
10429 * mdebugread.c (psymtab_to_symtab_1): Update.
10430 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10431 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10432 (process_full_comp_unit, process_full_type_unit): Update.
10433 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10434 * ctfread.c (psymtab_to_symtab): Update.
10435
10436 2020-01-26 Tom Tromey <tom@tromey.com>
10437
10438 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10439 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10440 * psymtab.c (psymtab_storage): Delete psymtabs.
10441 (psymtab_storage::allocate_psymtab): Use new.
10442 (psymtab_storage::discard_psymtab): Use delete.
10443 * psympriv.h (struct partial_symtab): Add constructor and
10444 initializers.
10445
10446 2020-01-26 Tom Tromey <tom@tromey.com>
10447
10448 * machoread.c: Do not include psympriv.h.
10449
10450 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10451
10452 * NEWS: Mention the new option and the set/show commands.
10453
10454 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10455
10456 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10457 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10458 (validate_exec_file): New variables, enums, functions.
10459 (exec_file_locate_attach, print_section_info): Style the filenames.
10460 (_initialize_exec): Install show_exec_file_mismatch_command and
10461 set_exec_file_mismatch_command.
10462 * gdbcore.h (validate_exec_file): Declare.
10463 * infcmd.c (attach_command): Call validate_exec_file.
10464 * remote.c ( remote_target::remote_add_inferior): Likewise.
10465
10466 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10467
10468 * frame.c (find_frame_sal): Move call to get_next_frame into more
10469 inner scope.
10470 * inline-frame.c (inilne_state) <inline_state>: Update argument
10471 types.
10472 (inilne_state) <skipped_symbol>: Rename to...
10473 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10474 (skip_inline_frames): Build vector of skipped symbols and use this
10475 to reate the inline_state.
10476 (inline_skipped_symbol): Add a comment and some assertions, fetch
10477 skipped symbol from the list.
10478
10479 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10480
10481 * buildsym.c (lte_is_less_than): Delete.
10482 (buildsym_compunit::end_symtab_with_blockvector): Create local
10483 lambda function to sort line table entries, and use
10484 std::stable_sort instead of std::sort.
10485 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10486 markers when looking for a previous line.
10487
10488 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10489
10490 * dwarf2read.c (lnp_state_machine::record_line): Include
10491 end_sequence parameter in debug print out. Record the line if we
10492 are at an end_sequence marker even if it's not the start of a
10493 statement.
10494 * symmisc.c (maintenance_print_one_line_table): Print end of
10495 sequence markers with 'END' not '0'.
10496
10497 2020-01-24 Pedro Alves <palves@redhat.com>
10498
10499 PR gdb/25410
10500 * thread.c (scoped_restore_current_thread::restore): Use
10501 switch_to_inferior_no_thread.
10502 * exec.c: Include "progspace-and-thread.h".
10503 (add_target_sections, remove_target_sections):
10504 scoped_restore_current_pspace_and_thread instead of
10505 scoped_restore_current_thread.
10506 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10507 and aspace to the inferior before calling clone_program_space.
10508 Remove stale comment.
10509
10510 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10511
10512 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10513 (arm_netbsd_nat_target::fetch_registers): ...this.
10514 (arm_nbsd_nat_target::store_registers): Rename to...
10515 (arm_netbsd_nat_target::store_registers): ...this.
10516
10517 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10518
10519 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10520 register_t.
10521
10522 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10523
10524 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10525 Update comment.
10526 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10527 Likewise.
10528 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10529 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10530 the correct replacement (iterate_over_regset_sections).
10531 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10532 Update comment.
10533
10534 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10535
10536 PR gdb/23718
10537 * gdb/python/python.c (execute_gdb_command): Call
10538 async_enable_stdin in catch block.
10539
10540 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10543 SWITCH_THRU_ALL_UIS.
10544
10545 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 PR tui/9765
10548 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10549 comment, add extra parameter, and update to store previous symbol
10550 when appropriate.
10551 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10552 add extra parameter.
10553 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10554 remove unneeded parameter, add try/catch around gdb_print_insn,
10555 rewrite to add items to asm_lines vector.
10556 (tui_find_backward_disassembly_start_address): New function.
10557 (tui_find_disassembly_address): Updated throughout.
10558 (tui_disasm_window::set_contents): Update for changes to
10559 tui_disassemble.
10560 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10561 number of lines to scroll.
10562
10563 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10564
10565 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10566 (SECT_OFF_DATA): Likewise.
10567 (SECT_OFF_RODATA): Likewise.
10568 (SECT_OFF_TEXT): Likewise.
10569 (SECT_OFF_BSS): Likewise.
10570 (struct objfile) <text_section_offset, data_section_offset>: New
10571 methods.
10572 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10573 objfile::text_section_offset.
10574 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10575 * coffread.c (coff_symtab_read): Likewise.
10576 (enter_linenos): Likewise.
10577 (process_coff_symbol): Likewise.
10578 * ctfread.c (get_objfile_text_range): Likewise.
10579 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10580 Use objfile::data_section_offset.
10581 * dwarf2-frame.c (execute_cfa_program): Use
10582 objfile::text_section_offset.
10583 (dwarf2_frame_find_fde): Likewise.
10584 * dwarf2read.c (create_addrmap_from_index): Likewise.
10585 (create_addrmap_from_aranges): Likewise.
10586 (dw2_find_pc_sect_compunit_symtab): Likewise.
10587 (process_psymtab_comp_unit_reader): Likewise.
10588 (add_partial_symbol): Likewise.
10589 (add_partial_subprogram): Likewise.
10590 (process_full_comp_unit): Likewise.
10591 (read_file_scope): Likewise.
10592 (read_func_scope): Likewise.
10593 (read_lexical_block_scope): Likewise.
10594 (read_call_site_scope): Likewise.
10595 (dwarf2_rnglists_process): Likewise.
10596 (dwarf2_ranges_process): Likewise.
10597 (dwarf2_ranges_read): Likewise.
10598 (dwarf_decode_lines_1): Likewise.
10599 (new_symbol): Likewise.
10600 (dwarf2_fetch_die_loc_sect_off): Likewise.
10601 (dwarf2_per_cu_text_offset): Likewise.
10602 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10603 * hppa-tdep.c (read_unwind_info): Likewise.
10604 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10605 * psympriv.h (struct partial_symtab): Likewise.
10606 * psymtab.c (find_pc_sect_psymtab): Likewise.
10607 * solib-svr4.c (enable_break): Likewise.
10608 * stap-probe.c (relocate_address): Use
10609 objfile::data_section_offset.
10610 * xcoffread.c (enter_line_range): Use
10611 objfile::text_section_offset.
10612 (read_xcoff_symtab): Likewise.
10613
10614 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10615
10616 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10617 declaration to narrower scopes.
10618
10619 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * darwin-nat.h (struct darwin_exception_msg, enum
10622 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10623 Move up.
10624 (class darwin_nat_target) <wait_1, check_new_threads,
10625 decode_exception_message, decode_message, stop_inferior,
10626 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10627 * darwin-nat.c (darwin_check_new_threads): Rename to...
10628 (darwin_nat_target::check_new_threads): ... this.
10629 (darwin_suspend_inferior_it): Remove.
10630 (darwin_decode_exception_message): Rename to...
10631 (darwin_nat_target::decode_exception_message): ... this.
10632 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10633 (darwin_decode_message): Rename to...
10634 (darwin_nat_target::decode_message): ... this.
10635 (cancel_breakpoint): Rename to...
10636 (darwin_nat_target::cancel_breakpoint): ... this.
10637 (darwin_wait): Rename to...
10638 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10639 instead of iterate_over_inferiors.
10640 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10641 (darwin_stop_inferior): Rename to...
10642 (darwin_nat_target::stop_inferior): ... this.
10643 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10644 (darwin_init_thread_list): Rename to...
10645 (darwin_nat_target::init_thread_list): ... this.
10646 (darwin_ptrace_him): Rename to...
10647 (darwin_nat_target::ptrace_him): ... this.
10648 (darwin_nat_target::create_inferior): Pass lambda function to
10649 fork_inferior.
10650 (darwin_nat_target::detach): Call stop_inferior instead of
10651 darwin_stop_inferior.
10652 * fork-inferior.h (fork_inferior): Change init_trace_fun
10653 parameter to gdb::function_view.
10654 * fork-inferior.c (fork_inferior): Likewise.
10655
10656 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10657
10658 * i386-cygwin-tdep.c (core_process_module_section): Update.
10659 * windows-nat.c (struct lm_info_windows): Add text_offset.
10660 (windows_xfer_shared_libraries): Update.
10661 * windows-tdep.c (windows_xfer_shared_library):
10662 Add text_offset_cached argument.
10663 * windows-tdep.h (windows_xfer_shared_library): Update.
10664
10665 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10666
10667 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10668
10669 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10672 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10673 replace with range-based for.
10674 (gdbsim_interrupt_inferior): Remove.
10675 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10676 with a range-based for. Inline code from
10677 gdbsim_interrupt_inferior.
10678
10679 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * infrun.c (proceed): Fix indentation.
10682
10683 2020-01-21 Tom Tromey <tromey@adacore.com>
10684
10685 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10686 * python/python.c (python_extension_ops): Update.
10687 (gdbpy_colorize): New function.
10688 * python/lib/gdb/__init__.py (colorize): New function.
10689 * extension.h (ext_lang_colorize): Declare.
10690 * extension.c (ext_lang_colorize): New function.
10691 * extension-priv.h (struct extension_language_ops) <colorize>: New
10692 member.
10693 * cli/cli-style.c (_initialize_cli_style): Update help text.
10694
10695 2020-01-21 Luis Machado <luis.machado@linaro.org>
10696
10697 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10698 <cond>: Change type to bool.
10699 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10700 (aarch64_displaced_step_cb): Likewise.
10701 (aarch64_displaced_step_tb): Likewise.
10702
10703 2020-01-21 Luis Machado <luis.machado@linaro.org>
10704
10705 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10706 output.
10707
10708 2020-01-21 Luis Machado <luis.machado@linaro.org>
10709
10710 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10711 <pc_adjust>: Adjust the documentation.
10712 (aarch64_displaced_step_fixup): Check if PC really moved before
10713 adjusting it.
10714
10715 2020-01-19 Tom Tromey <tom@tromey.com>
10716
10717 * disasm.c (~gdb_disassembler): New destructor.
10718 (gdb_buffered_insn_length): Call disassemble_free_target.
10719 * disasm.h (class gdb_disassembler): Declare destructor. Use
10720 DISABLE_COPY_AND_ASSIGN.
10721
10722 2020-01-19 Tom Tromey <tom@tromey.com>
10723
10724 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10725 (die_reader_func_ftype): Remove.
10726 (cutu_reader): New class.
10727 (dw2_get_file_names_reader): Remove "data" parameter.
10728 (dw2_get_file_names): Use cutu_reader.
10729 (create_debug_type_hash_table): Update.
10730 (read_cutu_die_from_dwo): Update comment.
10731 (lookup_dwo_unit): Add dwo_name parameter.
10732 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10733 die_reader_func_ftype and data parameters.
10734 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10735 Remove die_reader_func_ftype and data parameters.
10736 (~cutu_reader): New; from init_cutu_and_read_dies.
10737 (cutu_reader::cutu_reader): Rename from
10738 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10739 and data parameters.
10740 (init_cutu_and_read_dies_simple): Remove.
10741 (struct process_psymtab_comp_unit_data): Remove.
10742 (process_psymtab_comp_unit_reader): Remove data parameter; add
10743 want_partial_unit and pretend_language parameters.
10744 (process_psymtab_comp_unit): Use cutu_reader.
10745 (build_type_psymtabs_reader): Remove data parameter.
10746 (build_type_psymtabs_1): Use cutu_reader.
10747 (process_skeletonless_type_unit): Likewise.
10748 (load_partial_comp_unit_reader): Remove.
10749 (load_partial_comp_unit): Use cutu_reader.
10750 (load_full_comp_unit_reader): Remove.
10751 (load_full_comp_unit): Use cutu_reader.
10752 (struct create_dwo_cu_data): Remove.
10753 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10754 dwo_unit parameters.
10755 (create_cus_hash_table): Use cutu_reader.
10756 (struct dwarf2_read_addr_index_data): Remove.
10757 (dwarf2_read_addr_index_reader): Remove.
10758 (dwarf2_read_addr_index): Use cutu_reader.
10759 (read_signatured_type_reader): Remove.
10760 (read_signatured_type): Use cutu_reader.
10761
10762 2020-01-19 Tom Tromey <tom@tromey.com>
10763
10764 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10765 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10766 (tui_wrefresh): Declare.
10767 * tui/tui-wingeneral.c (suppress_output): New global.
10768 (tui_suppress_output, ~tui_suppress_output): New constructor and
10769 destructor.
10770 (tui_wrefresh): New function.
10771 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10772 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10773 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10774 method.
10775 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10776 tui_wrefresh.
10777 (tui_data_window::no_refresh): New method.
10778 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10779 (tui_reg_command): Use tui_suppress_output
10780 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10781 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10782 method.
10783 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10784
10785 2020-01-19 Tom Tromey <tom@tromey.com>
10786
10787 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10788 Handle case where symtab is null.
10789
10790 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * linux-fork.c (one_fork_p): Simplify.
10793
10794 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * top.c (struct qt_args): Remove.
10797 (kill_or_detach): Change return type to void, replace `void *`
10798 parameter with a proper one.
10799 (print_inferior_quit_action): Likewise.
10800 (quit_confirm): Use range-based for loop to iterate over inferiors.
10801 (quit_force): Likewise.
10802
10803 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10804
10805 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10806 `void *` parameter with proper parameters.
10807 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10808 (print_one_inferior): Change return type to void, replace `void *`
10809 parameter with proper parameters.
10810 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10811 inferiors.
10812 (get_other_inferior): Remove.
10813 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10814 inferiors.
10815
10816 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10817
10818 * mi/mi-interp.c (report_initial_inferior): Remove.
10819 (mi_interp::init): Use range-based for to iterate over inferiors.
10820
10821 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * python/py-inferior.c (build_inferior_list): Remove.
10824 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10825
10826 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10827
10828 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10829 (btrace_stitch_trace): Likewise.
10830 * charset.c (intermediate_encoding): Likewise (vaild).
10831 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10832 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10833 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10834
10835 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10836
10837 * windows-tdep.c (windows_get_tlb_type):
10838 Add rtl_user_process_parameters type.
10839
10840 2020-01-16 Pedro Alves <palves@redhat.com>
10841 Norbert Lange <nolange79@gmail.com>
10842
10843 PR build/24805
10844 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10845 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10846 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10847 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10848 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10849 (ps_plog): Redeclare exported functions with default visibility.
10850
10851 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10852
10853 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10854 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10855
10856 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10857
10858 * infcmd.c (post_create_inferior): Use get_thread_regcache
10859 instead of get_current_regcache.
10860
10861 2020-01-14 Tom Tromey <tom@tromey.com>
10862
10863 PR symtab/12535:
10864 * python/python.c (gdbpy_decode_line): Treat empty string the same
10865 as no argument.
10866
10867 2020-01-14 Tom Tromey <tom@tromey.com>
10868
10869 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10870
10871 2020-01-14 Tom Tromey <tom@tromey.com>
10872
10873 * nat/linux-btrace.c: Don't include <config.h>.
10874 * nat/linux-ptrace.c: Don't include <config.h>.
10875 * nat/x86-linux-dregs.c: Don't include <config.h>.
10876
10877 2020-01-14 Tom Tromey <tom@tromey.com>
10878
10879 * configure: Rebuild.
10880 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10881
10882 2020-01-14 Tom Tromey <tom@tromey.com>
10883
10884 * nat/x86-linux-dregs.c: Include configh.h.
10885 * nat/linux-ptrace.c: Include configh.h.
10886 * nat/linux-btrace.c: Include configh.h.
10887 * defs.h: Include config.h, bfd.h.
10888 * configure.ac: Don't source common.host.
10889 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10890 * configure: Rebuild.
10891 * acinclude.m4: Update path.
10892 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10893 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10894 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10895 (CLIBS): Add LIBSUPPORT.
10896 (CDEPS): Likewise.
10897 (COMMON_SFILES): Remove gdbsupport files.
10898 (HFILES_NO_SRCDIR): Likewise.
10899 (stamp-version): Update path to create-version.sh.
10900 (ALLDEPFILES): Remove gdbsupport files.
10901
10902 2020-01-14 Tom Tromey <tom@tromey.com>
10903
10904 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10905 USE_WIN32API when needed.
10906 * configure.ac (USE_WIN32API): Don't define.
10907 (WIN32LIBS): Use WIN32APILIBS.
10908 * configure: Rebuild.
10909
10910 2020-01-14 Tom Tromey <tom@tromey.com>
10911
10912 * configure: Rebuild.
10913 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10914
10915 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10916
10917 * skip.c (skip_function_command): Make skip w/o arguments use the
10918 name of the inlined function if pc is inside any inlined function.
10919
10920 2020-01-14 Luis Machado <luis.machado@linaro.org>
10921
10922 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10923 * infrun.c (resume_1): Likewise.
10924 (handle_inferior_event): Remove stale comment.
10925 * linux-nat.c (linux_nat_target::resume): Update comments.
10926 (save_stop_reason): Likewise.
10927 (linux_nat_filter_event): Likewise.
10928 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10929
10930 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10931
10932 * elfread.c (record_minimal_symbol): Set section index to 0 for
10933 non-allocatable sections.
10934
10935
10936 2020-01-13 Ali Tamur <tamur@google.com>
10937
10938 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10939 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10940 to gdb::optional. Update comments.
10941 (dwo_file): Update comments.
10942 (read_attribute): Update API to take an additional out parameter,
10943 need_reprocess. This is used to mark attributes that need other
10944 attributes (e.g. str_offsets_base) for correct computation which may not
10945 have been read yet.
10946 (read_attribute_reprocess): New function declaration.
10947 (read_addr_index): Likewise.
10948 (read_dwo_str_index): Likewise.
10949 (read_stub_str_index): Likewise.
10950 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10951 (lookup_addr_base): New function definition.
10952 (lookup_ranges_base): Likewise.
10953 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10954 lookup_ranges_base.
10955 (init_cutu_and_read_dies): Update comments.
10956 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10957 unit. This is used to inherit parent's str_offsets_base and addr_base.
10958 Update comments.
10959 (init_cutu_and_read_dies_simple): Reflect API changes.
10960 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10961 (create_cus_hash_table): Change API to take parent compile unit.
10962 Reflect API changes.
10963 (open_and_init_dwo_file): Reflect API changes.
10964 (dwarf2_get_pc_bounds): Update comments.
10965 (dwarf2_record_block_ranges): Likewise.
10966 (read_full_die_1): Change implementation to reprocess attributes that
10967 need str_offsets_base and addr_base.
10968 (partial_die_info::read): Likewise.
10969 (read_attribute_reprocess): New function definition.
10970 (read_attribute_value): Change API to take an additional out parameter,
10971 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10972 when a non-dwo compile unit has index based attributes.
10973 (read_attribute): Reflect API changes.
10974 (read_addr_index_1): Reflect API changes. Update comments.
10975 (dwarf2_read_addr_index_data): Reflect API changes.
10976 (dwarf2_read_addr_index): Likewise.
10977 (read_str_index): Change API and implementation. This becomes a helper
10978 to be used by the new string index related methods. Update error
10979 message and comments.
10980 (read_dwo_str_index): New function definition.
10981 (read_stub_str_index): Likewise.
10982 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10983 * symfile.h (dwarf2_debug_sections): Likewise.
10984 * xcoffread.c (dwarf2_debug_sections): Likewise.
10985
10986 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10989 core_reg_sect type to gdb_byte *.
10990 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10991 * cris-tdep.c (fetch_core_registers): Likewise.
10992 * corelow.c (core_target::get_core_register_section): Change
10993 type of `contents` to gdb::byte_vector.
10994
10995 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10996
10997 * tui/tui-wingeneral.c (box_win): Position the title in the center
10998 of the border.
10999
11000 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11001
11002 * corelow.c (core_target::get_core_register_section): Use
11003 std::vector instead of alloca.
11004
11005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11006
11007 * warning.m4: Add -Wmissing-declarations to build_warnings.
11008 * configure: Re-generate.
11009
11010 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * python/python.c (init__gdb_module): Add declaration.
11013
11014 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11015
11016 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11017 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11018 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11019 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11020 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11021 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11022 * ada-exp.y (_initialize_ada_exp): Add declaration.
11023 * ada-lang.c (_initialize_ada_language): Add declaration.
11024 * ada-tasks.c (_initialize_tasks): Add declaration.
11025 * agent.c (_initialize_agent): Add declaration.
11026 * aix-thread.c (_initialize_aix_thread): Add declaration.
11027 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11028 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11029 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11030 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11031 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11032 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11033 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11034 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11035 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11036 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11037 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11038 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11039 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11040 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11041 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11042 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11043 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11044 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11045 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11046 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11047 * annotate.c (_initialize_annotate): Add declaration.
11048 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11049 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11050 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11051 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11052 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11053 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11054 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11055 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11056 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11057 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11058 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11059 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11060 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11061 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11062 * auto-load.c (_initialize_auto_load): Add declaration.
11063 * auxv.c (_initialize_auxv): Add declaration.
11064 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11065 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11066 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11067 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11068 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11069 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11070 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11071 * breakpoint.c (_initialize_breakpoint): Add declaration.
11072 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11073 * btrace.c (_initialize_btrace): Add declaration.
11074 * charset.c (_initialize_charset): Add declaration.
11075 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11076 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11077 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11078 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11079 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11080 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11081 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11082 * coffread.c (_initialize_coffread): Add declaration.
11083 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11084 * compile/compile.c (_initialize_compile): Add declaration.
11085 * complaints.c (_initialize_complaints): Add declaration.
11086 * completer.c (_initialize_completer): Add declaration.
11087 * copying.c (_initialize_copying): Add declaration.
11088 * corefile.c (_initialize_core): Add declaration.
11089 * corelow.c (_initialize_corelow): Add declaration.
11090 * cp-abi.c (_initialize_cp_abi): Add declaration.
11091 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11092 * cp-support.c (_initialize_cp_support): Add declaration.
11093 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11094 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11095 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11096 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11097 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11098 * ctfread.c (_initialize_ctfread): Add declaration.
11099 * d-lang.c (_initialize_d_language): Add declaration.
11100 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11101 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11102 * dbxread.c (_initialize_dbxread): Add declaration.
11103 * dcache.c (_initialize_dcache): Add declaration.
11104 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11105 * disasm.c (_initialize_disasm): Add declaration.
11106 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11107 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11108 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11109 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11110 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11111 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11112 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11113 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11114 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11115 * elfread.c (_initialize_elfread): Add declaration.
11116 * exec.c (_initialize_exec): Add declaration.
11117 * extension.c (_initialize_extension): Add declaration.
11118 * f-lang.c (_initialize_f_language): Add declaration.
11119 * f-valprint.c (_initialize_f_valprint): Add declaration.
11120 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11121 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11122 * filesystem.c (_initialize_filesystem): Add declaration.
11123 * findcmd.c (_initialize_mem_search): Add declaration.
11124 * findvar.c (_initialize_findvar): Add declaration.
11125 * fork-child.c (_initialize_fork_child): Add declaration.
11126 * frame-base.c (_initialize_frame_base): Add declaration.
11127 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11128 * frame.c (_initialize_frame): Add declaration.
11129 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11130 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11131 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11132 * gcore.c (_initialize_gcore): Add declaration.
11133 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11134 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11135 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11136 * gdbarch.c (_initialize_gdbarch): Add declaration.
11137 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11138 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11139 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11140 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11141 * go-lang.c (_initialize_go_language): Add declaration.
11142 * go32-nat.c (_initialize_go32_nat): Add declaration.
11143 * guile/guile.c (_initialize_guile): Add declaration.
11144 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11145 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11146 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11147 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11148 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11149 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11150 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11151 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11152 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11153 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11154 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11155 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11156 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11157 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11158 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11159 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11160 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11161 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11162 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11163 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11164 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11165 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11166 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11167 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11168 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11169 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11170 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11171 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11172 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11173 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11174 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11175 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11176 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11177 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11178 * infcall.c (_initialize_infcall): Add declaration.
11179 * infcmd.c (_initialize_infcmd): Add declaration.
11180 * inflow.c (_initialize_inflow): Add declaration.
11181 * infrun.c (_initialize_infrun): Add declaration.
11182 * interps.c (_initialize_interpreter): Add declaration.
11183 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11184 * jit.c (_initialize_jit): Add declaration.
11185 * language.c (_initialize_language): Add declaration.
11186 * linux-fork.c (_initialize_linux_fork): Add declaration.
11187 * linux-nat.c (_initialize_linux_nat): Add declaration.
11188 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11189 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11190 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11191 * m2-lang.c (_initialize_m2_language): Add declaration.
11192 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11193 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11194 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11195 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11196 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11197 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11198 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11199 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11200 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11201 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11202 * machoread.c (_initialize_machoread): Add declaration.
11203 * macrocmd.c (_initialize_macrocmd): Add declaration.
11204 * macroscope.c (_initialize_macroscope): Add declaration.
11205 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11206 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11207 * maint.c (_initialize_maint_cmds): Add declaration.
11208 * mdebugread.c (_initialize_mdebugread): Add declaration.
11209 * memattr.c (_initialize_mem): Add declaration.
11210 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11211 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11212 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11213 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11214 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11215 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11216 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11217 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11218 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11219 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11220 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11221 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11222 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11223 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11224 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11225 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11226 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11227 * mipsread.c (_initialize_mipsread): Add declaration.
11228 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11229 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11230 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11231 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11232 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11233 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11234 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11235 * nto-procfs.c (_initialize_procfs): Add declaration.
11236 * objc-lang.c (_initialize_objc_language): Add declaration.
11237 * observable.c (_initialize_observer): Add declaration.
11238 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11239 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11240 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11241 * osabi.c (_initialize_gdb_osabi): Add declaration.
11242 * osdata.c (_initialize_osdata): Add declaration.
11243 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11244 * parse.c (_initialize_parse): Add declaration.
11245 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11246 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11247 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11248 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11249 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11250 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11251 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11252 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11253 * printcmd.c (_initialize_printcmd): Add declaration.
11254 * probe.c (_initialize_probe): Add declaration.
11255 * proc-api.c (_initialize_proc_api): Add declaration.
11256 * proc-events.c (_initialize_proc_events): Add declaration.
11257 * proc-service.c (_initialize_proc_service): Add declaration.
11258 * procfs.c (_initialize_procfs): Add declaration.
11259 * producer.c (_initialize_producer): Add declaration.
11260 * psymtab.c (_initialize_psymtab): Add declaration.
11261 * python/python.c (_initialize_python): Add declaration.
11262 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11263 * record-btrace.c (_initialize_record_btrace): Add declaration.
11264 * record-full.c (_initialize_record_full): Add declaration.
11265 * record.c (_initialize_record): Add declaration.
11266 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11267 * regcache.c (_initialize_regcache): Add declaration.
11268 * reggroups.c (_initialize_reggroup): Add declaration.
11269 * remote-notif.c (_initialize_notif): Add declaration.
11270 * remote-sim.c (_initialize_remote_sim): Add declaration.
11271 * remote.c (_initialize_remote): Add declaration.
11272 * reverse.c (_initialize_reverse): Add declaration.
11273 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11274 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11275 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11276 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11277 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11278 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11279 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11280 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11281 Add declaration.
11282 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11283 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11284 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11285 * rust-exp.y (_initialize_rust_exp): Add declaration.
11286 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11287 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11288 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11289 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11290 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11291 * score-tdep.c (_initialize_score_tdep): Add declaration.
11292 * ser-go32.c (_initialize_ser_dos): Add declaration.
11293 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11294 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11295 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11296 * ser-uds.c (_initialize_ser_socket): Add declaration.
11297 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11298 * serial.c (_initialize_serial): Add declaration.
11299 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11300 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11301 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11302 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11303 * skip.c (_initialize_step_skip): Add declaration.
11304 * sol-thread.c (_initialize_sol_thread): Add declaration.
11305 * solib-aix.c (_initialize_solib_aix): Add declaration.
11306 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11307 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11308 * solib-frv.c (_initialize_frv_solib): Add declaration.
11309 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11310 * solib-target.c (_initialize_solib_target): Add declaration.
11311 * solib.c (_initialize_solib): Add declaration.
11312 * source-cache.c (_initialize_source_cache): Add declaration.
11313 * source.c (_initialize_source): Add declaration.
11314 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11315 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11316 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11317 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11318 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11319 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11320 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11321 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11322 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11323 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11324 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11325 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11326 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11327 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11328 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11329 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11330 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11331 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11332 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11333 * stabsread.c (_initialize_stabsread): Add declaration.
11334 * stack.c (_initialize_stack): Add declaration.
11335 * stap-probe.c (_initialize_stap_probe): Add declaration.
11336 * std-regs.c (_initialize_frame_reg): Add declaration.
11337 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11338 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11339 * symfile.c (_initialize_symfile): Add declaration.
11340 * symmisc.c (_initialize_symmisc): Add declaration.
11341 * symtab.c (_initialize_symtab): Add declaration.
11342 * target.c (_initialize_target): Add declaration.
11343 * target-connection.c (_initialize_target_connection): Add
11344 declaration.
11345 * target-dcache.c (_initialize_target_dcache): Add declaration.
11346 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11347 * thread.c (_initialize_thread): Add declaration.
11348 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11349 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11350 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11351 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11352 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11353 * tracectf.c (_initialize_ctf): Add declaration.
11354 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11355 * tracefile.c (_initialize_tracefile): Add declaration.
11356 * tracepoint.c (_initialize_tracepoint): Add declaration.
11357 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11358 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11359 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11360 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11361 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11362 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11363 * tui/tui.c (_initialize_tui): Add declaration.
11364 * typeprint.c (_initialize_typeprint): Add declaration.
11365 * ui-style.c (_initialize_ui_style): Add declaration.
11366 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11367 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11368 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11369 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11370 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11371 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11372 * unittests/filtered_iterator-selftests.c
11373 (_initialize_filtered_iterator_selftests): Add declaration.
11374 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11375 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11376 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11377 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11378 * unittests/main-thread-selftests.c
11379 (_initialize_main_thread_selftests): Add declaration.
11380 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11381 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11382 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11383 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11384 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11385 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11386 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11387 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11388 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11389 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11390 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11391 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11392 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11393 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11394 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11395 declaration.
11396 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11397 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11398 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11399 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11400 * user-regs.c (_initialize_user_regs): Add declaration.
11401 * utils.c (_initialize_utils): Add declaration.
11402 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11403 * valops.c (_initialize_valops): Add declaration.
11404 * valprint.c (_initialize_valprint): Add declaration.
11405 * value.c (_initialize_values): Add declaration.
11406 * varobj.c (_initialize_varobj): Add declaration.
11407 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11408 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11409 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11410 * windows-nat.c (_initialize_windows_nat): Add declaration.
11411 (_initialize_check_for_gdb_ini): Add declaration.
11412 (_initialize_loadable): Add declaration.
11413 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11414 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11415 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11416 * xcoffread.c (_initialize_xcoffread): Add declaration.
11417 * xml-support.c (_initialize_xml_support): Add declaration.
11418 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11419 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11420 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11421 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11422
11423 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11424
11425 * regformats/regdat.sh: Generate declaration for init function.
11426
11427 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11428
11429 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11430 up.
11431 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11432 close_one_inferior>: New methods.
11433 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11434 pass down target to find_inferior_pid.
11435 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11436 Pass down target to find_inferior_ptid.
11437 (gdbsim_target::create_inferior): Pass down target to
11438 add_thread_silent.
11439 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11440 target down to find_inferior_ptid and switch_to_thread.
11441 (gdbsim_target::close): Update to call close_one_inferior.
11442 (struct resume_data): Remove.
11443 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11444 directly, rather than through a void pointer.
11445 (gdbsim_target::resume): Update to call resume_one_inferior.
11446
11447 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11448
11449 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11450
11451 2020-01-12 Pedro Alves <palves@redhat.com>
11452
11453 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11454 directly for the current inferior instead of
11455 discard_all_inferiors.
11456 (discard_all_inferiors): Delete.
11457
11458 2020-01-11 Tom Tromey <tom@tromey.com>
11459
11460 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11461 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11462 deprecated_safe_get_selected_frame.
11463
11464 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11465
11466 * inferior.c (print_inferior): Switch inferior before printing it.
11467
11468 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11469 Pedro Alves <palves@redhat.com>
11470
11471 * progspace-and-thread.c (switch_to_program_space_and_thread):
11472 Assert there's an inferior for PSPACE. Use
11473 switch_to_inferior_no_thread to switch the inferior too.
11474 * progspace.c (program_space::~program_space): Call
11475 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11476 (program_space::free_all_objfiles): Don't call clear_symtab_users
11477 here.
11478 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11479
11480 2020-01-10 Pedro Alves <palves@redhat.com>
11481
11482 * NEWS: Mention multi-target debugging, "info connections", and
11483 "add-inferior -no-connection".
11484
11485 2020-01-10 Pedro Alves <palves@redhat.com>
11486
11487 * infrun.c: Include "target-connection.h".
11488 (check_multi_target_resumption): New.
11489 (proceed): Call it.
11490 * target-connection.c (make_target_connection_string): Make
11491 extern.
11492 * target-connection.h (make_target_connection_string): Declare.
11493
11494 2020-01-10 Pedro Alves <palves@redhat.com>
11495
11496 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11497 * inferior.c (uiout_field_connection): New function.
11498 (print_inferior): Add new "connection-id" column.
11499 (add_inferior_command): Show connection number/string of added
11500 inferior.
11501 * process-stratum-target.h
11502 (process_stratum_target::connection_string): New virtual method.
11503 (process_stratum_target::connection_number): New field.
11504 * remote.c (remote_target::connection_string): New override.
11505 * target-connection.c: New file.
11506 * target-connection.h: New file.
11507 * target.c (decref_target): Remove process_stratum targets from
11508 the connection list.
11509 (target_stack::push): Add process_stratum targets to the
11510 connection list.
11511
11512 2020-01-10 Pedro Alves <palves@redhat.com>
11513
11514 Revert:
11515 2016-04-12 Pedro Alves <palves@redhat.com>
11516 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11517 Remove references to name.
11518 * serial.h (struct serial) <name>: Delete.
11519
11520 2020-01-10 Pedro Alves <palves@redhat.com>
11521
11522 * gdbarch-selftests.c (register_to_value_test): Remove "target
11523 already pushed" check.
11524
11525 2020-01-10 Pedro Alves <palves@redhat.com>
11526 John Baldwin <jhb@FreeBSD.org>
11527
11528 * aarch64-linux-nat.c
11529 (aarch64_linux_nat_target::thread_architecture): Adjust.
11530 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11531 (task_command_1): Likewise.
11532 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11533 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11534 (aix_thread_target::store_registers)
11535 (aix_thread_target::thread_alive): Adjust.
11536 * amd64-fbsd-tdep.c: Include "inferior.h".
11537 (amd64fbsd_get_thread_local_address): Pass down target.
11538 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11539 thread's gdbarch instead of target_gdbarch.
11540 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11541 get_last_target_status.
11542 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11543 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11544 inferiors.
11545 (update_inserted_breakpoint_locations): Skip if inferiors with no
11546 execution.
11547 (update_global_location_list): When handling moribund locations,
11548 find representative inferior for location's pspace, and use thread
11549 count of its process_stratum target.
11550 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11551 * bsd-uthread.c (bsd_uthread_target::wait): Use
11552 as_process_stratum_target and adjust thread_change_ptid and
11553 add_thread calls.
11554 (bsd_uthread_target::update_thread_list): Use
11555 as_process_stratum_target and adjust find_thread_ptid,
11556 thread_change_ptid and add_thread calls.
11557 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11558 find_thread_ptid call.
11559 * corelow.c (add_to_thread_list): Adjust add_thread call.
11560 (core_target_open): Adjust add_thread_silent and thread_count
11561 calls.
11562 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11563 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11564 * event-top.c (async_disconnect): Pop targets from all inferiors.
11565 * exec.c (add_target_sections): Push exec target on all inferiors
11566 sharing the program space.
11567 (remove_target_sections): Remove the exec target from all
11568 inferiors sharing the program space.
11569 (exec_on_vfork): New.
11570 * exec.h (exec_on_vfork): Declare.
11571 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11572 Pass it down.
11573 (fbsd_nat_target::update_thread_list): Adjust.
11574 (fbsd_nat_target::resume): Adjust.
11575 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11576 down.
11577 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11578 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11579 get_thread_arch_regcache call.
11580 * fork-child.c (gdb_startup_inferior): Pass target down to
11581 startup_inferior and set_executing.
11582 * gdbthread.h (struct process_stratum_target): Forward declare.
11583 (add_thread, add_thread_silent, add_thread_with_info)
11584 (in_thread_list): Add process_stratum_target parameter.
11585 (find_thread_ptid(inferior*, ptid_t)): New overload.
11586 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11587 parameter.
11588 (all_threads()): Delete overload.
11589 (all_threads, all_non_exited_threads): Add process_stratum_target
11590 parameter.
11591 (all_threads_safe): Use brace initialization.
11592 (thread_count): Add process_stratum_target parameter.
11593 (set_resumed, set_running, set_stop_requested, set_executing)
11594 (threads_are_executing, finish_thread_state): Add
11595 process_stratum_target parameter.
11596 (switch_to_thread): Use is_current_thread.
11597 * i386-fbsd-tdep.c: Include "inferior.h".
11598 (i386fbsd_get_thread_local_address): Pass down target.
11599 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11600 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11601 have_inferiors check.
11602 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11603 (inf_ptrace_target::attach): Adjust.
11604 * infcall.c (run_inferior_call): Adjust.
11605 * infcmd.c (run_command_1): Pass target to
11606 scoped_finish_thread_state.
11607 (proceed_thread_callback): Skip inferiors with no execution.
11608 (continue_command): Rename 'all_threads' local to avoid hiding
11609 'all_threads' function. Adjust get_last_target_status call.
11610 (prepare_one_step): Adjust set_running call.
11611 (signal_command): Use user_visible_resume_target. Compare thread
11612 pointers instead of inferior_ptid.
11613 (info_program_command): Adjust to pass down target.
11614 (attach_command): Mark target's 'thread_executing' flag.
11615 (stop_current_target_threads_ns): New, factored out from ...
11616 (interrupt_target_1): ... this. Switch inferior before making
11617 target calls.
11618 * inferior-iter.h
11619 (struct all_inferiors_iterator, struct all_inferiors_range)
11620 (struct all_inferiors_safe_range)
11621 (struct all_non_exited_inferiors_range): Filter on
11622 process_stratum_target too. Remove explicit.
11623 * inferior.c (inferior::inferior): Push dummy target on target
11624 stack.
11625 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11626 Add process_stratum_target parameter, and pass it down.
11627 (have_live_inferiors): Adjust.
11628 (switch_to_inferior_and_push_target): New.
11629 (add_inferior_command, clone_inferior_command): Handle
11630 "-no-connection" parameter. Use
11631 switch_to_inferior_and_push_target.
11632 (_initialize_inferior): Mention "-no-connection" option in
11633 the help of "add-inferior" and "clone-inferior" commands.
11634 * inferior.h: Include "process-stratum-target.h".
11635 (interrupt_target_1): Use bool.
11636 (struct inferior) <push_target, unpush_target, target_is_pushed,
11637 find_target_beneath, top_target, process_target, target_at,
11638 m_stack>: New.
11639 (discard_all_inferiors): Delete.
11640 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11641 (all_inferiors, all_non_exited_inferiors): Add
11642 process_stratum_target parameter.
11643 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11644 (target_last_proc_target): New global.
11645 (follow_fork_inferior): Push target on new inferior. Pass target
11646 to add_thread_silent. Call exec_on_vfork. Handle target's
11647 reference count.
11648 (follow_fork): Adjust get_last_target_status call. Also consider
11649 target.
11650 (follow_exec): Push target on new inferior.
11651 (struct execution_control_state) <target>: New field.
11652 (user_visible_resume_target): New.
11653 (do_target_resume): Call target_async.
11654 (resume_1): Set target's threads_executing flag. Consider resume
11655 target.
11656 (commit_resume_all_targets): New.
11657 (proceed): Also consider resume target. Skip threads of inferiors
11658 with no execution. Commit resumtion in all targets.
11659 (start_remote): Pass current inferior to wait_for_inferior.
11660 (infrun_thread_stop_requested): Consider target as well. Pass
11661 thread_info pointer to clear_inline_frame_state instead of ptid.
11662 (infrun_thread_thread_exit): Consider target as well.
11663 (random_pending_event_thread): New inferior parameter. Use it.
11664 (do_target_wait): Rename to ...
11665 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11666 down.
11667 (threads_are_resumed_pending_p, do_target_wait): New.
11668 (prepare_for_detach): Adjust calls.
11669 (wait_for_inferior): New inferior parameter. Handle it. Use
11670 do_target_wait_1 instead of do_target_wait.
11671 (fetch_inferior_event): Adjust. Switch to representative
11672 inferior. Pass target down.
11673 (set_last_target_status): Add process_stratum_target parameter.
11674 Save target in global.
11675 (get_last_target_status): Add process_stratum_target parameter and
11676 handle it.
11677 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11678 (context_switch): Check inferior_ptid == null_ptid before calling
11679 inferior_thread().
11680 (get_inferior_stop_soon): Pass down target.
11681 (wait_one): Rename to ...
11682 (poll_one_curr_target): ... this.
11683 (struct wait_one_event): New.
11684 (wait_one): New.
11685 (stop_all_threads): Adjust.
11686 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11687 event's target.
11688 (switch_back_to_stepped_thread): Also consider target.
11689 (print_stop_event): Update.
11690 (normal_stop): Update. Also consider the resume target.
11691 * infrun.h (wait_for_inferior): Remove declaration.
11692 (user_visible_resume_target): New declaration.
11693 (get_last_target_status, set_last_target_status): New
11694 process_stratum_target parameter.
11695 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11696 process_stratum_target parameter, and use it.
11697 (clear_inline_frame_state (thread_info*)): New.
11698 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11699 process_stratum_target parameter.
11700 (clear_inline_frame_state (thread_info*)): Declare.
11701 * linux-fork.c (delete_checkpoint_command): Pass target down to
11702 find_thread_ptid.
11703 (checkpoint_command): Adjust.
11704 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11705 instead of just tweaking inferior_ptid.
11706 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11707 (exit_lwp): Pass target down to find_thread_ptid.
11708 (attach_proc_task_lwp_callback): Pass target down to
11709 add_thread/set_running/set_executing.
11710 (linux_nat_target::attach): Pass target down to
11711 thread_change_ptid.
11712 (get_detach_signal): Pass target down to find_thread_ptid.
11713 Consider last target status's target.
11714 (linux_resume_one_lwp_throw, resume_lwp)
11715 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11716 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11717 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11718 (linux_nat_target::async_wait_fd): New.
11719 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11720 target down.
11721 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11722 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11723 * linux-thread-db.c (struct thread_db_info::process_target): New
11724 field.
11725 (add_thread_db_info): Save target.
11726 (get_thread_db_info): New process_stratum_target parameter. Also
11727 match target.
11728 (delete_thread_db_info): New process_stratum_target parameter.
11729 Also match target.
11730 (thread_from_lwp): Adjust to pass down target.
11731 (thread_db_notice_clone): Pass down target.
11732 (check_thread_db_callback): Pass down target.
11733 (try_thread_db_load_1): Always push the thread_db target.
11734 (try_thread_db_load, record_thread): Pass target down.
11735 (thread_db_target::detach): Pass target down. Always unpush the
11736 thread_db target.
11737 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11738 target down. Always unpush the thread_db target.
11739 (find_new_threads_callback, thread_db_find_new_threads_2)
11740 (thread_db_target::update_thread_list): Pass target down.
11741 (thread_db_target::pid_to_str): Pass current inferior down.
11742 (thread_db_target::get_thread_local_address): Pass target down.
11743 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11744 target down.
11745 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11746 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11747 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11748 (procfs_init_inferior): Rename to ...
11749 (procfs_target::procfs_init_inferior): ... this and adjust.
11750 (procfs_target::create_inferior, procfs_notice_thread)
11751 (procfs_do_thread_registers): Adjust.
11752 * ppc-fbsd-tdep.c: Include "inferior.h".
11753 (ppcfbsd_get_thread_local_address): Pass down target.
11754 * proc-service.c (ps_xfer_memory): Switch current inferior and
11755 program space as well.
11756 (get_ps_regcache): Pass target down.
11757 * process-stratum-target.c
11758 (process_stratum_target::thread_address_space)
11759 (process_stratum_target::thread_architecture): Pass target down.
11760 * process-stratum-target.h
11761 (process_stratum_target::threads_executing): New field.
11762 (as_process_stratum_target): New.
11763 * ravenscar-thread.c
11764 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11765 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11766 down.
11767 * record-btrace.c (record_btrace_target::info_record): Adjust.
11768 (record_btrace_target::record_method)
11769 (record_btrace_target::record_is_replaying)
11770 (record_btrace_target::fetch_registers)
11771 (get_thread_current_frame_id, record_btrace_target::resume)
11772 (record_btrace_target::wait, record_btrace_target::stop): Pass
11773 target down.
11774 * record-full.c (record_full_wait_1): Switch to event thread.
11775 Pass target down.
11776 * regcache.c (regcache::regcache)
11777 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11778 process_stratum_target parameter and handle it.
11779 (current_thread_target): New global.
11780 (get_thread_regcache): Add process_stratum_target parameter and
11781 handle it. Switch inferior before calling target method.
11782 (get_thread_regcache): Pass target down.
11783 (get_thread_regcache_for_ptid): Pass target down.
11784 (registers_changed_ptid): Add process_stratum_target parameter and
11785 handle it.
11786 (registers_changed_thread, registers_changed): Pass target down.
11787 (test_get_thread_arch_aspace_regcache): New.
11788 (current_regcache_test): Define a couple local test_target_ops
11789 instances and use them for testing.
11790 (readwrite_regcache): Pass process_stratum_target parameter.
11791 (cooked_read_test, cooked_write_test): Pass mock_target down.
11792 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11793 (get_thread_arch_aspace_regcache): Add process_stratum_target
11794 parameter.
11795 (regcache::target): New method.
11796 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11797 (regcache::registers_changed_ptid): Add process_stratum_target
11798 parameter.
11799 (regcache::m_target): New field.
11800 (registers_changed_ptid): Add process_stratum_target parameter.
11801 * remote.c (remote_state::supports_vCont_probed): New field.
11802 (remote_target::async_wait_fd): New method.
11803 (remote_unpush_and_throw): Add remote_target parameter.
11804 (get_current_remote_target): Adjust.
11805 (remote_target::remote_add_inferior): Push target.
11806 (remote_target::remote_add_thread)
11807 (remote_target::remote_notice_new_inferior)
11808 (get_remote_thread_info): Pass target down.
11809 (remote_target::update_thread_list): Skip threads of inferiors
11810 bound to other targets. (remote_target::close): Don't discard
11811 inferiors. (remote_target::add_current_inferior_and_thread)
11812 (remote_target::process_initial_stop_replies)
11813 (remote_target::start_remote)
11814 (remote_target::remote_serial_quit_handler): Pass down target.
11815 (remote_target::remote_unpush_target): New remote_target
11816 parameter. Unpush the target from all inferiors.
11817 (remote_target::remote_unpush_and_throw): New remote_target
11818 parameter. Pass it down.
11819 (remote_target::open_1): Check whether the current inferior has
11820 execution instead of checking whether any inferior is live. Pass
11821 target down.
11822 (remote_target::remote_detach_1): Pass down target. Use
11823 remote_unpush_target.
11824 (extended_remote_target::attach): Pass down target.
11825 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11826 (remote_target::append_resumption): Pass down target.
11827 (remote_target::append_pending_thread_resumptions)
11828 (remote_target::remote_resume_with_hc, remote_target::resume)
11829 (remote_target::commit_resume): Pass down target.
11830 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11831 (remote_target::interrupt_query)
11832 (remote_target::remove_new_fork_children)
11833 (remote_target::check_pending_events_prevent_wildcard_vcont)
11834 (remote_target::remote_parse_stop_reply)
11835 (remote_target::process_stop_reply): Pass down target.
11836 (first_remote_resumed_thread): New remote_target parameter. Pass
11837 it down.
11838 (remote_target::wait_as): Pass down target.
11839 (unpush_and_perror): New remote_target parameter. Pass it down.
11840 (remote_target::readchar, remote_target::remote_serial_write)
11841 (remote_target::getpkt_or_notif_sane_1)
11842 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11843 down target.
11844 (remote_target::mourn_inferior): Pass down target. Use
11845 remote_unpush_target.
11846 (remote_target::core_of_thread)
11847 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11848 (remote_target::pid_to_exec_file)
11849 (remote_target::thread_handle_to_thread_info): Pass down target.
11850 (remote_target::async_wait_fd): New.
11851 * riscv-fbsd-tdep.c: Include "inferior.h".
11852 (riscv_fbsd_get_thread_local_address): Pass down target.
11853 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11854 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11855 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11856 Adjust.
11857 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11858 * solib-svr4.c (enable_break): Pass down target.
11859 * spu-multiarch.c (parse_spufs_run): Pass down target.
11860 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11861 * target-delegates.c: Regenerate.
11862 * target.c (g_target_stack): Delete.
11863 (current_top_target): Return the current inferior's top target.
11864 (target_has_execution_1): Refer to the passed-in inferior's top
11865 target.
11866 (target_supports_terminal_ours): Check whether the initial
11867 inferior was already created.
11868 (decref_target): New.
11869 (target_stack::push): Incref/decref the target.
11870 (push_target, push_target, unpush_target): Adjust.
11871 (target_stack::unpush): Defref target.
11872 (target_is_pushed): Return bool. Adjust to refer to the current
11873 inferior's target stack.
11874 (dispose_inferior): Delete, and inline parts ...
11875 (target_preopen): ... here. Only dispose of the current inferior.
11876 (target_detach): Hold strong target reference while detaching.
11877 Pass target down.
11878 (target_thread_name): Add assertion.
11879 (target_resume): Pass down target.
11880 (target_ops::beneath, find_target_at): Adjust to refer to the
11881 current inferior's target stack.
11882 (get_dummy_target): New.
11883 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11884 has a thread running.
11885 (initialize_targets): Rename to ...
11886 (_initialize_target): ... this.
11887 * target.h: Include "gdbsupport/refcounted-object.h".
11888 (struct target_ops): Inherit refcounted_object.
11889 (target_ops::shortname, target_ops::longname): Make const.
11890 (target_ops::async_wait_fd): New method.
11891 (decref_target): Declare.
11892 (struct target_ops_ref_policy): New.
11893 (target_ops_ref): New typedef.
11894 (get_dummy_target): Declare function.
11895 (target_is_pushed): Return bool.
11896 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11897 (all_matching_threads_iterator::all_matching_threads_iterator):
11898 Handle filter target.
11899 * thread-iter.h (struct all_matching_threads_iterator, struct
11900 all_matching_threads_range, class all_non_exited_threads_range):
11901 Filter by target too. Remove explicit.
11902 * thread.c (threads_executing): Delete.
11903 (inferior_thread): Pass down current inferior.
11904 (clear_thread_inferior_resources): Pass down thread pointer
11905 instead of ptid_t.
11906 (add_thread_silent, add_thread_with_info, add_thread): Add
11907 process_stratum_target parameter. Use it for thread and inferior
11908 searches.
11909 (is_current_thread): New.
11910 (thread_info::deletable): Use it.
11911 (find_thread_ptid, thread_count, in_thread_list)
11912 (thread_change_ptid, set_resumed, set_running): New
11913 process_stratum_target parameter. Pass it down.
11914 (set_executing): New process_stratum_target parameter. Pass it
11915 down. Adjust reference to 'threads_executing'.
11916 (threads_are_executing): New process_stratum_target parameter.
11917 Adjust reference to 'threads_executing'.
11918 (set_stop_requested, finish_thread_state): New
11919 process_stratum_target parameter. Pass it down.
11920 (switch_to_thread): Also match inferior.
11921 (switch_to_thread): New process_stratum_target parameter. Pass it
11922 down.
11923 (update_threads_executing): Reimplement.
11924 * top.c (quit_force): Pop targets from all inferior.
11925 (gdb_init): Don't call initialize_targets.
11926 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11927 Declare.
11928 (windows_add_thread, windows_delete_thread): Adjust.
11929 (get_windows_debug_event): Rename to ...
11930 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11931 * tracefile-tfile.c (tfile_target_open): Pass down target.
11932 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11933 Forward declare.
11934 (switch_to_thread): Add process_stratum_target parameter.
11935 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11936 parameter. Use it.
11937 (mi_on_resume): Pass target down.
11938 * nat/fork-inferior.c (startup_inferior): Add
11939 process_stratum_target parameter. Pass it down.
11940 * nat/fork-inferior.h (startup_inferior): Add
11941 process_stratum_target parameter.
11942 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11943
11944 2020-01-10 Pedro Alves <palves@redhat.com>
11945
11946 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11947 directly. Instead find the first thread in the thread list and
11948 use switch_to_thread.
11949
11950 2020-01-10 Pedro Alves <palves@redhat.com>
11951
11952 * remote.c (remote_target::remote_add_inferior): Don't bind a
11953 process to the current inferior if the current inferior is already
11954 bound to a process.
11955
11956 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11957 Pedro Alves <palves@redhat.com>
11958
11959 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11960 If no process is specified, return null_ptid instead of
11961 inferior_ptid.
11962 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11963 TARGET_WAITKIND_SIGNALLED with no pid.
11964
11965 2020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * remote.c (first_remote_resumed_thread): New.
11968 (remote_target::wait_as): Use it as default event_ptid instead of
11969 inferior_ptid.
11970
11971 2020-01-10 Pedro Alves <palves@redhat.com>
11972
11973 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11974
11975 2020-01-10 Pedro Alves <palves@redhat.com>
11976
11977 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11978 not -1.
11979
11980 2020-01-10 Pedro Alves <palves@redhat.com>
11981
11982 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11983 ptid to get_last_target_status.
11984 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11985 ptid to get_last_target_status.
11986 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11987 get_last_target_status.
11988 (info_program_command): Don't pass a target_waitstatus to
11989 get_last_target_status.
11990 * infrun.c (init_wait_for_inferior): Use
11991 nullify_last_target_wait_ptid.
11992 (get_last_target_status): Handle nullptr arguments.
11993 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11994 (print_stop_event): Don't pass a ptid to get_last_target_status.
11995 (normal_stop): Don't pass a ptid to get_last_target_status.
11996 * infrun.h (get_last_target_status, set_last_target_status): Move
11997 comments here and update.
11998 (nullify_last_target_wait_ptid): Declare.
11999 * linux-fork.c (fork_load_infrun_state): Remove local extern
12000 declaration of nullify_last_target_wait_ptid.
12001 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12002 to get_last_target_status.
12003
12004 2020-01-10 Pedro Alves <palves@redhat.com>
12005
12006 * gdbthread.h (scoped_restore_current_thread)
12007 <dont_restore, restore, m_dont_restore>: Declare.
12008 * thread.c (thread_alive): Add assertion. Return bool.
12009 (switch_to_thread_if_alive): New.
12010 (prune_threads): Switch inferior/thread.
12011 (print_thread_info_1): Switch thread before calling target methods.
12012 (scoped_restore_current_thread::restore): New, factored out from
12013 ...
12014 (scoped_restore_current_thread::~scoped_restore_current_thread):
12015 ... this.
12016 (scoped_restore_current_thread::scoped_restore_current_thread):
12017 Add assertion.
12018 (thread_apply_all_command, thread_select): Use
12019 switch_to_thread_if_alive.
12020 * infrun.c (proceed, restart_threads, handle_signal_stop)
12021 (switch_back_to_stepped_thread): Switch current thread before
12022 calling target methods.
12023
12024 2020-01-10 Pedro Alves <palves@redhat.com>
12025
12026 * inferior.c (switch_to_inferior_no_thread): New function,
12027 factored out from ...
12028 (inferior_command): ... here.
12029 * inferior.h (switch_to_inferior_no_thread): Declare.
12030 * mi/mi-main.c (run_one_inferior): Use
12031 switch_to_inferior_no_thread.
12032
12033 2020-01-10 Pedro Alves <palves@redhat.com>
12034
12035 * infcmd.c (kill_command): Remove dead code.
12036
12037 2020-01-10 Pedro Alves <palves@redhat.com>
12038
12039 * remote.c (remote_target::mourn_inferior): No longer check
12040 whether the target is running.
12041
12042 2020-01-10 Pedro Alves <palves@redhat.com>
12043
12044 * corelow.c (core_target::has_execution): Change parameter type to
12045 inferior pointer.
12046 * inferior.c (number_of_live_inferiors): Use
12047 inferior::has_execution instead of target_has_execution_1.
12048 * inferior.h (inferior::has_execution): New.
12049 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12050 inferior::has_execution instead of target_has_execution_1.
12051 * process-stratum-target.c
12052 (process_stratum_target::has_execution): Change parameter type to
12053 inferior pointer. Check the inferior's PID instead of
12054 inferior_ptid.
12055 * process-stratum-target.h
12056 (process_stratum_target::has_execution): Change parameter type to
12057 inferior pointer.
12058 * record-full.c (record_full_core_target::has_execution): Change
12059 parameter type to inferior pointer.
12060 * target.c (target_has_execution_1): Change parameter type to
12061 inferior pointer.
12062 (target_has_execution_current): Adjust.
12063 * target.h (target_ops::has_execution): Change parameter type to
12064 inferior pointer.
12065 (target_has_execution_1): Change parameter type to inferior
12066 pointer. Change return type to bool.
12067 * tracefile.h (tracefile_target::has_execution): Change parameter
12068 type to inferior pointer.
12069
12070 2020-01-10 Pedro Alves <palves@redhat.com>
12071
12072 * exceptions.c (print_flush): Remove current_top_target() check.
12073
12074 2020-01-10 Pedro Alves <palves@redhat.com>
12075
12076 * remote.c (show_remote_exec_file): Show the current inferior's
12077 exec-file instead of the command variable's value.
12078
12079 2020-01-10 Pedro Alves <palves@redhat.com>
12080
12081 * record-full.c (record_full_resume_ptid): New global.
12082 (record_full_target::resume): Set it.
12083 (record_full_wait_1): Use record_full_resume_ptid instead of
12084 inferior_ptid.
12085
12086 2020-01-10 Pedro Alves <palves@redhat.com>
12087
12088 * gdbthread.h (scoped_restore_current_thread)
12089 <dont_restore, restore, m_dont_restore>: Declare.
12090 * thread.c (thread_alive): Add assertion. Return bool.
12091 (switch_to_thread_if_alive): New.
12092 (prune_threads): Switch inferior/thread.
12093 (print_thread_info_1): Switch thread before calling target methods.
12094 (scoped_restore_current_thread::restore): New, factored out from
12095 ...
12096 (scoped_restore_current_thread::~scoped_restore_current_thread):
12097 ... this.
12098 (scoped_restore_current_thread::scoped_restore_current_thread):
12099 Add assertion.
12100 (thread_apply_all_command, thread_select): Use
12101 switch_to_thread_if_alive.
12102
12103 2020-01-10 George Barrett <bob@bob131.so>
12104
12105 * stap-probe.c (stap_modify_semaphore): Don't check for null
12106 semaphores.
12107 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12108 for null semaphores.
12109
12110 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12111
12112 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12113 all source windows, and maintain horizontal scroll status while
12114 doing so.
12115
12116 2020-01-09 Tom Tromey <tom@tromey.com>
12117
12118 PR tui/18932:
12119 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12120 update_source_window, not print_source_lines.
12121
12122 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12123
12124 * tui/tui.c (tui_enable): Register tui hooks after calling
12125 tui_display_main.
12126
12127 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12128
12129 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12130
12131 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12132
12133 * thread.c (print_thread_info_1): Fix indentation.
12134
12135 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12136
12137 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12138 unique_xmalloc_ptr outside the if to always free the demangled name.
12139
12140 2020-01-08 Tom Tromey <tromey@adacore.com>
12141
12142 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12143 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12144 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12145 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12146 Remove.
12147 (section_offsets): New typedef.
12148 * symtab.c (fixup_section, get_msymbol_address): Update.
12149 * symmisc.c (dump_msymbols): Update.
12150 * symfile.h (relative_addr_info_to_section_offsets)
12151 (symfile_map_offsets_to_segments): Update.
12152 * symfile.c (build_section_addr_info_from_objfile)
12153 (init_objfile_sect_indices): Update.
12154 (struct place_section_arg): Change type of "offsets".
12155 (place_section): Update.
12156 (relative_addr_info_to_section_offsets): Change type of
12157 "section_offsets". Remove "num_sections" parameter.
12158 (default_symfile_offsets, syms_from_objfile_1)
12159 (set_objfile_default_section_offset): Update.
12160 (reread_symbols): No need to preserve section offsets by hand.
12161 (symfile_map_offsets_to_segments): Change type of "offsets".
12162 * stap-probe.c (relocate_address): Update.
12163 * stabsread.h (process_one_symbol): Update.
12164 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12165 (solib_target_relocate_section_addresses): Update.
12166 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12167 Update.
12168 * solib-frv.c (frv_relocate_main_executable): Update.
12169 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12170 * solib-aix.c (solib_aix_get_section_offsets): Change return
12171 type.
12172 (solib_aix_solib_create_inferior_hook): Update.
12173 * remote.c (remote_target::get_offsets): Update.
12174 * psymtab.c (find_pc_sect_psymtab): Update.
12175 * psympriv.h (struct partial_symbol) <address, text_low,
12176 text_high>: Update.
12177 * objfiles.h (obj_section_offset): Update.
12178 (struct objfile) <section_offsets>: Change type.
12179 <num_sections>: Remove.
12180 (objfile_relocate): Update.
12181 * objfiles.c (entry_point_address_query): Update
12182 (relocate_one_symbol): Change type of "section_offsets".
12183 (objfile_relocate1, objfile_relocate1): Change type of
12184 "new_offsets".
12185 (objfile_rebase1): Update.
12186 * mipsread.c (mipscoff_symfile_read): Update.
12187 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12188 parameter.
12189 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12190 (parse_external, psymtab_to_symtab_1): Update.
12191 * machoread.c (macho_symfile_offsets): Update.
12192 * ia64-tdep.c (ia64_find_unwind_table): Update.
12193 * hppa-tdep.c (read_unwind_info): Update.
12194 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12195 * dwarf2read.c (create_addrmap_from_index)
12196 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12197 (process_psymtab_comp_unit_reader, add_partial_symbol)
12198 (add_partial_subprogram, process_full_comp_unit)
12199 (read_file_scope, read_func_scope, read_lexical_block_scope)
12200 (read_call_site_scope, dwarf2_rnglists_process)
12201 (dwarf2_ranges_process, dwarf2_ranges_read)
12202 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12203 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12204 Update.
12205 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12206 Update.
12207 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12208 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12209 (process_one_symbol): Change type of "section_offsets".
12210 * ctfread.c (get_objfile_text_range): Update.
12211 * coffread.c (coff_symtab_read, enter_linenos)
12212 (process_coff_symbol): Update.
12213 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12214 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12215
12216 2020-01-08 Tom Tromey <tromey@adacore.com>
12217
12218 * dwarf2read.c (parse_macro_definition): Use std::string.
12219 (parse_macro_definition): Likewise.
12220
12221 2020-01-08 Tom Tromey <tromey@adacore.com>
12222
12223 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12224 (ATTR_ALLOC_CHUNK): Remove.
12225
12226 2020-01-08 Tom Tromey <tromey@adacore.com>
12227
12228 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12229
12230 2020-01-08 Tom Tromey <tromey@adacore.com>
12231
12232 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12233 (dwarf2_compute_name, open_dwo_file): Likewise.
12234 (process_enumeration_scope): Use std::vector.
12235 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12236 (partial_die_info::fixup, dwarf2_start_subfile)
12237 (guess_full_die_structure_name, dwarf2_name): Likewise.
12238 (determine_prefix): Update.
12239 (guess_full_die_structure_name): Make return type const.
12240 (partial_die_full_name): Return unique_xmalloc_ptr.
12241 (DW_FIELD_ALLOC_CHUNK): Remove.
12242
12243 2020-01-07 Tom Tromey <tromey@adacore.com>
12244
12245 PR build/24937:
12246 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12247
12248 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12249
12250 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12251
12252 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * stack.c (print_frame_info): Move disassemble_next_line code
12255 inside source_print block.
12256
12257 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12258
12259 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12260 gdb/signals.h, as we are now using native signal symbols.
12261
12262 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12263
12264 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12265 overflow by an early check of content vs threshold.
12266 * tui/tui-source.c (tui_source_window::line_is_displayed):
12267 Likewise.
12268
12269 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12270
12271 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12272
12273 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12274
12275 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12276 export table if no section contains it's RVA.
12277
12278 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12279
12280 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12281
12282 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12283
12284 * source.c (print_source_lines_base): Set last_line_listed.
12285
12286 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12287
12288 * tui/tui-disasm.c: Remove trailing spaces.
12289
12290 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12291 Pedro Alves <palves@redhat.com>
12292
12293 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12294 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12295 (windows_gdb_signal_to_target): New function, uses the above
12296 enumeration to convert GDB internal signal codes to equivalent
12297 Windows codes.
12298 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12299 * windows-nat.c: Include "gdb_wait.h".
12300 (get_windows_debug_event): Extract the fatal exception from the
12301 exit status and convert to the equivalent Posix signal number.
12302 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12303 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12304 * gdbsupport/gdb_wait.c: New file, implements
12305 windows_status_to_termsig.
12306 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12307 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12308
12309 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12310
12311 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12312 show_layout.
12313
12314 2020-01-05 Luis Machado <luis.machado@linaro.org>
12315
12316 * aarch64-linux-nat.c
12317 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12318 and bfd_mach_aarch64.
12319
12320 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12321
12322 * ui-file.c (stdio_file::can_emit_style_escape)
12323 (tee_file::can_emit_style_escape): Ensure style is used also on
12324 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12325 to gdb_stdout.
12326 * main.c (set_gdb_data_directory): Use file style to output the
12327 warning that the given pathname is not a directory.
12328 * top.c (show_history_filename, gdb_safe_append_history)
12329 (show_gdb_datadir): Use file style.
12330
12331 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12332
12333 * solib-target.c (struct lm_info_target):
12334 Change offsets to be a unique_xmalloc_ptr.
12335 (solib_target_relocate_section_addresses): Update.
12336
12337 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12338
12339 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12340
12341 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12342
12343 * MAINTAINERS (Write After Approval): Add myself.
12344
12345 2020-01-02 Luis Machado <luis.machado@linaro.org>
12346
12347 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12348 Cell BE architecture.
12349 * target.h (struct target_ops) <thread_architecture>: Likewise.
12350
12351 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12352
12353 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12354
12355 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12356
12357 * MAINTAINERS (Write After Approval): Add myself.
12358
12359 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12360
12361 * gdbarch.sh: Update copyright year range of generated files.
12362
12363 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12364
12365 Update copyright year range in all GDB files.
12366
12367 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12368
12369 * copyright.py: Convert to Python 3.
12370
12371 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12372
12373 * copyright.py: Adapt after move of gnulib directory from gdb
12374 directory to toplevel directory.
12375
12376 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12377
12378 * copyright.py (main): Exit if run from the wrong directory.
12379
12380 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12381
12382 * top.c (print_gdb_version): Change copyright year to 2020.
12383
12384 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12385
12386 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12387
12388 For older changes see ChangeLog-2019.
12389 \f
12390 Local Variables:
12391 mode: change-log
12392 left-margin: 8
12393 fill-column: 74
12394 version-control: never
12395 coding: utf-8
12396 End:
This page took 0.270136 seconds and 5 git commands to generate.