Fix for Bug 26372 [Modula-2] Parsing of multi-subscript arrays
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2
3 PR m2/26372
4 * m2-exp.y: Rewrite array subscript rules to support multidimension
5 array access. (ArgumentList) replaces non_empty_arglist.
6
7 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * value.h (valprint_check_validity): Move declaration from
10 here...
11 * valprint.h (valprint_check_validity): ... to here.
12
13 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
14
15 * debug.h: New file.
16 * debug.c (debug_prefixed_vprintf): New function.
17 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
18 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
19
20 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
21
22 * infrun.h (infrun_debug_printf_1): New function declaration.
23 (infrun_debug_printf): New macro.
24 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
25 throughout.
26 (infrun_debug_printf): New function.
27 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
28 (handle_jit_event): Likewise.
29
30 2020-08-21 Mark Wielaard <mark@klomp.org>
31
32 * ada-lex.l: Extend register warnings diagnostics comment for g++.
33
34 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
35
36 * frame.c (enum class frame_id_status): New.
37 (struct frame_info) <this_id::p>: Change type to frame_id_status.
38 (fprintf_frame): Update.
39 (compute_frame_id): Set frame id status to "computing" on entry.
40 Set it back to "not_computed" on failure and to "computed" on
41 success.
42 (get_frame_id): Assert the frame id is not being computed.
43 (create_sentinel_frame): Use frame_id_status::COMPUTED.
44 (create_new_frame): Likewise.
45 (frame_cleanup_after_sniffer): Update assert.
46
47 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * regcache.c (pid_ptid_regcache_map): New type.
50 (target_ptid_regcache_map): Remove.
51 (target_pid_ptid_regcache_map): New type.
52 (regcaches): Change type to target_pid_ptid_regcache_map.
53 (get_thread_arch_aspace_regcache): Update.
54 (regcache_thread_ptid_changed): Update, handle pid-like ptid
55 case.
56 (regcaches_size): Update.
57 (regcache_count): Update.
58 (registers_changed_ptid_target_pid_test): New.
59 (_initialize_regcache): Register new test.
60
61 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * regcache.c (regcache_count): New.
64 (struct regcache_test_data): New.
65 (regcache_test_data_up): New.
66 (populate_regcaches_for_test): New.
67 (regcaches_test): Remove.
68 (get_thread_arch_aspace_regcache_test): New.
69 (registers_changed_ptid_all_test): New.
70 (registers_changed_ptid_target_test): New.
71 (registers_changed_ptid_target_ptid_test): New.
72 (regcache_thread_ptid_changed): Remove regcache_count lambda.
73 (_initialize_regcache): Register new tests.
74
75 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
78 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
79 gdbarch and aspace parameter. Use current inferior's aspace.
80 Validate regcache's arch value.
81 (regcaches_test): Update.
82
83 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * regcache.c (regcaches_test): Call registers_changed.
86
87 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
88
89 * infrun.c (process_event_stop_test): Fix typo "breapoint".
90
91 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
92
93 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
94 to find the end of prologue for flang compiled binaries.
95 * arm-tdep.c (arm_skip_prologue): Likewise.
96 * i386-tdep.c (i386_skip_prologue): Likewise.
97 * producer.c (producer_is_llvm): New function.
98 (producer_parsing_tests): Added new tests for clang/flang.
99 * producer.h (producer_is_llvm): New declaration.
100
101 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
102
103 * linux-nat.c (linux_nat_debug_printf): New function.
104 (linux_nat_debug_printf_1): New macro. Use throughout the file.
105
106 2020-08-18 Aaron Merey <amerey@redhat.com>
107
108 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
109 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
110 (CLIBS): Add DEBUGINFOD_LIBS.
111
112 2020-08-17 Sergei Trofimovich <siarheit@google.com>
113
114 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
115 'gdbarch_num_regs'.
116
117 2020-08-17 Tom Tromey <tromey@adacore.com>
118
119 * ada-varobj.c (ada_varobj_decode_var): Handle case where
120 ada_get_decoded_value returns NULL.
121
122 2020-08-17 Tom Tromey <tromey@adacore.com>
123
124 * python/py-inferior.c (infpy_search_memory): Use
125 gdb_py_object_from_ulongest.
126 * python/py-infevents.c (create_inferior_call_event_object)
127 (create_memory_changed_event_object): Use
128 gdb_py_object_from_ulongest.
129 * python/py-linetable.c (ltpy_entry_get_pc): Use
130 gdb_py_object_from_ulongest.
131
132 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * loc.c (class symbol_needs_eval_context): Fix indentation.
135
136 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
139 bool.
140
141 2020-08-17 Tom de Vries <tdevries@suse.de>
142
143 PR gdb/26393
144 * gdbtypes.c (dump_dynamic_prop): New function.
145 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
146
147 2020-08-15 Tom de Vries <tdevries@suse.de>
148
149 PR backtrace/26390
150 * stack.c (print_frame_args): Temporarily set the selected
151 frame to FRAME while printing the frame's arguments.
152
153 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
154
155 PR breakpoints/26385
156 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
157 Always clear watchpoint with PTRACE_SET_DEBUGREG.
158
159 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
160
161 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
162 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
163 and >= to check return value instead of == -1 and != -1.
164
165 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * utils.h (class gdb_argv) <as_array_view>: New method.
168 * utils.c (gdb_argv_as_array_view_test): New.
169 (_initialize_utils): Register selftest.
170 * maint.c (maintenance_selftest): Use the new method.
171
172 2020-08-13 Kamil Rytarowski <n54@gmx.com>
173
174 * target.h (supports_dumpcore, dumpcore): New
175 function declarations.
176 * target.c (supports_dumpcore, dumpcore): New
177 functions.
178 * target-delegates.c: Rebuild.
179 * gcore.c (gcore_command): Use target_supports_dumpcore ()
180 and target_dumpcore ().
181
182 2020-08-13 Aaron Merey <amerey@redhat.com>
183
184 * debuginfod-support.c: Replace global variables with user_data.
185
186 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * maint.c (maintenance_selftest): Split args and pass array_view
189 to run_tests.
190
191 2020-08-12 Luis Machado <luis.machado@linaro.org>
192
193 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
194 type's length.
195 Use %s and pulongest to print the length.
196
197 2020-08-12 Pedro Alves <palves@redhat.com>
198
199 * NEWS: Move "Multi-target debugging support" item to the
200 "Changes since GDB 9" section.
201
202 2020-08-12 Pedro Alves <palves@redhat.com>
203
204 PR gdb/26336
205 * progspace.c (program_space::remove_objfile): Invalidate the
206 frame cache.
207
208 2020-08-11 Tom de Vries <tdevries@suse.de>
209
210 * MAINTAINERS: Mark ms1 as deleted.
211
212 2020-08-10 Luis Machado <luis.machado@linaro.org>
213
214 PR gdb/26310
215
216 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
217 act accordingly.
218 (aarch64_analyze_prologue_test): Add more unit tests to exercise
219 movz/str/stur/stp skipping behavior.
220
221 2020-08-10 Luis Machado <luis.machado@linaro.org>
222
223 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
224 struct user_sve_header instead of struct sve_context.
225
226 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * read.h (dwarf2_fetch_die_loc_sect_off,
229 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
230 `void *` parameter with function_view.
231 * read.c (dwarf2_fetch_die_loc_sect_off,
232 dwarf2_fetch_die_loc_cu_off): Likewise.
233 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
234 (per_cu_dwarf_call): Adjust.
235 (get_frame_address_in_block_wrapper): Remove.
236 (indirect_synthetic_pointer): Adjust.
237 (get_ax_pc): Remove.
238 (dwarf2_compile_expr_to_ax): Adjust.
239
240 2020-08-08 Tom de Vries <tdevries@suse.de>
241
242 PR build/26344
243 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
244 constructor.
245 * regcache.c (get_thread_arch_aspace_regcache): Same.
246
247 2020-08-07 Tom Tromey <tromey@adacore.com>
248
249 * ravenscar-thread.c
250 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
251 New method.
252 (ravenscar_thread_target::wait): Check
253 runtime_initialized.
254 (ravenscar_thread_target::prepare_to_store)
255 (ravenscar_thread_target::stopped_by_sw_breakpoint)
256 (ravenscar_thread_target::stopped_by_hw_breakpoint)
257 (ravenscar_thread_target::stopped_by_watchpoint)
258 (ravenscar_thread_target::stopped_data_address)
259 (ravenscar_thread_target::core_of_thread): Use
260 scoped_restore_current_thread and
261 set_base_thread_from_ravenscar_task.
262
263 2020-08-07 Tom Tromey <tromey@adacore.com>
264
265 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
266
267 2020-08-07 Tom Tromey <tromey@adacore.com>
268
269 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
270 update_inferior_ptid before update_thread_list.
271 (temporarily_change_regcache_ptid): New class.
272 (ravenscar_thread_target::fetch_registers)
273 (ravenscar_thread_target::store_registers)
274 (ravenscar_thread_target::prepare_to_store): Use base thread when
275 forwarding operation.
276
277 2020-08-07 Tom Tromey <tromey@adacore.com>
278
279 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
280 "is_pid" case.
281
282 2020-08-07 Tom Tromey <tromey@adacore.com>
283
284 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
285 New methods.
286 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
287 first.
288 (ravenscar_thread_target::add_thread): Rename from
289 ravenscar_add_thread.
290 (ravenscar_thread_target::update_thread_list): Use a lambda.
291 (ravenscar_thread_target::xfer_partial): New method.
292
293 2020-08-07 Tom Tromey <tromey@adacore.com>
294
295 * ada-lang.h (ada_task_list_iterator_ftype): Now a
296 gdb::function_view.
297 (iterate_over_live_ada_tasks): Change type of argument.
298 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
299 of argument.
300
301 2020-08-07 Tom Tromey <tromey@adacore.com>
302
303 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
304 Remove.
305 (ravenscar_thread_target::extra_thread_info): Remove.
306 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
307 defer to target beneath for non-Ravenscar threads.
308
309 2020-08-07 Tom Tromey <tromey@adacore.com>
310
311 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
312 get_base_thread_from_ravenscar_task>: Now methods.
313 <m_cpu_map>: New member.
314 (ravenscar_thread_target::get_thread_base_cpu): Rename from
315 ravenscar_get_thread_base_cpu. Check m_cpu_map.
316 (ravenscar_thread_target::task_is_currently_active): Update.
317 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
318 Now a method.
319 (ravenscar_thread_target::add_active_thread): Put initial thread
320 into the m_cpu_map.
321
322 2020-08-07 Tom Tromey <tromey@adacore.com>
323
324 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
325 event_ptid.
326
327 2020-08-07 Tom Tromey <tromey@adacore.com>
328
329 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
330 runtime_initialized.
331
332 2020-08-07 Tom Tromey <tromey@adacore.com>
333
334 * ravenscar-thread.c (ravenscar_thread_target): Don't call
335 add_active_thread.
336 (ravenscar_thread_target::add_active_thread): Now public.
337 (ravenscar_inferior_created): Call add_active_thread after pushing
338 the target.
339
340 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * regcache.c (ptid_regcache_map): New type.
343 (target_ptid_regcache_map): New type.
344 (regcaches): Change type to target_ptid_regcache_map.
345 (get_thread_arch_aspace_regcache): Update to regcaches' new
346 type.
347 (regcache_thread_ptid_changed): Likewise.
348 (registers_changed_ptid): Likewise.
349 (regcaches_size): Likewise.
350 (regcaches_test): Update.
351 (regcache_thread_ptid_changed): Update.
352 * regcache.h (regcache_up): New type.
353 * gdbsupport/ptid.h (hash_ptid): New struct.
354
355 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
356
357 * observable.h (thread_ptid_changed): Add parameter
358 `process_stratum_target *`.
359 * infrun.c (infrun_thread_ptid_changed): Add parameter
360 `process_stratum_target *` and use it.
361 (selftests): New namespace.
362 (infrun_thread_ptid_changed): New function.
363 (_initialize_infrun): Register selftest.
364 * regcache.c (regcache_thread_ptid_changed): Add parameter
365 `process_stratum_target *` and use it.
366 (regcache_thread_ptid_changed): New function.
367 (_initialize_regcache): Register selftest.
368 * thread.c (thread_change_ptid): Pass target to
369 thread_ptid_changed observable.
370
371 2020-08-06 Caroline Tice <cmtice@google.com>
372
373 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
374 (struct dwp_sections): Update field comments. Add loclists and
375 rnglists fields.
376 (struct virtual_v2_dwo_sections): Rename struct to
377 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
378 size & offset fields for loclists and rnglists.
379 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
380 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
381 skipping dummy type units.
382 (create_dwp_hash_table): Update the large comment above the function to
383 discuss Version 5 DWP files as well, with references. Update all the
384 version checks in the function to check for version 5 as well. Add new
385 section at the end to create dwp hash table for version 5.
386 (create_dwp_v2_section): Rename function to
387 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
388 Add V5 to error message text.
389 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
390 into calls to create_dwp_v2_or_v5_section.
391 (create_dwo_unit_in_dwp_v5): New function.
392 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
393 check for version2; add else clause to handle version 5.
394 (open_and_init_dwo_file): Add code to check dwarf version & only call
395 create_debug_types_hash_table (with sections.types) if version is not 5;
396 else call create_debug_type_hash_table, with sections.info.
397 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
398 version 5.
399 (dwarf2_locate_v5_dwp_sections): New function.
400 (open_and_init_dwp_file): Add else-if clause for version 5 to call
401 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
402
403 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
404
405 * regcache.h (class regcache): Remove friend
406 registers_changed_ptid.
407 <regcache_thread_ptid_changed>: Remove.
408 <regcaches>: Remove.
409 * regcache.c (regcache::regcaches): Rename to...
410 (regcaches): ... this. Make static.
411 (get_thread_arch_aspace_regcache): Update.
412 (regcache::regcache_thread_ptid_changed): Rename to...
413 (regcache_thread_ptid_changed): ... this. Update.
414 (class regcache_access): Remove.
415 (regcaches_test): Update.
416 (_initialize_regcache): Update.
417 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
418 <forward_list>.
419
420 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
421
422 * regcache.h (class regcache) <current_regcache>: Rename to...
423 <regcaches>: ... this. Move doc here.
424 * regcache.c (regcache::current_regcache) Rename to...
425 (regcache::regcaches): ... this. Move doc to header.
426 (get_thread_arch_aspace_regcache): Update.
427 (regcache::regcache_thread_ptid_changed): Update.
428 (registers_changed_ptid): Update.
429 (class regcache_access) <current_regcache_size>: Rename to...
430 <regcaches_size>: ... this.
431 (current_regcache_test): Rename to...
432 (regcaches_test): ... this.
433 (_initialize_regcache): Update.
434
435 2020-08-06 Victor Collod <vcollod@nvidia.com>
436
437 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
438
439 2020-08-05 Kevin Buettner <kevinb@redhat.com>
440
441 * corelow.c (core_target::build_file_mappings): Don't output
442 null pathname in warning.
443
444 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
447 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
448 gdb.dwarf2/dw2-single-line-discriminators.exp,
449 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
450
451 2020-08-05 Tom Tromey <tromey@adacore.com>
452
453 PR rust/26197:
454 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
455 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
456 Fix off-by-one and type size errors in ordinary case.
457
458 2020-08-05 Tom de Vries <tdevries@suse.de>
459
460 * gdbtypes.c (type_not_allocated, type_not_associated): Use
461 "prop->const_val () == 0" instead of "prop->const_val () != 0".
462
463 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
464
465 * frame.h (frame_id_p): Return bool.
466 (frame_id_artificial_p): Return bool.
467 (frame_id_eq): Return bool.
468 (has_stack_frames): Return bool.
469 (get_selected_frame): Fix typo in comment.
470 (get_frame_pc_if_available): Return bool.
471 (get_frame_address_in_block_if_available): Return bool.
472 (get_frame_func_if_available): Return bool.
473 (read_frame_register_unsigned): Return bool.
474 (get_frame_register_bytes): Return bool.
475 (safe_frame_unwind_memory): Return bool.
476 (deprecated_frame_register_read): Return bool.
477 (frame_unwinder_is): Return bool.
478 * frame.c (struct frame_info) <prev_arch::p>: Change type to
479 bool.
480 <this_id::p>: Likewise.
481 <prev_p>: Likewise.
482 (frame_stash_add): Return bool.
483 (get_frame_id): Use bool.
484 (frame_id_build_special) Use bool.
485 (frame_id_build_unavailable_stack): Use bool.
486 (frame_id_build): Use bool.
487 (frame_id_p): Return bool, use true/false instead of 1/0.
488 (frame_id_artificial_p): Likewise.
489 (frame_id_eq): Likewise.
490 (frame_id_inner): Likewise.
491 (get_frame_func_if_available): Likewise.
492 (read_frame_register_unsigned): Likewise.
493 (deprecated_frame_register_read): Likewise.
494 (get_frame_register_bytes): Likewise.
495 (has_stack_frames): Likewise.
496 (inside_main_func): Likewise.
497 (inside_entry_func): Likewise.
498 (get_frame_pc_if_available): Likewise.
499 (get_frame_address_in_block_if_available): Likewise.
500 (frame_unwinder_is): Likewise.
501 (safe_frame_unwind_memory): Likewise.
502 (frame_unwind_arch): Likewise.
503
504 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
505
506 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
507 type to cached_copy_status.
508 (fprintf_frame): Adjust.
509 (get_frame_func_if_available): Adjust.
510 (frame_cleanup_after_sniffer): Adjust.
511
512 2020-08-04 Mark Wielaard <mark@klomp.org>
513
514 * MAINTAINERS (Write After Approval): Update email address.
515
516 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
519 dynamic_prop::const_val.
520
521 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
524 dynamic_prop::kind.
525
526 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
529
530 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
531
532 * configure.tgt: Set gdb_sim for bpf-*-* targets.
533
534 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
535 Jose E. Marchesi <jose.marchesi@oracle.com>
536
537 * configure.tgt: Add entry for bpf-*-*.
538 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
539 (ALLDEPFILES): Add bpf-tdep.c.
540 * bpf-tdep.c: New file.
541 * MAINTAINERS: Add bpf target and maintainer.
542 * NEWS: Mention the support for the new target.
543
544 2020-08-04 Tom de Vries <tdevries@suse.de>
545
546 PR symtab/23270
547 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
548 Error.
549
550 2020-08-03 John Baldwin <jhb@FreeBSD.org>
551
552 * syscalls/freebsd.xml: Regenerate.
553
554 2020-08-03 John Baldwin <jhb@FreeBSD.org>
555
556 * syscalls/update-freebsd.sh: Fix usage and year range.
557
558 2020-08-03 Tom de Vries <tdevries@suse.de>
559
560 PR symtab/26333
561 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
562 DW_LNE_lo_user/DW_LNE_hi_user range.
563
564 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
565
566 PR ada/26318
567 * ada-lang.c (ada_modulus): Return 0 if property is not of const
568 kind.
569
570 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571
572 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
573
574 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
575
576 * breakpoint.c (set_breakpoint_condition): Update the condition
577 expressions after checking that the input condition string parses
578 successfully and does not contain junk at the end.
579
580 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581
582 * breakpoint.c (set_breakpoint_condition): Update the
583 condition string after parsing the new condition successfully.
584
585 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586
587 * proc-api.c (_STRUCTURED_PROC): Don't define.
588 * proc-events.c: Likewise.
589 * proc-flags.c: Likewise.
590 * proc-why.c: Likewise.
591 * procfs.c: Likewise.
592
593 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
594 * configure, config.in: Regenerate.
595
596 2020-07-30 Tom de Vries <tdevries@suse.de>
597
598 PR build/26320
599 * ui-style.h (struct ui_file_style::color): Wrap m_value and
600 m_red/m_green/m_blue in a union.
601
602 2020-07-29 Tom de Vries <tdevries@suse.de>
603
604 PR tdep/26280
605 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
606
607 2020-07-28 Tom Tromey <tromey@adacore.com>
608
609 PR symtab/26270:
610 * symtab.h (find_pc_partial_function_sym): Declare.
611 * cli/cli-cmds.c (disassemble_command): Use
612 find_pc_partial_function_sym. Check asm_demangle.
613 * blockframe.c (cache_pc_function_sym): New global.
614 (cache_pc_function_name): Remove.
615 (clear_pc_function_cache): Update.
616 (find_pc_partial_function_sym): New function, from
617 find_pc_partial_function.
618 (find_pc_partial_function): Rewrite using
619 find_pc_partial_function_sym.
620
621 2020-07-28 Tom Tromey <tromey@adacore.com>
622
623 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
624 help. Add usage.
625
626 2020-07-28 Tom Tromey <tromey@adacore.com>
627
628 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
629 <DW_OP_GNU_variable_value>: Cast to address type.
630
631 2020-07-28 Kamil Rytarowski <n54@gmx.com>
632
633 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
634 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
635 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
636 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
637 (nbsd_get_siginfo_type): New.
638 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
639 (_initialize_nbsd_tdep): New.
640
641 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
642
643 PR binutils/26301
644 * configure: Regenerated.
645
646 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
647
648 PR binutils/26301
649 * configure: Regenerated.
650
651 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * python/py-frame.c: Remove 'user-regs.h' include.
654 (frapy_read_register): Rewrite to make use of
655 gdbpy_parse_register_id.
656 * python/py-registers.c (gdbpy_parse_register_id): New function,
657 moved here from python/py-unwind.c. Updated the return type, and
658 also accepts register descriptor objects.
659 * python/py-unwind.c: Remove 'user-regs.h' include.
660 (pyuw_parse_register_id): Moved to python/py-registers.c.
661 (unwind_infopy_add_saved_register): Update to use
662 gdbpy_parse_register_id.
663 (pending_framepy_read_register): Likewise.
664 * python/python-internal.h (gdbpy_parse_register_id): Declare.
665
666 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * python/py-registers.c: Add 'user-regs.h' include.
669 (register_descriptor_iter_find): New function.
670 (register_descriptor_iterator_object_methods): New static global
671 methods array.
672 (register_descriptor_iterator_object_type): Add pointer to methods
673 array.
674
675 2020-07-27 John Baldwin <jhb@FreeBSD.org>
676
677 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
678 for all architectures on FreeBSD 11.3 and later.
679
680 2020-07-27 Tom Tromey <tromey@adacore.com>
681
682 * gcore.h (load_corefile): Don't declare.
683
684 2020-07-27 Tom de Vries <tdevries@suse.de>
685
686 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
687 * config.in: Regenerate.
688 * configure: Regenerate.
689
690 2020-07-26 Eli Zaretskii <eliz@gnu.org>
691
692 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
693 ws2tcpip.h. When checking whether socklen_t type is defined, use
694 ws2tcpip.h if it is available and sys/socket.h isn't.
695 * configure: Regenerate.
696 * config.in: Regenerate.
697
698 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 PR fortran/23051
701 PR fortran/26139
702 * valops.c (value_ind): Pass address to
703 readjust_indirect_value_type.
704 * value.c (readjust_indirect_value_type): Make parameter
705 non-const, and add extra address parameter. Resolve original type
706 before using it.
707 * value.h (readjust_indirect_value_type): Update function
708 signature and comment.
709
710 2020-07-25 Tom de Vries <tdevries@suse.de>
711
712 PR symtab/26243
713 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
714 entries.
715
716 2020-07-24 Aaron Merey <amerey@redhat.com>
717
718 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
719 * configure: Rebuild.
720
721 2020-07-23 Kevin Buettner <kevinb@redhat.com>
722
723 PR corefiles/26294
724 * corelow.c (_initialize_corelow): Add period to help text
725 for "maintenance print core-file-backed-mappings".
726
727 2020-07-23 Pedro Alves <pedro@palves.net>
728
729 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
730 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
731 meanwhile.
732 * frame.c (frame_cache_generation, get_frame_cache_generation):
733 New.
734 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
735 (get_prev_frame_if_no_cycle): On exception, don't touch
736 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
737 * frame.h (get_frame_cache_generation): Declare.
738
739 2020-07-23 Tom de Vries <tdevries@suse.de>
740
741 PR tui/26282
742 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
743 New default constructor.
744
745 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
748 exclude non-statement entries.
749
750 2020-07-22 Kevin Buettner <kevinb@redhat.com>
751
752 * NEWS (New commands): Mention new command
753 "maintenance print core-file-backed-mappings".
754
755 2020-07-22 Kevin Buettner <kevinb@redhat.com>
756
757 * corelow.c (gdbcmd.h): Include.
758 (core_target::info_proc_mappings): New method.
759 (get_current_core_target): New function.
760 (maintenance_print_core_file_backed_mappings): New function.
761 (_initialize_corelow): Add core-file-backed-mappings to
762 "maint print" commands.
763
764 2020-07-22 Kevin Buettner <kevinb@redhat.com>
765
766 * linux-tdep.c (dump_note_entry_p): New function.
767 (linux_dump_mapping_p_ftype): New typedef.
768 (linux_find_memory_regions_full): Add new parameter,
769 should_dump_mapping_p.
770 (linux_find_memory_regions): Adjust call to
771 linux_find_memory_regions_full.
772 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
773 call to linux_find_memory_regions_full.
774
775 2020-07-22 Kevin Buettner <kevinb@redhat.com>
776
777 * corelow.c (solist.h, unordered_map): Include.
778 (class core_target): Add field m_core_file_mappings and
779 method build_file_mappings.
780 (core_target::core_target): Call build_file_mappings.
781 (core_target::~core_target): Free memory associated with
782 m_core_file_mappings.
783 (core_target::build_file_mappings): New method.
784 (core_target::xfer_partial): Use m_core_file_mappings
785 for memory transfers.
786 * linux-tdep.c (linux_read_core_file_mappings): New
787 function.
788 (linux_core_info_proc_mappings): Rewrite to use
789 linux_read_core_file_mappings.
790 (linux_init_abi): Register linux_read_core_file_mappings.
791
792 2020-07-22 Kevin Buettner <kevinb@redhat.com>
793
794 * arch-utils.c (default_read_core_file_mappings): New function.
795 * arch-utils.c (default_read_core_file_mappings): Declare.
796 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
797 * gdbarch.h, gdbarch.c: Regenerate.
798
799 2020-07-22 Kevin Buettner <kevinb@redhat.com>
800
801 PR corefiles/25631
802 * corelow.c (core_target:xfer_partial): Revise
803 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
804 case after first checking the stratum beneath the core
805 target.
806 (has_all_memory): Return true.
807 * target.c (raw_memory_xfer_partial): Revise comment
808 regarding use of has_all_memory.
809
810 2020-07-22 Kevin Buettner <kevinb@redhat.com>
811
812 * exec.h (section_table_xfer_memory): Revise declaration,
813 replacing section name parameter with an optional callback
814 predicate.
815 * exec.c (section_table_xfer_memory): Likewise.
816 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
817 of section_table_xfer_memory.
818
819 2020-07-22 Tom Tromey <tromey@adacore.com>
820
821 * mi/mi-cmd-stack.c (list_args_or_locals): Use
822 lookup_symbol_search_name.
823
824 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * python/py-registers.c (gdbpy_register_object_data_init): Remove
827 redundant local variable.
828 (gdbpy_get_register_descriptor): Extract descriptor vector as a
829 reference, not pointer, update code accordingly.
830
831 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
832 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
833
834 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
835 * jit.c (jit_breakpoint_re_set_internal): Use the
836 `skip_jit_symbol_lookup` field.
837
838 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
839 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840
841 * jit.c (jit_read_descriptor): Define the descriptor address once,
842 use twice.
843 (jit_breakpoint_deleted): Move the declaration of the loop variable
844 `iter` into the loop header.
845 (jit_breakpoint_re_set_internal): Move the declaration of the local
846 variable `objf_data` to the first point of definition.
847 (jit_event_handler): Move the declaration of local variables
848 `code_entry`, `entry_addr`, and `objf` to their first point of use.
849 Rename `objf` to `jited`.
850
851 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
854 Remove.
855 * jit.c (get_jiter_objfile_data): Update.
856
857 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
858 Simon Marchi <simon.marchi@polymtl.ca>
859
860 * jit.c (struct jit_program_space_data): Remove.
861 (jit_program_space_key): Remove.
862 (jiter_objfile_data::~jiter_objfile_data): Remove program space
863 stuff.
864 (get_jit_program_space_data): Remove.
865 (jit_breakpoint_deleted): Iterate on all of the program space's
866 objfiles.
867 (jit_inferior_init): Likewise.
868 (jit_breakpoint_re_set_internal): Likewise. Also change return
869 type to void.
870 (jit_breakpoint_re_set): Pass current_program_space to
871 jit_breakpoint_re_set_internal.
872
873 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * jit.h (struct jiter_objfile_data) <cached_code_address,
876 jit_breakpoint>: Move to here from ...
877 * jit.c (jit_program_space_data): ... here.
878 (jiter_objfile_data::~jiter_objfile_data): Update.
879 (jit_breakpoint_deleted): Update.
880 (jit_breakpoint_re_set_internal): Update.
881
882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
885 checks.
886 (jit_read_descriptor): Remove NULL check.
887 (jit_event_handler): Add an assertion.
888
889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
890
891 * jit.h (struct jit_objfile_data): Split into...
892 (struct jiter_objfile_data): ... this ...
893 (struct jited_objfile_data): ... and this.
894 * objfiles.h (struct objfile) <jit_data>: Remove.
895 <jiter_data, jited_data>: New fields.
896 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
897 (jiter_objfile_data::~jiter_objfile_data): ... this.
898 (get_jit_objfile_data): Rename to ...
899 (get_jiter_objfile_data): ... this.
900 (add_objfile_entry): Update.
901 (jit_read_descriptor): Use get_jiter_objfile_data.
902 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
903 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
904 (jit_inferior_exit_hook): Use objfile's jited_data field.
905
906 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * jit.h: Forward-declare `struct minimal_symbol`.
909 (struct jit_objfile_data): Migrate to here from jit.c; also add a
910 constructor, destructor, and an objfile* field.
911 * jit.c (jit_objfile_data): Remove.
912 (struct jit_objfile_data): Migrate from here to jit.h.
913 (jit_objfile_data::~jit_objfile_data): New destructor
914 implementation with code moved from free_objfile_data.
915 (free_objfile_data): Delete.
916 (get_jit_objfile_data): Update to use the jit_data field of objfile.
917 (jit_find_objf_with_entry_addr): Ditto.
918 (jit_inferior_exit_hook): Ditto.
919 (_initialize_jit): Remove the call to
920 register_objfile_data_with_cleanup.
921 * objfiles.h (struct objfile) <jit_data>: New field.
922
923 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 * jit.h: Forward-declare `struct objfile`.
926 (jit_event_handler): Add a second parameter, the JITer objfile.
927 * jit.c (jit_read_descriptor): Change the signature to take the
928 JITer objfile as an argument instead of the jit_program_space_data.
929 (jit_inferior_init): Update the call to jit_read_descriptor.
930 (jit_event_handler): Use the new JITer objfile argument when calling
931 jit_read_descriptor.
932 * breakpoint.c (handle_jit_event): Update the call to
933 jit_event_handler to pass the JITer objfile.
934
935 2020-07-21 John Baldwin <jhb@FreeBSD.org>
936
937 * gdbarch.c: Regenerate.
938 * gdbarch.h: Regenerate.
939 * gdbarch.sh (handle_segmentation_fault): Remove method.
940 * infrun.c (handle_segmentation_fault): Remove.
941 (print_signal_received_reason): Remove call to
942 handle_segmentation_fault.
943
944 2020-07-21 John Baldwin <jhb@FreeBSD.org>
945
946 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
947 Rename to sparc64_linux_report_signal_info and add siggnal
948 argument.
949 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
950 instead of sparc64_linux_handle_segmentation_fault.
951
952 2020-07-21 John Baldwin <jhb@FreeBSD.org>
953
954 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
955 i386_linux_report_signal_info instead of
956 i386_linux_handle_segmentation_fault.
957 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
958 to i386_linux_report_signal_info and add siggnal argument.
959 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
960 of i386_linux_handle_segmentation_fault.
961 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
962 to i386_linux_report_signal_info and add siggnal argument.
963
964 2020-07-21 John Baldwin <jhb@FreeBSD.org>
965
966 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
967 hook if present.
968
969 2020-07-21 John Baldwin <jhb@FreeBSD.org>
970
971 * gdbarch.c: Regenerate.
972 * gdbarch.h: Regenerate.
973 * gdbarch.sh (report_signal_info): New method.
974 * infrun.c (print_signal_received_reason): Invoke gdbarch
975 report_signal_info hook if present.
976
977 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * python/py-registers.c : Add 'unordered_map' include.
980 (gdbpy_new_reggroup): Renamed to...
981 (gdbpy_get_reggroup): ...this. Update to only create register
982 group descriptors when needed.
983 (gdbpy_reggroup_iter_next): Update.
984
985 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * python/py-registers.c (gdbpy_register_object_data): New static
988 global.
989 (gdbpy_register_object_data_init): New function.
990 (gdbpy_new_register_descriptor): Renamed to...
991 (gdbpy_get_register_descriptor): ...this, and update to reuse
992 existing register descriptors where possible.
993 (gdbpy_register_descriptor_iter_next): Update.
994 (gdbpy_initialize_registers): Register new gdbarch data.
995
996 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
997
998 * linux-nat.c (stopped_pids): Make static.
999
1000 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 PR ada/26235
1003 * gdbtypes.c (ada_discrete_type_low_bound,
1004 ada_discrete_type_high_bound): Handle undefined bounds.
1005
1006 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1007
1008 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1009 declaration.
1010 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1011 function.
1012
1013 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1014
1015 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1016 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1017 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1018 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1019 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1020 method.
1021
1022 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1023
1024 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1025 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1026 which are deprecated in Guile 3.0.
1027 * configure.ac (try_guile_versions): Add "guile-3.0".
1028 * configure (try_guile_versions): Regenerate.
1029 * NEWS: Update entry.
1030
1031 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1032 Doug Evans <dje@google.com>
1033
1034 PR gdb/21104
1035 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1036 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1037 USING_GUILE_BEFORE_2_2.
1038 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1039 Change type to 'scm_t_port_type *'.
1040 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1041 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1042 parameter and honor it. Update callers.
1043 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1044 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1045 functions.
1046 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1047 USING_GUILE_BEFORE_2_2.
1048 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1049 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1050 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1051 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1052 and 'SCM_PORT_TYPE'.
1053 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1054 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1055 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1056 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1057 [!USING_GUILE_BEFORE_2_2]: New functions.
1058 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1059 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1060 'gdbscm_memory_port_read'.
1061 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1062 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1063 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1064 function.
1065 (ioscm_init_memory_port): Remove.
1066 (ioscm_init_memory_port_stream): New function
1067 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1068 function.
1069 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1070 Return scm_from_uint (0).
1071 (gdbscm_set_memory_port_read_buffer_size_x)
1072 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1073 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1074 Return scm_from_uint (0).
1075 (gdbscm_set_memory_port_write_buffer_size_x)
1076 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1077 * configure.ac (try_guile_versions): Add "guile-2.2".
1078 * configure: Regenerate.
1079 * NEWS: Add entry.
1080
1081 2020-07-18 Tom Tromey <tom@tromey.com>
1082
1083 * linux-nat.c (linux_multi_process): Remove.
1084 (linux_nat_target::supports_multi_process): Return true.
1085
1086 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1089 (riscv_lookup_target_description): Return pointer out of
1090 unique_ptr.
1091 * target-descriptions.c (allocate_target_description): Add
1092 comment.
1093 (target_desc_deleter::operator()): Likewise.
1094 * target-descriptions.h (struct target_desc_deleter): Moved to
1095 gdbsupport/tdesc.h.
1096 (target_desc_up): Likewise.
1097
1098 2020-07-17 Tom Tromey <tromey@adacore.com>
1099
1100 * linux-nat.c (linux_nat_target::supports_non_stop)
1101 (linux_nat_target::always_non_stop_p): Use "true".
1102 (linux_nat_target::supports_disable_randomization): Use "true" and
1103 "false".
1104
1105 2020-07-16 Caroline Tice <cmtice@google.com>
1106
1107 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1108 (RNGLIST_HEADER_SIZE64): New constant definition.
1109 (struct dwop_section_names): Add rnglists_dwo.
1110 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1111 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1112 (struct dwo_sections): Add rnglists field.
1113 (read_attribut_reprocess): Add tag parameter.
1114 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1115 (cu_debug_rnglists_section): New function (decl & definition).
1116 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1117 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1118 die whose range is being checked; get rnglist section from
1119 cu_debug_rnglists_section, to get from either objfile or dwo file as
1120 appropriate. Add cases for DW_RLE_base_addressx,
1121 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1122 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1123 test inside if-condition and updating complaint message.
1124 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1125 dwarf2_rnglists_process.
1126 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1127 dwarf2_ranges_process.
1128 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1129 need_ranges_base and update comment appropriately. Also pass die tag
1130 to dwarf2_ranges_read.
1131 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1132 need_ranges_base and update comment appropriately. Also pass die tag
1133 to dwarf2_ranges_process.
1134 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1135 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1136 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1137 need_ranges_base and update comment appropriately. Also pass die tag
1138 to read_attribute_reprocess and dwarf2_ranges_read.
1139 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1140 and update function comment appropriately.
1141 (read_loclist_index): Call read_loclists_rnglists_header instead of
1142 read_loclist_header.
1143 (read_rnglist_index): New function.
1144 (read_attribute_reprocess): Add tag parameter. Add code for
1145 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1146 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1147
1148 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1151 being resolved.
1152
1153 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * arch-utils.c (show_architecture): Update formatting of messages.
1156
1157 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * gdbtypes.h (struct type) <bounds>: Handle array and string
1160 types.
1161 * ada-lang.c (assign_aggregate): Use type::bounds on
1162 array/string type.
1163 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1164 * c-varobj.c (c_number_of_children): Likewise.
1165 (c_describe_child): Likewise.
1166 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1167 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1168 (f_type_print_base): Likewise.
1169 * f-valprint.c (f77_array_offset_tbl): Likewise.
1170 (f77_get_upperbound): Likewise.
1171 (f77_print_array_1): Likewise.
1172 * guile/scm-type.c (gdbscm_type_range): Likewise.
1173 * m2-typeprint.c (m2_array): Likewise.
1174 (m2_is_long_set_of_type): Likewise.
1175 * m2-valprint.c (get_long_set_bounds): Likewise.
1176 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1177 * python/py-type.c (typy_range): Likewise.
1178 * rust-lang.c (rust_internal_print_type): Likewise.
1179 * type-stack.c (type_stack::follow_types): Likewise.
1180 * valarith.c (value_subscripted_rvalue): Likewise.
1181 * valops.c (value_cast): Likewise.
1182
1183 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1186 callers to use the equivalent accessor methods.
1187
1188 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1191 (struct type) <bit_stride>: New method.
1192 (TYPE_BIT_STRIDE): Remove.
1193 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1194
1195 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1198 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1199 callers to use the equivalent accessor methods instead.
1200
1201 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1202
1203 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1204 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1205 callers to use the equivalent accessor methods instead.
1206
1207 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1208
1209 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1210 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1211 to use dynamic_prop::kind.
1212
1213 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1216 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1217 to get the bound property's kind and check against
1218 PROP_UNDEFINED.
1219
1220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1223 all callers to use type::range_bounds followed by
1224 dynamic_prop::{low,high}.
1225
1226 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1229 const_val, set_const_val, baton, set_locexpr, set_loclist,
1230 set_addr_offset, variant_parts, set_variant_parts,
1231 original_type, set_original_type>: New methods.
1232 <kind>: Rename to...
1233 <m_kind>: ... this. Update all users to use the new methods
1234 instead.
1235 <data>: Rename to...
1236 <m_data>: ... this. Update all users to use the new methods
1237 instead.
1238
1239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.c (get_discrete_bounds): Return failure if
1242 the range type's bounds are not both defined and constant
1243 values.
1244 (get_array_bounds): Update comment. Remove undefined bound check.
1245
1246 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1249 the type::bounds method directly.
1250
1251 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1252
1253 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1254 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1255 are used to set the range type's bounds to use set_bounds.
1256
1257 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1258
1259 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1260
1261 2020-07-10 Pedro Alves <pedro@palves.net>
1262
1263 * gdbthread.h (inferior_ref): Define.
1264 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1265 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1266 * thread.c
1267 (scoped_restore_current_thread::restore):
1268 Adjust to gdb::ref_ptr.
1269 (scoped_restore_current_thread::~scoped_restore_current_thread):
1270 Remove manual decref handling.
1271 (scoped_restore_current_thread::scoped_restore_current_thread):
1272 Adjust to use
1273 inferior_ref::new_reference/thread_info_ref::new_reference.
1274 Incref the thread before calling get_frame_id instead of after.
1275 Let TARGET_CLOSE_ERROR propagate.
1276
1277 2020-07-10 Pedro Alves <pedro@palves.net>
1278
1279 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1280 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1281 NOT_AVAILABLE_ERROR.
1282 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1283 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1284
1285 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1286 Pedro Alves <pedro@palves.net>
1287
1288 PR gdb/26199
1289 * infrun.c (threads_are_resumed_pending_p): Delete.
1290 (do_target_wait): Remove threads_are_executing and
1291 threads_are_resumed_pending_p checks from the inferior_matches
1292 lambda. Update comments.
1293
1294 2020-07-10 Pedro Alves <pedro@palves.net>
1295
1296 PR gdb/26199
1297 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1298 executing threads.
1299
1300 2020-07-10 Pedro Alves <pedro@palves.net>
1301
1302 PR gdb/26199
1303 * infrun.c (handle_no_resumed): Handle multiple targets.
1304
1305 2020-07-10 Pedro Alves <pedro@palves.net>
1306
1307 PR gdb/26199
1308 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1309 target_is_async_p.
1310
1311 2020-07-10 Pedro Alves <pedro@palves.net>
1312
1313 PR gdb/26199
1314 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1315 threads, not all threads.
1316
1317 2020-07-10 Pedro Alves <pedro@palves.net>
1318
1319 PR gdb/26199
1320 * remote.c (remote_target::open_1): Pass remote target pointer as
1321 data to create_async_event_handler.
1322 (remote_async_inferior_event_handler): Mark async event handler
1323 before returning if the remote target still has either pending
1324 events or unacknowledged notifications.
1325
1326 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1327
1328 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1329 declaration.
1330 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1331 function.
1332
1333 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1334
1335 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1336 inferior_ptid.
1337
1338 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1339
1340 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1341 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1342 AT_FREEBSD_PS_STRINGS.
1343
1344 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1345
1346 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1347 of debugfile path on Windows.
1348
1349 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1350
1351 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1352 argument to 'data'.
1353
1354 2020-07-08 Tom Tromey <tromey@adacore.com>
1355
1356 * ada-lang.c (ada_exception_message_1): Use read_memory.
1357
1358 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 PR python/22748
1361 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1362 special handling for inline frames.
1363 * findvar.c (value_of_register_lazy): Skip inline frames when
1364 creating lazy register values.
1365 * frame.c (frame_id_computed_p): Delete definition.
1366 * frame.h (frame_id_computed_p): Delete declaration.
1367
1368 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * NEWS: Mention additions to Python API.
1371 * python/py-arch.c (archpy_register_groups): New function.
1372 (arch_object_methods): Add 'register_groups' method.
1373 * python/py-registers.c (reggroup_iterator_object): New struct.
1374 (reggroup_object): New struct.
1375 (gdbpy_new_reggroup): New function.
1376 (gdbpy_reggroup_to_string): New function.
1377 (gdbpy_reggroup_name): New function.
1378 (gdbpy_reggroup_iter): New function.
1379 (gdbpy_reggroup_iter_next): New function.
1380 (gdbpy_new_reggroup_iterator): New function
1381 (gdbpy_initialize_registers): Register new types.
1382 (reggroup_iterator_object_type): Define new Python type.
1383 (gdbpy_reggroup_getset): New static global.
1384 (reggroup_object_type): Define new Python type.
1385 * python/python-internal.h
1386
1387 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1390 * python/py-arch.c (archpy_registers): New function.
1391 (arch_object_methods): Add 'registers' method.
1392 * python/py-registers.c: New file.
1393 * python/python-internal.h
1394 (gdbpy_new_register_descriptor_iterator): Declare.
1395 (gdbpy_initialize_registers): Declare.
1396 * python/python.c (do_start_initialization): Call
1397 gdbpy_initialize_registers.
1398 * NEWS: Mention additions to the Python API.
1399
1400 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * NEWS: Mention new Python API method.
1403 * python/py-unwind.c (pending_framepy_architecture): New function.
1404 (pending_frame_object_methods): Add architecture method.
1405
1406 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * gdbarch.c: Regenerate.
1409 * gdbarch.h: Regenerate.
1410 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1411 (gdbarch_data): Use internal_error for the case where
1412 deprecated_set_gdbarch_data was originally needed.
1413 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1414 and use passed in obstack.
1415 (libunwind_frame_set_descr): Should no longer get back NULL from
1416 gdbarch_data.
1417 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1418 type.
1419 * user-regs.c (user_regs_init): Update parameters, and use passed
1420 in obstack.
1421 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1422 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1423
1424 2020-07-06 Tom de Vries <tdevries@suse.de>
1425
1426 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1427 End-Of-Sequence in lte_is_less_than.
1428 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1429 "gdb: Don't reorder line table entries too much when sorting".
1430
1431 2020-07-06 Tom de Vries <tdevries@suse.de>
1432
1433 PR tui/26205
1434 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1435
1436 2020-07-05 Tom de Vries <tdevries@suse.de>
1437
1438 PR build/26187
1439 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1440 std::uncaught_exceptions instead of deprecated
1441 std::uncaught_exception.
1442
1443 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * macroexp.h (macro_stringify): Return
1446 gdb::unique_xmalloc_ptr<char>.
1447 * macroexp.c (macro_stringify): Likewise.
1448 * macrotab.c (fixup_definition): Update.
1449
1450 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1451
1452 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1453 (lex_one_token): Update.
1454 * macroexp.c (struct macro_buffer) <release>: Return
1455 gdb::unique_xmalloc_ptr<char>.
1456 (macro_stringify): Update.
1457 (macro_expand): Update.
1458 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1459 * macroexp.h (macro_expand_next): Likewise.
1460
1461 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1462
1463 * macroexp.h (macro_lookup_ftype): Remove.
1464 (macro_expand, macro_expand_once, macro_expand_next): Remove
1465 lookup function parameters, add scope parameter.
1466 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1467 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1468 * macroscope.h (standard_macro_lookup): Change parameter type
1469 to macro_scope.
1470 * macroscope.c (standard_macro_lookup): Likewise.
1471 * c-exp.y (lex_one_token): Update.
1472 * macrocmd.c (macro_expand_command): Likewise.
1473 (macro_expand_once_command): Likewise.
1474
1475 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * inf-loop.c (inferior_event_handler): Remove client_data param.
1478 * inf-loop.h (inferior_event_handler): Likewise.
1479 * infcmd.c (step_1): Adjust.
1480 * infrun.c (proceed): Adjust.
1481 (fetch_inferior_event): Remove client_data param.
1482 (infrun_async_inferior_event_handler): Adjust.
1483 * infrun.h (fetch_inferior_event): Remove `void *` param.
1484 * linux-nat.c (handle_target_event): Adjust.
1485 * record-btrace.c (record_btrace_handle_async_inferior_event):
1486 Adjust.
1487 * record-full.c (record_full_async_inferior_event_handler):
1488 Adjust.
1489 * remote.c (remote_async_inferior_event_handler): Adjust.
1490
1491 2020-07-01 Tom Tromey <tom@tromey.com>
1492
1493 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1494 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1495
1496 2020-07-01 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1499 tui_gen_win_info.
1500 (tui_win_info::make_window): Merge with
1501 tui_gen_win_info::make_window.
1502 (tui_win_info::make_visible): Move from tui_gen_win_info.
1503 * tui/tui-win.c (tui_win_info::max_width): Move from
1504 tui_gen_win_info.
1505 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1506 type.
1507 <window_factory>: Likewise.
1508 * tui/tui-layout.c (tui_win_info::resize): Move from
1509 tui_gen_win_info.
1510 (make_standard_window): Change return type.
1511 (get_locator_window, tui_get_window_by_name): Likewise.
1512 (tui_layout_window::apply): Remove a cast.
1513 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1514 (struct tui_win_info): Merge with tui_gen_win_info.
1515 (struct tui_gen_win_info): Remove.
1516
1517 2020-07-01 Tom Tromey <tom@tromey.com>
1518
1519 * tui/tui-stack.h (struct tui_locator_window): Derive from
1520 tui_win_info.
1521 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1522 <can_box>: New method.
1523
1524 2020-07-01 Tom Tromey <tom@tromey.com>
1525
1526 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1527
1528 2020-07-01 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui-regs.c (tui_data_window::display_registers_from)
1531 (tui_data_window::display_registers_from)
1532 (tui_data_window::first_data_item_displayed)
1533 (tui_data_window::delete_data_content_windows): Update.
1534 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1535 Remove.
1536 (tui_data_window::check_register_values): Update.
1537 (tui_data_item_window::rerender): Add parameters. Update.
1538 (tui_data_item_window::refresh_window): Remove.
1539 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1540 virtual.
1541 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1542 tui_gen_win_info.
1543 <refresh_window, max_height, min_height>: Remove.
1544 <rerender>: Add parameters.
1545 <x, y, visible>: New members.
1546 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1547 <m_item_width>: New member.
1548
1549 2020-07-01 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-regs.c (tui_data_window::show_register_group)
1552 (tui_data_window::check_register_values): Update.
1553 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1554 from item_no.
1555
1556 2020-07-01 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1559 useless "if".
1560
1561 2020-07-01 Tom Tromey <tom@tromey.com>
1562
1563 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1564 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1565
1566 2020-07-01 Tom Tromey <tom@tromey.com>
1567
1568 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1569 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1570 (struct tui_line_or_address): Move from tui-data.h.
1571 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1572 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1573 (tui_cmd_window, tui_source_window_base, tui_source_window)
1574 (tui_disasm_window): Don't declare.
1575 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1576 to tui-winsource.h.
1577 (SINGLE_KEY): Move to tui-stack.c.
1578
1579 2020-07-01 Tom Tromey <tom@tromey.com>
1580
1581 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1582 std::string.
1583 * tui/tui-regs.c (class tab_expansion_file): New.
1584 (tab_expansion_file::write): New method.
1585 (tui_register_format): Change return type. Use
1586 tab_expansion_file.
1587 (tui_get_register, tui_data_window::display_registers_from)
1588 (tui_data_item_window::rerender): Update.
1589 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1590 * tui/tui-io.c (tui_expand_tabs): Remove.
1591
1592 2020-07-01 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1595
1596 2020-07-01 Fangrui Song <maskray@google.com>
1597
1598 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1599
1600 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1601
1602 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1603 forms for DW_AT_associated and DW_AT_allocated attributes,
1604 which is already checked in function attr_to_dynamic_prop.
1605
1606 2020-06-30 Tom Tromey <tromey@adacore.com>
1607
1608 * dwarf2/read.c (quirk_rust_enum): Correctly call
1609 alloc_rust_variant for default-less enum.
1610
1611 2020-06-30 Tom Tromey <tromey@adacore.com>
1612
1613 PR build/26183:
1614 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1615 gdb::to_string.
1616
1617 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1620 * gdbarch.h: Re-generate.
1621
1622 2020-06-28 Tom Tromey <tom@tromey.com>
1623
1624 * command.h (cmd_types): Remove.
1625 (cmd_type): Don't declare.
1626 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1627 typedef.
1628 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1629 * cli/cli-decode.c (cmd_type): Remove.
1630
1631 2020-06-27 Pedro Alves <palves@redhat.com>
1632
1633 * fork-child.c (prefork_hook): Adjust.
1634 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1635 Delete.
1636 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1637 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1638 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1639 Remove declarations.
1640 (struct inferior) <set_tty, tty>: New methods.
1641 (struct inferior) <terminal>: Rename to ...
1642 (struct inferior) <m_terminal>: ... this and make private.
1643 * main.c (captured_main_1): Adjust.
1644 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1645 (mi_cmd_inferior_tty_show): Adjust.
1646 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1647 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1648
1649 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1650
1651 * configure.ac: Add --enable-libctf: handle --disable-static
1652 properly.
1653 * acinclude.m4: sinclude ../config/enable.m4.
1654 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1655 (LIBCTF): Substitute in.
1656 (CTF_DEPS): New, likewise.
1657 (CLIBS): libctf needs symbols from libbfd: move earlier.
1658 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1659 flags.
1660 * ctfread.c: Surround in ENABLE_LIBCTF.
1661 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1662 * configure: Regenerate.
1663 * config.in: Likewise.
1664
1665 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1668
1669 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * inferior.h (struct inferior) <terminal>: Change type to
1672 gdb::unique_xmalloc_ptr<char>.
1673 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1674 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1675 field, adjust to unique pointer.
1676 (get_inferior_io_terminal): Adjust to unique pointer.
1677
1678 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1681 registers, not just the known core set of registers.
1682
1683 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1686 fflags, frm, and fcsr registers.
1687 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1688 restore groups.
1689 (riscv_tdesc_unknown_reg): New function.
1690 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1691 tdesc_use_registers.
1692 * riscv-tdep.h (struct gdbarch_tdep): Add
1693 unknown_csrs_first_regnum, unknown_csrs_count,
1694 duplicate_fflags_regnum, duplicate_frm_regnum, and
1695 duplicate_fcsr_regnum fields.
1696
1697 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1700 callback, use the callback (when not null) to help number unknown
1701 registers.
1702 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1703 (tdesc_use_registers): Add extra parameter to declaration.
1704
1705 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1708 in the file.
1709 (class riscv_pending_register_alias): Likewise.
1710 (riscv_register_feature::register_info): Change 'required_p' field
1711 to 'required', and change its type. Add 'check' member function.
1712 (riscv_register_feature::register_info::check): Define new member
1713 function.
1714 (riscv_xreg_feature): Change initialisation of 'required' field.
1715 (riscv_freg_feature): Likewise.
1716 (riscv_virtual_feature): Likewise.
1717 (riscv_csr_feature): Likewise.
1718 (riscv_check_tdesc_feature): Take extra parameter, the csr
1719 tdesc_feature, rewrite the function to use the new
1720 riscv_register_feature::register_info::check function.
1721 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1722
1723 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * features/Makefile: Remove all references to the deleted files
1726 below.
1727 * features/riscv/32bit-csr.c: Deleted.
1728 * features/riscv/32bit-csr.xml: Deleted.
1729 * features/riscv/64bit-csr.c: Deleted.
1730 * features/riscv/64bit-csr.xml: Deleted.
1731 * features/riscv/rebuild-csr-xml.sh: Deleted.
1732
1733 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1736 whitespace error for declaration of names member variable.
1737 (struct riscv_register_feature): Add new prefer_first_name member
1738 variable, and fix whitespace error in declaration of registers.
1739 (riscv_xreg_feature): Initialize prefer_first_name field.
1740 (riscv_freg_feature): Likewise.
1741 (riscv_virtual_feature): Likewise.
1742 (riscv_csr_feature): Likewise.
1743 (riscv_register_name): Expand on comments. Remove register name
1744 modifications for CSR and virtual registers.
1745
1746 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1747
1748 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1749 errors.
1750
1751 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1754 riscv-opc.h.
1755 (class riscv_pending_register_alias): New class.
1756 (riscv_check_tdesc_feature): Take vector of pending aliases and
1757 populate it as appropriate.
1758 (riscv_setup_register_aliases): Delete.
1759 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1760 to riscv_check_tdesc_feature in all cases. Use the vector to
1761 create the register aliases.
1762
1763 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1764
1765 * sol2-tdep.c (sol2_static_transform_name): Remove.
1766 (sol2_init_abi): Don't register it.
1767 * gdbarch.sh (static_transform_name): Remove.
1768 * gdbarch.c, gdbarch.h: Regenerate.
1769
1770 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1771 gdbarch_static_transform_name.
1772 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1773 * stabsread.c (define_symbol) <'X'>: Remove.
1774 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1775 handling.
1776 <'V'>: Likewise.
1777 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1778 <'S'>: Remove call to gdbarch_static_transform_name.
1779
1780 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1781
1782 * procfs.c (procfs_pre_trace): New function.
1783 (procfs_target::create_inferior): Pass it to fork_inferior.
1784
1785 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1786
1787 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1788 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1789 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1790 sol2-tdep.o, sparc-sol2-tdep.o.
1791 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1792 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1793 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1794 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1795
1796 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1797
1798 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1799 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1800 Call sol2_init_abi.
1801 Remove calls to set_gdbarch_skip_solib_resolver,
1802 set_gdbarch_core_pid_to_str.
1803 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1804 (i386_sol2_static_transform_name): Remove.
1805 (i386_sol2_init_abi): Call sol2_init_abi.
1806 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1807 set_gdbarch_static_transform_name,
1808 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1809 Use sol2_sigtramp_p.
1810 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1811 (sol2_sigtramp_p): New function.
1812 (sol2_static_transform_name): New function.
1813 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1814 (sol2_init_abi): New function.
1815 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1816 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1817 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1818 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1819 (sparc_sol2_static_transform_name): Remove.
1820 (sparc32_sol2_init_abi): Call sol2_init_abi.
1821 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1822 set_gdbarch_static_transform_name,
1823 set_gdbarch_skip_solib_resolver,
1824 set_gdbarch_core_pid_to_str.
1825 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1826 (sparc_sol2_static_transform_name): Remove
1827 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1828 call sol2_sigtramp_p.
1829 (sparc64_sol2_init_abi): Call sol2_init_abi.
1830 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1831 set_gdbarch_static_transform_name,
1832 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1833
1834 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1835
1836 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1837 * exec.c (validate_exec_file): If from_tty, set both
1838 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1839 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1840 and from_tty, unconditionally ask a confirmation.
1841
1842 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * target-descriptions.c (tdesc_architecture_name): Protect against
1845 NULL pointer dereference.
1846 (maint_print_xml_tdesc_cmd): New function.
1847 (_initialize_target_descriptions): Register new 'maint print
1848 xml-tdesc' command and give it the filename completer.
1849 * NEWS: Mention new 'maint print xml-tdesc' command.
1850
1851 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * target-descriptions.c (class tdesc_compatible_info): New class.
1854 (struct target_desc): Change type of compatible vector.
1855 (tdesc_compatible_p): Update for change in type of
1856 target_desc::compatible.
1857 (tdesc_compatible_info_list): New function.
1858 (tdesc_compatible_info_arch_name): New function.
1859 (tdesc_add_compatible): Update for change in type of
1860 target_desc::compatible.
1861 (print_c_tdesc::visit_pre): Likewise.
1862
1863 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1866 whitespace to underscore.
1867 (maint_print_c_tdesc_cmd): Use fake filename for target
1868 descriptions that came from the target.
1869 (_initialize_target_descriptions): Add filename command completion
1870 for 'maint print c-tdesc'.
1871
1872 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1875 lines.
1876
1877 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1878
1879 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1880 lines.
1881 (dwarf2_find_location_expression): Likewise.
1882 (call_site_parameter_matches): Likewise.
1883 (dwarf2_compile_expr_to_ax): Likewise.
1884 (disassemble_dwarf_expression): Likewise.
1885 (loclist_describe_location): Likewise.
1886
1887 2020-06-23 Pedro Alves <palves@redhat.com>
1888
1889 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1890 progspace-and-thread.h. Include scoped-mock-context.h instead.
1891 (register_to_value_test): Use scoped_mock_context.
1892 * regcache.c: Include "scoped-mock-context.h".
1893 (cooked_read_test): Don't error out if a target is already pushed.
1894 Use scoped_mock_context. Adjust.
1895 * scoped-mock-context.h: New file.
1896
1897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1900 initializer.
1901 (ada_language::is_string_type_p): New member function.
1902 * c-lang.c (c_language_data): Delete la_is_string_type_p
1903 initializer.
1904 (cplus_language_data): Likewise.
1905 (asm_language_data): Likewise.
1906 (minimal_language_data): Likewise.
1907 * d-lang.c (d_language_data): Likewise.
1908 * f-lang.c (f_is_string_type_p): Delete function, implementation
1909 moved to f_language::is_string_type_p.
1910 (f_language_data): Delete la_is_string_type_p initializer.
1911 (f_language::is_string_type_p): New member function,
1912 implementation from f_is_string_type_p.
1913 * go-lang.c (go_is_string_type_p): Delete function, implementation
1914 moved to go_language::is_string_type_p.
1915 (go_language_data): Delete la_is_string_type_p initializer.
1916 (go_language::is_string_type_p): New member function,
1917 implementation from go_is_string_type_p.
1918 * language.c (language_defn::is_string_type_p): Define new member
1919 function.
1920 (default_is_string_type_p): Make static, add comment copied from
1921 header file.
1922 (unknown_language_data): Delete la_is_string_type_p initializer.
1923 (unknown_language::is_string_type_p): New member function.
1924 (auto_language_data): Delete la_is_string_type_p initializer.
1925 (auto_language::is_string_type_p): New member function.
1926 * language.h (language_data): Delete la_is_string_type_p field.
1927 (language_defn::is_string_type_p): Declare new function.
1928 (default_is_string_type_p): Delete desclaration, move comment to
1929 definition.
1930 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1931 moved to m2_language::is_string_type_p.
1932 (m2_language_data): Delete la_is_string_type_p initializer.
1933 (m2_language::is_string_type_p): New member function,
1934 implementation from m2_is_string_type_p.
1935 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1936 initializer.
1937 * opencl-lang.c (opencl_language_data): Likewise.
1938 * p-lang.c (pascal_is_string_type_p): Delete function,
1939 implementation moved to pascal_language::is_string_type_p.
1940 (pascal_language_data): Delete la_is_string_type_p initializer.
1941 (pascal_language::is_string_type_p): New member function,
1942 implementation from pascal_is_string_type_p.
1943 * rust-lang.c (rust_is_string_type_p): Delete function,
1944 implementation moved to rust_language::is_string_type_p.
1945 (rust_language_data): Delete la_is_string_type_p initializer.
1946 (rust_language::is_string_type_p): New member function,
1947 implementation from rust_is_string_type_p.
1948 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1949 is_string_type_p.
1950
1951 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * ada-lang.c (ada_language_data): Delete la_print_typedef
1954 initializer.
1955 (ada_language::print_typedef): New member function.
1956 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1957 (cplus_language_data): Likewise.
1958 (asm_language_data): Likewise.
1959 (minimal_language_data): Likewise.
1960 * d-lang.c (d_language_data): Likewise.
1961 * f-lang.c (f_language_data): Likewise.
1962 (f_language::print_typedef): New member function.
1963 * go-lang.c (go_language_data): Delete la_print_typedef
1964 initializer.
1965 * language.c (language_defn::print_typedef): Define member
1966 function.
1967 (unknown_language_data): Delete la_print_typedef initializer.
1968 (unknown_language::print_typedef): New member function.
1969 (auto_language_data): Delete la_print_typedef initializer.
1970 (auto_language::print_typedef): New member function.
1971 * language.h (language_data): Delete la_print_typedef field.
1972 (language_defn::print_typedef): Declare new member function.
1973 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1974 (default_print_typedef): Delete declaration.
1975 * m2-lang.c (m2_language_data): Delete la_print_typedef
1976 initializer.
1977 (m2_language::print_typedef): New member function.
1978 * objc-lang.c (objc_language_data): Delete la_print_typedef
1979 initializer.
1980 * opencl-lang.c (opencl_language_data): Likewise.
1981 * p-lang.c (pascal_language_data): Likewise.
1982 (pascal_language::print_typedef): New member function.
1983 * rust-lang.c (rust_print_typedef): Delete function,
1984 implementation moved to rust_language::print_typedef.
1985 (rust_language): Delete la_print_typedef initializer.
1986 (rust_language::print_typedef): New member function,
1987 implementation from rust_print_typedef.
1988 * typeprint.c (default_print_typedef): Delete.
1989
1990 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1993 (ada_language::printstr): New member function.
1994 * c-lang.c (c_language_data): Delete la_printstr initializer.
1995 (cplus_language_data): Likewise.
1996 (asm_language_data): Likewise.
1997 (minimal_language_data): Likewise.
1998 * d-lang.c (d_language_data): Likewise.
1999 * f-lang.c (f_printstr): Rename to f_language::printstr.
2000 (f_language_data): Delete la_printstr initializer.
2001 (f_language::printstr): New member function, implementation from
2002 f_printstr.
2003 * go-lang.c (go_language_data): Delete la_printstr initializer.
2004 * language.c (language_defn::printstr): Define new member
2005 function.
2006 (unk_lang_printstr): Delete.
2007 (unknown_language_data): Delete la_printstr initializer.
2008 (unknown_language::printstr): New member function.
2009 (auto_language_data): Delete la_printstr initializer.
2010 (auto_language::printstr): New member function.
2011 * language.h (language_data): Delete la_printstr field.
2012 (language_defn::printstr): Declare new member function.
2013 (LA_PRINT_STRING): Update call to printstr.
2014 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2015 (m2_language_data): Delete la_printstr initializer.
2016 (m2_language::printstr): New member function, implementation from
2017 m2_printstr.
2018 * objc-lang.c (objc_language_data): Delete la_printstr
2019 initializer.
2020 * opencl-lang.c (opencl_language_data): Likewise.
2021 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2022 (pascal_language_data): Delete la_printstr initializer.
2023 (pascal_language::printstr): New member function, implementation
2024 from pascal_printstr.
2025 * p-lang.h (pascal_printstr): Delete declaration.
2026 * rust-lang.c (rust_printstr): Update header comment.
2027 (rust_language_data): Delete la_printstr initializer.
2028 (rust_language::printstr): New member function.
2029
2030 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2033 (ada_language::printchar): New member function.
2034 * c-lang.c (c_language_data): Delete la_printchar initializer.
2035 (cplus_language_data): Likewise.
2036 (asm_language_data): Likewise.
2037 (minimal_language_data): Likewise.
2038 * d-lang.c (d_language_data): Likewise.
2039 * f-lang.c (f_printchar): Rename to f_language::printchar.
2040 (f_language_data): Delete la_printchar initializer.
2041 (f_language::printchar): New member function, implementation from
2042 f_printchar.
2043 * go-lang.c (go_language_data): Delete la_printchar initializer.
2044 * language.c (unk_lang_printchar): Delete.
2045 (language_defn::printchar): Define new member function.
2046 (unknown_language_data): Delete la_printchar initializer.
2047 (unknown_language::printchar): New member function.
2048 (auto_language_data): Delete la_printchar initializer.
2049 (auto_language::printchar): New member function.
2050 * language.h (language_data): Delete la_printchar field.
2051 (language_defn::printchar): Declare new member function.
2052 (LA_PRINT_CHAR): Update call to printchar.
2053 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2054 (m2_language::printchar): New member function.
2055 * objc-lang.c (objc_language_data): Delete la_printchar
2056 initializer.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Delete la_printchar
2059 initializer.
2060 (pascal_language::printchar): New member function.
2061 * rust-lang.c (rust_printchar): Rename to
2062 rust_language::printchar.
2063 (rust_language_data): Delete la_printchar initializer.
2064 (rust_language::printchar): New member function, implementation
2065 from rust_printchar.
2066
2067 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2070 (ada_language_data): Delete la_emitchar initializer.
2071 (ada_language::emitchar): New member function, implementation from
2072 emit_char.
2073 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2074 (cplus_language_data): Likewise.
2075 (asm_language_data): Likewise.
2076 (minimal_language_data): Likewise.
2077 * d-lang.c (d_language_data): Likewise.
2078 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2079 (f_language_data): Delete la_emitchar initializer.
2080 (f_language::emitchar): New member function, implementation from
2081 f_emit_char.
2082 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2083 * language.c (unk_lang_emit_char): Delete.
2084 (language_defn::emitchar): New member function definition.
2085 (unknown_language_data): Delete la_emitchar initializer.
2086 (unknown_language::emitchar): New member function.
2087 (auto_language_data): Delete la_emitchar initializer.
2088 (auto_language::emitchar): New member function.
2089 * language.h (language_data): Delete la_emitchar field.
2090 (language_defn::emitchar): New member field declaration.
2091 (LA_EMIT_CHAR): Update call to emitchar.
2092 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2093 (m2_language_data): Delete la_emitchar initializer.
2094 (m2_language::emitchar): New member function, implementation from
2095 m2_emit_char.
2096 * objc-lang.c (objc_language_data): Delete la_emitchar
2097 initializer.
2098 * opencl-lang.c (opencl_language_data): Likewise.
2099 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2100 (pascal_language_data): Delete la_emitchar initializer.
2101 (pascal_language::emitchar): New member function, implementation
2102 from pascal_emit_char.
2103 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2104 (rust_language_data): Delete la_emitchar initializer.
2105 (rust_language::emitchar): New member function, implementation
2106 from rust_emitchar.
2107
2108 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2111 (ada_language_data): Delete la_post_parser initializer.
2112 (ada_language::post_parser): New member function.
2113 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2114 (cplus_language_data): Likewise.
2115 (asm_language_data): Likewise.
2116 (minimal_language_data): Likewise.
2117 * d-lang.c (d_language_data): Likewise.
2118 * f-lang.c (f_language_data): Likewise.
2119 * go-lang.c (go_language_data): Likewise.
2120 * language.c (unknown_language_data): Likewise.
2121 (auto_language_data): Likewise.
2122 * language.h (language_data): Delete la_post_parser field.
2123 (language_defn::post_parser): New member function.
2124 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2125 * objc-lang.c (objc_language_data): Likewise.
2126 * opencl-lang.c (opencl_language_data): Likewise.
2127 * p-lang.c (pascal_language_data): Likewise.
2128 * parse.c (parse_exp_in_context): Update call to post_parser.
2129 (null_post_parser): Delete definition.
2130 * parser-defs.h (null_post_parser): Delete declaration.
2131 * rust-lang.c (rust_language_data): Delete la_post_parser
2132 initializer.
2133
2134 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * ada-lang.c (parse): Rename to ada_language::parser.
2137 (ada_language_data): Delete la_parser initializer.
2138 (ada_language::parser): New member function, implementation from
2139 parse.
2140 * c-lang.c (c_language_data): Delete la_parser initializer.
2141 (cplus_language_data): Likewise.
2142 (asm_language_data): Likewise.
2143 (minimal_language_data): Likewise.
2144 * d-lang.c (d_language_data): Likewise.
2145 (d_language::parser): New member function.
2146 * f-lang.c (f_language_data): Delete la_parser initializer.
2147 (f_language::parser): New member function.
2148 * go-lang.c (go_language_data): Delete la_parser initializer.
2149 (go_language::parser): New member function.
2150 * language.c (unk_lang_parser): Delete.
2151 (language_defn::parser): Define new member function.
2152 (unknown_language_data): Delete la_parser initializer.
2153 (unknown_language::parser): New member function.
2154 (auto_language_data): Delete la_parser initializer.
2155 (auto_language::parser): New member function.
2156 * language.h (language_data): Delete la_parser field.
2157 (language_defn::parser): Declare new member function.
2158 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2159 (m2_language::parser): New member function.
2160 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2161 * opencl-lang.c (opencl_language_data): Likewise.
2162 * p-lang.c (pascal_language_data): Likewise.
2163 (pascal_language::parser): New member function.
2164 * parse.c (parse_exp_in_context): Update call to parser.
2165 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2166 (rust_language::parser): New member function.
2167
2168 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * top.c (print_gdb_configuration): Print --with-python-libdir
2171 configuration value.
2172
2173 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2174
2175 * NEWS: Mention change to the alias command.
2176
2177 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2178
2179 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2180 (alias_command_completer)
2181 (make_alias_options_def_group): New functions.
2182 (alias_opts, alias_option_defs): New struct and array.
2183 (alias_usage_error): Update usage.
2184 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2185 Use option framework.
2186 (_initialize_cli_cmds): Update alias command help.
2187 Update aliases command help.
2188 (show_user):
2189 Add NULL for new default_args lookup_cmd argument.
2190 (valid_command_p): Rename to validate_aliased_command.
2191 Add NULL for new default_args lookup_cmd argument. Verify that the
2192 aliased_command has no default args.
2193 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2194 (lookup_cmd_1, lookup_cmd): New argument default_args.
2195 (add_alias_cmd):
2196 Add NULL for new default_args lookup_cmd argument.
2197 (print_help_for_command): Show default args under the layout
2198 alias some_alias = some_aliased_cmd some_alias_default_arg.
2199 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2200 xfree default_args in destructor.
2201 * cli/cli-script.c (process_next_line, do_define_command):
2202 Add NULL for new default_args lookup_cmd argument.
2203 * command.h: Declare new default_args argument in lookup_cmd
2204 and lookup_cmd_1.
2205 * completer.c (complete_line_internal_1):
2206 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2207 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2208 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2209 Likewise.
2210 * infcmd.c (_initialize_infcmd): Likewise.
2211 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2212 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2213 * python/py-param.c (add_setshow_generic): Likewise.
2214 * remote.c (_initialize_remote): Likewise.
2215 * top.c (execute_command): Prepend default_args if command has some.
2216 (set_verbose):
2217 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2218 * tracepoint.c (validate_actionline, encode_actions_1):
2219 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2220
2221 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2222
2223 * jit.c (jit_read_descriptor): Use bool as the return type.
2224 (jit_breakpoint_re_set_internal): Use bool as the return type.
2225 Invert the return value logic; return true if the jit breakpoint
2226 has been successfully initialized.
2227 (jit_inferior_init): Update the call to
2228 jit_breakpoint_re_set_internal.
2229
2230 2020-06-22 Pedro Alves <palves@redhat.com>
2231
2232 PR gdb/25939
2233 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2234 Use the current inferior instead. Don't return
2235 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2236 wait again.
2237 * sol-thread.c (sol_thread_target::wait): Don't reference
2238 inferior_ptid.
2239 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2240 (sol_update_thread_list_callback): Use the current inferior's pid
2241 instead of inferior_ptid.
2242
2243 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2244
2245 * procfs.c: Cleanup many comments.
2246
2247 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2248 (AFTER_WATCHFLAG): Replace by value.
2249
2250 (MAIN_PROC_NAME_FORMAT): Inline ...
2251 (create_procinfo): ... here.
2252
2253 (procfs_debug_inferior): Remove SYS_exec handling.
2254 (syscall_is_exec): Likewise.
2255 (procfs_set_exec_trap): Likewise.
2256
2257 (syscall_is_lwp_exit): Inline in callers.
2258 (syscall_is_exit): Likewise.
2259 (syscall_is_exec): Likewise.
2260 (syscall_is_lwp_create): Likewise.
2261
2262 (invalidate_cache): Remove #if 0 code.
2263
2264 (make_signal_thread_runnable): Remove.
2265 (procfs_target::resume): Remove #if 0 code.
2266
2267 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2268
2269 PR gdb/25939
2270 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2271 call ...
2272 (procfs_target::create_inferior): ... here.
2273
2274 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2275
2276 * exec.c (validate_exec_file): Ensure the build-id is up to
2277 date by calling reopen_exec_file (that checks file timestamp
2278 to decide to re-read the file).
2279
2280 2020-06-18 Pedro Alves <palves@redhat.com>
2281
2282 PR gdb/25412
2283 * gdbthread.h (delete_thread, delete_thread_silent)
2284 (find_thread_ptid): Update comments.
2285 * thread.c (current_thread_): New global.
2286 (is_current_thread): Move higher, and reimplement.
2287 (inferior_thread): Reimplement.
2288 (set_thread_exited): Use bool. Add assertions.
2289 (add_thread_silent): Simplify thread-reuse handling by always
2290 calling delete_thread.
2291 (delete_thread): Remove intro comment.
2292 (find_thread_ptid): Skip exited threads.
2293 (switch_to_thread_no_regs): Write to current_thread_.
2294 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2295 INFERIOR_PTID. Clear current_thread_.
2296
2297 2020-06-18 Pedro Alves <palves@redhat.com>
2298
2299 * aix-thread.c (pd_update): Use switch_to_thread.
2300
2301 2020-06-18 Pedro Alves <palves@redhat.com>
2302
2303 * ravenscar-thread.c (ravenscar_thread_target): Update.
2304 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2305 (ravenscar_thread_target::add_active_thread): ... this. Don't
2306 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2307 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2308
2309 2020-06-18 Pedro Alves <palves@redhat.com>
2310
2311 * nat/windows-nat.c (current_windows_thread): Remove.
2312 * nat/windows-nat.h (current_windows_thread): Remove.
2313 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2314 Adjust.
2315 (display_selectors): Adjust to fetch the current
2316 windows_thread_info based on inferior_ptid.
2317 (fake_create_process): No longer write to current_windows_thread.
2318 (windows_nat_target::get_windows_debug_event):
2319 Don't set inferior_ptid or current_windows_thread.
2320 (windows_nat_target::wait): Adjust to not rely on
2321 current_windows_thread.
2322 (do_initial_windows_stuff): Now a method of windows_nat_target.
2323 Switch to the last_ptid thread.
2324 (windows_nat_target::attach): Adjust.
2325 (windows_nat_target::detach): Use switch_to_no_thread instead of
2326 writing to inferior_ptid directly.
2327 (windows_nat_target::create_inferior): Adjust.
2328
2329 2020-06-18 Pedro Alves <palves@redhat.com>
2330
2331 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2332
2333 2020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2336 after creating it, instead of writing to inferior_ptid. Don't
2337 write to inferior_ptid.
2338
2339 2020-06-18 Pedro Alves <palves@redhat.com>
2340
2341 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2342
2343 2020-06-18 Pedro Alves <palves@redhat.com>
2344
2345 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2346 it, instead of writing to inferior_ptid.
2347
2348 2020-06-18 Pedro Alves <palves@redhat.com>
2349
2350 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2351 to inferior_ptid.
2352
2353 2020-06-18 Pedro Alves <palves@redhat.com>
2354
2355 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2356 instead of writing to inferior_ptid directly.
2357
2358 2020-06-18 Pedro Alves <palves@redhat.com>
2359
2360 * corelow.c (core_target::close): Use switch_to_no_thread instead
2361 of writing to inferior_ptid directly.
2362 (add_to_thread_list, core_target_open): Use switch_to_thread
2363 instead of writing to inferior_ptid directly.
2364
2365 2020-06-18 Pedro Alves <palves@redhat.com>
2366
2367 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2368 inferior_ptid.
2369 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2370 inferior_ptid.
2371 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2372 inferior_ptid directly.
2373 (darwin_nat_target::init_thread_list): Switch to thread, instead
2374 of writing to inferior_ptid.
2375 (darwin_nat_target::attach): Don't write to inferior_ptid.
2376 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2377
2378 2020-06-18 Pedro Alves <palves@redhat.com>
2379
2380 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2381 thread.
2382 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2383 Instead use switch_to_thread.
2384 (gnu_nat_target::detach): Use switch_to_no_thread
2385 instead of writing to inferior_ptid directly. Used passed-in
2386 inferior instead of looking up the inferior by pid.
2387
2388 2020-06-18 Pedro Alves <palves@redhat.com>
2389
2390 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2391 inferior_ptid.
2392
2393 2020-06-18 Pedro Alves <palves@redhat.com>
2394
2395 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2396 inferior_ptid.
2397 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2398 thread.
2399 (nto_procfs_target::detach): Avoid referencing
2400 inferior_ptid. Use switch_to_no_thread instead of writing to
2401 inferior_ptid directly.
2402 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2403 instead of writing to inferior_ptid directly.
2404 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2405 to thread.
2406
2407 2020-06-18 Pedro Alves <palves@redhat.com>
2408
2409 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2410 after creating it, instead of writing to inferior_ptid.
2411 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2412 to inferior_ptid directly.
2413 (gdbsim_target::wait): Don't write to inferior_ptid.
2414
2415 2020-06-18 Pedro Alves <palves@redhat.com>
2416
2417 * remote.c (remote_target::remote_notice_new_inferior): Use
2418 switch_to_thread instead of writing to inferior_ptid directly.
2419 (remote_target::add_current_inferior_and_thread): Use
2420 switch_to_no_thread instead of writing to inferior_ptid directly.
2421 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2422 and switch_to_thread instead of using set_current_inferior or
2423 writing to inferior_ptid directly.
2424
2425 2020-06-18 Pedro Alves <palves@redhat.com>
2426
2427 * tracectf.c (ctf_target_open): Switch to added thread instead of
2428 writing to inferior_ptid directly.
2429 (ctf_target::close): Use switch_to_no_thread instead of writing to
2430 inferior_ptid directly.
2431
2432 2020-06-18 Pedro Alves <palves@redhat.com>
2433
2434 * tracefile-tfile.c (tfile_target_open): Don't write to
2435 inferior_ptid directly, instead switch to added thread.
2436 (tfile_target::close): Use switch_to_no_thread instead of writing
2437 to inferior_ptid directly.
2438
2439 2020-06-18 Pedro Alves <palves@redhat.com>
2440
2441 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2442 (procfs_target::detach): Use switch_to_no_thread
2443 instead of writing to inferior_ptid directly.
2444 (do_attach): Change return type to void. Switch to the added
2445 thread.
2446 (procfs_target::create_inferior): Switch to the added thread.
2447 (procfs_do_thread_registers): Don't write to inferior_ptid.
2448
2449 2020-06-18 Pedro Alves <palves@redhat.com>
2450
2451 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2452 of writing to inferior_ptid.
2453 (scoped_restore_exited_inferior): Delete.
2454 (handle_vfork_child_exec_or_exit): Simplify using
2455 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2456 instead of writing to inferior_ptid.
2457 (THREAD_STOPPED_BY): Delete.
2458 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2459 (thread_stopped_by_hw_breakpoint): Delete.
2460 (save_waitstatus): Use
2461 scoped_restore_current_thread+switch_to_thread, and call
2462 target_stopped_by_watchpoint instead of
2463 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2464 instead of thread_stopped_by_sw_breakpoint, and
2465 target_stopped_by_hw_breakpoint instead of
2466 thread_stopped_by_hw_breakpoint.
2467 (handle_inferior_event)
2468 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2469 inferior_ptid directly, nor
2470 set_current_inferior/set_current_program_space. Use
2471 switch_to_thread / switch_to_inferior_no_thread instead.
2472
2473 2020-06-18 Pedro Alves <palves@redhat.com>
2474
2475 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2476 instead of writing to inferior_ptid.
2477
2478 2020-06-18 Pedro Alves <palves@redhat.com>
2479
2480 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2481 added thread.
2482 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2483 to the added thread.
2484 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2485 instead of writing to inferior_ptid.
2486
2487 2020-06-18 Pedro Alves <palves@redhat.com>
2488
2489 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2490 (register_to_value_test): Mock a program_space too. Heap-allocate
2491 the address space. Don't write to inferior_ptid. Use
2492 switch_to_thread instead.
2493
2494 2020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2497 Delete.
2498 (find_signalled_thread()): New, factored out from
2499 linux_make_corefile_notes and adjusted to handle exited threads.
2500 (linux_make_corefile_notes): Adjust to use the new
2501 find_signalled_thread.
2502
2503 2020-06-18 Pedro Alves <palves@redhat.com>
2504
2505 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2506 of saving/restoring inferior_ptid.
2507
2508 2020-06-17 Tom Tromey <tom@tromey.com>
2509
2510 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2511 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2512 declare.
2513 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2514
2515 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2518 of partial symtabs.
2519
2520 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * regformats/reg-arm.dat: Remove.
2523 * regformats/reg-bfin.dat: Remove.
2524 * regformats/reg-cris.dat: Remove.
2525 * regformats/reg-crisv32.dat: Remove.
2526 * regformats/reg-m32r.dat: Remove.
2527 * regformats/reg-tilegx.dat: Remove.
2528 * regformats/reg-tilegx32.dat: Remove.
2529
2530 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * features/Makefile (WHICH): Remove arm files.
2533 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2534 * regformats/arm/arm-with-neon.dat: Remove.
2535 * regformats/arm/arm-with-vfpv2.dat: Remove.
2536 * regformats/arm/arm-with-vfpv3.dat: Remove.
2537
2538 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * features/Makefile (XMLTOC): Remove rx.xml.
2541
2542 2020-06-17 Pedro Alves <palves@redhat.com>
2543
2544 * gdbthread.h (thread_control_state) <trap_expected> Update
2545 comments.
2546
2547 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2550 ada_language::lookup_symbol_nonlocal.
2551 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2552 (ada_language::lookup_symbol_nonlocal): New member function,
2553 implementation from ada_lookup_symbol_nonlocal.
2554 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2555 initializer.
2556 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2557 initializer.
2558 (cplus_language::lookup_symbol_nonlocal): New member function.
2559 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2560 (minimal_language_data) Likewise.
2561 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2562 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2563 initializer.
2564 (d_language::lookup_symbol_nonlocal): New member function.
2565 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2566 initializer.
2567 (f_language::lookup_symbol_nonlocal): New member function.
2568 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2569 initializer.
2570 * language.c (unknown_language_data): Likewise.
2571 (auto_language_data): Likewise.
2572 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2573 field.
2574 (language_defn::lookup_symbol_nonlocal): New member function.
2575 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2576 initializer.
2577 * objc-lang.c (objc_language_data): Likewise.
2578 * opencl-lang.c (opencl_language_data): Likewise.
2579 * p-lang.c (pascal_language_data): Likewise.
2580 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2581 rust_language::lookup_symbol_nonlocal.
2582 (rust_language_data): Delete la_lookup_symbol_nonlocal
2583 initializer.
2584 (rust_language::lookup_symbol_nonlocal): New member function,
2585 implementation from rust_lookup_symbol_nonlocal.
2586 * symtab.c (lookup_symbol_aux): Update call to
2587 lookup_symbol_nonlocal.
2588 (basic_lookup_symbol_nonlocal): Rename to...
2589 (language_defn::lookup_symbol_nonlocal): ...this, and update
2590 header comment. Remove language_defn parameter, and replace with
2591 uses of `this'.
2592 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2593
2594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2597 initializer.
2598 (ada_language::value_print_inner): New member function.
2599 * c-lang.c (c_language_data): Delete la_value_print_inner
2600 initializer.
2601 (cplus_language_data): Likewise.
2602 (asm_language_data): Likewise.
2603 (minimal_language_data): Likewise.
2604 * d-lang.c (d_language_data): Likewise.
2605 (d_language::value_print_inner): New member function.
2606 * f-lang.c (f_language_data): Delete la_value_print_inner
2607 initializer.
2608 (f_language::value_print_inner): New member function.
2609 * f-lang.h (f_value_print_innner): Rename to...
2610 (f_value_print_inner): ...this (note spelling of 'inner').
2611 * f-valprint.c (f_value_print_innner): Rename to...
2612 (f_value_print_inner): ...this (note spelling of 'inner').
2613 * go-lang.c (go_language_data): Delete la_value_print_inner
2614 initializer.
2615 (go_language::value_print_inner): New member function.
2616 * language.c (language_defn::value_print_inner): Define new member
2617 function.
2618 (unk_lang_value_print_inner): Delete.
2619 (unknown_language_data): Delete la_value_print_inner initializer.
2620 (unknown_language::value_print_inner): New member function.
2621 (auto_language_data): Delete la_value_print_inner initializer.
2622 (auto_language::value_print_inner): New member function.
2623 * language.h (language_data): Delete la_value_print_inner field.
2624 (language_defn::value_print_inner): Delcare new member function.
2625 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2626 initializer.
2627 (m2_language::value_print_inner): New member function.
2628 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2629 initializer.
2630 * opencl-lang.c (opencl_language_data): Likewise.
2631 * p-lang.c (pascal_language_data): Likewise.
2632 (pascal_language::value_print_inner): New member function.
2633 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2634 initializer.
2635 (rust_language::value_print_inner): New member function.
2636 * valprint.c (do_val_print): Update call to value_print_inner.
2637
2638 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_language_data): Delete la_value_print
2641 initializer.
2642 (ada_language::value_print): New member function.
2643 * c-lang.c (c_language_data): Delete la_value_print initializer.
2644 (cplus_language_data): Likewise.
2645 (asm_language_data): Likewise.
2646 (minimal_language_data): Likewise.
2647 * d-lang.c (d_language_data): Likewise.
2648 * f-lang.c (f_language_data): Likewise.
2649 * go-lang.c (go_language_data): Likewise.
2650 * language.c (unk_lang_value_print): Delete.
2651 (language_defn::value_print): Define new member function.
2652 (unknown_language_data): Delete la_value_print initializer.
2653 (unknown_language::value_print): New member function.
2654 (auto_language_data): Delete la_value_print initializer.
2655 (auto_language::value_print): New member function.
2656 * language.h (language_data): Delete la_value_print field.
2657 (language_defn::value_print): Declare new member function.
2658 (LA_VALUE_PRINT): Update call to value_print.
2659 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2660 * objc-lang.c (objc_language_data): Likewise.
2661 * opencl-lang.c (opencl_language_data): Likewise.
2662 * p-lang.c (pascal_language_data): Likewise.
2663 (pascal_language::value_print): New member function.
2664 * rust-lang.c (rust_language_data): Delete la_value_print
2665 initializer.
2666
2667 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * ada-lang.c (ada_watch_location_expression): Rename to
2670 ada_language::watch_location_expression.
2671 (ada_language_data): Delete la_watch_location_expression
2672 initializer.
2673 (ada_language::watch_location_expression): New member function,
2674 implementation from ada_watch_location_expression.
2675 * breakpoint.c (watch_command_1): Update call to
2676 watch_location_expression.
2677 * c-lang.c (c_watch_location_expression): Rename to
2678 language_defn::watch_location_expression.
2679 (c_language_data): Delete la_watch_location_expression
2680 initializer.
2681 (cplus_language_data): Likewise.
2682 (asm_language_data): Likewise.
2683 (minimal_language_data): Likewise.
2684 * c-lang.h (c_watch_location_expression): Delete declaration.
2685 * d-lang.c (d_language_data): Delete la_watch_location_expression
2686 initializer.
2687 * f-lang.c (f_language_data): Likewise.
2688 * go-lang.c (go_language_data): Likewise.
2689 * language.c (language_defn::watch_location_expression): Member
2690 function implementation from c_watch_location_expression.
2691 (unknown_language_data): Delete la_watch_location_expression
2692 initializer.
2693 (auto_language_data): Likewise.
2694 * language.h (language_data): Delete la_watch_location_expression
2695 field.
2696 (language_defn::watch_location_expression): Declare new member
2697 function.
2698 * m2-lang.c (m2_language_data): Delete
2699 la_watch_location_expression initializer.
2700 * objc-lang.c (objc_language_data): Likewise.
2701 * opencl-lang.c (opencl_language_data): Likewise.
2702 * p-lang.c (pascal_language_data): Likewise.
2703 * rust-lang.c (rust_watch_location_expression): Rename to
2704 rust_language::watch_location_expression.
2705 (rust_language_data): Delete la_watch_location_expression
2706 initializer.
2707 (rust_language::watch_location_expression): New member function,
2708 implementation from rust_watch_location_expression.
2709
2710 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2713 ada_language::collect_symbol_completion_matches.
2714 (ada_language_data): Delete la_collect_symbol_completion_matches
2715 initializer.
2716 (ada_language::collect_symbol_completion_matches): New member
2717 function, implementation from
2718 ada_collect_symbol_completion_matches.
2719 * c-lang.c (c_language_data): Delete
2720 la_collect_symbol_completion_matches initializer.
2721 (cplus_language_data): Likewise.
2722 (asm_language_data): Likewise.
2723 (minimal_language_data): Likewise.
2724 * d-lang.c (d_language_data): Likewise.
2725 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2726 f_language::collect_symbol_completion_matches.
2727 (f_language_data): Delete la_collect_symbol_completion_matches
2728 initializer.
2729 (f_language::collect_symbol_completion_matches) New member
2730 function, implementation from f_collect_symbol_completion_matches.
2731 * go-lang.c (go_language_data): Delete
2732 la_collect_symbol_completion_matches initializer.
2733 * language.c (unknown_language_data): Likewise.
2734 (auto_language_data): Likewise.
2735 * language.h (language_data): Delete
2736 la_collect_symbol_completion_matches field.
2737 (language_defn::collect_symbol_completion_matches): New member
2738 function.
2739 * m2-lang.c (m2_language_data): Delete
2740 la_collect_symbol_completion_matches initializer.
2741 * objc-lang.c (objc_language_data): Likewise.
2742 * opencl-lang.c (opencl_language_data): Likewise.
2743 * p-lang.c (pascal_language_data): Likewise.
2744 * rust-lang.c (rust_language_data): Likewise.
2745 * symtab.c (default_collect_symbol_completion_matches): Delete.
2746 (collect_symbol_completion_matches): Update call to
2747 collect_symbol_completion_matches.
2748 (collect_symbol_completion_matches_type): Likewise.
2749 * symtab.h (default_collect_symbol_completion_matches): Delete
2750 declaration.
2751
2752 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2755 (ada_language_data): Delete la_word_break_characters initializer.
2756 (ada_language::word_break_characters): New member function.
2757 * c-lang.c (c_language_data): Delete la_word_break_characters
2758 initializer.
2759 (cplus_language_data): Likewise.
2760 (asm_language_data): Likewise.
2761 (minimal_language_data): Likewise.
2762 * completer.c: Update global comment.
2763 (advance_to_expression_complete_word_point): Update call to
2764 word_break_characters.
2765 (complete_files_symbols): Likewise.
2766 (complete_line_internal_1): Likewise.
2767 (default_completer_handle_brkchars): Likewise.
2768 (skip_quoted_chars): Likewise.
2769 * d-lang.c (d_language_data): Delete la_word_break_characters
2770 initializer.
2771 * f-lang.c (f_word_break_characters): Delete.
2772 (f_language_data): Delete la_word_break_characters initializer.
2773 (f_language::word_break_characters): New member function.
2774 * go-lang.c (go_language_data): Delete la_word_break_characters
2775 initializer.
2776 * language.c (unknown_language_data): Likewise.
2777 (auto_language_data): Likewise.
2778 * language.h (default_word_break_characters): Move declaration to
2779 earlier in the file.
2780 (language_data): Delete la_word_break_characters field.
2781 (language_defn::word_break_characters): New member function.
2782 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2783 initializer.
2784 * objc-lang.c (objc_language_data): Likewise.
2785 * opencl-lang.c (opencl_language_data): Likewise.
2786 * p-lang.c (pascal_language_data): Likewise.
2787 * rust-lang.c (rust_language_data): Likewise.
2788
2789 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2792 (ada_language_data): Delete la_get_symbol_name_matcher
2793 initializer.
2794 (language_defn::get_symbol_name_matcher_inner): New member
2795 function.
2796 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2797 initializer.
2798 (cplus_language_data): Likewise.
2799 (cplus_language::get_symbol_name_matcher_inner): New member
2800 function.
2801 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2802 (minimal_language_data): Likewise.
2803 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2804 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2805 initializer.
2806 * dictionary.c (iter_match_first_hashed): Update call to
2807 get_symbol_name_matcher.
2808 (iter_match_next_hashed): Likewise.
2809 (iter_match_next_linear): Likewise.
2810 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2811 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2812 initializer.
2813 (f_language::get_symbol_name_matcher_inner): New member function.
2814 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2815 initializer.
2816 * language.c (default_symbol_name_matcher): Update header comment,
2817 make static.
2818 (language_defn::get_symbol_name_matcher): New definition.
2819 (language_defn::get_symbol_name_matcher_inner): Likewise.
2820 (get_symbol_name_matcher): Delete.
2821 (unknown_language_data): Delete la_get_symbol_name_matcher
2822 initializer.
2823 (auto_language_data): Likewise.
2824 * language.h (language_data): Delete la_get_symbol_name_matcher
2825 field.
2826 (language_defn::get_symbol_name_matcher): New member function.
2827 (language_defn::get_symbol_name_matcher_inner): Likewise.
2828 (default_symbol_name_matcher): Delete declaration.
2829 * linespec.c (find_methods): Update call to
2830 get_symbol_name_matcher.
2831 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2832 initializer.
2833 * minsyms.c (lookup_minimal_symbol): Update call to
2834 get_symbol_name_matcher.
2835 (iterate_over_minimal_symbols): Likewise.
2836 * objc-lang.c (objc_language_data): Delete
2837 la_get_symbol_name_matcher initializer.
2838 * opencl-lang.c (opencl_language_data): Likewise.
2839 * p-lang.c (pascal_language_data): Likewise.
2840 * psymtab.c (psymbol_name_matches): Update call to
2841 get_symbol_name_matcher.
2842 * rust-lang.c (rust_language_data): Delete
2843 la_get_symbol_name_matcher initializer.
2844 * symtab.c (symbol_matches_search_name): Update call to
2845 get_symbol_name_matcher.
2846 (compare_symbol_name): Likewise.
2847
2848 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2849
2850 * ada-lang.c (ada_language_data): Delete la_compute_program
2851 initializer.
2852 * c-lang.c (c_language_data): Likewise.
2853 (c_language::compute_program): New member function.
2854 (cplus_language_data): Delete la_compute_program initializer.
2855 (cplus_language::compute_program): New member function.
2856 (asm_language_data): Delete la_compute_program initializer.
2857 (minimal_language_data): Likewise.
2858 * c-lang.h (c_compute_program): Update comment.
2859 (cplus_compute_program): Likewise.
2860 * compile/compile-c-support.c (c_compute_program): Likewise.
2861 (cplus_compute_program): Likewise.
2862 * compile/compile.c (compile_to_object): Update call to
2863 la_compute_program.
2864 * d-lang.c (d_language_data): Delete la_compute_program
2865 initializer.
2866 * f-lang.c (f_language_data): Likewise.
2867 * go-lang.c (go_language_data): Likewise.
2868 * language.c (unknown_language_data): Likewise.
2869 (auto_language_data): Likewise.
2870 * language.h (language_data): Delete la_compute_program field.
2871 (language_defn::compute_program): New member function.
2872 * m2-lang.c (m2_language_data): Delete la_compute_program
2873 initializer.
2874 * objc-lang.c (objc_language_data): Likewise.
2875 * opencl-lang.c (opencl_language_data): Likewise.
2876 * p-lang.c (pascal_language_data): Likewise.
2877 * rust-lang.c (rust_language_data): Likewise.
2878
2879 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * ada-lang.c (ada_language_data) Delete
2882 la_class_name_from_physname initializer.
2883 * c-lang.c (c_language_data): Likewise.
2884 (cplus_language_data): Likewise.
2885 (cplus_language::class_name_from_physname): New member function.
2886 (asm_language_data): Delete la_class_name_from_physname
2887 initializer.
2888 (minimal_language_data): Likewise.
2889 * d-lang.c (d_language_data): Likewise.
2890 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2891 method on language_defn class.
2892 (guess_full_die_structure_name): Likewise.
2893 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2894 initializer.
2895 * go-lang.c (go_language_data): Likewise.
2896 * language.c (language_class_name_from_physname): Delete.
2897 (unk_lang_class_name): Delete.
2898 (unknown_language_data): Delete la_class_name_from_physname
2899 initializer.
2900 (auto_language_data): Likewise.
2901 * language.h (language_data): Delete la_class_name_from_physname
2902 field.
2903 (language_defn::class_name_from_physname): New function.
2904 (language_class_name_from_physname): Delete declaration.
2905 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2906 initializer.
2907 * objc-lang.c (objc_language_data): Likewise.
2908 * opencl-lang.c (opencl_language_data): Likewise.
2909 * p-lang.c (pascal_language_data): Likewise.
2910 * rust-lang.c (rust_language_data): Likewise.
2911
2912 2020-06-16 Tom Tromey <tom@tromey.com>
2913
2914 * tui/tui-data.h (STATUS_NAME): New macro.
2915 * tui/tui-layout.c (tui_remove_some_windows)
2916 (initialize_known_windows, tui_register_window)
2917 (tui_layout_split::remove_windows, initialize_layouts)
2918 (tui_new_layout_command): Don't use hard-coded window names.
2919
2920 2020-06-16 Tom Tromey <tom@tromey.com>
2921
2922 PR tui/25348:
2923 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2924 tui_initialize_readline. Only run once. Call rl_initialize.
2925 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2926 tui_initialize_readline.
2927 * tui/tui-io.c (tui_setup_io): Call
2928 tui_ensure_readline_initialized.
2929 * tui/tui-interp.c (tui_interp::init): Update.
2930
2931 2020-06-16 Tom Tromey <tom@tromey.com>
2932
2933 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2934 Also preserve the status window.
2935
2936 2020-06-16 Tom Tromey <tom@tromey.com>
2937
2938 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2939 where m_window==nullptr.
2940
2941 2020-06-15 Tom Tromey <tromey@adacore.com>
2942
2943 * windows-nat.c (windows_nat::handle_output_debug_string):
2944 Update.
2945 (windows_nat::handle_ms_vc_exception): Update.
2946 * target.h (target_read_string): Change API.
2947 * target.c (target_read_string): Change API.
2948 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2949 Update.
2950 * solib-frv.c (frv_current_sos): Update.
2951 * solib-dsbt.c (dsbt_current_sos): Update.
2952 * solib-darwin.c (darwin_current_sos): Update.
2953 * linux-thread-db.c (inferior_has_bug): Update.
2954 * expprint.c (print_subexp_standard): Update.
2955 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2956 (ada_exception_message_1): Update.
2957
2958 2020-06-15 Tom Tromey <tromey@adacore.com>
2959
2960 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2961
2962 2020-06-15 Tom Tromey <tromey@adacore.com>
2963
2964 * valprint.c (read_string): Update comment.
2965 * target.c (MIN): Remove.
2966 (target_read_string): Rewrite.
2967
2968 2020-06-15 Tom Tromey <tromey@adacore.com>
2969
2970 * corefile.c (read_memory_string): Remove.
2971 * ada-valprint.c (ada_value_print_ptr): Update.
2972 * ada-lang.h (ada_tag_name): Change return type.
2973 * ada-lang.c (type_from_tag): Update.
2974 (ada_tag_name_from_tsd): Change return type. Use
2975 target_read_string.
2976 (ada_tag_name): Likewise.
2977 * gdbcore.h (read_memory_string): Don't declare.
2978
2979 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2980
2981 * symtab.c (rbreak_command): Ignore Windows drive colon.
2982
2983 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * NEWS: Mention removed GDBserver host support.
2986
2987 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2988
2989 * features/riscv/rebuild-csr-xml.sh: Updated.
2990
2991 2020-06-11 Tom Tromey <tom@tromey.com>
2992
2993 PR gdb/18318:
2994 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2995
2996 2020-06-09 Jonny Grant <jg@jguk.org>
2997 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * main.c (captured_main_1): Don't print new line after help.
3000 (print_gdb_help): add mailing list and IRC channel information
3001 to --help. Add new lines between items in the footer. Remove
3002 quotes around bug url.
3003
3004 2020-06-11 Keith Seitz <keiths@redhat.com>
3005
3006 PR gdb/21356
3007 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3008 Resolve typedefs for type length calculations.
3009
3010 2020-06-10 Tom de Vries <tdevries@suse.de>
3011
3012 PR ada/24713
3013 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3014 (write_psymbols): Enable .gdb_index for ada.
3015 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3016 ada.
3017
3018 2020-06-10 Tom de Vries <tdevries@suse.de>
3019
3020 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3021 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3022 namei" instead of "const char *name" argument.
3023 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3024 dw2_symtab_iter_init.
3025
3026 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3029 to use type::field and field::type instead.
3030
3031 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3034 to use field::type instead.
3035
3036 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * gdbtypes.h (struct field) <type, set_type>: New methods.
3039 Rename `type` field to...
3040 <m_type>: ... this. Change references throughout to use type or
3041 set_type methods.
3042 (FIELD_TYPE): Use field::type. Change call sites that modify
3043 the field's type to use field::set_type instead.
3044
3045 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3048 to use type::index_type instead.
3049
3050 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3053 methods.
3054 (TYPE_INDEX_TYPE): Use type::index_type.
3055 * gdbtypes.c (create_array_type_with_stride): Likewise.
3056
3057 2020-06-07 Tom Tromey <tom@tromey.com>
3058
3059 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3060 parameter.
3061 (generic_value_print): Update.
3062
3063 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 Revert commit 982a38f60b0.
3066 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3067
3068 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3071 avoid use after free.
3072
3073 2020-06-05 Tom de Vries <tdevries@suse.de>
3074
3075 * NEWS: Fix typos.
3076
3077 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3080 the per_bfd object.
3081 (dwarf2_read_debug_names): Likewise.
3082 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3083 object when re-using a per_bfd object with an index.
3084
3085 2020-06-03 Tom de Vries <tdevries@suse.de>
3086
3087 PR symtab/26046
3088 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3089 children for C++.
3090 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3091 DW_TAG_subprogram.
3092
3093 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * ada-lang.c (ada_language_data): Delete skip_trampoline
3096 initializer.
3097 * c-lang.c (c_language_data): Likewise.
3098 (cplus_language_data): Likewise.
3099 (cplus_language::skip_trampoline): New member function.
3100 (asm_language_data): Delete skip_trampoline initializer.
3101 (minimal_language_data): Likewise.
3102 * d-lang.c (d_language_data): Likewise.
3103 * f-lang.c (f_language_data): Likewise.
3104 * go-lang.c (go_language_data): Likewise.
3105 * language.c (unk_lang_trampoline): Delete function.
3106 (skip_language_trampoline): Update.
3107 (unknown_language_data): Delete skip_trampoline initializer.
3108 (auto_language_data): Likewise.
3109 * language.h (language_data): Delete skip_trampoline field.
3110 (language_defn::skip_trampoline): New function.
3111 * m2-lang.c (m2_language_data): Delete skip_trampoline
3112 initializer.
3113 * objc-lang.c (objc_skip_trampoline): Delete function, move
3114 implementation to objc_language::skip_trampoline.
3115 (objc_language_data): Delete skip_trampoline initializer.
3116 (objc_language::skip_trampoline): New member function with
3117 implementation from objc_skip_trampoline.
3118 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3119 initializer.
3120 * p-lang.c (pascal_language_data): Likewise.
3121 * rust-lang.c (rust_language_data): Likewise.
3122
3123 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3126 (ada_language::demangle): New member function.
3127 * c-lang.c (c_language_data): Delete la_demangle initializer.
3128 (cplus_language_data): Delete la_demangle initializer.
3129 (cplus_language::demangle): New member function.
3130 (asm_language_data): Delete la_demangle initializer.
3131 (minimal_language_data): Delete la_demangle initializer.
3132 * d-lang.c (d_language_data): Delete la_demangle initializer.
3133 (d_language::demangle): New member function.
3134 * f-lang.c (f_language_data): Delete la_demangle initializer.
3135 (f_language::demangle): New member function.
3136 * go-lang.c (go_language_data): Delete la_demangle initializer.
3137 (go_language::demangle): New member function.
3138 * language.c (language_demangle): Update.
3139 (unk_lang_demangle): Delete.
3140 (unknown_language_data): Delete la_demangle initializer.
3141 (unknown_language::demangle): New member function.
3142 (auto_language_data): Delete la_demangle initializer.
3143 (auto_language::demangle): New member function.
3144 * language.h (language_data): Delete la_demangle field.
3145 (language_defn::demangle): New function.
3146 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3147 * objc-lang.c (objc_language_data): Delete la_demangle
3148 initializer.
3149 (objc_language::demangle): New member function.
3150 * opencl-lang.c (opencl_language_data): Delete la_demangle
3151 initializer.
3152 * p-lang.c (pascal_language_data): Likewise.
3153 * rust-lang.c (rust_language_data): Likewise.
3154 (rust_language::demangle): New member function.
3155
3156 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3157
3158 * ada-lang.c (ada_language_data): Delete la_print_type
3159 initializer.
3160 (ada_language::print_type): New member function.
3161 * c-lang.c (c_language_data): Delete la_print_type initializer.
3162 (c_language::print_type): New member function.
3163 (cplus_language_data): Delete la_print_type initializer.
3164 (cplus_language::print_type): New member function.
3165 (asm_language_data): Delete la_print_type initializer.
3166 (asm_language::print_type): New member function.
3167 (minimal_language_data): Delete la_print_type initializer.
3168 (minimal_language::print_type): New member function.
3169 * d-lang.c (d_language_data): Delete la_print_type initializer.
3170 (d_language::print_type): New member function.
3171 * f-lang.c (f_language_data): Delete la_print_type initializer.
3172 (f_language::print_type): New member function.
3173 * go-lang.c (go_language_data): Delete la_print_type initializer.
3174 (go_language::print_type): New member function.
3175 * language.c (unk_lang_print_type): Delete.
3176 (unknown_language_data): Delete la_print_type initializer.
3177 (unknown_language::print_type): New member function.
3178 (auto_language_data): Delete la_print_type initializer.
3179 (auto_language::print_type): New member function.
3180 * language.h (language_data): Delete la_print_type field.
3181 (language_defn::print_type): New function.
3182 (LA_PRINT_TYPE): Update.
3183 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3184 (m2_language::print_type): New member function.
3185 * objc-lang.c (objc_language_data): Delete la_print_type
3186 initializer.
3187 (objc_language::print_type): New member function.
3188 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3189 to opencl_language::print_type.
3190 (opencl_language_data): Delete la_print_type initializer.
3191 (opencl_language::print_type): New member function, implementation
3192 from opencl_print_type.
3193 * p-lang.c (pascal_language_data): Delete la_print_type
3194 initializer.
3195 (pascal_language::print_type): New member function.
3196 * rust-lang.c (rust_print_type): Delete, implementation moved to
3197 rust_language::print_type.
3198 (rust_language_data): Delete la_print_type initializer.
3199 (rust_language::print_type): New member function, implementation
3200 from rust_print_type.
3201
3202 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3205 implementation moves to...
3206 (ada_language::sniff_from_mangled_name): ...here. Update return
3207 type.
3208 (ada_language_data): Delete la_sniff_from_mangled_name
3209 initializer.
3210 * c-lang.c (c_language_data): Likewise.
3211 (cplus_language_data): Likewise.
3212 (cplus_language::sniff_from_mangled_name): New member function,
3213 implementation taken from gdb_sniff_from_mangled_name.
3214 (asm_language_data): Delete la_sniff_from_mangled_name
3215 initializer.
3216 (minimal_language_data): Likewise.
3217 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3218 implementation moves to cplus_language::sniff_from_mangled_name.
3219 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3220 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3221 moves to...
3222 (d_language::sniff_from_mangled_name): ...here.
3223 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3224 * f-lang.c (f_language_data): Likewise.
3225 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3226 moves to...
3227 (go_language::sniff_from_mangled_name): ...here.
3228 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3229 * language.c (language_sniff_from_mangled_name): Delete.
3230 (unknown_language_data): Delete la_sniff_from_mangled_name
3231 initializer.
3232 (auto_language_data): Likewise.
3233 * language.h (language_data): Delete la_sniff_from_mangled_name
3234 field.
3235 (language_defn::sniff_from_mangled_name): New function.
3236 (language_sniff_from_mangled_name): Delete declaration.
3237 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3238 field.
3239 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3240 implementation moves to...
3241 (objc_language::sniff_from_mangled_name): ...here.
3242 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3243 * opencl-lang.c (opencl_language_data): Likewise.
3244 * p-lang.c (pascal_language_data): Likewise.
3245 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3246 implementation moves to...
3247 (rust_language::sniff_from_mangled_name): ...here.
3248 (rust_language_data): Delete la_sniff_from_mangled_name
3249 initializer.
3250 * symtab.c (symbol_find_demangled_name): Call
3251 sniff_from_mangled_name member function.
3252
3253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3256 initializer.
3257 * c-lang.c (c_language_data): Likewise.
3258 (cplus_language_data): Likewise.
3259 (cplus_language::search_name_hash): New member function.
3260 (asm_language_data): Delete la_search_name_hash initializer.
3261 (minimal_language_data): Likewise.
3262 * d-lang.c (d_language_data): Likewise.
3263 * dictionary.c (default_search_name_hash): Rename to...
3264 (language_defn::search_name_hash): ...this.
3265 * f-lang.c (f_language_data): Likewise.
3266 (f_language::search_name_hash): New member function.
3267 * go-lang.c (go_language_data): Delete la_search_name_hash
3268 initializer.
3269 * language.c (unknown_language_data): Likewise.
3270 (auto_language_data): Likewise.
3271 * language.h (struct language_data): Delete la_search_name_hash
3272 field.
3273 (language_defn::search_name_hash): Declare new member function.
3274 (default_search_name_hash): Delete declaration.
3275 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3276 initializer.
3277 * objc-lang.c (objc_language_data): Likewise.
3278 * opencl-lang.c (opencl_language_data): Likewise.
3279 * p-lang.c (pascal_language_data): Likewise.
3280 * rust-lang.c (rust_language_data): Likewise.
3281 * symtab.c (search_name_hash): Update call.
3282
3283 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3286 initializer.
3287 * c-lang.c (class compile_instance): Declare.
3288 (c_language_data): Delete la_get_compile_instance initializer.
3289 (c_language::get_compile_instance): New member function.
3290 (cplus_language_data): Delete la_get_compile_instance initializer.
3291 (cplus_language::get_compile_instance): New member function.
3292 (asm_language_data): Delete la_get_compile_instance initializer.
3293 (minimal_language_data): Likewise.
3294 * c-lang.h (c_get_compile_context): Update comment.
3295 (cplus_get_compile_context): Update comment.
3296 * compile/compile.c (compile_to_object): Update calls, don't rely
3297 on function pointer being NULL.
3298 * d-lang.c (d_language_data): Delete la_get_compile_instance
3299 initializer.
3300 * f-lang.c (f_language_data): Likewise.
3301 * go-lang.c (go_language_data): Likewise.
3302 * language.c (unknown_language_data): Likewise.
3303 (auto_language_data): Likewise.
3304 * language.h (language_data): Delete la_get_compile_instance field.
3305 (language_defn::get_compile_instance): New member function.
3306 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3307 initializer.
3308 * objc-lang.c (objc_language_data): Likewise.
3309 * opencl-lang.c (opencl_language_data): Likewise.
3310 * p-lang.c (pascal_language_data): Likewise.
3311 * rust-lang.c (rust_language_data): Likewise.
3312
3313 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_add_all_symbols): Update comment.
3316 (ada_iterate_over_symbols): Delete, move implementation to...
3317 (ada_language::iterate_over_symbols): ...here, a new member
3318 function, rewrite to use range based for loop.
3319 (ada_language_data): Delete la_iterate_over_symbols initializer.
3320 * c-lang.c (c_language_data): Likewise.
3321 (cplus_language_data): Likewise.
3322 (asm_language_data): Likewise.
3323 (minimal_language_data): Likewise.
3324 * d-lang.c (d_language_data): Likewise.
3325 * f-lang.c (f_language_data): Likewise.
3326 * go-lang.c (go_language_data): Likewise.
3327 * language.c (unknown_language_data): Likewise.
3328 (auto_language_data): Likewise.
3329 * language.h (language_data): Delete la_iterate_over_symbols field.
3330 (language_defn::iterate_over_symbols): New member function.
3331 (LA_ITERATE_OVER_SYMBOLS): Update.
3332 * linespec.c (iterate_over_all_matching_symtabs): Update.
3333 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3334 initializer.
3335 * objc-lang.c (objc_language_data): Likewise.
3336 * opencl-lang.c (opencl_language_data): Likewise.
3337 * p-lang.c (pascal_language_data): Likewise.
3338 * rust-lang.c (rust_language_data): Likewise.
3339
3340 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * ada-lang.c (ada_language_data): Delete
3343 la_lookup_transparent_type initializer.
3344 * c-lang.c (c_language_data): Likewise.
3345 (cplus_language_data): Likewise.
3346 (cplus_language::lookup_transparent_type): New member function.
3347 (asm_language_data): Delete la_lookup_transparent_type
3348 initializer.
3349 (minimal_language_data): Likewise.
3350 * d-lang.c (d_language_data): Likewise.
3351 * f-lang.c (f_language_data): Likewise.
3352 * go-lang.c (go_language_data): Likewise.
3353 * language.c (unknown_language_data): Likewise.
3354 (auto_language_data): Likewise.
3355 * language.h (struct language_data): Delete
3356 la_lookup_transparent_type field.
3357 (language_defn::lookup_transparent_type): New member function.
3358 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3359 initializer.
3360 * objc-lang.c (objc_language_data): Likewise.
3361 * opencl-lang.c (opencl_language_data): Likewise.
3362 * p-lang.c (pascal_language_data): Likewise.
3363 * rust-lang.c (rust_language_data): Likewise.
3364 * symtab.c (symbol_matches_domain): Update call.
3365
3366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * ada-lang.c (ada_language_arch_info): Delete function, move
3369 implementation to...
3370 (ada_language::language_arch_info): ...here, a new member
3371 function.
3372 (ada_language_data): Delete la_language_arch_info.
3373 * c-lang.c (c_language_data): Likewise.
3374 (c_language::language_arch_info): New member function.
3375 (cplus_language_arch_info): Delete function, move
3376 implementation to...
3377 (cplus_language::language_arch_info): ...here, a new member
3378 function.
3379 (cplus_language_data): Delete la_language_arch_info.
3380 (asm_language_data): Likewise.
3381 (asm_language::language_arch_info): New member function.
3382 (minimal_language_data): Delete la_language_arch_info.
3383 (minimal_language::language_arch_info): New member function.
3384 * d-lang.c (d_language_arch_info): Delete function, move
3385 implementation to...
3386 (d_language::language_arch_info): ...here, a new member
3387 function.
3388 (d_language_data): Delete la_language_arch_info.
3389 * f-lang.c (f_language_arch_info): Delete function, move
3390 implementation to...
3391 (f_language::language_arch_info): ...here, a new member
3392 function.
3393 (f_language_data): Delete la_language_arch_info.
3394 * go-lang.c (go_language_arch_info): Delete function, move
3395 implementation to...
3396 (go_language::language_arch_info): ...here, a new member
3397 function.
3398 (go_language_data): Delete la_language_arch_info.
3399 * language.c (unknown_language_data): Likewise.
3400 (unknown_language::language_arch_info): New member function.
3401 (auto_language_data): Delete la_language_arch_info.
3402 (auto_language::language_arch_info): New member function.
3403 (language_gdbarch_post_init): Update call to
3404 la_language_arch_info.
3405 * language.h (language_data): Delete la_language_arch_info
3406 function pointer.
3407 (language_defn::language_arch_info): New function.
3408 * m2-lang.c (m2_language_arch_info): Delete function, move
3409 implementation to...
3410 (m2_language::language_arch_info): ...here, a new member
3411 function.
3412 (m2_language_data): Delete la_language_arch_info.
3413 * objc-lang.c (objc_language_arch_info): Delete function, move
3414 implementation to...
3415 (objc_language::language_arch_info): ...here, a new member
3416 function.
3417 (objc_language_data): Delete la_language_arch_info.
3418 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3419 implementation to...
3420 (opencl_language::language_arch_info): ...here, a new member
3421 function.
3422 (opencl_language_data): Delete la_language_arch_info.
3423 * p-lang.c (pascal_language_arch_info): Delete function, move
3424 implementation to...
3425 (pascal_language::language_arch_info): ...here, a new member
3426 function.
3427 (pascal_language_data): Delete la_language_arch_info.
3428 * rust-lang.c (rust_language_arch_info): Delete function, move
3429 implementation to...
3430 (rust_language::language_arch_info): ...here, a new member
3431 function.
3432 (rust_language_data): Delete la_language_arch_info.
3433
3434 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3437 initializer.
3438 * c-lang.c (c_language_data): Likewise.
3439 (cplus_language_data): Likewise.
3440 (cplus_language::pass_by_reference_info): New method.
3441 (asm_language_data): Delete la_pass_by_reference initializer.
3442 (minimal_language_data): Likewise.
3443 * cp-abi.c (cp_pass_by_reference): Remove use of
3444 default_pass_by_reference.
3445 * d-lang.c (d_language_data): Likewise.
3446 * f-lang.c (f_language_data): Likewise.
3447 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3448 default_pass_by_reference.
3449 * go-lang.c (go_language_data): Likewise.
3450 * language.c (language_pass_by_reference): Update.
3451 (default_pass_by_reference): Delete.
3452 (unknown_language_data): Delete la_pass_by_reference
3453 initializer.
3454 (auto_language_data): Likewise.
3455 * language.h (struct language_data): Delete la_pass_by_reference
3456 field.
3457 (language_defn::pass_by_reference_info): New member function.
3458 (default_pass_by_reference): Delete declaration.
3459 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3460 initializer.
3461 * objc-lang.c (objc_language_data): Likewise.
3462 * opencl-lang.c (opencl_language_data): Likewise.
3463 * p-lang.c (pascal_language_data): Likewise.
3464 * rust-lang.c (rust_language_data): Likewise.
3465
3466 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_read_var_value): Delete function, move
3469 implementation to...
3470 (ada_language::read_var_value): ...here.
3471 (ada_language_data): Delete la_read_var_value initializer.
3472 * c-lang.c (c_language_data): Likewise.
3473 (cplus_language_data): Likewise.
3474 (minimal_language_data): Likewise.
3475 * d-lang.c (d_language_data): Likewise.
3476 * f-lang.c (f_language_data): Likewise.
3477 * findvar.c (default_read_var_value): Rename to...
3478 (language_defn::read_var_value): ...this.
3479 * findvar.c (read_var_value): Update header comment, and change to
3480 call member function instead of function pointer.
3481 * go-lang.c (go_language_data): Likewise.
3482 * language.c (unknown_language_data): Delete la_read_var_value
3483 initializer.
3484 (auto_language_data): Likewise.
3485 * language.h (struct language_data): Delete la_read_var_value
3486 field.
3487 (language_defn::read_var_value): New member function.
3488 (default_read_var_value): Delete declaration.
3489 * m2-lang.c (m2_language_data): Delete la_read_var_value
3490 initializer.
3491 * objc-lang.c (objc_language_data): Likewise.
3492 * opencl-lang.c (opencl_language_data): Likewise.
3493 * p-lang.c (pascal_language_data): Likewise.
3494 * rust-lang.c (rust_language_data): Likewise.
3495 * value.h (default_read_var_value): Delete declaration.
3496
3497 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * ada-lang.c (ada_print_array_index): Delete function, move
3500 implementation to...
3501 (ada_language::print_array_index): ...here.
3502 (ada_language_data): Delete la_print_array_index initializer.
3503 * c-lang.c (c_language_data): Likewise.
3504 (cplus_language_data): Likewise.
3505 (minimal_language_data): Likewise.
3506 * d-lang.c (d_language_data): Likewise.
3507 * f-lang.c (f_language_data): Likewise.
3508 * go-lang.c (go_language_data): Likewise.
3509 * language.c (default_print_array_index): Delete function, move
3510 implementation to...
3511 (language_defn::print_array_index): ...here.
3512 (unknown_language_data): Delete la_print_array_index initializer.
3513 (auto_language_data): Likewise.
3514 * language.h (struct language_data): Delete la_print_array_index
3515 field.
3516 (language_defn::print_array_index): New member function.
3517 (LA_PRINT_ARRAY_INDEX): Update.
3518 (default_print_array_index): Delete declaration.
3519 * m2-lang.c (m2_language_data): Delete la_print_array_index
3520 initializer.
3521 * objc-lang.c (objc_language_data): Likewise.
3522 * opencl-lang.c (opencl_language_data): Likewise.
3523 * p-lang.c (pascal_language_data): Likewise.
3524 * rust-lang.c (rust_language_data): Likewise.
3525
3526 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * gdb/ada-lang.c (ada_language_defn): Convert to...
3529 (ada_language_data): ...this.
3530 (class ada_language): New class.
3531 (ada_language_defn): New static global.
3532 * gdb/c-lang.c (c_language_defn): Convert to...
3533 (c_language_data): ...this.
3534 (class c_language): New class.
3535 (c_language_defn): New static global.
3536 (cplus_language_defn): Convert to...
3537 (cplus_language_data): ...this.
3538 (class cplus_language): New class.
3539 (cplus_language_defn): New static global.
3540 (asm_language_defn): Convert to...
3541 (asm_language_data): ...this.
3542 (class asm_language): New class.
3543 (asm_language_defn): New static global.
3544 (minimal_language_defn): Convert to...
3545 (minimal_language_data): ...this.
3546 (class minimal_language): New class.
3547 (minimal_language_defn): New static global.
3548 * gdb/d-lang.c (d_language_defn): Convert to...
3549 (d_language_data): ...this.
3550 (class d_language): New class.
3551 (d_language_defn): New static global.
3552 * gdb/f-lang.c (f_language_defn): Convert to...
3553 (f_language_data): ...this.
3554 (class f_language): New class.
3555 (f_language_defn): New static global.
3556 * gdb/go-lang.c (go_language_defn): Convert to...
3557 (go_language_data): ...this.
3558 (class go_language): New class.
3559 (go_language_defn): New static global.
3560 * gdb/language.c (unknown_language_defn): Remove declaration.
3561 (current_language): Initialize to nullptr, real initialization is
3562 moved to _initialize_language.
3563 (languages): Delete global.
3564 (language_defn::languages): Define.
3565 (set_language_command): Use language_defn::languages.
3566 (set_language): Likewise.
3567 (range_error): Likewise.
3568 (language_enum): Likewise.
3569 (language_def): Likewise.
3570 (add_set_language_command): Use language_def::languages for the
3571 language list, and language_def to lookup language pointers.
3572 (skip_language_trampoline): Use language_defn::languages.
3573 (unknown_language_defn): Convert to...
3574 (unknown_language_data): ...this.
3575 (class unknown_language): New class.
3576 (unknown_language_defn): New static global.
3577 (auto_language_defn): Convert to...
3578 (auto_language_data): ...this.
3579 (class auto_language): New class.
3580 (auto_language_defn): New static global.
3581 (language_gdbarch_post_init): Use language_defn::languages.
3582 (_initialize_language): Initialize current_language.
3583 * gdb/language.h (struct language_defn): Rename to...
3584 (struct language_data): ...this.
3585 (struct language_defn): New.
3586 (auto_language_defn): Delete.
3587 (unknown_language_defn): Delete.
3588 (minimal_language_defn): Delete.
3589 (ada_language_defn): Delete.
3590 (asm_language_defn): Delete.
3591 (c_language_defn): Delete.
3592 (cplus_language_defn): Delete.
3593 (d_language_defn): Delete.
3594 (f_language_defn): Delete.
3595 (go_language_defn): Delete.
3596 (m2_language_defn): Delete.
3597 (objc_language_defn): Delete.
3598 (opencl_language_defn): Delete.
3599 (pascal_language_defn): Delete.
3600 (rust_language_defn): Delete.
3601 * gdb/m2-lang.c (m2_language_defn): Convert to...
3602 (m2_language_data): ...this.
3603 (class m2_language): New class.
3604 (m2_language_defn): New static global.
3605 * gdb/objc-lang.c (objc_language_defn): Convert to...
3606 (objc_language_data): ...this.
3607 (class objc_language): New class.
3608 (objc_language_defn): New static global.
3609 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3610 (opencl_language_data): ...this.
3611 (class opencl_language): New class.
3612 (opencl_language_defn): New static global.
3613 * gdb/p-lang.c (pascal_language_defn): Convert to...
3614 (pascal_language_data): ...this.
3615 (class pascal_language): New class.
3616 (pascal_language_defn): New static global.
3617 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3618 language pointer, update comment format.
3619 * gdb/rust-lang.c (rust_language_defn): Convert to...
3620 (rust_language_data): ...this.
3621 (class rust_language): New class.
3622 (rust_language_defn): New static global.
3623
3624 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3627 member variable.
3628 <m_stmt_at_address>: New member variable.
3629 (lnp_state_machine::record_line): Don't record some lines, update
3630 tracking of is_stmt at the same address.
3631 (lnp_state_machine::lnp_state_machine): Initialise new member
3632 variables.
3633
3634 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3635
3636 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3637 "-include gnu-nat-mig.h".
3638 * gnu-nat-mig.h: New file.
3639 * gnu-nat.c: Include "gnu-nat-mig.h".
3640 (exc_server, msg_reply_server, notify_server,
3641 process_reply_server): Remove declarations.
3642
3643 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3644
3645 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3646 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3647 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3648 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3649 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3650 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3651 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3652 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3653 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3654 to gnu_nat_target class.
3655 * gnu-nat.c: Likewise.
3656 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3657 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3658 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3659 object.
3660 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3661 instead of `gnu_target'.
3662
3663 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3664
3665 * i386-gnu-tdep.c: Include "gdbcore.h"
3666 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3667 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3668 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3669 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3670 i386_gnu_sigcontext_addr): New functions
3671 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3672 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3673 tdep.
3674
3675 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3676
3677 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3678 before fork_inferior call. Avoid calling it if target_is_pushed returns
3679 true.
3680
3681 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3682
3683 * gnu-nat.h (gnu_target): New variable declaration.
3684 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3685 gnu_target.
3686 * gnu-nat.c (gnu_target): New variable.
3687 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3688 add_thread_silent, and add_thread calls.
3689 (gnu_nat_target::create_inferior): Pass gnu_target to
3690 add_thread_silent, thread_change_ptid call.
3691 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3692 call.
3693
3694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3695
3696 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3697 (gnu_nat_target::find_memory_regions): Remove unused
3698 `old_address' variable.
3699
3700 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3701
3702 * gnu-nat.c: Include "gdbarch.h".
3703
3704 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3705
3706 * reply_mig_hack.awk (Error return): Cast function through
3707 void *, to bypass compiler function call check.
3708
3709 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3710
3711 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3712 $(srcdir)/reply_mig_hack.awk.
3713
3714 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3715
3716 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3717
3718 2020-05-30 Jonny Grant <jg@jguk.org>
3719
3720 * configure.ac (ACX_BUGURL): change bug URL to https.
3721
3722 2020-05-30 Pedro Alves <palves@redhat.com>
3723
3724 * cp-support.c (replace_typedefs_template): New.
3725 (replace_typedefs_qualified_name): Handle
3726 DEMANGLE_COMPONENT_TEMPLATE.
3727
3728 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3731 dwarf2/index-cache.h, dwarf2/index-write.c,
3732 dwarf2/index-write.h, dwarf2/line-header.c,
3733 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3734 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3735 variables and fields from `dwarf2_per_objfile` to just
3736 `per_objfile` throughout.
3737
3738 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3741 <push_dwarf_reg_entry_value>: Add comment.
3742
3743 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3744 Keith Seitz <keiths@redhat.com>
3745
3746 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3747 instead of PyEval_ReleaseLock.
3748 (class gdbpy_gil): Move to earlier in file.
3749 (finalize_python): Set gdb_python_initialized.
3750 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3751 when not initialized.
3752
3753 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3756 <push_dwarf_reg_entry_value>: Remove assert. Override
3757 per_objfile with caller_per_objfile.
3758
3759 2020-05-28 Tom de Vries <tdevries@suse.de>
3760
3761 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3762 PR gold/15646 workaround to symbol kind "type".
3763
3764 2020-05-27 Tom Tromey <tromey@adacore.com>
3765
3766 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3767
3768 2020-05-27 Tom Tromey <tromey@adacore.com>
3769
3770 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3771 Use htab_find_with_hash.
3772 <add_abbrev>: Remove "abbrev_number" parameter.
3773 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3774 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3775 (hash_abbrev): Add comment.
3776 (abbrev_table::lookup_abbrev): Move to header file.
3777 (abbrev_table::read): Update.
3778
3779 2020-05-27 Tom Tromey <tromey@adacore.com>
3780
3781 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3782 method.
3783 <canonical_name>: New member.
3784 <raw_name>: Rename from "name".
3785 (partial_die_info): Initialize canonical_name.
3786 (scan_partial_symbols): Check raw_name.
3787 (partial_die_parent_scope, partial_die_full_name)
3788 (add_partial_symbol, add_partial_subprogram)
3789 (add_partial_enumeration, load_partial_dies): Use "name" method.
3790 (partial_die_info::name): New method.
3791 (partial_die_info::read, guess_partial_die_structure_name)
3792 (partial_die_info::fixup): Update.
3793
3794 2020-05-27 Tom Tromey <tromey@adacore.com>
3795
3796 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3797 <get_ref_die_offset>: Inline.
3798 <get_ref_die_offset_complaint>: New method.
3799 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3800 (attribute::get_ref_die_offset_complaint): Rename from
3801 get_ref_die_offset. Just issue complaint.
3802
3803 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3804
3805 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3806
3807 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3808
3809 * exec.c (exec_file_attach): Use errno value of first openp failure.
3810
3811 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3812
3813 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3814 Don't close thread handle.
3815
3816 2020-05-27 Tom Tromey <tom@tromey.com>
3817 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3820 shared_ptr.
3821 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3822 member.
3823 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3824 dwarf2_per_bfd_objfile_data_key>: New globals.
3825 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3826 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3827 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3828 shared.
3829 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3830 short-circuit when sharing.
3831 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3832 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3833
3834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3837 to...
3838 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3839 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3840
3841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3844 build_name_components, find_name_components_bounds>:
3845 Add per_objfile parameter.
3846 (struct mapped_index) <symbol_name_at>: Likewise.
3847 (struct mapped_debug_names): Remove constructor.
3848 <dwarf2_per_objfile>: Remove field.
3849 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3850 (mapped_index_base::find_name_components_bounds,
3851 mapped_index_base::build_name_components,
3852 dw2_expand_symtabs_matching_symbol): Likewise.
3853 (class mock_mapped_index) <symbol_name_at>: Likewise.
3854 (check_match): Likewise.
3855 (check_find_bounds_finds): Likewise.
3856 (test_mapped_index_find_name_component_bounds): Update.
3857 (CHECK_MATCH): Update.
3858 (dw2_expand_symtabs_matching): Update.
3859 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3860 per_objfile parameter.
3861 <find_vec_in_debug_names>: Likewise.
3862 <m_per_objfile>: New field.
3863 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3864 parameter.
3865 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3866 (dw2_debug_names_iterator::next): Update.
3867 (dw2_debug_names_lookup_symbol): Update.
3868 (dw2_debug_names_expand_symtabs_for_function): Update.
3869 (dw2_debug_names_map_matching_symbols): Update.
3870 (dw2_debug_names_expand_symtabs_matching): Update.
3871 (dwarf2_read_debug_names): Update.
3872
3873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3874
3875 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3876 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3877 move to dwarf2_per_objfile.
3878 <read_in_chain>: Remove.
3879 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3880 remove_all_cus, age_comp_units>: New methods.
3881 <m_dwarf2_cus>: New member.
3882 (struct dwarf2_per_cu_data) <cu>: Remove.
3883 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3884 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3885 moved to methods of dwarf2_per_objfile.
3886 (dwarf2_clear_marks): Remove.
3887 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3888 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3889 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3890 (dwarf2_per_objfile::remove_all_cus): New.
3891 (class free_cached_comp_units) <~free_cached_comp_units>:
3892 Update.
3893 (load_cu): Update.
3894 (dw2_do_instantiate_symtab): Adjust.
3895 (fill_in_sig_entry_from_dwo_entry): Adjust.
3896 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3897 (cutu_reader::cutu_reader): Likewise.
3898 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3899 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3900 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3901 and dwarf2_per_objfile::age_comp_units.
3902 (load_partial_comp_unit): Update.
3903 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3904 (process_queue): Likewise.
3905 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3906 backlink.
3907 (dwarf2_read_addr_index): Likewise.
3908 (follow_die_offset): Likewise.
3909 (dwarf2_fetch_die_loc_sect_off): Likewise.
3910 (dwarf2_fetch_constant_bytes): Likewise.
3911 (dwarf2_fetch_die_type_sect_off): Likewise.
3912 (follow_die_sig_1): Likewise.
3913 (load_full_type_unit): Likewise.
3914 (read_signatured_type): Likewise.
3915 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3916 (dwarf2_cu::~dwarf2_cu): Remove.
3917 (dwarf2_per_objfile::get_cu): New.
3918 (dwarf2_per_objfile::set_cu): New.
3919 (age_cached_comp_units): Rename to...
3920 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3921 to std::unordered_map.
3922 (free_one_cached_comp_unit): Rename to...
3923 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3924 to std::unordered_map.
3925 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3926 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3927 a dwarf2_per_objfile in data.
3928 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3929 (dwarf2_clear_marks): Remove.
3930
3931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3934 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3935 (init_tu_and_read_dwo_dies): Likewise.
3936 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3937 (cutu_reader::cutu_reader): Likewise.
3938 (load_partial_comp_unit): Likewise.
3939 (process_psymtab_comp_unit): Update.
3940 (build_type_psymtabs_1): Update.
3941 (process_skeletonless_type_unit): Update.
3942 (load_full_comp_unit): Update.
3943 (find_partial_die): Update.
3944 (dwarf2_read_addr_index): Update.
3945 (read_signatured_type): Update.
3946
3947 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3950 m_header_read_in>: New fields.
3951 <get_header>: New method.
3952 * dwarf2/read.c (per_cu_header_read_in): Remove.
3953 (dwarf2_per_cu_data::get_header): New.
3954 (dwarf2_per_cu_data::addr_size): Update.
3955 (dwarf2_per_cu_data::offset_size): Update.
3956 (dwarf2_per_cu_data::ref_addr_size): Update.
3957
3958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3961 (dw2_do_instantiate_symtab): Update.
3962 (queue_and_load_all_dwo_tus): Change parameter from
3963 dwarf2_per_cu_data to dwarf2_cu.
3964 (dwarf2_fetch_die_loc_sect_off): Update.
3965 (dwarf2_fetch_constant_bytes): Update.
3966 (dwarf2_fetch_die_type_sect_off): Update.
3967
3968 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 * dwarf2/read.c (process_full_comp_unit,
3971 process_full_type_unit): Remove per_cu, per_objfile paramters.
3972 Add dwarf2_cu parameter.
3973 (process_queue): Update.
3974
3975 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3976
3977 * dwarf2/read.c (create_cu_from_index_list): Replace
3978 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3979 (create_cus_from_index_list): Likewise.
3980 (create_cus_from_index): Likewise.
3981 (create_signatured_type_table_from_index): Likewise.
3982 (create_cus_from_debug_names_list): Likewise.
3983 (create_cus_from_debug_names): Likewise.
3984 (dwarf2_read_gdb_index): Update.
3985 (dwarf2_read_debug_names): Update.
3986
3987 2020-05-27 Tom Tromey <tom@tromey.com>
3988 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * dwarf2/read.h (struct dwarf2_per_objfile)
3991 <get_type_for_signatured_type, set_type_for_signatured_type>:
3992 New methods.
3993 <m_type_map>: New member.
3994 (struct signatured_type) <type>: Remove.
3995 * dwarf2/read.c
3996 (dwarf2_per_objfile::get_type_for_signatured_type,
3997 dwarf2_per_objfile::set_type_for_signatured_type): New.
3998 (get_signatured_type): Use new methods.
3999
4000 2020-05-27 Tom Tromey <tom@tromey.com>
4001 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4004 (struct dwarf2_per_objfile) <type_units>: New member.
4005 <get_type_unit_group_unshareable>: New method.
4006 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4007 num_symtabs, symtabs>: Remove; move to
4008 type_unit_group_unshareable.
4009 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4010 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4011 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4012
4013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * dwarf2/read.h (struct dwarf2_per_cu_data):
4016 <dwarf2_per_objfile>: Remove.
4017 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4018 dwarf2_per_objfile.
4019 (create_signatured_type_table_from_index): Likewise.
4020 (create_signatured_type_table_from_debug_names): Likewise.
4021 (create_debug_type_hash_table): Likewise.
4022 (fill_in_sig_entry_from_dwo_entry): Likewise.
4023 (create_type_unit_group): Likewise.
4024 (read_comp_units_from_section): Likewise.
4025 (create_cus_hash_table): Likewise.
4026
4027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4030 dwarf2_per_cu_data::dwarf2_per_objfile.
4031 (compute_compunit_symtab_includes): Likewise.
4032 (dwarf2_cu::start_symtab): Likewise.
4033
4034 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4037 parameter.
4038 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4039 (read_namespace_alias): Update.
4040 (lookup_die_type): Update.
4041 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4042 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4043 Update.
4044 (disassemble_dwarf_expression): Update.
4045
4046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * dwarf2/read.h (struct dwarf2_queue_item): Add
4049 dwarf2_per_objfile parameter, assign new parameter.
4050 <per_objfile>: New field.
4051 * dwarf2/read.c (free_one_cached_comp_unit): Add
4052 dwarf2_per_objfile parameter.
4053 (queue_comp_unit): Likewise.
4054 (dw2_do_instantiate_symtab): Update.
4055 (process_psymtab_comp_unit): Update.
4056 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4057 (process_imported_unit_die): Update.
4058 (queue_and_load_dwo_tu): Update.
4059 (follow_die_offset): Update.
4060 (follow_die_sig_1): Update.
4061
4062 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4065 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4066 (read_call_site_scope): Assign per_objfile.
4067 (dwarf2_per_cu_data::objfile): Remove.
4068 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4069 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4070 dwarf2_per_objfile parameter.
4071 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4072 dwarf2_per_objfile parameter.
4073 (dwarf_expr_reg_to_entry_parameter): Add output
4074 dwarf2_per_objfile parameter.
4075 (locexpr_get_frame_base): Update.
4076 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4077 <push_dwarf_reg_entry_value>: Update.
4078 <call_site_to_target_addr>: Update.
4079 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4080 parameter.
4081 (value_of_dwarf_reg_entry): Update.
4082 (rw_pieced_value): Update.
4083 (indirect_synthetic_pointer): Update.
4084 (dwarf2_evaluate_property): Update.
4085 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4086 parameter.
4087 (locexpr_read_variable): Update.
4088 (locexpr_get_symbol_read_needs): Update.
4089 (loclist_read_variable): Update.
4090
4091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4094 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4095 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4096 parameter.
4097 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4099 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4100 parameter.
4101 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4102 sect_variable_value): Add dwarf2_per_objfile parameter.
4103 (class dwarf_evaluate_loc_desc) <dwarf_call,
4104 dwarf_variable_value>: Update.
4105 (fetch_const_value_from_synthetic_pointer): Add
4106 dwarf2_per_objfile parameter.
4107 (fetch_const_value_from_synthetic_pointer): Update.
4108 (coerced_pieced_ref): Update.
4109 (class symbol_needs_eval_context) <dwarf_call,
4110 dwarf_variable_value>: Update.
4111 (dwarf2_compile_expr_to_ax): Update.
4112
4113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4116 parameter.
4117 (dwarf2_evaluate_loc_desc_full): Update.
4118
4119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4122 parameter.
4123 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4124 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4125 dwarf2_per_objfile parameter.
4126 (decode_debug_loc_dwo_addresses): Likewise.
4127 (dwarf2_find_location_expression): Update.
4128 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4129 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4130 parameter.
4131 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4132 parameter.
4133 (locexpr_describe_location_1): Likewise.
4134 (locexpr_describe_location): Update.
4135
4136 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4139 Remove.
4140 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4141 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4142 (dwarf2_compile_property_to_c): Update.
4143 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4144 use text offset from objfile.
4145 (locexpr_tracepoint_var_ref): Update.
4146 (locexpr_generate_c_location): Update.
4147 (loclist_describe_location): Update.
4148 (loclist_tracepoint_var_ref): Update.
4149 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4150 dwarf2_per_objfile parameter.
4151 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4152 use text offset from objfile.
4153 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4154
4155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * dwarf2/expr.h (struct dwarf_expr_context)
4158 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4159 <offset>: Remove.
4160 <per_objfile>: New member.
4161 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4162 dwarf2_per_objfile parameter. Don't set offset, set
4163 per_objfile.
4164 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4165 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4166 a dwarf2_per_objfile object instead of an offset.
4167 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4168 constructor.
4169 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4170 to dwarf2_expr_executor constructor. Don't set offset.
4171 (dwarf2_fetch_cfa_info): Update.
4172 (struct dwarf2_frame_cache) <text_offset>: Remove.
4173 <per_objfile>: New field.
4174 (dwarf2_frame_cache): Update.
4175 (dwarf2_frame_prev_register): Update.
4176 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4177 <dwarf_evaluate_loc_desc>: Add constructor.
4178 (dwarf2_evaluate_loc_desc_full): Update.
4179 (dwarf2_locexpr_baton_eval): Update.
4180 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4181 Add constructor.
4182 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4183
4184 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4187 addr_sized_int_type>: Move to dwarf2_cu.
4188 <int_type>: Move to dwarf2_per_objfile.
4189 (struct dwarf2_per_objfile) <int_type>: Move here.
4190 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4191 addr_sized_int_type>: Move here.
4192 (read_func_scope): Update.
4193 (read_array_type): Update.
4194 (read_tag_string_type): Update.
4195 (attr_to_dynamic_prop): Update.
4196 (dwarf2_per_cu_data::int_type): Rename to...
4197 (dwarf2_per_objfile::int_type): ... this.
4198 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4199 (dwarf2_cu::addr_sized_int_type): ... this.
4200 (read_subrange_type): Update.
4201 (dwarf2_per_cu_data::addr_type): Rename to...
4202 (dwarf2_cu::addr_type): ... this.
4203 (set_die_type): Update.
4204
4205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4208 data through per_cu->cu.
4209
4210 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4213 dwarf2_per_cu_data parameter fo dwarf2_cu.
4214 (lookup_dwo_type_unit): Likewise.
4215 (read_cutu_die_from_dwo): Likewise.
4216 (lookup_dwo_unit): Likewise.
4217 (open_and_init_dwo_file): Likewise.
4218 (lookup_dwo_cutu): Likewise.
4219 (lookup_dwo_comp_unit): Likewise.
4220 (lookup_dwo_type_unit): Likewise.
4221 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4222 (cutu_reader::cutu_reader): Update.
4223
4224 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4227 parameter.
4228 (process_full_type_unit): Likewise.
4229 (process_queue): Update.
4230
4231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * dwarf2/read.c (recursively_compute_inclusions): Add
4234 dwarf2_per_objfile parameter.
4235 (compute_compunit_symtab_includes): Likewise.
4236 (process_cu_includes): Update.
4237
4238 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4241 parameter.
4242 (create_type_unit_group): Update.
4243 (process_psymtab_comp_unit_reader): Update.
4244 (build_type_psymtabs_reader): Update.
4245
4246 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4249 object through m_this_cu->cu.
4250
4251 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4252
4253 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4254 the info parameter.
4255 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4256
4257 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4258
4259 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4260 per_objfile parameter.
4261 (load_full_type_unit): Add per_objfile parameter.
4262 (read_signatured_type): Likewise.
4263 (load_full_comp_unit): Likewise.
4264 (load_cu): Likewise.
4265 (dw2_do_instantiate_symtab): Likewise.
4266 (dw2_get_file_names): Likewise.
4267 (dw2_map_symtabs_matching_filename): Update.
4268 (dw_expand_symtabs_matching_file_matcher): Update.
4269 (dw2_map_symbol_filenames): Update.
4270 (process_psymtab_comp_unit): Add per_objfile parameter.
4271 (build_type_psymtabs_1): Update.
4272 (process_skeletonless_type_unit): Update.
4273 (dwarf2_build_psymtabs_hard): Update.
4274 (load_partial_comp_unit): Add per_objfile parameter.
4275 (scan_partial_symbols): Update.
4276 (load_full_comp_unit): Add per_objfile parameter.
4277 (process_imported_unit_die): Update.
4278 (create_cus_hash_table): Update.
4279 (find_partial_die): Update.
4280 (dwarf2_read_addr_index): Update.
4281 (follow_die_offset): Update.
4282 (dwarf2_fetch_die_loc_sect_off): Update.
4283 (dwarf2_fetch_constant_bytes): Update.
4284 (dwarf2_fetch_die_type_sect_off): Update.
4285 (follow_die_sig_1): Update.
4286 (load_full_type_unit): Add per_objfile parameter.
4287 (read_signatured_type): Likewise.
4288
4289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4292 of objfile_name.
4293
4294 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4297 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4298 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4299 field.
4300 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4301 (create_cus_from_index): Update.
4302 (dwarf2_read_gdb_index): Update.
4303 (create_cus_from_debug_names): Update.
4304 (dwarf2_read_debug_names): Update.
4305 (get_abbrev_section_for_cu): Update.
4306 (create_all_comp_units): Update.
4307 (read_attribute_value): Update.
4308 (get_debug_line_section): Update.
4309 * dwarf2/index-cache.c (index_cache::store): Update.
4310 * dwarf2/index-write.c (save_gdb_index_command): Update.
4311 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4312
4313 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4316 member.
4317 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4318 dwarf2_per_cu_data::per_bfd.
4319 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4320 (create_type_unit_group): Likewise.
4321 (queue_comp_unit): Remove reference to
4322 per_cu->dwarf2_per_objfile.
4323 (maybe_queue_comp_unit): Likewise.
4324 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4325 (create_cus_hash_table): Assign new field.
4326
4327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * dwarf2/read.c: Replace
4330 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4331 dwarf2_cu->per_objfile throughout.
4332
4333 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4336 parameter, don't use per_cu->dwarf2_per_objfile.
4337 (dw2_instantiate_symtab): Likewise.
4338 (dw2_find_last_source_symtab): Update.
4339 (dw2_map_expand_apply): Update.
4340 (dw2_lookup_symbol): Update.
4341 (dw2_expand_symtabs_for_function): Update.
4342 (dw2_expand_all_symtabs): Update.
4343 (dw2_expand_symtabs_with_fullname): Update.
4344 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4345 don't use per_cu->dwarf2_per_objfile.
4346 (dw2_expand_marked_cus): Update.
4347 (dw2_find_pc_sect_compunit_symtab): Update.
4348 (dw2_debug_names_lookup_symbol): Update.
4349 (dw2_debug_names_expand_symtabs_for_function): Update.
4350 (dw2_debug_names_map_matching_symbols): Update.
4351 (dwarf2_psymtab::expand_psymtab): Update.
4352
4353 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4356 <per_objfile>: New member.
4357 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4358 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4359 call to dwarf2_cu.
4360 (cutu_reader::cutu_reader): Update.
4361 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4362
4363 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4366 struct dwarf2_per_objfile.
4367 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4368 dwarf2_per_bfd.
4369 * dwarf2/read.c (set_die_type): Update.
4370 (get_die_type_at_offset): Update.
4371
4372 2020-05-27 Tom Tromey <tom@tromey.com>
4373 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4376 method.
4377 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4378 get_symtab, set_symtab>: New methods.
4379 <m_symtabs>: New field.
4380 (struct dwarf2_psymtab): Derive from partial_symtab.
4381 <readin_p, get_compunit_symtab>: Declare methods.
4382 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4383 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4384 New methods.
4385 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4386 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4387 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4388 (dw2_symtab_iter_next, dw2_print_stats)
4389 (dw2_expand_symtabs_with_fullname)
4390 (dw2_expand_symtabs_matching_one)
4391 (dw_expand_symtabs_matching_file_matcher)
4392 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4393 (dw2_debug_names_iterator::next)
4394 (dw2_debug_names_map_matching_symbols)
4395 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4396 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4397 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4398 New methods.
4399 (get_compunit_symtab, process_full_comp_unit)
4400 (process_full_type_unit): Update.
4401 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4402
4403 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4404
4405 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4406 then introduce a new dwarf2_per_objfile type.
4407 <read_line_string>: Move to the new dwarf2_per_objfile type.
4408 <objfile>: Likewise.
4409 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4410 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4411 dwarf2_per_objfile->per_bfd.
4412 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4413 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4414 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4415 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4416 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4417 (dwarf2_per_objfile::locate_sections): Rename to...
4418 (dwarf2_per_bfd::locate_sections): ... this.
4419 (dwarf2_per_objfile::get_cutu): Rename to...
4420 (dwarf2_per_bfd::get_cutu): ... this.
4421 (dwarf2_per_objfile::get_cu): Rename to...
4422 (dwarf2_per_bfd::get_cu): ... this.
4423 (dwarf2_per_objfile::get_tu): Rename to...
4424 (dwarf2_per_bfd::get_tu): ... this.
4425 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4426 (dwarf2_per_bfd::allocate_per_cu): ... this.
4427 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4428 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4429 (get_gdb_index_contents_ftype): Change parameter from
4430 dwarf2_per_objfile to dwarf2_per_bfd.
4431 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4432 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4433
4434 2020-05-27 Tom Tromey <tom@tromey.com>
4435 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4438 (allocate_piece_closure): Set "per_objfile" member.
4439 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4440 (locexpr_describe_location, loclist_describe_location): Use new
4441 member.
4442 * dwarf2/read.c (read_call_site_scope)
4443 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4444 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4445 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4446 handle_data_member_location): Set per_objfile member.
4447 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4448 member.
4449 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4450
4451 2020-05-27 Tom Tromey <tom@tromey.com>
4452
4453 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4454 allocate_signatured_type>: Declare new methods.
4455 <m_num_psymtabs>: New member.
4456 (struct dwarf2_per_cu_data) <index>: New member.
4457 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4458 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4459 (create_cu_from_index_list): Use allocate_per_cu.
4460 (create_signatured_type_table_from_index)
4461 (create_signatured_type_table_from_debug_names)
4462 (create_debug_type_hash_table, add_type_unit)
4463 (read_comp_units_from_section): Use allocate_signatured_type.
4464
4465 2020-05-27 Tom Tromey <tom@tromey.com>
4466
4467 * psymtab.c (partial_map_expand_apply)
4468 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4469 (psym_lookup_global_symbol_language)
4470 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4471 (psym_print_stats, psym_expand_symtabs_for_function)
4472 (psym_map_symbol_filenames, psym_map_matching_symbols)
4473 (psym_expand_symtabs_matching)
4474 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4475 (maintenance_check_psymtabs): Update.
4476 * psympriv.h (struct partial_symtab) <readin_p,
4477 get_compunit_symtab>: Add objfile parameter.
4478 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4479 Likewise.
4480 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4481 get_compunit_symtab>: Likewise.
4482 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4483
4484 2020-05-27 Tom Tromey <tom@tromey.com>
4485
4486 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4487 member.
4488 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4489 (create_cu_from_index_list)
4490 (create_signatured_type_table_from_index)
4491 (create_signatured_type_table_from_debug_names)
4492 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4493 (dwarf2_create_include_psymtab)
4494 (create_debug_type_hash_table, add_type_unit)
4495 (create_type_unit_group, read_comp_units_from_section)
4496 (dwarf2_compute_name, create_cus_hash_table)
4497 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4498 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4499 obstack.
4500 (dw2_get_real_path): Likewise. Change argument to
4501 dwarf2_per_objfile.
4502
4503 2020-05-27 Luis Machado <luis.machado@linaro.org>
4504
4505 PR tdep/26000
4506 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4507 for ldrd (immediate).
4508
4509 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4510
4511 * command.h: Add comment giving the name of class_tui.
4512 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4513 create the fake command for the help for class_tui.
4514
4515 2020-05-26 Tom Tromey <tromey@adacore.com>
4516
4517 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4518 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4519 (val_atr): New function.
4520 (value_val_atr): Use it.
4521 * ada-valprint.c (print_optional_low_bound): Change low bound
4522 handling for enums.
4523 (val_print_packed_array_elements): Don't call discrete_position.
4524 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4525 discrete_position for enum types.
4526 * language.c (default_print_array_index): Change type.
4527 * language.h (struct language_defn) <la_print_array_index>: Add
4528 index_type parameter, change type of index_value.
4529 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4530 (default_print_array_index): Update.
4531 * valprint.c (maybe_print_array_index): Don't call
4532 value_from_longest. Update.
4533 (value_print_array_elements): Don't call discrete_position.
4534
4535 2020-05-26 Tom Tromey <tromey@adacore.com>
4536
4537 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4538 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4539
4540 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4541
4542 PR gdb/13519
4543 * avr-tdep.c (avr_integer_to_address): Return data or code
4544 address accordingly to the second 'type' argument of the
4545 function.
4546
4547 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4548
4549 * infcmd.c, inferior.h: (construct_inferior_arguments):
4550 Moved function from here to gdbsupport/common-inferior.{h,cc}
4551
4552 2020-05-23 Tom Tromey <tom@tromey.com>
4553
4554 Revert commit eca1f90c:
4555 * NEWS: Remove entry for completion styling.
4556 * completer.c (_rl_completion_prefix_display_length): Move
4557 declaration later.
4558 (gdb_fnprint): Revert.
4559 (gdb_display_match_list_1): Likewise.
4560 * cli/cli-style.c (completion_prefix_style)
4561 (completion_difference_style, completion_suffix_style): Remove.
4562 (_initialize_cli_style): Revert.
4563 * cli/cli-style.h (completion_prefix_style)
4564 (completion_difference_style, completion_suffix_style): Don't
4565 declare.
4566
4567 2020-05-24 Pedro Alves <palves@redhat.com>
4568
4569 * symtab.c (completion_list_add_name): Return boolean indication
4570 of whether the symbol matched.
4571 (completion_list_add_symbol): Don't try to remove C++ aliases if
4572 the symbol didn't match in the first place.
4573 * symtab.h (completion_list_add_name): Return bool.
4574
4575 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4578 type::field.
4579
4580 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4581
4582 GDB 9.2 released.
4583
4584 2020-05-23 Tom Tromey <tom@tromey.com>
4585
4586 * NEWS: Add entry for completion styling.
4587 * completer.c (_rl_completion_prefix_display_length): Move
4588 declaration earlier.
4589 (gdb_fnprint): Use completion_style.
4590 (gdb_display_match_list_1): Likewise.
4591 * cli/cli-style.c (completion_prefix_style)
4592 (completion_difference_style, completion_suffix_style): New
4593 globals.
4594 (_initialize_cli_style): Register new globals.
4595 * cli/cli-style.h (completion_prefix_style)
4596 (completion_difference_style, completion_suffix_style): Declare.
4597
4598 2020-05-23 Pedro Alves <palves@redhat.com>
4599
4600 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4601 (parse_escape): Use ISDIGIT instead of isdigit.
4602 (puts_debug): Use gdb_isprint instead of isprint.
4603 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4604 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4605 ISSPACE instead of isspace.
4606 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4607 instead of isspace.
4608 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4609 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4610 instead of isxdigit and ISDIGIT instead of isdigit.
4611
4612 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (struct type) <field>: New method.
4615 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4616 or type::field.
4617
4618 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4621 (TYPE_FIELDS): Use type::fields. Change all call sites that
4622 modify the propery to use type::set_fields instead.
4623
4624 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4627 type::num_fields instead.
4628
4629 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4632 methods.
4633 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4634 that modify the number of fields to use type::set_num_fields
4635 instead.
4636
4637 2020-05-22 Tom Tromey <tromey@adacore.com>
4638
4639 * compile/compile-object-load.h (munmap_list_free): Don't
4640 declare.
4641
4642 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * annotate.c (annotate_source_line): Update return type, add call
4645 to update current symtab and line.
4646 * annotate.h (annotate_source_line): Update return type, and
4647 extend header comment.
4648 * source.c (info_line_command): Check annotation_level before
4649 calling annotate_source_line.
4650 * stack.c (print_frame_info): If calling annotate_source_line
4651 returns true, then don't print any other source line information.
4652
4653 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4656
4657 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * coffread.c (patch_type): Remove NULL check before xfree.
4660 * corefile.c (set_gnutarget): Likewise.
4661 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4662 * exec.c (build_section_table): Likewise.
4663 * remote.c (remote_target::pass_signals): Likewise.
4664 * utils.c (n_spaces): Likewise.
4665 * cli/cli-script.c (document_command): Likewise.
4666 * i386-windows-tdep.c (core_process_module_section): Likewise.
4667 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4668
4669 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * symfile.c (reread_symbols): Clear objfile's section_offsets
4672 vector and section indices, re-compute them by calling
4673 sym_offsets.
4674
4675 2020-05-20 Tom Tromey <tromey@adacore.com>
4676
4677 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4678 (desc_one_bound, desc_index_type): Compute field name.
4679
4680 2020-05-20 Tom de Vries <tdevries@suse.de>
4681
4682 PR symtab/25833
4683 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4684
4685 2020-05-20 Alan Modra <amodra@gmail.com>
4686
4687 PR 25993
4688 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4689 bfd_set_filename.
4690 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4691 passed to bfd_set_filename.
4692 * symfile-mem.c (add_vsyscall_page): Likewise for string
4693 passed to symbol_file_add_from_memory.
4694 (symbol_file_add_from_memory): Make name param a const char* and
4695 don't strdup.
4696
4697 2020-05-20 Alan Modra <amodra@gmail.com>
4698
4699 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4700 rather than accessing bfd->filename directly.
4701 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4702 and use bfd_section_name.
4703 * dwarf2/frame.c (decode_frame_entry): Likewise.
4704 * exec.c (exec_set_section_address): Likewise.
4705 * solib-aix.c (solib_aix_bfd_open): Likewise.
4706 * stap-probe.c (get_stap_base_address): Likewise.
4707 * symfile.c (reread_symbols): Likewise.
4708
4709 2020-05-19 Tom Tromey <tromey@adacore.com>
4710
4711 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4712
4713 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4716
4717 2020-05-19 Pedro Alves <palves@redhat.com>
4718
4719 * NEWS (set exec-file-mismatch): Adjust entry.
4720 * exec.c: Include "build-id.h".
4721 (validate_exec_file): Try to match build IDs instead of filenames.
4722 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4723 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4724 and pass down 'warn_if_slow'.
4725 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4726 gdb_bfd_open_closure to pass it down.
4727 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4728
4729 2020-05-19 Pedro Alves <palves@redhat.com>
4730
4731 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4732 * target.c (target_fileio_open_1): Rename to target_fileio_open
4733 and make extern. Use bool.
4734 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4735 (target_fileio_read_alloc_1): Adjust.
4736 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4737 (target_fileio_open_warn_if_slow): Delete declaration.
4738
4739 2020-05-19 Pedro Alves <palves@redhat.com>
4740
4741 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4742 Adjust all callers.
4743
4744 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4745
4746 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4747 whether disp is negative.
4748
4749 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * symfile.h (struct symfile_segment_data)
4752 <~symfile_segment_data>: Remove.
4753 <segment_info>: Change to std::vector.
4754 * symfile.c (default_symfile_segments): Update.
4755 * elfread.c (elf_symfile_segments): Update.
4756
4757 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4760 <segments>: New.
4761 <segment_bases, segment_sizes>: Remove.
4762 * symfile.c (default_symfile_segments): Update.
4763 * elfread.c (elf_symfile_segments): Update.
4764 * remote.c (remote_target::get_offsets): Update.
4765 * solib-target.c (solib_target_relocate_section_addresses):
4766 Update.
4767
4768 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * symfile.h (struct symfile_segment_data): Initialize fields.
4771 <~symfile_segment_data>: Add.
4772 (symfile_segment_data_up): New.
4773 (struct sym_fns) <sym_segments>: Return a
4774 symfile_segment_data_up.
4775 (default_symfile_segments): Return a symfile_segment_data_up.
4776 (free_symfile_segment_data): Remove.
4777 (get_symfile_segment_data): Return a symfile_segment_data_up.
4778 * symfile.c (default_symfile_segments): Likewise.
4779 (get_symfile_segment_data): Likewise.
4780 (free_symfile_segment_data): Remove.
4781 (symfile_find_segment_sections): Update.
4782 * elfread.c (elf_symfile_segments): Return a
4783 symfile_segment_data_up.
4784 * remote.c (remote_target::get_offsets): Update.
4785 * solib-target.c (solib_target_relocate_section_addresses):
4786 Update.
4787 * symfile-debug.c (debug_sym_segments): Return a
4788 symfile_segment_data_up.
4789
4790 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4791
4792 PR build/25981
4793 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4794 Hardcode register numbers.
4795
4796 PR build/25981
4797 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4798 procfs_find_LDT_entry): Remove.
4799 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4800 procfs_find_LDT_entry): Remove.
4801 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4802 Remove.
4803
4804 2020-05-17 Pedro Alves <palves@redhat.com>
4805 Andrew Burgess <andrew.burgess@embecosm.com>
4806 Keno Fischer <keno@juliacomputing.com>
4807
4808 PR gdb/25741
4809 * breakpoint.c (build_target_condition_list): Update comments.
4810 (build_target_command_list): Update comments and skip matching
4811 locations.
4812 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4813 a separate function. Simplify "set breakpoint auto-hw off"
4814 handling.
4815 (insert_breakpoints): Update comment.
4816 (tracepoint_locations_match): New parameter. For breakpoints,
4817 compare location types too, if the caller wants to.
4818 (handle_automatic_hardware_breakpoints): New functions.
4819 (bp_location_is_less_than): Also sort by location type and
4820 hardware breakpoint length.
4821 (update_global_location_list): Handle "set breakpoint auto-hw on"
4822 here.
4823 (update_breakpoint_locations): Ask breakpoint_locations_match to
4824 ignore location types.
4825
4826 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4829 type::name instead.
4830
4831 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * gdbtypes.h (struct type) <name, set_name>: New methods.
4834 (TYPE_CODE): Use type::name. Change all call sites used to set
4835 the name to use type::set_name instead.
4836
4837 2020-05-16 Tom Tromey <tom@tromey.com>
4838
4839 * top.c (quit_force): Update.
4840 * infrun.c (handle_no_resumed): Update.
4841 * top.h (all_uis): New function.
4842 (ALL_UIS): Remove.
4843
4844 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4847
4848 2020-05-16 Pedro Alves <palves@redhat.com>
4849
4850 * ia64-linux-nat.c
4851 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4852 Declare method.
4853 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4854
4855 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4858 (sparc64_adi_info): Likewise.
4859
4860 2020-05-15 Tom Tromey <tom@tromey.com>
4861
4862 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4863 block_objfile.
4864 (lookup_objfile_from_block): Remove.
4865 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4866 (lookup_global_symbol): Use block_objfile.
4867 * symtab.h (lookup_objfile_from_block): Don't declare.
4868 * printcmd.c (clear_dangling_display_expressions): Use
4869 block_objfile.
4870 * parse.c (operator_check_standard): Use block_objfile.
4871
4872 2020-05-15 Tom Tromey <tom@tromey.com>
4873
4874 * language.c (language_alloc_type_symbol): Set
4875 SYMBOL_SECTION.
4876 * symtab.c (initialize_objfile_symbol): Remove.
4877 (allocate_symbol): Remove.
4878 (allocate_template_symbol): Remove.
4879 * dwarf2/read.c (fixup_go_packaging): Use "new".
4880 (new_symbol): Use "new".
4881 (read_variable): Don't call initialize_objfile_symbol. Use
4882 "new".
4883 (read_func_scope): Use "new".
4884 * xcoffread.c (process_xcoff_symbol): Don't call
4885 initialize_objfile_symbol.
4886 (SYMBOL_DUP): Remove.
4887 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4888 "new".
4889 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4890 (allocate_template_symbol): Don't declare.
4891 (struct symbol): Add copy constructor. Change defaults.
4892 * jit.c (finalize_symtab): Use "new".
4893 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4894 Use "new".
4895 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4896 (common_block_end): Use "new".
4897 * mdebugread.c (parse_symbol): Use "new".
4898 (new_symbol): Likewise.
4899
4900 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4901
4902 * NEWS: Mention changes to help and apropos.
4903
4904 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905
4906 * command.h (enum command_class): Improve comments, document
4907 that class_alias is for user-defined aliases, give the class
4908 name for each class, remove unused class_xdb.
4909 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4910 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4911 by a precise class.
4912 * infcmd.c (_initialize_infcmd): Likewise.
4913 * reverse.c (_initialize_reverse): Likewise.
4914 * stack.c (_initialize_stack): Likewise.
4915 * symfile.c (_initialize_symfile): Likewise.
4916 * tracepoint.c (_initialize_tracepoint): Likewise.
4917
4918 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4919
4920 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4921 when their aliased command is traversed.
4922 (help_cmd): Add fput_command_names_styled call to
4923 output command name and aliases when command has an alias.
4924
4925 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4926
4927 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4928 * cli/cli-decode.c (help_cmd_list): Declare as static,
4929 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4930 a command together with the command.
4931 (fput_command_name_styled, fput_command_names_styled): New functions.
4932 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4933 fput_command_name_styled.
4934 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4935 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4936
4937 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4938
4939 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4940 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4941 * command.h (cmd_show_list): Likewise.
4942 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4943 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4944
4945 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4946
4947 * unittests/command-def-selftests.c (traverse_command_structure):
4948 Verify all commands of a list have the same prefix command and
4949 that only the top cmdlist commands have a null prefix.
4950
4951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4952
4953 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4954 as prefix, not one of its aliases.
4955 (set_cmd_prefix): Remove.
4956 (do_add_cmd): Centralize the setting of the prefix of a command, when
4957 command is defined after its full chain of prefix commands.
4958 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4959 (add_setshow_cmd_full): Likewise.
4960 (update_prefix_field_of_prefixed_commands): New function.
4961 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4962 update_prefix_field_of_prefixed_commands.
4963 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4964 addresses of remote_set_cmdlist and remote_show_cmdlist given
4965 as argument, not the address of an argument.
4966 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4967 * gdb/remote.c (_initialize_remote): Likewise.
4968
4969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4970
4971 * cli/cli-cmds.c (alias_command): Check for an existing alias
4972 using lookup_cmd_composition, as valid_command_p is too strict
4973 and forbids aliases that are the prefix of an existing alias
4974 or command.
4975 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4976 command is properly recognised as a valid command.
4977
4978 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4979
4980 * unittests/help-doc-selftests.c: Rename to
4981 unittests/command-def-selftests.c
4982 * unittests/command-def-selftests.c (help_doc_tests): Update some
4983 comments.
4984 (command_structure_tests, traverse_command_structure): New namespace
4985 and function.
4986 (command_structure_invariants_tests): New function.
4987 (_initialize_command_def_selftests) Renamed from
4988 _initialize_help_doc_selftests, register command_structure_invariants
4989 selftest.
4990
4991 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4994 an alias of 'show'.
4995
4996 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4997
4998 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4999 ada_is_fixed_point_type. Update all callers.
5000 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5001 all callers.
5002 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5003 Update all callers.
5004 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5005 print_fixed_point_type. Update all callers.
5006 * ada-valprint.c (ada_value_print_num): Replace call to
5007 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5008
5009 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5010
5011 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5012 processors.
5013 (cpu_supports_bts): Add CV_AMD case.
5014
5015 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5016 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * infrun.c (stop_all_threads): Collect multiple wait events at
5019 each pass.
5020
5021 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5022
5023 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5024 type::code instead.
5025
5026 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * gdbtypes.h (struct type) <code, set_code>: New methods.
5029 (TYPE_CODE): Use type::code. Change all call sites used to set
5030 the code to use type::set_code instead.
5031
5032 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5033 Tom de Vries <tdevries@suse.de>
5034 Pedro Alves <palves@redhat.com>
5035
5036 PR threads/25478
5037 * infrun.c (stop_all_threads): Do NOT ignore
5038 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5039 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5040 received.
5041 (handle_no_resumed): Remove code handling a live inferior with no
5042 threads.
5043 * remote.c (has_single_non_exited_thread): New.
5044 (remote_target::update_thread_list): Do not delete a thread if is
5045 the last thread of the process.
5046 * thread.c (thread_select): Call delete_exited_threads instead of
5047 prune_threads.
5048
5049 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5050
5051 * infrun.c (stop_all_threads): Enable/disable thread events of all
5052 targets. Move a debug message denoting the end of the function
5053 into the SCOPED_EXIT block.
5054
5055 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5056
5057 * process-stratum-target.h: Include <set>.
5058 (all_non_exited_process_targets, switch_to_target_no_thread): New
5059 function declarations.
5060 * process-stratum-target.c (all_non_exited_process_targets)
5061 (switch_to_target_no_thread): New function implementations.
5062
5063 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5064
5065 * infrun.c (handle_inferior_event): Extract out a piece of code
5066 into...
5067 (mark_non_executing_threads): ...this new function.
5068
5069 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5070
5071 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5072 use.
5073
5074 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5075
5076 * regcache.c (regcache_read_pc_protected): New function
5077 implementation that returns 0 if the PC cannot read via
5078 'regcache_read_pc'.
5079 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5080 instead of 'regcache_read_pc'.
5081 (keep_going_pass_signal): Ditto.
5082
5083 2020-05-13 Tom Tromey <tromey@adacore.com>
5084
5085 * ada-lang.c (align_value): Remove.
5086 (ada_template_to_fixed_record_type_1): Use align_up.
5087
5088 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5089
5090 * async-event.c: Update the copyright year.
5091 * async-event.h: Update the copyright year.
5092
5093 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * objfiles.h (is_addr_in_objfile,
5096 shared_objfile_contains_address_p): Return bool.
5097 * objfile.c (is_addr_in_objfile,
5098 shared_objfile_contains_address_p): Return bool.
5099
5100 2020-05-11 Tom Tromey <tromey@adacore.com>
5101
5102 * cli/cli-cmds.c (info_command): Restore.
5103 (_initialize_cli_cmds): Use add_prefix_command for "info".
5104 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5105
5106 2020-05-11 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-lang.c (ada_value_primitive_field): Now public.
5109 * ada-lang.h (ada_value_primitive_field): Declare.
5110 * ada-valprint.c (print_field_values): Use
5111 ada_value_primitive_field for wrapper fields.
5112
5113 2020-05-11 Tom de Vries <tdevries@suse.de>
5114
5115 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5116 MODULE_DOMAIN.
5117
5118 2020-05-11 Tom de Vries <tdevries@suse.de>
5119
5120 PR symtab/25941
5121 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5122 with length 0, if not gdb-produced.
5123 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5124
5125 2020-05-09 Tom de Vries <tdevries@suse.de>
5126
5127 PR gdb/25955
5128 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5129 calculation.
5130
5131 2020-05-09 Tom Tromey <tom@tromey.com>
5132
5133 * top.c (server_command): Now bool.
5134 * top.h (server_command): Now bool.
5135
5136 2020-05-08 Tom Tromey <tromey@adacore.com>
5137
5138 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5139 already being processed.
5140
5141 2020-05-08 Tom Tromey <tom@tromey.com>
5142
5143 * printcmd.c (struct display) <next>: Remove.
5144 <display>: New constructor.
5145 <exp_string>: Now a std::string.
5146 <enabled_p>: Now a bool.
5147 (display_number): Move definition earlier.
5148 (displays): Rename from display_chain. Now a std::vector.
5149 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5150 (display_command): Update.
5151 (do_one_display, disable_display)
5152 (enable_disable_display_command, do_enable_disable_display):
5153 Update.
5154 (free_display): Remove.
5155 (clear_displays): Rewrite.
5156 (delete_display): Update.
5157 (map_display_numbers): Use function_view. Remove "data"
5158 parameter. Update.
5159 (do_delete_display): Remove.
5160 (undisplay_command): Update.
5161 (do_one_display, do_displays, disable_display)
5162 (info_display_command): Update.
5163 (do_enable_disable_display): Remove.
5164 (enable_disable_display_command)
5165 (clear_dangling_display_expressions): Update.
5166
5167 2020-05-08 Tom Tromey <tom@tromey.com>
5168
5169 * symtab.c (set_symbol_cache_size)
5170 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5171 (maintenance_print_symbol_cache_statistics): Update.
5172 * symmisc.c (print_symbol_bcache_statistics)
5173 (print_objfile_statistics, maintenance_print_objfiles)
5174 (maintenance_info_symtabs, maintenance_check_symtabs)
5175 (maintenance_expand_symtabs, maintenance_info_line_tables):
5176 Update.
5177 * symfile-debug.c (set_debug_symfile): Update.
5178 * source.c (forget_cached_source_info): Update.
5179 * python/python.c (gdbpy_progspaces): Update.
5180 * psymtab.c (maintenance_info_psymtabs): Update.
5181 * probe.c (parse_probes): Update.
5182 * linespec.c (iterate_over_all_matching_symtabs)
5183 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5184 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5185 * exec.c (exec_target::close): Update.
5186 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5187 * breakpoint.c (print_one_breakpoint_location)
5188 (create_longjmp_master_breakpoint)
5189 (create_std_terminate_master_breakpoint): Update.
5190 * progspace.c (program_spaces): Now a std::vector.
5191 (maybe_new_address_space): Update.
5192 (add_program_space): Remove.
5193 (program_space::program_space): Update.
5194 (remove_program_space): Update.
5195 (number_of_program_spaces): Remove.
5196 (print_program_space, update_address_spaces): Update.
5197 * progspace.h (program_spaces): Change type.
5198 (ALL_PSPACES): Remove.
5199 (number_of_program_spaces): Don't declare.
5200 (struct program_space) <next>: Remove.
5201
5202 2020-05-08 Tom Tromey <tom@tromey.com>
5203
5204 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5205 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5206 (enable_break): Update.
5207 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5208 (frv_fdpic_find_canonical_descriptor): Update.
5209 (frv_fetch_objfile_link_map): Update.
5210 * progspace.c (program_space::free_all_objfiles): Update.
5211 (program_space::solibs): New method.
5212 * progspace.h (struct program_space) <solibs>: New method.
5213 * solist.h (master_so_list): Don't declare.
5214 (ALL_SO_LIBS): Remove.
5215 * solib.h (so_list_head): Remove.
5216 (update_solib_list): Update comment.
5217 * solib.c (master_so_list): Remove.
5218 (solib_used, update_solib_list, solib_add)
5219 (info_sharedlibrary_command, clear_solib)
5220 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5221
5222 2020-05-08 Tom Tromey <tom@tromey.com>
5223
5224 * extension.c (extension_languages): Now a std::array.
5225 (ALL_EXTENSION_LANGUAGES): Remove.
5226 (get_ext_lang_defn, get_ext_lang_of_file)
5227 (eval_ext_lang_from_control_command): Update.
5228 (finish_ext_lang_initialization)
5229 (auto_load_ext_lang_scripts_for_objfile)
5230 (ext_lang_type_printers::ext_lang_type_printers)
5231 (apply_ext_lang_type_printers)
5232 (ext_lang_type_printers::~ext_lang_type_printers)
5233 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5234 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5235 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5236 (get_matching_xmethod_workers, ext_lang_colorize)
5237 (ext_lang_before_prompt): Update.
5238 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5239
5240 2020-05-08 Tom Tromey <tom@tromey.com>
5241
5242 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5243 overload.
5244 <swap_string, m_string>: Remove.
5245 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5246 Update.
5247 * stabsread.c (define_symbol, read_type): Update.
5248 * linespec.c (find_linespec_symbols): Update.
5249 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5250 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5251 * dbxread.c (read_dbx_symtab): Update.
5252 * cp-support.h (cp_canonicalize_string_full)
5253 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5254 Return unique_xmalloc_ptr.
5255 * cp-support.c (inspect_type): Update.
5256 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5257 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5258 Likewise.
5259 * c-typeprint.c (print_name_maybe_canonical): Update.
5260 * break-catch-throw.c (check_status_exception_catchpoint):
5261 Update.
5262
5263 2020-05-08 Tom de Vries <tdevries@suse.de>
5264
5265 * infrun.c (follow_fork): Copy current_line and current_symtab to
5266 child thread.
5267
5268 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * async-event.c (struct async_signal_handler, struct
5271 async_event_handler): Reformat, remove typedef.
5272
5273 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5276 access thistype->main_type->dyn_prop_list directly.
5277
5278 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5281 (remove_dyn_prop): Remove. Update all users to use
5282 type::remove_dyn_prop.
5283 * gdbtypes.c (remove_dyn_prop): Rename to...
5284 (type::remove_dyn_prop): ... this.
5285
5286 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5287
5288 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5289 (add_dyn_prop): Remove. Update all users to use
5290 type::add_dyn_prop.
5291 * gdbtypes.c (add_dyn_prop): Rename to...
5292 (type::add_dyn_prop): ... this.
5293
5294 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5297 (get_dyn_prop): Remove. Update all users to use
5298 type::dyn_prop.
5299 * gdbtypes.c (get_dyn_prop): Rename to...
5300 (type::dyn_prop): ... this.
5301
5302 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5305
5306 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5309 instruction, skip it if it's there.
5310
5311 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5314
5315 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5318 * gdbtypes.c (recursive_dump_type): Remove use of
5319 TYPE_INCOMPLETE.
5320
5321 2020-05-03 Tom Tromey <tom@tromey.com>
5322
5323 * breakpoint.c (catch_command, tcatch_command): Remove.
5324 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5325 add_show_prefix_cmd.
5326 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5327 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5328 Remove.
5329 (add_internal_problem_command): Use add_basic_prefix_cmd,
5330 add_show_prefix_cmd.
5331 * mips-tdep.c (set_mipsfpu_command): Remove.
5332 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5333 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5334 (_initialize_index_cache): Use add_basic_prefix_cmd.
5335 * memattr.c (dummy_cmd): Remove.
5336 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5337 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5338 (_initialize_tui_win): Use add_basic_prefix_cmd,
5339 add_show_prefix_cmd.
5340 * cli/cli-logging.c (set_logging_command): Remove.
5341 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5342 add_show_prefix_cmd.
5343 (show_logging_command): Remove.
5344 * target.c (target_command): Remove.
5345 (add_target): Use add_basic_prefix_cmd.
5346
5347 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5348
5349 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5350
5351 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5352
5353 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5354 info_command.
5355
5356 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5357
5358 * nbsd-nat.c (nbsd_enable_proc_events)
5359 (nbsd_nat_target::post_startup_inferior): Add.
5360 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5361 (nbsd_nat_target::update_thread_list): Rewrite.
5362 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5363 "PTRACE_LWP_CREATE".
5364 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5365
5366 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5367
5368 * stack.c (_initialize_stack): Remove duplicated creation
5369 of "frame" command and "f" alias.
5370
5371 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5372
5373 PR gdb/18706
5374 * gdbtypes.c (check_typedef): Calculate size of array of
5375 stubbed type.
5376
5377 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5378
5379 PR gdb/15559
5380 * i386-tdep.c (i386_push_dummy_call): Call
5381 i386_thiscall_push_dummy_call.
5382 (i386_thiscall_push_dummy_call): New function.
5383 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5384 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5385 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5386
5387 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbarch.sh (do_read): Add shellcheck disable directive for
5390 warning SC2162.
5391
5392 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5395 "referenced but not assigned" warning.
5396
5397 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * gdbarch.sh: Remove code that sets fallbackdefault.
5400
5401 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * gdbarch.sh: Use shell operators && and || instead of
5404 -a and -o.
5405
5406 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * gdbarch.sh: Use $(...) instead of `...`.
5409
5410 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbarch.sh: Use double quotes around variables.
5413
5414 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5415
5416 * gdbarch.sh: Use %s with printf, instead of variables in the
5417 format string.
5418
5419 2020-04-29 Tom Tromey <tromey@adacore.com>
5420
5421 PR ada/25875:
5422 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5423 type fields here.
5424 (read_enumeration_type): Call
5425 update_enumeration_type_from_children later. Update comments.
5426 (process_enumeration_scope): Don't create type fields.
5427
5428 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5429
5430 * nbsd-tdep.c: Include "xml-syscall.h".
5431 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5432
5433 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5434
5435 * nbsd-nat.c: Include "sys/wait.h".
5436 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5437 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5438 (nbsd_nat_target::remove_exec_catchpoint)
5439 (nbsd_nat_target::set_syscall_catchpoint): Add.
5440 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5441 (nbsd_nat_target::insert_exec_catchpoint)
5442 (nbsd_nat_target::remove_exec_catchpoint)
5443 (nbsd_nat_target::set_syscall_catchpoint): Add.
5444 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5445 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5446 `nbsd_get_syscall_number'.
5447
5448 2020-04-29 Tom Tromey <tom@tromey.com>
5449
5450 * stack.c (print_block_frame_labels): Remove.
5451
5452 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5453
5454 PR gdb/17320
5455 * ada-valprint.c (val_print_packed_array_elements): Move array
5456 end bracket to new line.
5457 (ada_val_print_string): Remove extra spaces before first array
5458 element.
5459 * c-valprint.c (c_value_print_array): Likewise.
5460 * m2-valprint.c (m2_print_array_contents): Likewise.
5461 (m2_value_print_inner): Likewise.
5462 * p-valprint.c (pascal_value_print_inner): Likewise.
5463 * valprint.c (generic_val_print_array): Likewise.
5464 (value_print_array_elements): Move first array element and array
5465 end bracket to new line.
5466
5467 2020-04-29 Tom de Vries <tdevries@suse.de>
5468
5469 PR symtab/25889
5470 * linespec.c (find_method): Fix ix calculation.
5471
5472 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5473
5474 * syscalls/update-netbsd.sh: New file.
5475 * syscalls/netbsd.xml: Regenerate.
5476 * data-directory/Makefile.in: Register `netbsd.xml' in
5477 `SYSCALLS_FILES'.
5478
5479 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * syscalls/update-freebsd.sh: Add double quotes.
5482
5483 2020-04-28 Tom Tromey <tom@tromey.com>
5484
5485 * NEWS: Update.
5486 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5487 (cmdpy_init): Allow class_tui.
5488
5489 2020-04-28 Mark Williams <mark@myosotissp.com>
5490
5491 PR gdb/24480
5492 * dwarf2read.c: Add missing assingments to list_in_scope when
5493 start_symtab was already called.
5494
5495 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5496
5497 PR gdb/25881
5498 * dwarf2/read.c (offset_map_type): Use
5499 gdb:hash_enum<sect_offset> as hash function.
5500
5501 2020-04-28 Tom de Vries <tdevries@suse.de>
5502
5503 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5504 with DW_AT_signature.
5505
5506 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5507
5508 * configure.ac: Remove check for fs_base/gs_base in
5509 user_regs_struct.
5510 * configure: Re-generate.
5511 * config.in: Re-generate.
5512 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5513 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5514 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5515
5516 2020-04-27 Luis Machado <luis.machado@linaro.org>
5517
5518 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5519 problematic inline frame unwinding situation.
5520 * frame.c (frame_id_computed_p): New function.
5521 * frame.h (frame_id_computed_p): New prototype.
5522
5523 2020-04-26 Tom Tromey <tom@tromey.com>
5524
5525 * command.h (enum command_class) <class_pseudo>: Remove.
5526
5527 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5528
5529 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5530 and whitespace.
5531
5532 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5533
5534 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5535 `PT_GET_PROCESS_STATE' block.
5536
5537 2020-04-24 Tom Tromey <tom@tromey.com>
5538
5539 * symtab.h (symbol_get_demangled_name): Don't declare.
5540 * symtab.c (symbol_get_demangled_name): Remove.
5541 (general_symbol_info::natural_name)
5542 (general_symbol_info::demangled_name): Update.
5543
5544 2020-04-24 Tom Tromey <tom@tromey.com>
5545
5546 PR rust/25025:
5547 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5548
5549 2020-04-24 Tom Tromey <tom@tromey.com>
5550
5551 PR symtab/12707:
5552 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5553 exists.
5554 (new_symbol): Likewise.
5555 * compile/compile-object-load.c (get_out_value_type): Use
5556 symbol_matches_search_name.
5557
5558 2020-04-24 Tom Tromey <tom@tromey.com>
5559
5560 * dwarf2/read.c (add_partial_symbol): Do not call
5561 compute_and_set_names.
5562
5563 2020-04-24 Tom Tromey <tom@tromey.com>
5564
5565 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5566 overload.
5567
5568 2020-04-24 Tom Tromey <tom@tromey.com>
5569
5570 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5571 (add_psymbol_to_list): New overload. Make old overload call new
5572 one.
5573 * psympriv.h (add_psymbol_to_list): New overload.
5574
5575 2020-04-24 Tom Tromey <tom@tromey.com>
5576
5577 * dwarf2/read.c (partial_die_info::read) <case
5578 DW_AT_linkage_name>: Use value_as_string.
5579 (dwarf2_string_attr): Use value_as_string.
5580 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5581 method.
5582 * dwarf2/attribute.c (attribute::value_as_string): New method.
5583
5584 2020-04-24 Tom Tromey <tom@tromey.com>
5585
5586 * symtab.c (general_symbol_info::natural_name)
5587 (general_symbol_info::demangled_name): Check for language_rust.
5588
5589 2020-04-24 Tom Tromey <tom@tromey.com>
5590
5591 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5592 (dwarf2_physname): ... from here.
5593 (partial_die_info::read): Add Rust "{" hack.
5594
5595 2020-04-24 Tom Tromey <tom@tromey.com>
5596
5597 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5598 method.
5599 (symbol_set_demangled_name): Don't declare.
5600 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5601 symbol_set_demangled_name.
5602 (general_symbol_info::set_language)
5603 (general_symbol_info::compute_and_set_names): Update.
5604 * minsyms.c (minimal_symbol_reader::install): Update.
5605 * dwarf2/read.c (new_symbol): Update.
5606
5607 2020-04-24 Tom Tromey <tromey@adacore.com>
5608
5609 PR python/23662:
5610 * python/py-type.c (convert_field): Handle
5611 FIELD_LOC_KIND_DWARF_BLOCK.
5612 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5613 (typy_get_dynamic): Nw function.
5614 (type_object_getset): Add "dynamic".
5615 * NEWS: Add entry.
5616
5617 2020-04-24 Tom Tromey <tromey@adacore.com>
5618
5619 * ada-typeprint.c (print_choices, print_variant_part)
5620 (print_record_field_types_dynamic): New functions.
5621 (print_record_field_types): Use print_record_field_types_dynamic.
5622
5623 2020-04-24 Tom Tromey <tromey@adacore.com>
5624
5625 * dwarf2/read.c (handle_data_member_location): New overload.
5626 (dwarf2_add_field): Use it.
5627 (decode_locdesc): Add "computed" parameter. Update comment.
5628 * gdbtypes.c (is_dynamic_type_internal): Also look for
5629 FIELD_LOC_KIND_DWARF_BLOCK.
5630 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5631 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5632 virtual base classes.
5633 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5634 FIELD_LOC_KIND_DWARF_BLOCK.
5635
5636 2020-04-24 Tom Tromey <tromey@adacore.com>
5637
5638 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5639 * gdbtypes.c (is_dynamic_type_internal): Check
5640 TYPE_HAS_DYNAMIC_LENGTH.
5641 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5642 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5643 New macros.
5644 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5645 constant.
5646
5647 2020-04-24 Tom Tromey <tromey@adacore.com>
5648
5649 * dwarf2/read.c (struct variant_field): Rewrite.
5650 (struct variant_part_builder): New.
5651 (struct nextfield): Remove "variant" field. Add "offset".
5652 (struct field_info): Add "current_variant_part" and
5653 "variant_parts".
5654 (alloc_discriminant_info): Remove.
5655 (alloc_rust_variant): New function.
5656 (quirk_rust_enum): Update.
5657 (dwarf2_add_field): Set "offset" member. Don't handle
5658 DW_TAG_variant_part.
5659 (offset_map_type): New typedef.
5660 (convert_variant_range, create_one_variant)
5661 (create_one_variant_part, create_variant_parts)
5662 (add_variant_property): New functions.
5663 (dwarf2_attach_fields_to_type): Call add_variant_property.
5664 (read_structure_type): Don't handle DW_TAG_variant_part.
5665 (handle_variant_part, handle_variant): New functions.
5666 (handle_struct_member_die): Use them.
5667 (process_structure_scope): Don't handle variant parts.
5668 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5669 (struct discriminant_info): Remove.
5670 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5671 (struct main_type) <flag_discriminated_union>: Remove.
5672 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5673 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5674 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5675 Update.
5676 * valops.c (value_union_variant): Remove.
5677 * value.h (value_union_variant): Don't declare.
5678
5679 2020-04-24 Tom Tromey <tromey@adacore.com>
5680
5681 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5682 (ada_value_primitive_packed_val): Update.
5683 * ada-valprint.c (ada_value_print_1): Update.
5684 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5685 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5686 just an address. Use evaluate_for_locexpr_baton.
5687 (dwarf2_evaluate_property): Update.
5688 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5689 array_view.
5690 * findvar.c (default_read_var_value): Update.
5691 * gdbtypes.c (compute_variant_fields_inner)
5692 (resolve_dynamic_type_internal): Update.
5693 (resolve_dynamic_type): Change type of valaddr parameter.
5694 * gdbtypes.h (resolve_dynamic_type): Update.
5695 * valarith.c (value_subscripted_rvalue): Update.
5696 * value.c (value_from_contents_and_address): Update.
5697
5698 2020-04-24 Tom Tromey <tromey@adacore.com>
5699
5700 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5701 "push_initial_value" parameter.
5702 (dwarf2_evaluate_property): Likewise.
5703 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5704
5705 2020-04-24 Tom Tromey <tromey@adacore.com>
5706
5707 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5708 (variant::matches, compute_variant_fields_recurse)
5709 (compute_variant_fields_inner, compute_variant_fields): New
5710 functions.
5711 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5712 Use resolved_type after type is made.
5713 (operator==): Add new cases.
5714 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5715 (struct discriminant_range, struct variant, struct variant_part):
5716 New.
5717 (union dynamic_prop_data) <variant_parts, original_type>: New
5718 members.
5719 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5720 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5721 constants.
5722 * value.c (unpack_bits_as_long): Now public.
5723 * value.h (unpack_bits_as_long): Declare.
5724
5725 2020-04-24 Tom Tromey <tromey@adacore.com>
5726
5727 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5728 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5729
5730 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5731
5732 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5733
5734 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5735
5736 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5737 (remove_fork_catchpoint, post_startup_inferior)
5738 (post_attach): Move...
5739 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5740 (remove_fork_catchpoint, post_startup_inferior)
5741 (post_attach): ...here.
5742 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5743 (remove_fork_catchpoint, post_startup_inferior)
5744 (post_attach): Move...
5745 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5746 (remove_fork_catchpoint, post_startup_inferior)
5747 (post_attach): ...here.
5748
5749 2020-04-24 Tom Tromey <tromey@adacore.com>
5750
5751 * nat/windows-nat.h (struct windows_thread_info)
5752 <pc_adjusted>: New member.
5753 * windows-nat.c (windows_fetch_one_register): Check
5754 pc_adjusted.
5755 (windows_nat_target::get_windows_debug_event)
5756 (windows_nat_target::wait): Set pc_adjusted.
5757
5758 2020-04-24 Tom de Vries <tdevries@suse.de>
5759
5760 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5761 Run gdb-add-index inside temp dir.
5762
5763 2020-04-23 Tom Tromey <tromey@adacore.com>
5764
5765 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5766 in loop.
5767
5768 2020-04-23 Luis Machado <luis.machado@linaro.org>
5769
5770 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5771 get_frame_register instead of gdbarch_unwind_pc.
5772
5773 2020-04-23 Tom de Vries <tdevries@suse.de>
5774
5775 * symtab.c (lookup_global_symbol): Prefer def over decl.
5776
5777 2020-04-23 Tom de Vries <tdevries@suse.de>
5778
5779 PR symtab/25807
5780 * block.c (best_symbol, better_symbol): Promote to external.
5781 * block.h (best_symbol, better_symbol): Declare.
5782 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5783 decl.
5784
5785 2020-04-23 Tom Tromey <tromey@adacore.com>
5786
5787 PR ada/25837:
5788 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5789 "const char *", not a "const std::string &".
5790 <name_and_matcher::operator==>: Update.
5791 * unittests/lookup_name_info-selftests.c: Change type of
5792 "result".
5793
5794 2020-04-23 Tom Tromey <tom@tromey.com>
5795
5796 * inferior.h (iterate_over_inferiors): Don't declare.
5797 * inferior.c (iterate_over_inferiors): Remove.
5798 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5799 Remove.
5800 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5801 use iterate_over_inferiors.
5802 (darwin_resume_inferior_it)
5803 (struct resume_inferior_threads_param)
5804 (darwin_resume_inferior_threads_it): Remove.
5805 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5806
5807 2020-04-23 Tom de Vries <tdevries@suse.de>
5808
5809 * blockframe.c (find_pc_partial_function): Use
5810 find_pc_sect_compunit_symtab rather than
5811 objfile->sf->qf->find_pc_sect_compunit_symtab.
5812
5813 2020-04-22 Tom de Vries <tdevries@suse.de>
5814
5815 PR symtab/25764
5816 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5817 in psymtabs.
5818
5819 2020-04-22 Tom de Vries <tdevries@suse.de>
5820
5821 PR symtab/25801
5822 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5823 symtabs.
5824
5825 2020-04-22 Tom de Vries <tdevries@suse.de>
5826
5827 PR symtab/25700
5828 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5829 CU if already created.
5830
5831 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5832
5833 * infrun.c (displaced_step_fixup): Switch to the event_thread
5834 before calling displaced_step_restore, not after.
5835
5836 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5837
5838 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5839 its inferior is not recorded by us.
5840 (record_btrace_target_open): Replace call to
5841 all_non_exited_threads () with call to current_inferior
5842 ()->non_exited_threads ().
5843 (record_btrace_target::stop_recording): Likewise.
5844 (record_btrace_target::close): Likewise.
5845 (record_btrace_target::wait): Likewise.
5846 (record_btrace_target::record_stop_replaying): Likewise.
5847
5848 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5849
5850 * btrace.c (btrace_enable): Throw an error on double enables and
5851 when enabling recording fails.
5852 (btrace_disable): Throw an error if the thread is not recorded.
5853
5854 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5855
5856 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5857 request if we do not have a thread_info.
5858
5859 2020-04-21 Tom de Vries <tdevries@suse.de>
5860
5861 PR gdb/25471
5862 * thread.c
5863 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5864 exception in get_frame_id.
5865
5866 2020-04-20 Tom Tromey <tromey@adacore.com>
5867
5868 * python/python.c (struct gdbpy_event): Mark move constructor as
5869 noexcept.
5870 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5871 constructor as noexcept.
5872 * completer.h (struct completion_result): Mark move constructor as
5873 noexcept.
5874 * completer.c (completion_result::completion_result): Use
5875 initialization style. Don't call reset_match_list.
5876
5877 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5878
5879 * MAINTAINERS (Write After Approval): Add myself.
5880
5881 2020-04-18 Tom Tromey <tom@tromey.com>
5882
5883 * windows-tdep.c (init_w32_command_list)
5884 (w32_prefix_command_valid): Restore.
5885 (_initialize_windows_tdep): Call init_w32_command_list.
5886
5887 2020-04-18 Tom Tromey <tom@tromey.com>
5888
5889 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5890 * value.c (value_fn_field): Update.
5891 * valops.c (find_function_in_inferior)
5892 (value_allocate_space_in_inferior): Update.
5893 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5894 Update.
5895 * tui/tui-source.c (tui_source_window::set_contents): Update.
5896 * symtab.c (lookup_global_or_static_symbol)
5897 (find_function_start_sal_1, skip_prologue_sal)
5898 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5899 * symmisc.c (dump_msymbols, dump_symtab_1)
5900 (maintenance_print_one_line_table): Update.
5901 * symfile.c (init_entry_point_info, section_is_mapped)
5902 (list_overlays_command, simple_read_overlay_table)
5903 (simple_overlay_update_1): Update.
5904 * stap-probe.c (handle_stap_probe): Update.
5905 * stabsread.c (dbx_init_float_type, define_symbol)
5906 (read_one_struct_field, read_enum_type, read_range_type): Update.
5907 * source.c (info_line_command): Update.
5908 * python/python.c (gdbpy_source_objfile_script)
5909 (gdbpy_execute_objfile_script): Update.
5910 * python/py-type.c (save_objfile_types): Update.
5911 * python/py-objfile.c (py_free_objfile): Update.
5912 * python/py-inferior.c (python_new_objfile): Update.
5913 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5914 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5915 (maintenance_check_psymtabs): Update.
5916 * printcmd.c (info_address_command): Update.
5917 * objfiles.h (struct objfile) <arch>: New method, from
5918 get_objfile_arch.
5919 (get_objfile_arch): Don't declare.
5920 * objfiles.c (get_objfile_arch): Remove.
5921 (filter_overlapping_sections): Update.
5922 * minsyms.c (msymbol_is_function): Update.
5923 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5924 (output_nondebug_symbol): Update.
5925 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5926 (mdebug_expand_psymtab): Update.
5927 * machoread.c (macho_add_oso_symfile): Update.
5928 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5929 Update.
5930 * linux-fork.c (checkpoint_command): Update.
5931 * linespec.c (convert_linespec_to_sals): Update.
5932 * jit.c (finalize_symtab): Update.
5933 * infrun.c (insert_exception_resume_from_probe): Update.
5934 * ia64-tdep.c (ia64_find_unwind_table): Update.
5935 * hppa-tdep.c (internalize_unwinds): Update.
5936 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5937 Update.
5938 * gcore.c (call_target_sbrk): Update.
5939 * elfread.c (record_minimal_symbol, elf_symtab_read)
5940 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5941 (elf_gnu_ifunc_resolve_by_got): Update.
5942 * dwarf2/read.c (create_addrmap_from_index)
5943 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5944 (read_debug_names_from_section)
5945 (process_psymtab_comp_unit_reader, add_partial_symbol)
5946 (add_partial_subprogram, process_full_comp_unit)
5947 (read_file_scope, read_func_scope, read_lexical_block_scope)
5948 (read_call_site_scope, dwarf2_ranges_read)
5949 (dwarf2_record_block_ranges, dwarf2_add_field)
5950 (mark_common_block_symbol_computed, read_tag_pointer_type)
5951 (read_tag_string_type, dwarf2_init_float_type)
5952 (dwarf2_init_complex_target_type, read_base_type)
5953 (partial_die_info::read, partial_die_info::read)
5954 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5955 (dwarf2_fetch_die_loc_sect_off): Update.
5956 * dwarf2/loc.c (dwarf2_find_location_expression)
5957 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5958 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5959 (dwarf2_loc_desc_get_symbol_read_needs)
5960 (locexpr_describe_location_piece, locexpr_describe_location_1)
5961 (loclist_describe_location): Update.
5962 * dwarf2/index-write.c (write_debug_names): Update.
5963 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5964 * dtrace-probe.c (dtrace_process_dof): Update.
5965 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5966 (process_one_symbol): Update.
5967 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5968 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5969 (coff_read_enum_type): Update.
5970 * cli/cli-cmds.c (edit_command, list_command): Update.
5971 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5972 * breakpoint.c (create_overlay_event_breakpoint)
5973 (create_longjmp_master_breakpoint)
5974 (create_std_terminate_master_breakpoint)
5975 (create_exception_master_breakpoint, get_sal_arch): Update.
5976 * block.c (block_gdbarch): Update.
5977 * annotate.c (annotate_source_line): Update.
5978
5979 2020-04-17 Tom Tromey <tromey@adacore.com>
5980
5981 * auto-load.c (show_auto_load_cmd): Remove.
5982 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5983 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5984 (maintenance_print_arc_command): Remove.
5985 * tui/tui-win.c (tui_command): Remove.
5986 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5987 * tui/tui-layout.c (tui_layout_command): Remove.
5988 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5989 * python/python.c (user_set_python, user_show_python): Remove.
5990 (_initialize_python): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5993 (install_gdb_commands): Use add_basic_prefix_cmd,
5994 add_show_prefix_cmd.
5995 (info_guile_command): Remove.
5996 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5997 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5998 add_show_prefix_cmd.
5999 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6000 Remove do_set and do_show parameters.
6001 * cli/cli-style.c (set_style, show_style): Remove.
6002 (_initialize_cli_style): Use add_basic_prefix_cmd,
6003 add_show_prefix_cmd.
6004 (cli_style_option::add_setshow_commands): Remove do_set and
6005 do_show parameters.
6006 (cli_style_option::add_setshow_commands): Use
6007 add_basic_prefix_cmd, add_show_prefix_cmd.
6008 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6009 (set_style_name): Remove.
6010 * cli/cli-dump.c (dump_command, append_command): Remove.
6011 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6012 (tekhex_dump_command, binary_dump_command)
6013 (binary_append_command): Remove.
6014 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6015 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6016 (init_w32_command_list): Remove; move into ...
6017 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6018 * valprint.c (set_print, show_print, set_print_raw)
6019 (show_print_raw): Remove.
6020 (_initialize_valprint): Use add_basic_prefix_cmd,
6021 add_show_prefix_cmd.
6022 * typeprint.c (set_print_type, show_print_type): Remove.
6023 (_initialize_typeprint): Use add_basic_prefix_cmd,
6024 add_show_prefix_cmd.
6025 * record.c (set_record_command, show_record_command): Remove.
6026 (_initialize_record): Use add_basic_prefix_cmd,
6027 add_show_prefix_cmd.
6028 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6029 add_show_prefix_cmd.
6030 (info_command, show_command, set_debug, show_debug): Remove.
6031 * top.h (set_history, show_history): Don't declare.
6032 * top.c (set_history, show_history): Remove.
6033 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6034 (unset_tdesc_cmd): Remove.
6035 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * symtab.c (info_module_command): Remove.
6038 (_initialize_symtab): Use add_basic_prefix_cmd.
6039 * symfile.c (overlay_command): Remove.
6040 (_initialize_symfile): Use add_basic_prefix_cmd.
6041 * sparc64-tdep.c (info_adi_command): Remove.
6042 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6043 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6044 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6045 add_show_prefix_cmd.
6046 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6047 (_initialize_serial): Use add_basic_prefix_cmd,
6048 add_show_prefix_cmd.
6049 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6050 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6051 add_show_prefix_cmd.
6052 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6053 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6054 add_show_prefix_cmd.
6055 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6056 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6057 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6058 add_show_prefix_cmd.
6059 * remote.c (remote_command, set_remote_cmd): Remove.
6060 (_initialize_remote): Use add_basic_prefix_cmd.
6061 * record-full.c (set_record_full_command)
6062 (show_record_full_command): Remove.
6063 (_initialize_record_full): Use add_basic_prefix_cmd,
6064 add_show_prefix_cmd.
6065 * record-btrace.c (cmd_set_record_btrace)
6066 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6067 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6068 (cmd_show_record_btrace_pt): Remove.
6069 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6070 add_show_prefix_cmd.
6071 * ravenscar-thread.c (set_ravenscar_command)
6072 (show_ravenscar_command): Remove.
6073 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6074 add_show_prefix_cmd.
6075 * mips-tdep.c (show_mips_command, set_mips_command)
6076 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6077 add_show_prefix_cmd.
6078 * maint.c (maintenance_command, maintenance_info_command)
6079 (maintenance_check_command, maintenance_print_command)
6080 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6081 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6082 add_show_prefix_cmd.
6083 (show_per_command_cmd): Remove.
6084 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6085 Remove.
6086 (maintenance_show_test_settings_cmd): Remove.
6087 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6088 add_show_prefix_cmd.
6089 * maint-test-options.c (maintenance_test_options_command):
6090 Remove.
6091 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6092 * macrocmd.c (macro_command): Remove
6093 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6094 * language.c (set_check, show_check): Remove.
6095 (_initialize_language): Use add_basic_prefix_cmd,
6096 add_show_prefix_cmd.
6097 * infcmd.c (unset_command): Remove.
6098 (_initialize_infcmd): Use add_basic_prefix_cmd.
6099 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6100 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6101 add_show_prefix_cmd.
6102 * go32-nat.c (go32_info_dos_command): Remove.
6103 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6104 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6105 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6106 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6107 (_initialize_frame): Use add_basic_prefix_cmd,
6108 add_show_prefix_cmd.
6109 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6110 (_initialize_dcache): Use add_basic_prefix_cmd,
6111 add_show_prefix_cmd.
6112 * cp-support.c (maint_cplus_command): Remove.
6113 (_initialize_cp_support): Use add_basic_prefix_cmd.
6114 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6115 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6116 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6117 add_basic_prefix_cmd, add_show_prefix_cmd.
6118 * breakpoint.c (save_command): Remove.
6119 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6120 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6121 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6122 add_show_prefix_cmd.
6123 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6124 (set_ada_command, show_ada_command): Remove.
6125 (_initialize_ada_language): Use add_basic_prefix_cmd,
6126 add_show_prefix_cmd.
6127 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6128
6129 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6130
6131 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6132 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6133
6134 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6137 warning messages.
6138
6139 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6140
6141 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6142 import table is not at beginning of .idata section.
6143
6144 2020-04-16 Pedro Alves <palves@redhat.com>
6145
6146 * inferior.c (delete_inferior): Use delete operator directly
6147 instead of delete_program_space.
6148 * progspace.c (add_program_space): New, factored out from
6149 program_space::program_space.
6150 (remove_program_space): New, factored out from
6151 delete_program_space.
6152 (program_space::program_space): Remove intro comment. Rewrite.
6153 (program_space::~program_space): Remove intro comment. Call
6154 remove_program_space.
6155 (delete_program_space): Delete.
6156 * progspace.h (program_space::program_space): Make explicit. Move
6157 intro comment here, adjusted.
6158 (program_space::~program_space): Move intro comment here,
6159 adjusted.
6160 (delete_program_space): Remove.
6161
6162 2020-04-16 Tom Tromey <tromey@adacore.com>
6163
6164 * windows-nat.c (windows_nat::handle_access_violation): New
6165 function.
6166 * nat/windows-nat.h (handle_access_violation): Declare.
6167 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6168 windows-nat.c. Call handle_access_violation.
6169
6170 2020-04-16 Tom de Vries <tdevries@suse.de>
6171
6172 PR symtab/25791
6173 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6174 CUs without psymtab.
6175
6176 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6177
6178 * python/python.c (do_start_initialization): Don't call
6179 PyEval_InitThreads for Python 3.9 and beyond.
6180
6181 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6182
6183 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6184 thread functions.
6185 (obsd_nat_target::wait): Likewise.
6186
6187 2020-04-15 Tom Tromey <tromey@adacore.com>
6188
6189 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6190 (DEBUG_EXCEPT): Use debug_printf.
6191
6192 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * completer.c (class completion_tracker::completion_hash_entry)
6195 <hash_name>: New member function.
6196 (completion_tracker::discard_completions): New callback to hash a
6197 completion_hash_entry, pass this to htab_create_alloc.
6198
6199 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6200
6201 * windows-nat.c (windows_make_so): Warn rather than stopping with
6202 an error if realpath() fails.
6203
6204 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6205
6206 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6207 (nbsd_nat_target::info_proc): Add do_status.
6208
6209 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6210 Tom de Vries <tdevries@suse.de>
6211
6212 PR symtab/25718
6213 * psympriv.h (struct partial_symtab::read_symtab)
6214 (struct partial_symtab::expand_psymtab)
6215 (struct partial_symtab::read_dependencies): Update comments.
6216 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6217 read_symtab for includer.
6218 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6219 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6220 (struct dwarf2_include_psymtab::m_readin): Remove.
6221 (struct dwarf2_include_psymtab::includer): New member function.
6222 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6223
6224 2020-04-14 Tom de Vries <tdevries@suse.de>
6225
6226 PR symtab/25720
6227 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6228 with NULL symbol_matcher and lookup_name.
6229 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6230 and lookup_name.
6231 * dwarf2/read.c (dw2_expand_symtabs_matching)
6232 (dw2_debug_names_expand_symtabs_matching): Same.
6233 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6234 Make lookup_name a pointer. Update comment.
6235 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6236 lookup_name being a pointer.
6237 * symfile.c (expand_symtabs_matching): Same.
6238 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6239 * linespec.c (iterate_over_all_matching_symtabs): Same.
6240
6241 2020-04-13 Tom Tromey <tom@tromey.com>
6242
6243 * run-on-main-thread.c: Update include.
6244 * unittests/main-thread-selftests.c: Update include.
6245 * tui/tui-win.c: Update include.
6246 * tui/tui-io.c: Update include.
6247 * tui/tui-interp.c: Update include.
6248 * tui/tui-hooks.c: Update include.
6249 * top.h: Update include.
6250 * top.c: Update include.
6251 * ser-base.c: Update include.
6252 * remote.c: Update include.
6253 * remote-notif.c: Update include.
6254 * remote-fileio.c: Update include.
6255 * record-full.c: Update include.
6256 * record-btrace.c: Update include.
6257 * python/python.c: Update include.
6258 * posix-hdep.c: Update include.
6259 * mingw-hdep.c: Update include.
6260 * mi/mi-main.c: Update include.
6261 * mi/mi-interp.c: Update include.
6262 * main.c: Update include.
6263 * linux-nat.c: Update include.
6264 * interps.c: Update include.
6265 * infrun.c: Update include.
6266 * inf-loop.c: Update include.
6267 * event-top.c: Update include.
6268 * event-loop.c: Move to ../gdbsupport/.
6269 * event-loop.h: Move to ../gdbsupport/.
6270 * async-event.h: Update include.
6271 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6272
6273 2020-04-13 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-win.c: Include async-event.h.
6276 * remote.c: Include async-event.h.
6277 * remote-notif.c: Include async-event.h.
6278 * record-full.c: Include async-event.h.
6279 * record-btrace.c: Include async-event.h.
6280 * infrun.c: Include async-event.h.
6281 * event-top.c: Include async-event.h.
6282 * event-loop.h: Move some declarations to async-event.h.
6283 * event-loop.c: Don't include ser-event.h or top.h. Move some
6284 code to async-event.c.
6285 * async-event.h: New file.
6286 * async-event.c: New file.
6287 * Makefile.in (COMMON_SFILES): Add async-event.c.
6288 (HFILES_NO_SRCDIR): Add async-event.h.
6289
6290 2020-04-13 Tom Tromey <tom@tromey.com>
6291
6292 * utils.c (flush_streams): New function.
6293 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6294
6295 2020-04-13 Tom Tromey <tom@tromey.com>
6296
6297 * event-loop.c (handle_file_event): Use warning, not
6298 printf_unfiltered.
6299
6300 2020-04-13 Tom Tromey <tom@tromey.com>
6301
6302 * event-loop.c: Include <chrono>.
6303
6304 2020-04-13 Tom Tromey <tom@tromey.com>
6305
6306 * gdb_select.h: Move to ../gdbsupport/.
6307 * event-loop.c: Update include path.
6308 * top.c: Update include path.
6309 * ser-base.c: Update include path.
6310 * ui-file.c: Update include path.
6311 * ser-tcp.c: Update include path.
6312 * guile/scm-ports.c: Update include path.
6313 * posix-hdep.c: Update include path.
6314 * ser-unix.c: Update include path.
6315 * gdb_usleep.c: Update include path.
6316 * mingw-hdep.c: Update include path.
6317 * inflow.c: Update include path.
6318 * infrun.c: Update include path.
6319 * event-top.c: Update include path.
6320
6321 2020-04-13 Tom Tromey <tom@tromey.com>
6322
6323 * configure: Rebuild.
6324 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6325
6326 2020-04-13 Tom Tromey <tom@tromey.com>
6327
6328 * event-loop.h (start_event_loop): Don't declare.
6329 * event-loop.c (start_event_loop): Move...
6330 * main.c (start_event_loop): ...here. Now static.
6331
6332 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6333
6334 * MAINTAINERS: Update my email address.
6335
6336 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6337
6338 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6339 IP_ALL.
6340
6341 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6342
6343 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6344 (nbsd_nat_target::info_proc): Add do_cmdline.
6345
6346 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6347
6348 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6349 (nbsd_nat_target::info_proc): Add do_cwd.
6350
6351 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6352
6353 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6354
6355 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6356
6357 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6358 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6359 (nbsd_nat_target::info_proc): New functions.
6360 * nbsd-nat.c (kinfo_get_vmmap): New function.
6361 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6362 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6363 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6364 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6365 functions.
6366 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6367 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6368 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6369 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6370 (KINFO_VME_FLAG_GROWS_DOWN): New.
6371
6372 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6373
6374 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6375 bit shift.
6376
6377 2020-04-10 Tom Tromey <tromey@adacore.com>
6378
6379 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6380
6381 2020-04-10 Tom Tromey <tromey@adacore.com>
6382
6383 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6384 separate debug files.
6385
6386 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6387
6388 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6389 Move to...
6390 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6391 ... here.
6392 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6393 Check for STATUS_WX86_BREAKPOINT.
6394 (windows_nat_target::wait): Same.
6395
6396 2020-04-10 Tom de Vries <tdevries@suse.de>
6397
6398 PR cli/25808
6399 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6400
6401 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6402
6403 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6404 (Write After Approval): Remove Tom de Vries.
6405
6406 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6407
6408 revert partially:
6409 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6410
6411 * buildsym.c (record_line): Fix undefined behavior and preserve
6412 lines at eof.
6413
6414 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6415
6416 * auxv.h (svr4_auxv_parse): New.
6417 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6418 and generic_auxv_parse.
6419 (svr4_auxv_parse): Add.
6420 * obsd-tdep.c: Include "auxv.h".
6421 (obsd_auxv_parse): Remove.
6422 (obsd_init_abi): Remove comment.
6423 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6424 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6425 * nbsd-tdep.c: Include "auxv.h".
6426 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6427
6428 2020-04-08 Tom Tromey <tromey@adacore.com>
6429
6430 * nat/windows-nat.h (last_wait_event): Don't declare.
6431 (wait_for_debug_event): Update comment.
6432 * nat/windows-nat.c (last_wait_event): Now static.
6433
6434 2020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c (wait_for_debug_event): Move to
6437 nat/windows-nat.c.
6438 * nat/windows-nat.h (wait_for_debug_event): Declare.
6439 * nat/windows-nat.c (wait_for_debug_event): Move from
6440 windows-nat.c. No longer static.
6441
6442 2020-04-08 Tom Tromey <tromey@adacore.com>
6443
6444 * windows-nat.c (get_windows_debug_event): Use
6445 fetch_pending_stop.
6446 * nat/windows-nat.h (fetch_pending_stop): Declare.
6447 * nat/windows-nat.c (fetch_pending_stop): New function.
6448
6449 2020-04-08 Tom Tromey <tromey@adacore.com>
6450
6451 * windows-nat.c (windows_continue): Use matching_pending_stop and
6452 continue_last_debug_event.
6453 * nat/windows-nat.h (matching_pending_stop)
6454 (continue_last_debug_event): Declare.
6455 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6456 (matching_pending_stop, continue_last_debug_event): New
6457 functions.
6458
6459 2020-04-08 Tom Tromey <tromey@adacore.com>
6460
6461 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6462 (handle_exception_result): Move to nat/windows-nat.h.
6463 (DEBUG_EXCEPTION_SIMPLE): Remove.
6464 (windows_nat::handle_ms_vc_exception): New function.
6465 (handle_exception): Move to nat/windows-nat.c.
6466 (get_windows_debug_event): Update.
6467 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6468 nat/windows-nat.c.
6469 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6470 (handle_exception_result): Move from windows-nat.c.
6471 (handle_exception): Declare.
6472 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6473 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6474 windows-nat.c.
6475
6476 2020-04-08 Tom Tromey <tromey@adacore.com>
6477
6478 * windows-nat.c (exception_count, event_count): Remove.
6479 (handle_exception, get_windows_debug_event)
6480 (do_initial_windows_stuff): Update.
6481
6482 2020-04-08 Tom Tromey <tromey@adacore.com>
6483
6484 * windows-nat.c (windows_nat::handle_load_dll)
6485 (windows_nat::handle_unload_dll): Rename. No longer static.
6486 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6487 Declare.
6488
6489 2020-04-08 Tom Tromey <tromey@adacore.com>
6490
6491 * complaints.h (stop_whining): Declare at top-level.
6492 (complaint): Don't declare stop_whining.
6493
6494 2020-04-08 Tom Tromey <tromey@adacore.com>
6495
6496 * windows-nat.c (windows_nat::handle_output_debug_string):
6497 Rename. No longer static.
6498 * nat/windows-nat.h (handle_output_debug_string): Declare.
6499
6500 2020-04-08 Tom Tromey <tromey@adacore.com>
6501
6502 * windows-nat.c (current_process_handle, current_process_id)
6503 (main_thread_id, last_sig, current_event, last_wait_event)
6504 (current_windows_thread, desired_stop_thread_id, pending_stops)
6505 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6506 (display_selectors, fake_create_process)
6507 (get_windows_debug_event): Update.
6508 * nat/windows-nat.h (current_process_handle, current_process_id)
6509 (main_thread_id, last_sig, current_event, last_wait_event)
6510 (current_windows_thread, desired_stop_thread_id, pending_stops)
6511 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6512 * nat/windows-nat.c (current_process_handle, current_process_id)
6513 (main_thread_id, last_sig, current_event, last_wait_event)
6514 (current_windows_thread, desired_stop_thread_id, pending_stops)
6515 (siginfo_er): New globals. Move from windows-nat.c.
6516
6517 2020-04-08 Tom Tromey <tromey@adacore.com>
6518
6519 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6520 (handle_load_dll): Update.
6521 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6522
6523 2020-04-08 Tom Tromey <tromey@adacore.com>
6524
6525 * windows-nat.c (enum thread_disposition_type): Move to
6526 nat/windows-nat.h.
6527 (windows_nat::thread_rec): Rename from thread_rec. No longer
6528 static.
6529 (windows_add_thread, windows_nat_target::fetch_registers)
6530 (windows_nat_target::store_registers, handle_exception)
6531 (windows_nat_target::resume, get_windows_debug_event)
6532 (windows_nat_target::get_tib_address)
6533 (windows_nat_target::thread_name)
6534 (windows_nat_target::thread_alive): Update.
6535 * nat/windows-nat.h (enum thread_disposition_type): Move from
6536 windows-nat.c.
6537 (thread_rec): Declare.
6538
6539 2020-04-08 Tom Tromey <tromey@adacore.com>
6540
6541 * windows-nat.c: Add "using namespace".
6542 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6543 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6544
6545 2020-04-08 Tom Tromey <tromey@adacore.com>
6546
6547 * nat/windows-nat.h (struct windows_thread_info): Declare
6548 destructor.
6549 * nat/windows-nat.c (~windows_thread_info): New.
6550
6551 2020-04-08 Tom Tromey <tromey@adacore.com>
6552
6553 PR gdb/22992
6554 * windows-nat.c (current_event): Update comment.
6555 (last_wait_event, desired_stop_thread_id): New globals.
6556 (struct pending_stop): New.
6557 (pending_stops): New global.
6558 (windows_nat_target) <stopped_by_sw_breakpoint>
6559 <supports_stopped_by_sw_breakpoint>: New methods.
6560 (windows_fetch_one_register): Add assertions. Adjust PC.
6561 (windows_continue): Handle pending stops. Suspend other threads
6562 when stepping. Use last_wait_event
6563 (wait_for_debug_event): New function.
6564 (get_windows_debug_event): Use wait_for_debug_event. Handle
6565 pending stops. Queue spurious stops.
6566 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6567 (windows_nat_target::kill): Use wait_for_debug_event.
6568 * nat/windows-nat.h (struct windows_thread_info)
6569 <stopped_at_software_breakpoint>: New field.
6570 * nat/windows-nat.c (windows_thread_info::resume): Clear
6571 stopped_at_software_breakpoint.
6572
6573 2020-04-08 Tom Tromey <tromey@adacore.com>
6574
6575 * windows-nat.c (enum thread_disposition_type): New.
6576 (thread_rec): Replace "get_context" parameter with "disposition";
6577 change type.
6578 (windows_add_thread, windows_nat_target::fetch_registers)
6579 (windows_nat_target::store_registers, handle_exception)
6580 (windows_nat_target::resume, get_windows_debug_event)
6581 (windows_nat_target::get_tib_address)
6582 (windows_nat_target::thread_name)
6583 (windows_nat_target::thread_alive): Update.
6584
6585 2020-04-08 Tom Tromey <tromey@adacore.com>
6586
6587 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6588 (windows_continue): Use windows_continue::resume.
6589 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6590 resume>: Declare new methods.
6591 * nat/windows-nat.c: New file.
6592 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6593
6594 2020-04-08 Tom Tromey <tromey@adacore.com>
6595
6596 * windows-nat.c (windows_add_thread, windows_delete_thread)
6597 (windows_nat_target::fetch_registers)
6598 (windows_nat_target::store_registers, fake_create_process)
6599 (windows_nat_target::resume, windows_nat_target::resume)
6600 (get_windows_debug_event, windows_nat_target::wait)
6601 (windows_nat_target::pid_to_str)
6602 (windows_nat_target::get_tib_address)
6603 (windows_nat_target::get_ada_task_ptid)
6604 (windows_nat_target::thread_name)
6605 (windows_nat_target::thread_alive): Use lwp, not tid.
6606
6607 2020-04-08 Tom Tromey <tromey@adacore.com>
6608
6609 * windows-nat.c (handle_exception)
6610 (windows_nat_target::thread_name): Update.
6611 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6612 <name>: Now unique_xmalloc_ptr.
6613
6614 2020-04-08 Tom Tromey <tromey@adacore.com>
6615
6616 * windows-nat.c (thread_rec)
6617 (windows_nat_target::fetch_registers): Update.
6618 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6619 Update comment.
6620 <debug_registers_changed, reload_context>: Now bool.
6621
6622 2020-04-08 Tom Tromey <tromey@adacore.com>
6623
6624 * windows-nat.c (windows_add_thread): Use new.
6625 (windows_init_thread_list, windows_delete_thread): Use delete.
6626 (get_windows_debug_event): Update.
6627 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6628 destructor, and initializers.
6629
6630 2020-04-08 Tom Tromey <tromey@adacore.com>
6631
6632 * windows-nat.c (struct windows_thread_info): Remove.
6633 * nat/windows-nat.h: New file.
6634
6635 2020-04-08 Tom Tromey <tromey@adacore.com>
6636
6637 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6638 (thread_rec, windows_add_thread, windows_delete_thread)
6639 (windows_continue): Update.
6640
6641 2020-04-08 Tom Tromey <tromey@adacore.com>
6642
6643 * windows-nat.c (struct windows_thread_info): Remove typedef.
6644 (thread_head): Remove.
6645 (thread_list): New global.
6646 (thread_rec, windows_add_thread, windows_init_thread_list)
6647 (windows_delete_thread, windows_continue): Update.
6648
6649 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 * windows-tdep.h (windows_init_abi): Add comment.
6652 (cygwin_init_abi): New declaration.
6653 * windows-tdep.c: Split signal enumeration in two, one for
6654 Windows and one for Cygwin.
6655 (windows_gdb_signal_to_target): Only deal with signal of the
6656 Windows OS ABI.
6657 (cygwin_gdb_signal_to_target): New function.
6658 (windows_init_abi): Rename to windows_init_abi_common, don't set
6659 gdb_signal_to_target gdbarch method. Add new new function with
6660 this name.
6661 (cygwin_init_abi): New function.
6662 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6663 comment. Don't call windows_init_abi.
6664 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6665 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6666 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6667 i386_windows_init_abi_common, don't call windows_init_abi. Add
6668 a new function of this name.
6669 (i386_cygwin_init_abi): New function.
6670 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6671 OS ABI Cygwin.
6672
6673 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6676 parameter.c.
6677 (dwarf2_read_gdb_index): Update.
6678
6679 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6680
6681 * nbsd-tdep.c: Include "objfiles.h".
6682 (nbsd_skip_solib_resolver): New.
6683 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6684
6685 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6686
6687 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6688 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6689 with DW_LLE_base_addressx are being emitted in DWARFv5.
6690 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6691 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6692 unsigned integer.
6693
6694 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6695
6696 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6697 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6698 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6699 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6700 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6701 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6702 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6703
6704
6705 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6706
6707 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6708 (read_loclist_index): New function definition.
6709 (lookup_loclist_base): New function definition.
6710 (read_loclist_header): New function definition.
6711 (dwarf2_cu): Add loclist_base and loclist_header field.
6712 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6713 (read_full_die_1): Read the value of DW_AT_loclists_base.
6714 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6715 (read_attribute_value): Handle DW_FORM_loclistx.
6716 (skip_one_die): Handle DW_FORM_loclistx.
6717 (loclist_header): New structure declaration.
6718 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6719
6720 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6721
6722 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6723 constructor. Remove `addr` parameter from other constructor and
6724 add `per_cu` parameter.
6725 * dwarf2/read.c (create_partial_symtab): Update.
6726
6727 2020-04-07 Tom de Vries <tdevries@suse.de>
6728
6729 PR symtab/25796
6730 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6731 (partial_die_info::fixup): Inherit has_const_value.
6732
6733 2020-04-07 Tom de Vries <tdevries@suse.de>
6734
6735 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6736 symbols without address.
6737
6738 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6739
6740 * nbsd-nat.h (struct thread_info): Add forward declaration.
6741 (nbsd_nat_target::thread_alive): Add.
6742 (nbsd_nat_target::thread_name): Likewise.
6743 (nbsd_nat_target::update_thread_list): Likewise.
6744 (update_thread_list::post_attach): Likewise.
6745 (post_attach::pid_to_str): Likewise.
6746 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6747 (nbsd_thread_lister): Add.
6748 (nbsd_nat_target::thread_alive): Likewise.
6749 (nbsd_nat_target::thread_name): Likewise.
6750 (nbsd_add_threads): Likewise.
6751 (update_thread_list::post_attach): Likewise.
6752 (nbsd_nat_target::update_thread_list): Likewise.
6753 (post_attach::pid_to_str): Likewise.
6754
6755 2020-04-06 Tom Tromey <tromey@adacore.com>
6756
6757 * ada-valprint.c (print_variant_part): Extract the variant field.
6758 (print_field_values): Use the field as the outer value when
6759 recursing.
6760
6761 2020-04-06 Tom Tromey <tromey@adacore.com>
6762
6763 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6764 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6765 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6766 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6767 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6768
6769 2020-04-06 Tom Tromey <tromey@adacore.com>
6770
6771 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6772 TYPE_CODE_ERROR.
6773
6774 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6775
6776 * nbsd-tdep.c: Include "gdbarch.h".
6777 Define enum with NetBSD signal numbers.
6778 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6779 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6780 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6781 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6782 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6783 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6784 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6785 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6786 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6787 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6788 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6789 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6790
6791 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6792
6793 PR gdb/25325
6794 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6795
6796 2020-04-03 Tom Tromey <tromey@adacore.com>
6797
6798 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6799 Read constant block.
6800
6801 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6804 (gdb_bfd_get_full_section_contents): New declaration.
6805 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6806 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6807 gdb_bfd_get_full_section_contents.
6808
6809 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * exec.c (build_section_table): Replace internal_error with
6812 gdb_assert.
6813 (section_table_xfer_memory_partial): Likewise.
6814 * mdebugread.c (parse_partial_symbols): Likewise.
6815 * psymtab.c (lookup_partial_symbol): Likewise.
6816 * utils.c (wrap_here): Likewise.
6817
6818 2020-04-02 Tom Tromey <tromey@adacore.com>
6819
6820 * f-lang.c (build_fortran_types): Use arch_type to initialize
6821 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6822
6823 2020-04-02 Tom Tromey <tromey@adacore.com>
6824
6825 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6826 of attributes.
6827
6828 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6829 Bernd Edlinger <bernd.edlinger@hotmail.de>
6830 Tom Tromey <tromey@adacore.com>
6831
6832 * buildsym.c (buildsym_compunit::record_line): Remove
6833 deduplication code.
6834
6835 2020-04-02 Tom de Vries <tdevries@suse.de>
6836
6837 PR ada/24671
6838 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6839
6840 2020-04-02 Tom de Vries <tdevries@suse.de>
6841
6842 * dwarf2/read.c (dwarf2_gdb_index_functions,
6843 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6844 NULL.
6845 * psymtab.c (psym_lookup_global_symbol_language): New function.
6846 (psym_functions): Init psym_lookup_global_symbol_language with
6847 psym_lookup_global_symbol_language.
6848 * symfile-debug.c (debug_sym_quick_functions): Init
6849 lookup_global_symbol_language with NULL.
6850 * symfile.c (set_initial_language): Remove fixme comment.
6851 * symfile.h (struct quick_symbol_functions): Add
6852 lookup_global_symbol_language.
6853 * symtab.c (find_quick_global_symbol_language): New function.
6854 (find_main_name): Use find_quick_global_symbol_language.
6855
6856 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6859
6860 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6861
6862 * buildsym.c (record_line): Fix undefined behavior and preserve
6863 lines at eof.
6864
6865 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6866
6867 * buildsym.c (record_line): Fix the resizing condition.
6868
6869 2020-04-01 Tom Tromey <tom@tromey.com>
6870
6871 * value.h (value_literal_complex): Add comment.
6872 * valops.c (value_literal_complex): Refer to value.h.
6873
6874 2020-04-01 Tom Tromey <tom@tromey.com>
6875
6876 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6877 (scalar_type): New rule, from typebase.
6878 (typebase): Use scalar_type. Recognize complex types.
6879 (field_name): Handle FLOAT_KEYWORD.
6880 (ident_tokens): Add _Complex and __complex__.
6881
6882 2020-04-01 Tom Tromey <tom@tromey.com>
6883
6884 PR exp/25299:
6885 * valarith.c (promotion_type, complex_binop): New functions.
6886 (scalar_binop): Handle complex numbers. Use promotion_type.
6887 (value_pos, value_neg, value_complement): Handle complex numbers.
6888
6889 2020-04-01 Tom Tromey <tom@tromey.com>
6890
6891 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6892 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6893 (parse_number): Handle complex numbers.
6894
6895 2020-04-01 Tom Tromey <tom@tromey.com>
6896
6897 * c-valprint.c (c_decorations): Change complex suffix to "i".
6898
6899 2020-04-01 Tom Tromey <tom@tromey.com>
6900
6901 * valprint.c (generic_value_print_complex): Use accessors.
6902 * value.h (value_real_part, value_imaginary_part): Declare.
6903 * valops.c (value_real_part, value_imaginary_part): New
6904 functions.
6905 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6906
6907 2020-04-01 Tom Tromey <tom@tromey.com>
6908
6909 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6910 (read_range_type): Update.
6911 * mdebugread.c (basic_type): Update.
6912 * go-lang.c (build_go_types): Use init_complex_type.
6913 * gdbtypes.h (struct main_type) <complex_type>: New member.
6914 (init_complex_type): Update.
6915 (arch_complex_type): Don't declare.
6916 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6917 Make name if none given. Use alloc_type_copy. Look for cached
6918 complex type.
6919 (arch_complex_type): Remove.
6920 (gdbtypes_post_init): Use init_complex_type.
6921 * f-lang.c (build_fortran_types): Use init_complex_type.
6922 * dwarf2/read.c (read_base_type): Update.
6923 * d-lang.c (build_d_types): Use init_complex_type.
6924 * ctfread.c (read_base_type): Update.
6925
6926 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6927
6928 * infrun.c (stop_all_threads): Update assertion, plus when
6929 stopping threads, take into account that we might be trying
6930 to stop an all-stop target.
6931 (stop_waiting): Call 'stop_all_threads' if there exists a
6932 non-stop target.
6933
6934 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6935
6936 * target.h (exists_non_stop_target): New function declaration.
6937 * target.c (exists_non_stop_target): New function.
6938
6939 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6940
6941 PR gdb/24789
6942 * eval.c (is_integral_or_integral_reference): New function.
6943 (evaluate_subexp_standard): Allow integer references in
6944 pointer arithmetic.
6945
6946 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6947
6948 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6949 check for no ptid in the stop reply when the target is non-stop.
6950
6951 2020-04-01 Tom Tromey <tromey@adacore.com>
6952
6953 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6954 "name" parameter to rvalue reference. Initialize m_name_holder.
6955 <lookup_name_info>: New overloads.
6956 <name>: Return gdb::string_view.
6957 <c_str>: New method.
6958 <make_ignore_params>: Update.
6959 <search_name_hash>: Update.
6960 <language_lookup_name>: Return const char *.
6961 <m_name>: Change type.
6962 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6963 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6964 (lookup_name_info::match_any): Update.
6965 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6966 Update.
6967 * minsyms.c (linkage_name_str): Update.
6968 * language.c (default_symbol_name_matcher): Update.
6969 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6970 Update.
6971 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6972 (ada_lookup_name_info::ada_lookup_name_info): Update.
6973 (literal_symbol_name_matcher): Update.
6974
6975 2020-04-01 Tom Tromey <tromey@adacore.com>
6976
6977 * psymtab.c (psymtab_search_name): Remove function.
6978 (psym_lookup_symbol): Create search name and lookup name here.
6979 (lookup_partial_symbol): Remove "name" parameter; add
6980 lookup_name.
6981 (psym_expand_symtabs_for_function): Update.
6982
6983 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6984
6985 PR tui/25597:
6986 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6987
6988 2020-03-31 Tom Tromey <tromey@adacore.com>
6989
6990 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6991 memcpy.
6992
6993 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6994
6995 * features/riscv/32bit-csr.xml: Regenerated.
6996 * features/riscv/64bit-csr.xml: Regenerated.
6997
6998 2020-03-30 Tom Tromey <tromey@adacore.com>
6999
7000 * ada-valprint.c (print_variant_part): Update.
7001 * ada-lang.h (ada_which_variant_applies): Update.
7002 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7003 outer_valaddr parameters; replace with "outer" value parameter.
7004 (to_fixed_variant_branch_type): Update.
7005
7006 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7007
7008 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7009 <list>. Remove inclusion of observable.h.
7010 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7011 (struct arch_lwp_info): New struct.
7012 (class ppc_linux_dreg_interface): New class.
7013 (struct ppc_linux_process_info): New struct.
7014 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7015 <low_new_clone, low_forget_process, low_prepare_to_resume>
7016 <copy_thread_dreg_state, mark_thread_stale>
7017 <mark_debug_registers_changed, register_hw_breakpoint>
7018 <clear_hw_breakpoint, register_wp, clear_wp>
7019 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7020 <num_memory_accesses, get_trigger_type>
7021 <create_watchpoint_request, hwdebug_point_cmp>
7022 <init_arch_lwp_info, get_arch_lwp_info>
7023 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7024 methods.
7025 <struct ptid_hash>: New inner struct.
7026 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7027 members.
7028 (saved_dabr_value, hwdebug_info, max_slots_number)
7029 (struct hw_break_tuple, struct thread_points, ppc_threads)
7030 (have_ptrace_hwdebug_interface)
7031 (hwdebug_find_thread_points_by_tid)
7032 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7033 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7034 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7035 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7036 use m_dreg_interface.
7037 (hwdebug_point_cmp): Change to...
7038 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7039 reference arguments instead of pointers.
7040 (ppc_linux_nat_target::ranged_break_num_registers): Use
7041 m_dreg_interface.
7042 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7043 m_dreg_interface. Call register_hw_breakpoint.
7044 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7045 m_dreg_interface. Call clear_hw_breakpoint.
7046 (get_trigger_type): Change to...
7047 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7048 comment.
7049 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7050 use m_dreg_interface. Call register_hw_breakpoint.
7051 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7052 use m_dreg_interface. Call clear_hw_breakpoint.
7053 (can_use_watchpoint_cond_accel): Change to...
7054 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7055 method. Update comment, use m_dreg_interface and
7056 m_process_info.
7057 (calculate_dvc): Change to...
7058 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7059 m_dreg_interface.
7060 (num_memory_accesses): Change to...
7061 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7062 (check_condition): Change to...
7063 (ppc_linux_nat_target::check_condition): ...this method.
7064 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7065 comment, use m_dreg_interface.
7066 (create_watchpoint_request): Change to...
7067 (ppc_linux_nat_target::create_watchpoint_request): ...this
7068 method. Use m_dreg_interface.
7069 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7070 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7071 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7072 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7073 (ppc_linux_nat_target::low_forget_process)
7074 (ppc_linux_nat_target::low_new_fork)
7075 (ppc_linux_nat_target::low_new_clone)
7076 (ppc_linux_nat_target::low_delete_thread)
7077 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7078 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7079 only call mark_thread_stale.
7080 (ppc_linux_thread_exit): Remove.
7081 (ppc_linux_nat_target::stopped_data_address): Change to...
7082 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7083 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7084 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7085 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7086 comment. Call low_stopped_data_address.
7087 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7088 m_dreg_interface.
7089 (ppc_linux_nat_target::masked_watch_num_registers): Use
7090 m_dreg_interface.
7091 (ppc_linux_nat_target::copy_thread_dreg_state)
7092 (ppc_linux_nat_target::mark_thread_stale)
7093 (ppc_linux_nat_target::mark_debug_registers_changed)
7094 (ppc_linux_nat_target::register_hw_breakpoint)
7095 (ppc_linux_nat_target::clear_hw_breakpoint)
7096 (ppc_linux_nat_target::register_wp)
7097 (ppc_linux_nat_target::clear_wp)
7098 (ppc_linux_nat_target::init_arch_lwp_info)
7099 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7100 (_initialize_ppc_linux_nat): Remove observer callback.
7101
7102 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7103
7104 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7105 (ppc_linux_nat_target::auxv_parse)
7106 (ppc_linux_nat_target::read_description)
7107 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7108 Move up.
7109
7110 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7111
7112 * linux-nat.h (low_new_clone): New method.
7113 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7114
7115 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7116
7117 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7118 (dbx_expand_psymtab): ... this.
7119 (start_psymtab): Update.
7120 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7121 (mdebug_expand_psymtab): ... this.
7122 (parse_partial_symbols): Update.
7123 (new_psymtab): Update.
7124 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7125 (xcoff_expand_psymtab): ... this.
7126 (xcoff_start_psymtab): Update.
7127
7128 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7129
7130 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7131 <expand_dependencies>: ... this.
7132 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7133 (partial_symtab::expand_dependencies): ... this.
7134 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7135 Update.
7136 (dwarf2_psymtab::expand_psymtab): Update.
7137 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7138 * mdebugread.c (psymtab_to_symtab_1): Update.
7139 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7140
7141 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * psympriv.h (discard_psymtab): Remove.
7144 * dbxread.c (dbx_end_psymtab): Update.
7145 * xcoffread.c (xcoff_end_psymtab): Update.
7146
7147 2020-03-28 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7150 comment.
7151
7152 2020-03-28 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7155
7156 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7157
7158 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7159
7160 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7161
7162 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7163
7164 2020-03-26 Tom Tromey <tom@tromey.com>
7165
7166 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7167 (mark_common_block_symbol_computed, read_tag_string_type)
7168 (attr_to_dynamic_prop, read_subrange_type): Update.
7169 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7170 to be methods on struct attribute.
7171 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7172 (read_call_site_scope, partial_die_info::read)
7173 (partial_die_info::read, lookup_die_type, follow_die_ref):
7174 Update.
7175 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7176 from dwarf2_get_ref_die_offset.
7177 (attribute::constant_value): New method, from
7178 dwarf2_get_attr_constant_value.
7179 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7180 Declare method.
7181 <constant_value>: New method.
7182
7183 2020-03-26 Tom Tromey <tom@tromey.com>
7184
7185 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7186 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7187 (dwarf_type_encoding_name): Move to stringify.c.
7188 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7189 * dwarf2/stringify.c: New file.
7190 * dwarf2/stringify.h: New file.
7191
7192 2020-03-26 Tom Tromey <tom@tromey.com>
7193
7194 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7195 Rewrite.
7196
7197 2020-03-26 Tom Tromey <tom@tromey.com>
7198
7199 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7200 methods.
7201 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7202 (lookup_ranges_base): Likewise.
7203 (read_cutu_die_from_dwo, read_full_die_1): Update.
7204
7205 2020-03-26 Tom Tromey <tom@tromey.com>
7206
7207 * dwarf2/read.c (read_import_statement, read_file_scope)
7208 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7209 (read_lexical_block_scope, read_call_site_scope)
7210 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7211 (handle_struct_member_die, process_structure_scope)
7212 (update_enumeration_type_from_children)
7213 (process_enumeration_scope, read_array_type, read_common_block)
7214 (read_namespace, read_module, read_subroutine_type): Update.
7215 (sibling_die): Remove.
7216
7217 2020-03-26 Tom Tromey <tom@tromey.com>
7218
7219 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7220 (build_type_psymtabs_reader, read_structure_type)
7221 (read_enumeration_type, read_full_die_1): Update.
7222 (dwarf2_attr_no_follow): Move to die.h.
7223 * dwarf2/die.h (struct die_info) <attr>: New method.
7224
7225 2020-03-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7228 <base_address>: Now an optional.
7229 (dwarf2_find_base_address, dwarf2_rnglists_process)
7230 (dwarf2_ranges_process, fill_in_loclist_baton)
7231 (dwarf2_symbol_mark_computed): Update.
7232
7233 2020-03-26 Tom Tromey <tom@tromey.com>
7234
7235 * dwarf2/read.c (struct die_info): Move to die.h.
7236 * dwarf2/die.h: New file.
7237
7238 2020-03-26 Tom Tromey <tom@tromey.com>
7239
7240 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7241 * dwarf2/read.c
7242 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7243 Move to line-header.c.
7244 (read_checked_initial_length_and_offset, read_formatted_entries):
7245 Likewise.
7246 (dwarf_decode_line_header): Split into two.
7247 * dwarf2/line-header.c
7248 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7249 Move from read.c.
7250 (read_checked_initial_length_and_offset, read_formatted_entries):
7251 Likewise.
7252 (dwarf_decode_line_header): New function, split from read.c.
7253
7254 2020-03-26 Tom Tromey <tom@tromey.com>
7255
7256 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7257 Declare method.
7258 * dwarf2/read.c (read_attribute_value): Update.
7259 (dwarf2_per_objfile::read_line_string): Rename from
7260 read_indirect_line_string.
7261 (read_formatted_entries): Update.
7262
7263 2020-03-26 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7266 variable.
7267
7268 2020-03-26 Tom Tromey <tom@tromey.com>
7269
7270 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7271 const.
7272 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7273 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7274 parameter const.
7275
7276 2020-03-26 Tom Tromey <tom@tromey.com>
7277
7278 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7279 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7280 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7281 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7282
7283 2020-03-26 Tom Tromey <tom@tromey.com>
7284
7285 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7286 file_names_size, file_full_name, file_file_name>: Use const.
7287 <file_name_at, file_names>: Add const overload.
7288 * dwarf2/line-header.c (line_header::file_file_name)
7289 (line_header::file_full_name): Update.
7290
7291 2020-03-26 Tom Tromey <tom@tromey.com>
7292
7293 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7294 (macro_start_file, consume_improper_spaces)
7295 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7296 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7297 (dwarf_decode_macros): Move to macro.c.
7298 * dwarf2/macro.c: New file.
7299 * dwarf2/macro.h: New file.
7300 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7301
7302 2020-03-26 Tom Tromey <tom@tromey.com>
7303
7304 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7305 method.
7306 * dwarf2/section.c: New method. From
7307 read_indirect_string_at_offset_from.
7308 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7309 (read_indirect_string_at_offset_from): Move to section.c.
7310 (read_indirect_string_at_offset): Rewrite.
7311 (read_indirect_line_string_at_offset): Remove.
7312 (read_indirect_string, read_indirect_line_string)
7313 (dwarf_decode_macro_bytes): Update.
7314
7315 2020-03-26 Tom Tromey <tom@tromey.com>
7316
7317 * dwarf2/section.h (struct dwarf2_section_info)
7318 <overload_complaint>: Declare.
7319 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7320 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7321 Rename from dwarf2_section_buffer_overflow_complaint.
7322 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7323 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7324
7325 2020-03-26 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7328 Declare.
7329 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7330 Move from read.c.
7331 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7332 to section.c.
7333
7334 2020-03-26 Tom Tromey <tom@tromey.com>
7335
7336 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7337
7338 2020-03-26 Tom Tromey <tom@tromey.com>
7339
7340 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7341 "builder".
7342 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7343 parameter.
7344 (dwarf_decode_macros): Update.
7345
7346 2020-03-26 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2/read.c (read_attribute_value): Update.
7349 (read_indirect_string_from_dwz): Move to dwz.c; change into
7350 method.
7351 (dwarf_decode_macro_bytes): Update.
7352 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7353 * dwarf2/dwz.c: New file.
7354 * Makefile.in (COMMON_SFILES): Add dwz.c.
7355
7356 2020-03-26 Tom Tromey <tom@tromey.com>
7357
7358 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7359 * dwarf2/read.c: Add include.
7360 * dwarf2/index-write.c: Add include.
7361 * dwarf2/index-cache.c: Add include.
7362 * dwarf2/dwz.h: New file.
7363
7364 2020-03-25 Tom Tromey <tom@tromey.com>
7365
7366 * compile/compile-object-load.c (get_out_value_type): Mention
7367 correct symbol name in error message.
7368
7369 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7370
7371 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7372
7373 2020-03-25 Tom de Vries <tdevries@suse.de>
7374
7375 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7376 * symmisc.c (dump_symtab_1): Print user and includes fields.
7377 (maintenance_info_symtabs): Same.
7378
7379 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7380
7381 PR gdb/25534
7382 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7383 (riscv_regcache_cooked_write): New function.
7384 (riscv_push_dummy_call): Use new function.
7385 (riscv_return_value): Likewise.
7386
7387 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7390 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7391 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7392 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7393 * infrun.c (follow_fork): Likewise.
7394 (follow_fork_inferior): Likewise.
7395 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7396 * linux-nat.h (class linux_nat_target): Likewise.
7397 * remote.c (class remote_target) <follow_fork>: Likewise.
7398 (remote_target::follow_fork): Likewise.
7399 * target-delegates.c: Re-generate.
7400 * target.c (default_follow_fork): Likewise.
7401 (target_follow_fork): Likewise.
7402 * target.h (struct target_ops) <follow_fork>: Likewise.
7403 (target_follow_fork): Likewise.
7404
7405 2020-03-24 Tom de Vries <tdevries@suse.de>
7406
7407 * psymtab.c (maintenance_info_psymtabs): Print user field.
7408
7409 2020-03-20 Tom Tromey <tromey@adacore.com>
7410
7411 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7412 const.
7413 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7414 const.
7415
7416 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * ptrace.m4: Don't check for ptrace declaration.
7419 * config.in: Re-generate.
7420 * configure: Re-generate.
7421 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7422 not defined.
7423
7424 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7425
7426 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7427 `PTRACE_TYPE_RET'.
7428 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7429 * sparc-nat.c (gdb_ptrace): Likewise.
7430 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7431
7432 2020-03-20 Tom Tromey <tromey@adacore.com>
7433
7434 * c-exp.y (lex_one_token): Fix assert.
7435
7436 2020-03-20 Tom Tromey <tromey@adacore.com>
7437
7438 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7439 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7440 strncpy call.
7441
7442 2020-03-20 Tom Tromey <tromey@adacore.com>
7443
7444 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7445
7446 2020-03-20 Tom Tromey <tromey@adacore.com>
7447
7448 * ada-valprint.c (print_variant_part): Remove parameters; switch
7449 to value-based API.
7450 (print_field_values): Likewise.
7451 (ada_val_print_struct_union): Likewise.
7452 (ada_value_print_1): Update.
7453
7454 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7455
7456 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7457 nbsd_nat_target instead of inf_ptrace_target.
7458 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7459 nbsd_nat_target.
7460
7461 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7462
7463 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7464 it to the ptrace call.
7465 * (store_registers): Likewise.
7466
7467 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7468
7469 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7470 it to the ptrace call.
7471 * (store_registers): Likewise.
7472
7473 2020-03-19 Luis Machado <luis.machado@linaro.org>
7474
7475 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7476 valid, fetch vg value from ptrace.
7477
7478 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7479 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7480 * inf-ptrace.c: Likewise.
7481 * (gdb_ptrace): Add.
7482 * (inf_ptrace_target::resume): Update.
7483 * (inf_ptrace_target::xfer_partial): Likewise.
7484 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7485 * (inf_ptrace_peek_poke): Update.
7486
7487 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7488
7489 * x86-bsd-nat.c (gdb_ptrace): New.
7490 * (x86bsd_dr_set): Add new argument `ptid'.
7491 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7492 x86bsd_dr_set_addr): Update.
7493
7494 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7495
7496 * remote.c (remote_target::process_stop_reply): Handle events for
7497 all threads differently.
7498
7499 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * completer.c (completion_tracker::remove_completion): Define new
7502 function.
7503 * completer.h (completion_tracker::remove_completion): Declare new
7504 function.
7505 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7506 when adding a C++ function symbol.
7507
7508 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7509
7510 * completer.c (completion_tracker::completion_hash_entry): Define
7511 new class.
7512 (advance_to_filename_complete_word_point): Call
7513 recompute_lowest_common_denominator.
7514 (completion_tracker::completion_tracker): Call discard_completions
7515 to setup the hash table.
7516 (completion_tracker::discard_completions): Allow for being called
7517 from the constructor, pass new equal function, and element deleter
7518 when constructing the hash table. Initialise new class member
7519 variables.
7520 (completion_tracker::maybe_add_completion): Remove use of
7521 m_entries_vec, and store more information into m_entries_hash.
7522 (completion_tracker::recompute_lcd_visitor): New function, most
7523 content taken from...
7524 (completion_tracker::recompute_lowest_common_denominator):
7525 ...here, this now just visits each item in the hash calling the
7526 above visitor.
7527 (completion_tracker::build_completion_result): Remove use of
7528 m_entries_vec, call recompute_lowest_common_denominator.
7529 * completer.h (completion_tracker::have_completions): Remove use
7530 of m_entries_vec.
7531 (completion_tracker::completion_hash_entry): Declare new class.
7532 (completion_tracker::recompute_lowest_common_denominator): Change
7533 function signature.
7534 (completion_tracker::recompute_lcd_visitor): Declare new function.
7535 (completion_tracker::m_entries_vec): Delete.
7536 (completion_tracker::m_entries_hash): Initialize to NULL.
7537 (completion_tracker::m_lowest_common_denominator_valid): New
7538 member variable.
7539 (completion_tracker::m_lowest_common_denominator_max_length): New
7540 member variable.
7541
7542 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7543
7544 * regformats/regdef.h: Put reg in gdb namespace.
7545
7546 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7547
7548 * i386-bsd-nat.c (gdb_ptrace): New.
7549 * (i386bsd_fetch_inferior_registers,
7550 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7551 * (i386bsd_fetch_inferior_registers,
7552 i386bsd_store_inferior_registers) Use gdb_ptrace.
7553
7554 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7555
7556 * amd64-bsd-nat.c (gdb_ptrace): New.
7557 * (amd64bsd_fetch_inferior_registers,
7558 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7559 * (amd64bsd_fetch_inferior_registers,
7560 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7561
7562 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7563
7564 * user-regs.c (user_reg::read): Rename to...
7565 (user_reg::xread): ...this.
7566 * (append_user_reg): Rename argument `read' to `xread'.
7567 * (user_reg_add_builtin): Likewise.
7568 * (user_reg_add): Likewise.
7569 * (value_of_user_reg): Likewise.
7570
7571 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7572
7573 * sparc-nat.c (gdb_ptrace): New.
7574 * sparc-nat.c (sparc_fetch_inferior_registers)
7575 (sparc_store_inferior_registers) Remove obsolete comment.
7576 * sparc-nat.c (sparc_fetch_inferior_registers)
7577 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7578 * sparc-nat.c (sparc_fetch_inferior_registers)
7579 (sparc_store_inferior_registers) Use gdb_ptrace.
7580
7581 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7582
7583 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7584 it to the ptrace call.
7585 * sh-nbsd-nat.c (store_registers): Likewise.
7586
7587 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7588
7589 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7590 nbsd_nat_target instead of inf_ptrace_target.
7591 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7592 nbsd_nat_target.
7593
7594 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7595
7596 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7597
7598 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7599
7600 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7601 <sys/sysctl.h>.
7602 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7603
7604 2020-03-17 Tom de Vries <tdevries@suse.de>
7605
7606 PR gdb/23710
7607 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7608 fields.
7609 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7610 fields.
7611 (process_imported_unit_die): Skip import of c++ CUs.
7612
7613 2020-03-16 Tom Tromey <tom@tromey.com>
7614
7615 * p-valprint.c (pascal_object_print_value): Initialize
7616 base_value.
7617
7618 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7619 Shahab Vahedi <shahab@synopsys.com>
7620
7621 * Makefile.in: Add arch/arc.o
7622 * configure.tgt: Likewise.
7623 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7624 (_initialize_arc_tdep): Don't initialize old target descriptions.
7625 (arc_read_description): New function to cache target descriptions.
7626 * arc-tdep.h (arc_read_description): Add proto type.
7627 * arch/arc.c: New file.
7628 * arch/arc.h: Likewise.
7629 * features/Makefile: Replace old target descriptions with new.
7630 * features/arc-arcompact.c: Remove.
7631 * features/arc-arcompact.xml: Likewise.
7632 * features/arc-v2.c: Likewise
7633 * features/arc-v2.xml: Likewise
7634 * features/arc/aux-arcompact.xml: New file.
7635 * features/arc/aux-v2.xml: Likewise.
7636 * features/arc/core-arcompact.xml: Likewise.
7637 * features/arc/core-v2.xml: Likewise.
7638 * features/arc/aux-arcompact.c: Generate.
7639 * features/arc/aux-v2.c: Likewise.
7640 * features/arc/core-arcompact.c: Likewise.
7641 * features/arc/core-v2.c: Likewise.
7642 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7643
7644 2020-03-16 Tom Tromey <tromey@adacore.com>
7645
7646 PR gdb/25663:
7647 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7648 putting value into bcache.
7649
7650 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7651
7652 PR gdb/21500
7653 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7654 to...
7655 (amd64_windows_init_abi_common): ... this. Don't set size of
7656 long type.
7657 (amd64_windows_init_abi): New function.
7658 (amd64_cygwin_init_abi): New function.
7659 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7660 the Cygwin OS ABI.
7661 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7662 comment.
7663
7664 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7667 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7668 (pe_import_directory_entry): New struct type.
7669 (is_linked_with_cygwin_dll): New function.
7670 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7671 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7672 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7673
7674 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7675
7676 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7677 i386_cygwin_core_osabi_sniffer.
7678
7679 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7680
7681 * i386-cygwin-tdep.c: Rename to...
7682 * i386-windows-tdep.c: ... this.
7683 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7684 i386-windows-tdep.c.
7685 * configure.tgt: Likewise.
7686
7687 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7690 * osabi.c (gdb_osabi_names): Add "Windows".
7691 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7692 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7693 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7694 i386_cygwin_osabi_sniffer.
7695 (_initialize_i386_cygwin_tdep): Register OS ABI
7696 GDB_OSABI_WINDOWS for i386.
7697 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7698 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7699 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7700 for x86-64.
7701 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7702 when the target matches '*-*-mingw*'.
7703
7704 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * defs.h (enum gdb_osabi): Move to...
7707 * osabi.h (enum gdb_osabi): ... here.
7708 * gdbarch.sh: Include osabi.h in gdbarch.h.
7709 * gdbarch.h: Re-generate.
7710
7711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7714 function.
7715 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7716
7717 2020-03-14 Tom Tromey <tom@tromey.com>
7718
7719 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7720 for C++.
7721 (c_type_print_modifier): Likewise. Add "language" parameter.
7722 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7723 (c_type_print_base_1): Update.
7724 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7725 constants.
7726 * type-stack.c (type_stack::insert): Handle tp_atomic and
7727 tp_restrict.
7728 (type_stack::follow_type_instance_flags): Likewise.
7729 (type_stack::follow_types): Likewise. Merge type-following code.
7730 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7731 (space_identifier, cv_with_space_id)
7732 (const_or_volatile_or_space_identifier_noopt)
7733 (const_or_volatile_or_space_identifier): Remove.
7734 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7735 rules.
7736 (ptr_operator, typebase): Update.
7737 (enum token_flag) <FLAG_C>: New constant.
7738 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7739 "_Atomic".
7740 (lex_one_token): Handle FLAG_C.
7741
7742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7743
7744 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7745 it to the ptrace call.
7746 * m68k-bsd-nat.c (store_registers): Likewise.
7747
7748 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7749
7750 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7751 gdb_byte *.
7752 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7753 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7754 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7755
7756 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7757
7758 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7759 nbsd_nat_target instead of inf_ptrace_target.
7760 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7761 nbsd_nat_target.
7762
7763 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7764
7765 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7766 register_t.
7767
7768 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7769
7770 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7771 it to the ptrace call.
7772 * alpha-bsd-nat.c (store_registers): Likewise.
7773
7774 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7775
7776 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7777 includes.
7778 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7779 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7780 fill_fpregset): Likewise.
7781
7782 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7783
7784 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7785 nbsd_nat_target instead of inf_ptrace_target.
7786 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7787 nbsd_nat_target.
7788
7789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7790
7791 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7792 register_t.
7793
7794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7795
7796 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7797 it to the ptrace call.
7798 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7799 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7800 * arm-nbsd-nat.c (store_register): Likewise.
7801 * arm-nbsd-nat.c (store_regs): Likewise.
7802 * arm-nbsd-nat.c (store_fp_register): Likewise.
7803 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7804
7805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7806
7807 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7808 nbsd_nat_target instead of inf_ptrace_target.
7809 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7810 nbsd_nat_target.
7811
7812 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7813
7814 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7815 it to the ptrace call.
7816 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7817
7818 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7819
7820 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7821 it to the ptrace call.
7822 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7823
7824 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7825
7826 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7827 gdb_byte *.
7828 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7829
7830 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7831
7832 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7833 instead of inf_ptrace_target.
7834 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7835 nbsd_nat_target.
7836
7837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7838
7839 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7840 register_t.
7841
7842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7843
7844 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7845 register_t.
7846
7847 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7848
7849 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7850 register_t.
7851
7852 2020-03-13 Tom Tromey <tom@tromey.com>
7853
7854 * value.h (val_print): Don't declare.
7855 * valprint.h (val_print_array_elements)
7856 (val_print_scalar_formatted, generic_val_print): Don't declare.
7857 * valprint.c (generic_val_print_array): Take a struct value.
7858 (generic_val_print_ptr, generic_val_print_memberptr)
7859 (generic_val_print_bool, generic_val_print_int)
7860 (generic_val_print_char, generic_val_print_complex)
7861 (generic_val_print): Remove.
7862 (generic_value_print): Update.
7863 (do_val_print): Remove unused parameters. Don't call
7864 la_val_print.
7865 (val_print): Remove.
7866 (common_val_print): Update. Don't call value_check_printable.
7867 (val_print_scalar_formatted, val_print_array_elements): Remove.
7868 * rust-lang.c (rust_val_print): Remove.
7869 (rust_language_defn): Update.
7870 * p-valprint.c (pascal_val_print): Remove.
7871 (pascal_value_print_inner): Update.
7872 (pascal_object_print_val_fields, pascal_object_print_val):
7873 Remove.
7874 (pascal_object_print_static_field): Update.
7875 * p-lang.h (pascal_val_print): Don't declare.
7876 * p-lang.c (pascal_language_defn): Update.
7877 * opencl-lang.c (opencl_language_defn): Update.
7878 * objc-lang.c (objc_language_defn): Update.
7879 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7880 * m2-lang.h (m2_val_print): Don't declare.
7881 * m2-lang.c (m2_language_defn): Update.
7882 * language.h (struct language_defn) <la_val_print>: Remove.
7883 * language.c (unk_lang_value_print_inner): Rename. Change
7884 argument types.
7885 (unknown_language_defn, auto_language_defn): Update.
7886 * go-valprint.c (go_val_print): Remove.
7887 * go-lang.h (go_val_print): Don't declare.
7888 * go-lang.c (go_language_defn): Update.
7889 * f-valprint.c (f_val_print): Remove.
7890 * f-lang.h (f_value_print): Don't declare.
7891 * f-lang.c (f_language_defn): Update.
7892 * d-valprint.c (d_val_print): Remove.
7893 * d-lang.h (d_value_print): Don't declare.
7894 * d-lang.c (d_language_defn): Update.
7895 * cp-valprint.c (cp_print_value_fields)
7896 (cp_print_value_fields_rtti, cp_print_value): Remove.
7897 (cp_print_static_field): Update.
7898 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7899 (c_val_print_struct, c_val_print_union, c_val_print_int)
7900 (c_val_print_memberptr, c_val_print): Remove.
7901 * c-lang.h (c_val_print_array, cp_print_value_fields)
7902 (cp_print_value_fields_rtti): Don't declare.
7903 * c-lang.c (c_language_defn, cplus_language_defn)
7904 (asm_language_defn, minimal_language_defn): Update.
7905 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7906 (ada_val_print_enum): Take a struct value.
7907 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7908 (ada_val_print): Remove.
7909 (ada_value_print_1): Update.
7910 (printable_val_type): Remove.
7911 * ada-lang.h (ada_val_print): Don't declare.
7912 * ada-lang.c (ada_language_defn): Update.
7913
7914 2020-03-13 Tom Tromey <tom@tromey.com>
7915
7916 * valprint.c (do_val_print): Update.
7917 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7918 a struct value.
7919 (value_to_value_object_no_release): Declare.
7920 * python/py-value.c (value_to_value_object_no_release): New
7921 function.
7922 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7923 struct value.
7924 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7925 function.
7926 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7927 a struct value.
7928 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7929 Declare.
7930 (gdbscm_apply_val_pretty_printer): Take a struct value.
7931 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7932 value.
7933 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7934 value.
7935 * extension-priv.h (struct extension_language_ops)
7936 <apply_val_pretty_printer>: Take a struct value.
7937 * cp-valprint.c (cp_print_value): Create a struct value.
7938 (cp_print_value): Update.
7939
7940 2020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * ada-valprint.c (print_field_values): Call common_val_print.
7943
7944 2020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * ada-valprint.c (val_print_packed_array_elements): Remove
7947 bitoffset and val parameters. Call common_val_print.
7948 (ada_val_print_string): Remove offset, address, and original_value
7949 parameters.
7950 (ada_val_print_array): Update.
7951 (ada_value_print_array): New function.
7952 (ada_value_print_1): Call it.
7953
7954 2020-03-13 Tom Tromey <tom@tromey.com>
7955
7956 * ada-valprint.c (ada_value_print): Use common_val_print.
7957
7958 2020-03-13 Tom Tromey <tom@tromey.com>
7959
7960 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7961
7962 2020-03-13 Tom Tromey <tom@tromey.com>
7963
7964 * ada-valprint.c (ada_value_print_num): New function.
7965 (ada_value_print_1): Use it.
7966
7967 2020-03-13 Tom Tromey <tom@tromey.com>
7968
7969 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7970
7971 2020-03-13 Tom Tromey <tom@tromey.com>
7972
7973 * ada-valprint.c (ada_value_print_ptr): New function.
7974 (ada_value_print_1): Use it.
7975
7976 2020-03-13 Tom Tromey <tom@tromey.com>
7977
7978 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7979 call common_val_print.
7980 (ada_val_print_1): Update.
7981 (ada_value_print_1): New function.
7982 (ada_value_print_inner): Rewrite.
7983
7984 2020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * cp-valprint.c (cp_print_value_fields): Update.
7987 (cp_print_value): New function.
7988
7989 2020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * m2-valprint.c (m2_value_print_inner): Use
7992 cp_print_value_fields.
7993 * cp-valprint.c (cp_print_value_fields): New function.
7994 * c-valprint.c (c_value_print_struct): New function.
7995 (c_value_print_inner): Use c_value_print_struct.
7996 * c-lang.h (cp_print_value_fields): Declare.
7997
7998 2020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * c-valprint.c (c_value_print_array): New function.
8001 (c_value_print_inner): Use it.
8002
8003 2020-03-13 Tom Tromey <tom@tromey.com>
8004
8005 * c-valprint.c (c_value_print_memberptr): New function.
8006 (c_value_print_inner): Use it.
8007
8008 2020-03-13 Tom Tromey <tom@tromey.com>
8009
8010 * c-valprint.c (c_value_print_int): New function.
8011 (c_value_print_inner): Use it.
8012
8013 2020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * c-valprint.c (c_value_print_ptr): New function.
8016 (c_value_print_inner): Use it.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * c-valprint.c (c_value_print_inner): Rewrite.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * valprint.c (generic_value_print_complex): New function.
8025 (generic_value_print): Use it.
8026
8027 2020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * valprint.c (generic_val_print_float): Don't call
8030 val_print_scalar_formatted.
8031 (generic_val_print, generic_value_print): Update.
8032
8033 2020-03-13 Tom Tromey <tom@tromey.com>
8034
8035 * valprint.c (generic_value_print_char): New function
8036 (generic_value_print): Use it.
8037
8038 2020-03-13 Tom Tromey <tom@tromey.com>
8039
8040 * valprint.c (generic_value_print_int): New function.
8041 (generic_value_print): Use it.
8042
8043 2020-03-13 Tom Tromey <tom@tromey.com>
8044
8045 * valprint.c (generic_value_print_bool): New function.
8046 (generic_value_print): Use it.
8047
8048 2020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * valprint.c (generic_val_print_func): Simplify.
8051 (generic_val_print, generic_value_print): Update.
8052
8053 2020-03-13 Tom Tromey <tom@tromey.com>
8054
8055 * valprint.c (generic_val_print_flags): Remove.
8056 (generic_val_print, generic_value_print): Update.
8057 (val_print_type_code_flags): Add original_value parameter.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * valprint.c (generic_val_print): Update.
8062 (generic_value_print): Update.
8063 * valprint.c (generic_val_print_enum): Don't call
8064 val_print_scalar_formatted.
8065
8066 2020-03-13 Tom Tromey <tom@tromey.com>
8067
8068 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8069 * valprint.c (generic_value_print_ptr): New function.
8070
8071 2020-03-13 Tom Tromey <tom@tromey.com>
8072
8073 * valprint.c (generic_value_print): Rewrite.
8074
8075 2020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * p-valprint.c (pascal_object_print_value_fields)
8078 (pascal_object_print_value): New functions.
8079
8080 2020-03-13 Tom Tromey <tom@tromey.com>
8081
8082 * p-valprint.c (pascal_value_print_inner): Rewrite.
8083
8084 2020-03-13 Tom Tromey <tom@tromey.com>
8085
8086 * f-valprint.c (f_value_print_innner): Rewrite.
8087
8088 2020-03-13 Tom Tromey <tom@tromey.com>
8089
8090 * m2-valprint.c (m2_print_unbounded_array): New overload.
8091 (m2_print_unbounded_array): Update.
8092 (m2_print_array_contents): Take a struct value.
8093 (m2_value_print_inner): Rewrite.
8094
8095 2020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8098 (d_value_print_inner): New function.
8099 * d-lang.h (d_value_print_inner): Declare.
8100 * d-lang.c (d_language_defn): Use d_value_print_inner.
8101
8102 2020-03-13 Tom Tromey <tom@tromey.com>
8103
8104 * go-valprint.c (go_value_print_inner): New function.
8105 * go-lang.h (go_value_print_inner): Declare.
8106 * go-lang.c (go_language_defn): Use go_value_print_inner.
8107
8108 2020-03-13 Tom Tromey <tom@tromey.com>
8109
8110 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8111 API.
8112 (rust_val_print): Rewrite.
8113 (rust_value_print_inner): New function, from rust_val_print.
8114 (rust_language_defn): Use rust_value_print_inner.
8115
8116 2020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * ada-valprint.c (ada_value_print_inner): New function.
8119 * ada-lang.h (ada_value_print_inner): Declare.
8120 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * f-valprint.c (f_value_print_innner): New function.
8125 * f-lang.h (f_value_print_innner): Declare.
8126 * f-lang.c (f_language_defn): Use f_value_print_innner.
8127
8128 2020-03-13 Tom Tromey <tom@tromey.com>
8129
8130 * p-valprint.c (pascal_value_print_inner): New function.
8131 * p-lang.h (pascal_value_print_inner): Declare.
8132 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8133
8134 2020-03-13 Tom Tromey <tom@tromey.com>
8135
8136 * m2-valprint.c (m2_value_print_inner): New function.
8137 * m2-lang.h (m2_value_print_inner): Declare.
8138 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8139
8140 2020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8143 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8144 * c-valprint.c (c_value_print_inner): New function.
8145 * c-lang.h (c_value_print_inner): Declare.
8146 * c-lang.c (c_language_defn, cplus_language_defn)
8147 (asm_language_defn, minimal_language_defn): Use
8148 c_value_print_inner.
8149
8150 2020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * p-valprint.c (pascal_object_print_value_fields): Now static.
8153 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8154
8155 2020-03-13 Tom Tromey <tom@tromey.com>
8156
8157 * c-valprint.c (c_val_print_array): Simplify.
8158
8159 2020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * valprint.c (value_print_array_elements): New function.
8162 * valprint.h (value_print_array_elements): Declare.
8163
8164 2020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8167 * mips-tdep.c (mips_print_register): Use
8168 value_print_scalar_formatted.
8169
8170 2020-03-13 Tom Tromey <tom@tromey.com>
8171
8172 * valprint.h (value_print_scalar_formatted): Declare.
8173 * valprint.c (value_print_scalar_formatted): New function.
8174
8175 2020-03-13 Tom Tromey <tom@tromey.com>
8176
8177 * valprint.h (generic_value_print): Declare.
8178 * valprint.c (generic_value_print): New function.
8179
8180 2020-03-13 Tom Tromey <tom@tromey.com>
8181
8182 * valprint.c (do_val_print): Call la_value_print_inner, if
8183 available.
8184 * rust-lang.c (rust_language_defn): Update.
8185 * p-lang.c (pascal_language_defn): Update.
8186 * opencl-lang.c (opencl_language_defn): Update.
8187 * objc-lang.c (objc_language_defn): Update.
8188 * m2-lang.c (m2_language_defn): Update.
8189 * language.h (struct language_defn) <la_value_print_inner>: New
8190 member.
8191 * language.c (unknown_language_defn, auto_language_defn): Update.
8192 * go-lang.c (go_language_defn): Update.
8193 * f-lang.c (f_language_defn): Update.
8194 * d-lang.c (d_language_defn): Update.
8195 * c-lang.c (c_language_defn, cplus_language_defn)
8196 (asm_language_defn, minimal_language_defn): Update.
8197 * ada-lang.c (ada_language_defn): Update.
8198
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * c-valprint.c (c_value_print): Use common_val_print.
8202
8203 2020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8206
8207 2020-03-13 Tom Tromey <tom@tromey.com>
8208
8209 * f-valprint.c (f77_print_array_1, f_val_print): Use
8210 common_val_print.
8211
8212 2020-03-13 Tom Tromey <tom@tromey.com>
8213
8214 * riscv-tdep.c (riscv_print_one_register_info): Use
8215 common_val_print.
8216
8217 2020-03-13 Tom Tromey <tom@tromey.com>
8218
8219 * mi/mi-main.c (output_register): Use common_val_print.
8220
8221 2020-03-13 Tom Tromey <tom@tromey.com>
8222
8223 * infcmd.c (default_print_one_register_info): Use
8224 common_val_print.
8225
8226 2020-03-13 Tom Tromey <tom@tromey.com>
8227
8228 * valprint.h (common_val_print_checked): Declare.
8229 * valprint.c (common_val_print_checked): New function.
8230 * stack.c (print_frame_arg): Use common_val_print_checked.
8231
8232 2020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * valprint.c (do_val_print): New function, from val_print.
8235 (val_print): Use do_val_print.
8236 (common_val_print): Use do_val_print.
8237
8238 2020-03-13 Tom Tromey <tom@tromey.com>
8239
8240 * valprint.c (value_print): Use scoped_value_mark.
8241
8242 2020-03-13 Tom de Vries <tdevries@suse.de>
8243
8244 PR symtab/25646
8245 * psymtab.c (partial_symtab::partial_symtab): Don't set
8246 globals_offset and statics_offset. Push element onto
8247 current_global_psymbols and current_static_psymbols stacks.
8248 (concat): New function.
8249 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8250 element from current_global_psymbols and current_static_psymbols
8251 stacks. Concat popped elements to global_psymbols and
8252 static_symbols.
8253 (add_psymbol_to_list): Use current_global_psymbols and
8254 current_static_psymbols stacks.
8255 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8256 current_static_psymbols fields.
8257
8258 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8259
8260 * corelow.c (sniff_core_bfd): Remove.
8261 (class core_target) <m_core_vec>: Remove.
8262 (core_target::core_target): Update.
8263 (core_file_fns): Remove.
8264 (deprecated_add_core_fns): Remove.
8265 (default_core_sniffer): Remove.
8266 (sniff_core_bfd): Remove.
8267 (default_check_format): Remove.
8268 (gdb_check_format): Remove.
8269 (core_target_open): Update.
8270 (core_target::get_core_register_section): Update.
8271 (get_core_registers_cb): Update.
8272 (core_target::fetch_registers): Update.
8273 * gdbcore.h (struct core_fns): Remove.
8274 (deprecated_add_core_fns): Remove.
8275 (default_core_sniffer): Remove.
8276 (default_check_format): Remove.
8277
8278 2020-03-12 Tom Tromey <tom@tromey.com>
8279
8280 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8281 CORE_ADDR.
8282 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8283
8284 2020-03-12 Tom Tromey <tom@tromey.com>
8285
8286 * remote.c (remote_target::download_tracepoint)
8287 (remote_target::enable_tracepoint)
8288 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8289 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8290 sprintf_vma.
8291
8292 2020-03-12 Tom Tromey <tom@tromey.com>
8293
8294 * symfile-mem.c: Update CORE_ADDR size assert.
8295
8296 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8297
8298 * selftest.m4: Move to gdbsupport/.
8299 * acinclude.m4: Update path to selftest.m4.
8300
8301 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8304 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8305 gdbarch-selfselftests.c and selftest-arch.c.
8306 (SUBDIR_UNITTESTS_OBS): Rename to...
8307 (SELFTESTS_OBS): ... this.
8308 (COMMON_SFILES): Remove disasm-selftests.c and
8309 gdbarch-selftests.c.
8310 * configure.ac: Don't add selftest-arch.{c,o} to
8311 CONFIG_{SRCS,OBS}.
8312 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8313 preprocessor conditions.
8314
8315 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8316
8317 * configure.ac: Don't source bfd/development.sh.
8318 * selftest.m4: Modify comment.
8319 * configure: Re-generate.
8320
8321 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8324 not "true" or "false".
8325 * configure: Re-generate.
8326
8327 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8328
8329 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8330 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8331 renamed to arm_nbsd_supply_gregset.
8332 (fetch_register): Update to call arm_nbsd_supply_gregset.
8333 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8334 (arm_netbsd_nat_target::fetch_registers): Update.
8335 (fetch_elfcore_registers): Removed.
8336 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8337 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8338 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8339 not require NetBSD system headers.
8340 (arm_nbsd_regset): New struct.
8341 (arm_nbsd_iterate_over_regset_sections): New function.
8342 (arm_netbsd_init_abi_common): Updated to call
8343 set_gdbarch_iterate_over_regset_sections.
8344 * arm-nbsd-tdep.h: New file.
8345
8346 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8347
8348 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8349 recursion.
8350
8351 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8352
8353 * configure: Re-generate.
8354
8355 2020-03-11 Tom Tromey <tromey@adacore.com>
8356
8357 * ada-typeprint.c (print_choices): Fix comment.
8358
8359 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8360
8361 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8362 previous item in the list, when the list has no items.
8363
8364 2020-03-11 Tom de Vries <tdevries@suse.de>
8365
8366 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8367 PROP_LOCLIST handling code.
8368
8369 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8370
8371 * buildsym-legacy.c (record_line): Pass extra parameter to
8372 record_line.
8373 * buildsym.c (buildsym_compunit::record_line): Take an extra
8374 parameter, reduce duplication in the line table, and record the
8375 is_stmt flag in the line table.
8376 * buildsym.h (buildsym_compunit::record_line): Add extra
8377 parameter.
8378 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8379 non-statement lines.
8380 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8381 this to the symtab builder.
8382 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8383 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8384 through to dwarf_record_line_1.
8385 * infrun.c (process_event_stop_test): When stepping, don't stop at
8386 a non-statement instruction, and only refresh the step info when
8387 we land in the middle of a line's range. Also add an extra
8388 comment.
8389 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8390 field.
8391 * record-btrace.c (btrace_find_line_range): Only record lines
8392 marked as is-statement.
8393 * stack.c (frame_show_address): Show the frame address if we are
8394 in a non-statement sal.
8395 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8396 (maintenance_print_one_line_table): Print a header for the is_stmt
8397 column, and include is_stmt information in the output.
8398 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8399 preference to non-statements.
8400 (find_pcs_for_symtab_line): Prefer is-statement entries.
8401 (find_line_common): Likewise.
8402 * symtab.h (struct linetable_entry): Add is_stmt field.
8403 (struct symtab_and_line): Likewise.
8404 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8405 arranging the line table.
8406
8407 2020-03-07 Tom de Vries <tdevries@suse.de>
8408
8409 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8410 DIE.
8411
8412 2020-03-07 Tom Tromey <tom@tromey.com>
8413
8414 * valops.c (value_literal_complex): Remove obsolete comment.
8415 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8416 comment.
8417
8418 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8419
8420 * infrun.h: Forward-declare thread_info.
8421 (set_step_info): Add thread_info parameter, add doc.
8422 * infrun.c (set_step_info): Add thread_info parameter, move doc
8423 to header.
8424 * infrun.c (process_event_stop_test): Pass thread to
8425 set_step_info call.
8426 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8427 set_step_info.
8428 (prepare_one_step): Add thread_info parameter, pass it to
8429 set_step_frame and prepare_one_step (recursive) call.
8430 (step_1): Pass thread to prepare_one_step call.
8431 (step_command_fsm::should_stop): Pass thread to
8432 prepare_one_step.
8433 (until_next_fsm): Pass thread to set_step_frame call.
8434 (finish_command): Pass thread to set_step_info call.
8435
8436 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8437
8438 * windows-tdep.c (windows_solib_create_inferior_hook):
8439 Check if inferior is running.
8440
8441 2020-03-06 Tom de Vries <tdevries@suse.de>
8442
8443 * NEWS: Fix "the the".
8444 * ctfread.c: Same.
8445
8446 2020-03-06 Tom de Vries <tdevries@suse.de>
8447
8448 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8449
8450 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8451
8452 * .dir-locals.el: Add a comment referencing the other copies of
8453 this file.
8454
8455 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8456
8457 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8458 psargs.
8459
8460 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8461
8462 * .gitattributes: New file.
8463
8464 2020-03-04 Tom Tromey <tom@tromey.com>
8465
8466 * symmisc.c (print_symbol_bcache_statistics)
8467 (print_objfile_statistics): Update.
8468 * symfile.c (allocate_symtab): Use intern.
8469 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8470 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8471 macro_cache>: Remove.
8472 <string_cache>: New member.
8473 (struct objfile) <intern>: New methods.
8474 * elfread.c (elf_symtab_read): Use intern.
8475 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8476 (dwarf2_compute_name, dwarf2_physname)
8477 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8478 names.
8479 (guess_partial_die_structure_name): Update.
8480 (partial_die_info::fixup): Intern name.
8481 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8482 name.
8483 (dwarf2_name): Intern name. Update.
8484 * buildsym.c (buildsym_compunit::get_macro_table): Use
8485 string_cache.
8486
8487 2020-03-04 Tom Tromey <tom@tromey.com>
8488
8489 * jit.c (bfd_open_from_target_memory): Make "target" const.
8490 * corefile.c (gnutarget): Now const.
8491 * gdbcore.h (gnutarget): Now const.
8492
8493 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8494
8495 * NEWS: Mention support for WOW64 processes.
8496 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8497 (amd64_windows_segment_register_p): Remove static.
8498 (_initialize_amd64_windows_nat): Update.
8499 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8500 * i386-windows-nat.c (context_offset): Update.
8501 (i386_mappings): Rename and remove static.
8502 (i386_windows_segment_register_p): Remove static.
8503 (_initialize_i386_windows_nat): Update.
8504 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8505 (STATUS_WX86_SINGLE_STEP): New macro.
8506 (EnumProcessModulesEx): New macro.
8507 (Wow64SuspendThread): New macro.
8508 (Wow64GetThreadContext): New macro.
8509 (Wow64SetThreadContext): New macro.
8510 (Wow64GetThreadSelectorEntry): New macro.
8511 (windows_set_context_register_offsets): Add static.
8512 (windows_set_segment_register_p): Likewise.
8513 (windows_add_thread): Adapt for WOW64 processes.
8514 (windows_fetch_one_register): Likewise.
8515 (windows_nat_target::fetch_registers): Likewise.
8516 (windows_store_one_register): Likewise.
8517 (display_selector): Likewise.
8518 (display_selectors): Likewise.
8519 (handle_exception): Likewise.
8520 (windows_continue): Likewise.
8521 (windows_nat_target::resume): Likewise.
8522 (windows_add_all_dlls): Likewise.
8523 (do_initial_windows_stuff): Likewise.
8524 (windows_nat_target::attach): Likewise.
8525 (windows_get_exec_module_filename): Likewise.
8526 (windows_nat_target::create_inferior): Likewise.
8527 (windows_xfer_siginfo): Likewise.
8528 (_initialize_loadable): Initialize Wow64SuspendThread,
8529 Wow64GetThreadContext, Wow64SetThreadContext,
8530 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8531 * windows-nat.h (windows_set_context_register_offsets):
8532 Remove declaration.
8533 (windows_set_segment_register_p): Likewise.
8534 (i386_windows_segment_register_p): Add declaration.
8535 (amd64_windows_segment_register_p): Likewise.
8536
8537 2020-03-04 Luis Machado <luis.machado@linaro.org>
8538
8539 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8540 in "info registers" for AArch64/ARM.
8541
8542 The change caused "info registers" to not print GPR's.
8543
8544 gdb/ChangeLog:
8545
8546 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8547
8548 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8549 when reg->group is empty and reggroup is not.
8550
8551 2020-03-03 Tom Tromey <tromey@adacore.com>
8552
8553 * dwarf2/frame.c (struct dwarf2_frame_cache)
8554 <checked_tailcall_bottom, entry_cfa_sp_offset,
8555 entry_cfa_sp_offset_p>: Remove members.
8556 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8557 (dwarf2_frame_prev_register): Don't call
8558 dwarf2_tailcall_sniffer_first.
8559 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8560 * frame-unwind.c (add_unwinder): New fuction.
8561 (frame_unwind_init): Use it. Add tailcall unwinder.
8562
8563 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8564 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8565
8566 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8567 value should be printed as true.
8568
8569 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8570
8571 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8572 (windows_init_abi): Set and use windows_so_ops.
8573
8574 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8575
8576 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8577 when verifying if dealing with a convenience variable.
8578
8579 2020-03-03 Luis Machado <luis.machado@linaro.org>
8580
8581 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8582
8583 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8584
8585 * infrun.c (gdbarch_supports_displaced_stepping): New.
8586 (use_displaced_stepping): Break up conditions in smaller pieces.
8587 Use gdbarch_supports_displaced_stepping.
8588 (displaced_step_prepare_throw): Use
8589 gdbarch_supports_displaced_stepping.
8590
8591 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * NEWS: Mention new behaviour of the history filename.
8594 * top.c (write_history_p): Add comment.
8595 (show_write_history_p): Add header comment, give a different
8596 message when history writing is on, but the history filename is
8597 empty.
8598 (history_filename): Add comment.
8599 (history_filename_empty): New function.
8600 (show_history_filename): Add header comment, give a different
8601 message when the filename is empty.
8602 (init_history): Compare history_filename against nullptr, and only
8603 read history if the filename is not empty.
8604 (set_history_filename): Add header comment, and only make
8605 non-empty filenames absolute.
8606 (init_main): Make the filename argument to 'set history filename'
8607 optional.
8608
8609 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8610
8611 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8612 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8613 (fetch_fp_register): Update.
8614 (fetch_fp_regs): Update.
8615 (store_fp_register): Update.
8616 (store_fp_regs): Update.
8617 (arm_netbsd_nat_target::read_description): New function.
8618 (fetch_elfcore_registers): Update.
8619
8620 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8623 general_thread if the stop reply is missing a thread-id.
8624 (remote_target::process_stop_reply): Use the first non-exited
8625 thread if the target didn't pass a thread-id.
8626 * infrun.c (do_target_wait): Move call to
8627 switch_to_inferior_no_thread to ....
8628 (do_target_wait_1): ... here.
8629
8630 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8631
8632 * debuginfod-support.c: Include defs.h first.
8633
8634 2020-02-28 Tom de Vries <tdevries@suse.de>
8635
8636 * symfile.c (set_initial_language): Use default language for lookup.
8637
8638 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8641 reader variable, pass `this` to read_cutu_die_from_dwo.
8642
8643 2020-02-27 Aaron Merey <amerey@redhat.com>
8644
8645 * source.c (open_source_file): Check for nullptr when computing
8646 srcpath.
8647
8648 2020-02-27 Tom Tromey <tromey@adacore.com>
8649
8650 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8651 member.
8652 (dwarf2_add_field): Don't update nfields.
8653 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8654
8655 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8656
8657 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8658 abs.
8659
8660 2020-02-26 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8663 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8664 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8665 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8666 per_cu_data.
8667
8668 2020-02-26 Tom Tromey <tom@tromey.com>
8669
8670 * dwarf2/index-write.c (psym_index_map): Change type.
8671 (add_address_entry_worker, write_one_signatured_type)
8672 (recursively_count_psymbols, recursively_write_psymbols)
8673 (class debug_names, psyms_seen_size, write_gdbindex)
8674 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8675
8676 2020-02-26 Aaron Merey <amerey@redhat.com>
8677
8678 * Makefile.in: Handle optional debuginfod support.
8679 * NEWS: Update.
8680 * README: Add --with-debuginfod summary.
8681 * config.in: Regenerate.
8682 * configure: Regenerate.
8683 * configure.ac: Handle optional debuginfod support.
8684 * debuginfod-support.c: debuginfod helper functions.
8685 * debuginfod-support.h: Ditto.
8686 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8687 summary.
8688 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8689 when a dwz file cannot be found.
8690 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8691 debuginfo file cannot be found.
8692 * source.c (open_source_file): Query debuginfod servers when a
8693 source file cannot be found.
8694 * top.c (print_gdb_configuration): Include
8695 --{with,without}-debuginfod in the output.
8696
8697 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8698
8699 * thread.c (thr_try_catch_cmd): Print thread name.
8700
8701 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8704 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8705 dwarf2_fetch_die_type_sect_off): Move to...
8706 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8707 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8708 dwarf2_fetch_die_type_sect_off): ... here.
8709 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8710 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8711 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8712
8713 2020-02-26 Tom de Vries <tdevries@suse.de>
8714
8715 PR gdb/25603
8716 * symfile.c (set_initial_language): Exit-early if
8717 language_mode == language_mode_manual.
8718
8719 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8720
8721 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8722 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8723 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8724
8725 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * gdbtypes.c (create_array_type_with_stride): Handle negative
8728 array strides.
8729 * valarith.c (value_subscripted_rvalue): Likewise.
8730
8731 2020-02-25 Luis Machado <luis.machado@linaro.org>
8732
8733 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8734
8735 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8736
8737 * loc.h (dwarf2_get_die_type): Move to...
8738 * read.h (dwarf2_get_die_type): ... here.
8739 * read.c (dwarf2_get_die_type): Move doc to header.
8740
8741 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8742
8743 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8744 'gnulib/Makefile.in' to the list.
8745
8746 2020-02-24 Tom Tromey <tom@tromey.com>
8747
8748 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8749 Remove.
8750 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8751 XOBNEWVEC.
8752
8753 2020-02-24 Tom Tromey <tom@tromey.com>
8754
8755 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8756 New method.
8757 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8758 (dw2_do_instantiate_symtab, dw2_get_file_names)
8759 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8760
8761 2020-02-24 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8764 make_scoped_restore.
8765 (dwarf2_psymtab::read_symtab): Don't clear
8766 reading_partial_symbols.
8767
8768 2020-02-24 Tom de Vries <tdevries@suse.de>
8769
8770 PR gdb/25592
8771 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8772
8773 2020-02-24 Tom de Vries <tdevries@suse.de>
8774
8775 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8776 commands layout next/prev/regs.
8777
8778 2020-02-22 Tom Tromey <tom@tromey.com>
8779
8780 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8781 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8782
8783 2020-02-22 Tom Tromey <tom@tromey.com>
8784
8785 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8786
8787 2020-02-22 Tom Tromey <tom@tromey.com>
8788
8789 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8790 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8791 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8792 * tui/tui.c (_initialize_tui): Add usage text.
8793
8794 2020-02-22 Tom Tromey <tom@tromey.com>
8795
8796 * tui/tui-win.c (tui_set_focus_command)
8797 (tui_set_win_height_command): Use error_no_arg.
8798 (_initialize_tui_win): Update help text.
8799 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8800
8801 2020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8804 * tui/tui-disasm.h (struct tui_disasm_window)
8805 <display_start_addr>: Declare.
8806 * tui/tui-source.h (struct tui_source_window)
8807 <display_start_addr>: Declare.
8808 * tui/tui-winsource.h (struct tui_source_window_base)
8809 <show_source_line, display_start_addr>: New methods.
8810 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8811 Rename and move to protected section.
8812 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8813 (tui_source_window_base::do_erase_source_content): Update.
8814 (tui_source_window_base::show_source_line): Now a method.
8815 (tui_source_window_base::show_source_content)
8816 (tui_source_window_base::tui_source_window_base)
8817 (tui_source_window_base::rerender)
8818 (tui_source_window_base::refill)
8819 (tui_source_window_base::do_scroll_horizontal)
8820 (tui_source_window_base::set_is_exec_point_at)
8821 (tui_source_window_base::update_breakpoint_info)
8822 (tui_source_window_base::update_exec_info): Update.
8823 * tui/tui-source.c (tui_source_window::set_contents)
8824 (tui_source_window::showing_source_p)
8825 (tui_source_window::do_scroll_vertical)
8826 (tui_source_window::location_matches_p)
8827 (tui_source_window::line_is_displayed): Update.
8828 (tui_source_window::display_start_addr): New method.
8829 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8830 (tui_disasm_window::do_scroll_vertical)
8831 (tui_disasm_window::location_matches_p): Update.
8832 (tui_disasm_window::display_start_addr): New method.
8833
8834 2020-02-22 Tom Tromey <tom@tromey.com>
8835
8836 * NEWS: Add entry for gdb.register_window_type.
8837 * tui/tui-layout.h (window_factory): New typedef.
8838 (tui_register_window): Declare.
8839 * tui/tui-layout.c (saved_tui_windows): New global.
8840 (tui_apply_current_layout): Use it.
8841 (tui_register_window): New function.
8842 * python/python.c (do_start_initialization): Call
8843 gdbpy_initialize_tui.
8844 (python_GdbMethods): Add "register_window_type" function.
8845 * python/python-internal.h (gdbpy_register_tui_window)
8846 (gdbpy_initialize_tui): Declare.
8847 * python/py-tui.c: New file.
8848 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8849
8850 2020-02-22 Tom Tromey <tom@tromey.com>
8851
8852 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8853
8854 2020-02-22 Tom Tromey <tom@tromey.com>
8855
8856 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8857 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8858 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8859 (tui_set_win_focus_to): Move from tui-win.c.
8860
8861 2020-02-22 Tom Tromey <tom@tromey.com>
8862
8863 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8864 functions.
8865 (known_window_types): New global.
8866 (tui_get_window_by_name): Reimplement.
8867 (initialize_known_windows): New function.
8868 (validate_window_name): Rewrite.
8869 (_initialize_tui_layout): Call initialize_known_windows.
8870
8871 2020-02-22 Tom Tromey <tom@tromey.com>
8872
8873 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8874 Remove constants.
8875 * tui/tui-winsource.h (struct tui_source_window_base)
8876 <tui_source_window_base>: Remove parameter.
8877 * tui/tui-winsource.c
8878 (tui_source_window_base::tui_source_window_base): Remove
8879 parameter.
8880 (tui_source_window_base::refill): Update.
8881 * tui/tui-stack.h (struct tui_locator_window)
8882 <tui_locator_window>: Update.
8883 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8884 Default the constructor.
8885 * tui/tui-regs.h (struct tui_data_item_window)
8886 <tui_data_item_window>: Default the constructor.
8887 (struct tui_data_window) <tui_data_window>: Likewise.
8888 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8889 Default the constructor.
8890 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8891 Default the constructor.
8892 <type>: Remove.
8893 (struct tui_win_info) <tui_win_info>: Default the constructor.
8894 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8895 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8896 Default the constructor.
8897
8898 2020-02-22 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8901 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8902 * tui/tui-win.c (tui_resize_all): Don't call
8903 tui_delete_invisible_windows.
8904 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8905 done.
8906 (tui_set_layout): Update.
8907 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8908 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8909 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8910
8911 2020-02-22 Tom Tromey <tom@tromey.com>
8912
8913 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8914 correctly.
8915
8916 2020-02-22 Tom Tromey <tom@tromey.com>
8917
8918 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8919
8920 2020-02-22 Tom Tromey <tom@tromey.com>
8921
8922 * tui/tui-winsource.h (struct tui_source_window_iterator)
8923 <inner_iterator>: New etytypedef.
8924 <tui_source_window_iterator>: Take "end" parameter.
8925 <tui_source_window_iterator>: Take iterator.
8926 <operator*, advance>: Update.
8927 <m_iter>: Change type.
8928 <m_end>: New field.
8929 (struct tui_source_windows) <begin, end>: Update.
8930 * tui/tui-layout.c (tui_windows): New global.
8931 (tui_apply_current_layout): Clear tui_windows.
8932 (tui_layout_window::apply): Update tui_windows.
8933 * tui/tui-data.h (tui_windows): Declare.
8934 (all_tui_windows): Now inline function.
8935 (class tui_window_iterator, struct all_tui_windows): Remove.
8936
8937 2020-02-22 Tom Tromey <tom@tromey.com>
8938
8939 PR tui/17850:
8940 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8941 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8942 "height" argument.
8943 (class tui_layout_window) <get_sizes>: Likewise.
8944 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8945 argument.
8946 <get_sizes>: Add "height" argument.
8947 <m_vertical>: New field.
8948 * tui/tui-layout.c (tui_layout_split::clone): Update.
8949 (tui_layout_split::get_sizes): Add "height" argument.
8950 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8951 (tui_new_layout_command): Parse "-horizontal".
8952 (_initialize_tui_layout): Update help string.
8953 (tui_layout_split::specification): Add "-horizontal" when needed.
8954 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8955 argument.
8956 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8957 New methods.
8958
8959 2020-02-22 Tom Tromey <tom@tromey.com>
8960
8961 * tui/tui-layout.h (enum tui_adjust_result): New.
8962 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8963 (class tui_layout_window) <adjust_size>: Return
8964 tui_adjust_result. Rewrite.
8965 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8966 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8967
8968 2020-02-22 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8971 parameter and return types.
8972 (class tui_layout_base) <specification>: Add "depth".
8973 (class tui_layout_window) <specification>: Add "depth".
8974 (class tui_layout_split) <specification>: Add "depth".
8975 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8976 and return types.
8977 (tui_new_layout_command): Parse sub-layouts.
8978 (_initialize_tui_layout): Update help string.
8979 (tui_layout_window::specification): Add "depth".
8980 (add_layout_command): Update.
8981
8982 2020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * NEWS: Add "tui new-layout" item.
8985 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8986 Add new-layout command to help text.
8987 (validate_window_name): New function.
8988 (tui_new_layout_command): New function.
8989 (_initialize_tui_layout): Register "new-layout".
8990 (tui_layout_window::specification): New method.
8991 (tui_layout_window::specification): New method.
8992 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8993 method.
8994 (class tui_layout_window) <specification>: New method.
8995 (class tui_layout_split) <specification>: New method.
8996
8997 2020-02-22 Tom Tromey <tom@tromey.com>
8998
8999 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9000 * tui/tui-win.c (window_name_completer): Update comment.
9001 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9002 Declare method.
9003 (class tui_layout_window) <replace_window>: Likewise.
9004 (class tui_layout_split) <replace_window>: Likewise.
9005 (tui_set_layout): Don't declare.
9006 (tui_set_initial_layout): Declare function.
9007 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9008 (asm_regs_layout): New globals.
9009 (tui_current_layout, show_layout): Remove.
9010 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9011 (find_layout, tui_apply_layout): New function.
9012 (layout_completer): Remove.
9013 (tui_next_layout): Reimplement.
9014 (tui_next_layout_command): New function.
9015 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9016 (tui_regs_layout): Reimplement.
9017 (tui_regs_layout_command): New function.
9018 (extract_display_start_addr): Rewrite.
9019 (next_layout, prev_layout): Remove.
9020 (tui_layout_window::replace_window): New method.
9021 (tui_layout_split::replace_window): New method.
9022 (destroy_layout): New function.
9023 (layout_list): New global.
9024 (add_layout_command): New function.
9025 (initialize_layouts): Update.
9026 (tui_layout_command): New function.
9027 (_initialize_tui_layout): Install "layout" commands.
9028 * tui/tui-data.h (enum tui_layout_type): Remove.
9029 (tui_current_layout): Don't declare.
9030
9031 2020-02-22 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui-regs.c (tui_reg_layout): Remove.
9034 (tui_reg_command): Use tui_regs_layout.
9035 * tui/tui-layout.h (tui_reg_command): Declare.
9036 * tui/tui-layout.c (tui_reg_command): New function.
9037
9038 2020-02-22 Tom Tromey <tom@tromey.com>
9039
9040 * tui/tui.c (tui_rl_delete_other_windows): Call
9041 tui_remove_some_windows.
9042 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9043 Declare method.
9044 (class tui_layout_window) <remove_windows>: New method.
9045 (class tui_layout_split) <remove_windows>: Declare.
9046 (tui_remove_some_windows): Declare.
9047 * tui/tui-layout.c (tui_remove_some_windows): New function.
9048 (tui_layout_split::remove_windows): New method.
9049
9050 2020-02-22 Tom Tromey <tom@tromey.com>
9051
9052 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9053 * tui/tui-layout.h (tui_next_layout): Declare.
9054 * tui/tui-layout.c (tui_next_layout): New function.
9055
9056 2020-02-22 Tom Tromey <tom@tromey.com>
9057
9058 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9059 correct coordinates.
9060
9061 2020-02-22 Tom Tromey <tom@tromey.com>
9062
9063 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9064 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9065 DATA_WIN case.
9066
9067 2020-02-22 Tom Tromey <tom@tromey.com>
9068
9069 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9070 TUI_DISASM_WIN, not tui_win_list.
9071
9072 2020-02-22 Tom Tromey <tom@tromey.com>
9073
9074 * valprint.c (generic_val_print_enum_1)
9075 (val_print_type_code_flags): Style member names.
9076 * rust-lang.c (val_print_struct, rust_print_enum)
9077 (rust_print_struct_def, rust_internal_print_type): Style member
9078 names.
9079 * p-valprint.c (pascal_object_print_value_fields): Style member
9080 names. Only call fprintf_symbol_filtered for static members.
9081 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9082 * f-valprint.c (f_val_print): Style member names.
9083 * f-typeprint.c (f_type_print_base): Style member names.
9084 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9085 call fprintf_symbol_filtered for static members.
9086 (cp_print_class_member): Style member names.
9087 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9088 member names.
9089 * ada-valprint.c (ada_print_scalar): Style enum names.
9090 (ada_val_print_enum): Likewise.
9091 * ada-typeprint.c (print_enum_type): Style enum names.
9092
9093 2020-02-21 Tom Tromey <tom@tromey.com>
9094
9095 * psympriv.h (struct partial_symtab): Update comment.
9096
9097 2020-02-21 Tom Tromey <tromey@adacore.com>
9098
9099 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9100 type is CORE_ADDR.
9101
9102 2020-02-21 Tom de Vries <tdevries@suse.de>
9103
9104 PR gdb/25534
9105 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9106 if dependencies[i]->user != NULL.
9107
9108 2020-02-21 Ali Tamur <tamur@google.com>
9109
9110 * dwarf2/read.c (dwarf2_name): Add null check.
9111
9112 2020-02-20 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9115 ">=", in binary search.
9116 (dwarf2_find_containing_comp_unit): New overload.
9117 (run_test): New self-test.
9118 (_initialize_dwarf2_read): Register new test.
9119
9120 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9121
9122 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9123 * riscv-tdep.h: Likewise.
9124 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9125 rv32-only CSR.
9126 * features/riscv/64bit-csr.xml: Regenerated.
9127
9128 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9129 Tom Tromey <tom@tromey.com>
9130
9131 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9132 of 'fputc_unfiltered'.
9133 (putchar_unfiltered): Call 'fputc_unfiltered'.
9134 (fputc_unfiltered): Call 'fputs_unfiltered'.
9135
9136 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9137
9138 * config.in: Regenerate.
9139 * configure: Regenerate.
9140 * configure.ac: Add --with-python-libdir option.
9141 * main.c: Use WITH_PYTHON_LIBDIR.
9142
9143 2020-02-19 Tom Tromey <tom@tromey.com>
9144
9145 * symtab.c (general_symbol_info::compute_and_set_names): Use
9146 obstack_strndup. Simplify call to symbol_set_demangled_name.
9147
9148 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9149
9150 * dwarf2/read.c (allocate_signatured_type_table,
9151 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9152 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9153 Remove objfile parameter, update all callers.
9154
9155 2020-02-19 Doug Evans <dje@google.com>
9156
9157 PR rust/25535
9158 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9159 rust_enum_variant calculation.
9160
9161 2020-02-19 Tom Tromey <tromey@adacore.com>
9162
9163 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9164
9165 2020-02-19 Tom Tromey <tromey@adacore.com>
9166
9167 * ada-lang.c (cache_symbol): Use obstack_strdup.
9168
9169 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9170
9171 * configure: Regenerate.
9172
9173 2020-02-19 Tom Tromey <tromey@adacore.com>
9174
9175 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9176 NULL check.
9177
9178 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9179
9180 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9181
9182 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9185 if GDBSERVER is not defined.
9186 (riscv_tdesc_cache): Likewise, also store const target_desc.
9187 (STATIC_IN_GDB): Define.
9188 (riscv_create_target_description): Update declaration with
9189 STATIC_IN_GDB.
9190 (riscv_lookup_target_description): New function, only define if
9191 GDBSERVER is not defined.
9192 * arch/riscv.h (riscv_create_target_description): Declare only
9193 when GDBSERVER is defined.
9194 (riscv_lookup_target_description): New declaration when GDBSERVER
9195 is not defined.
9196 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9197 (riscv_linux_read_features): ...this, and return
9198 riscv_gdbarch_features instead of target_desc.
9199 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9200 (riscv_linux_read_description): Rename to...
9201 (riscv_linux_read_features): ...this.
9202 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9203 Update to use riscv_gdbarch_features and
9204 riscv_lookup_target_description.
9205 * riscv-tdep.c (riscv_find_default_target_description): Use
9206 riscv_lookup_target_description instead of
9207 riscv_create_target_description.
9208
9209 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * valprint.c (generic_val_print_enum_1): When printing a flag
9212 enum with value 0 and there is no enumerator with value 0, print
9213 just "0" instead of "(unknown: 0x0)".
9214
9215 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * valprint.c (generic_val_print_enum_1): Print unknown part of
9218 flag enum in hex.
9219
9220 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9223 flag enums to contain duplicate enumerators.
9224 * valprint.c (generic_val_print_enum_1): Update comment.
9225
9226 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * dwarf2/read.c: Include "count-one-bits.h".
9229 (update_enumeration_type_from_children): If an enumerator has
9230 multiple bits set, don't treat the enumeration as a "flag enum".
9231 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9232 of flag enums have 0 or 1 bit set.
9233
9234 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9235
9236 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9237 conversion.
9238 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9239 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9240 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9241 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9242 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9243
9244 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9247
9248 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9251 displaced_step_closure_up.
9252 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9253 (struct displaced_step_closure_up):
9254 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9255 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9256 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9257 Likewise.
9258 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9259 * gdbarch.c, gdbarch.h: Re-generate.
9260 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9261 displaced_step_closure_up.
9262 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9263 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9264 * infrun.h (displaced_step_closure_up): New type alias.
9265 (struct displaced_step_inferior_state) <step_closure>: Change
9266 type to displaced_step_closure_up.
9267 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9268 displaced_step_closure_up.
9269 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9270
9271 2020-02-14 Tom Tromey <tom@tromey.com>
9272
9273 * minidebug.c (gnu_debug_key): New global.
9274 (find_separate_debug_file_in_section): Use it.
9275
9276 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9277
9278 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9279 std::unique_ptr.
9280 * gdbarch.c: Re-generate.
9281 * gdbarch.h: Re-generate.
9282 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9283 change.
9284 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9285 type to std::unique_ptr.
9286 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9287 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9288 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9289 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9290 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9291 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9292 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9293 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9294 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9295
9296 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9299 std::unique_ptr.
9300 (displaced_step_clear): Rename to...
9301 (displaced_step_reset): ... this. Just call displaced->reset ().
9302 (displaced_step_clear_cleanup): Rename to...
9303 (displaced_step_reset_cleanup): ... this.
9304 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9305 (displaced_step_fixup): Likewise.
9306 (resume_1): Likewise.
9307 (handle_inferior_event): Restore child's memory before calling
9308 displaced_step_fixup on the parent.
9309 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9310 to std::unique_ptr.
9311 <step_closure>: Change type to std::unique_ptr.
9312
9313 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * arm-tdep.c: Include count-one-bits.h.
9316 (cleanup_block_store_pc): Use count_one_bits.
9317 (cleanup_block_load_pc): Use count_one_bits.
9318 (arm_copy_block_xfer): Use count_one_bits.
9319 (thumb2_copy_block_xfer): Use count_one_bits.
9320 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9321 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9322 (thumb_get_next_pcs_raw): Use count_one_bits.
9323 (arm_get_next_pcs_raw): Use count_one_bits_l.
9324 * arch/arm.c (bitcount): Remove.
9325 * arch/arm.h (bitcount): Remove.
9326
9327 2020-02-14 Tom Tromey <tromey@adacore.com>
9328
9329 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9330 Update.
9331 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9332 * dwarf2/loc.c (call_site_find_chain_1): Return
9333 unique_xmalloc_ptr.
9334 (call_site_find_chain): Likewise.
9335
9336 2020-02-14 Richard Biener <rguenther@suse.de>
9337
9338 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9339 on expression with division operators.
9340
9341 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9342
9343 * MAINTAINERS (Write After Approval): Adding myself.
9344
9345 2020-02-12 Tom Tromey <tom@tromey.com>
9346
9347 * event-loop.c (event_data, gdb_event, event_handler_func):
9348 Remove.
9349
9350 2020-02-12 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9353 (dwarf2_frame_objfile_data): Add comment.
9354 (find_comp_unit, set_comp_unit): New functions.
9355 (dwarf2_frame_find_fde): Use find_comp_unit.
9356 (dwarf2_build_frame_info): Use set_comp_unit.
9357
9358 2020-02-12 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9361 (comp_unit): Don't initialize objfile.
9362 (execute_cfa_program): Add text_offset parameter.
9363 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9364 (dwarf2_frame_cache): Update.
9365 (dwarf2_build_frame_info): Don't set "objfile" member.
9366
9367 2020-02-12 Tom Tromey <tom@tromey.com>
9368
9369 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9370 (decode_frame_entry): Likewise.
9371 (dwarf2_build_frame_info): Update.
9372
9373 2020-02-12 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9376 (decode_frame_entry_1): Use the comp_unit obstack.
9377
9378 2020-02-12 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2/frame.c (struct comp_unit): Add initializers and
9381 constructor.
9382 (dwarf2_frame_objfile_data): Store a comp_unit.
9383 (dwarf2_frame_find_fde): Update.
9384 (dwarf2_build_frame_info): Use "new".
9385
9386 2020-02-12 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9389 (dwarf2_fde_table): Typedef for std::vector.
9390 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9391 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9392 (decode_frame_entry): Update.
9393 (dwarf2_build_frame_info): Use "new".
9394
9395 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9396
9397 * arm-tdep.c (arm_gdbarch_init): Update.
9398 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9399 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9400 have_neon, is_m>: Change to bool.
9401
9402 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9403
9404 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9405
9406 2020-02-12 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9409
9410 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9411
9412 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9413 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9414
9415 2020-02-11 Tom Tromey <tom@tromey.com>
9416
9417 * psymtab.h: Update comment.
9418
9419 2020-02-11 Tom Tromey <tom@tromey.com>
9420
9421 * gdb_obstack.h (struct auto_obstack): Use
9422 DISABLE_COPY_AND_ASSIGN.
9423
9424 2020-02-11 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/frame.h (struct objfile): Don't forward declare.
9427
9428 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9429
9430 * cris-tdep.c (cris_supply_gregset): Change signature to match
9431 what struct regset expects.
9432 (cris_regset): New struct.
9433 (fetch_core_registers): Remove.
9434 (cris_iterate_over_regset_sections): New function.
9435 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9436 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9437
9438 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9439
9440 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9441 registers.
9442
9443 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9444
9445 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9446
9447 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * configure: Re-generate.
9450
9451 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9452
9453 * configure: Re-generate.
9454
9455 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * acinclude: Update warning.m4 path.
9458 * warning.m4: Move to gdbsupport.
9459
9460 2020-02-11 Tom Tromey <tromey@adacore.com>
9461
9462 * remote.c (remote_console_output): Update.
9463 * printcmd.c (printf_command): Update.
9464 * event-loop.c (gdb_wait_for_event): Update.
9465 * linux-nat.c (sigchld_handler): Update.
9466 * remote-sim.c (gdb_os_write_stdout): Update.
9467 (gdb_os_flush_stdout): Update.
9468 (gdb_os_flush_stderr): Update.
9469 (gdb_os_write_stderr): Update.
9470 * exceptions.c (print_exception): Update.
9471 * remote-fileio.c (remote_fileio_func_read): Update.
9472 (remote_fileio_func_write): Update.
9473 * tui/tui.c (tui_enable): Update.
9474 * tui/tui-interp.c (tui_interp::init): Update.
9475 * utils.c (init_page_info): Update.
9476 (putchar_unfiltered, fputc_unfiltered): Update.
9477 (gdb_flush): Update.
9478 (emit_style_escape): Update.
9479 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9480 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9481 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9482 (stderr_file::write): Update.
9483 (stderr_file::puts): Update.
9484 * ui-file.h (ui_file_isatty, ui_file_write)
9485 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9486 (ui_file_puts): Don't declare.
9487
9488 2020-02-10 Tom de Vries <tdevries@suse.de>
9489
9490 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9491 sentinel to char *.
9492
9493 2020-02-09 Tom de Vries <tdevries@suse.de>
9494
9495 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9496 filename if it matches "<artificial>".
9497
9498 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9499
9500 * windows-tdep.c (struct enum_value_name): New struct.
9501 (create_enum): New function.
9502 (windows_get_siginfo_type): Create and use enum types.
9503
9504 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9505
9506 * NEWS: Mention $_siginfo support for Windows.
9507 * windows-nat.c (handle_exception): Set siginfo_er.
9508 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9509 (windows_xfer_siginfo): New function.
9510 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9511 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9512 (init_windows_gdbarch_data): New function.
9513 (get_windows_gdbarch_data): New function.
9514 (windows_get_siginfo_type): New function.
9515 (windows_init_abi): Register windows_get_siginfo_type.
9516 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9517
9518 2020-02-08 Tom Tromey <tom@tromey.com>
9519
9520 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9521 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9522 <keep>: Declare method.
9523 <m_keep>: Remove member.
9524 <~cutu_reader>: Remove.
9525 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9526 (cutu_reader::cutu_reader): Update.
9527 (cutu_reader::keep): Rename from ~cutu_reader.
9528 (process_psymtab_comp_unit, build_type_psymtabs_1)
9529 (process_skeletonless_type_unit, load_partial_comp_unit)
9530 (load_full_comp_unit, dwarf2_read_addr_index)
9531 (read_signatured_type): Update.
9532
9533 2020-02-08 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9536 "want_partial_unit" parameter.
9537 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9538 Inline check for DW_TAG_partial_unit.
9539 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9540
9541 2020-02-08 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9544 read.c.
9545 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9546 read.c.
9547
9548 2020-02-08 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2/read.c (read_address): Move to comp-unit.c.
9551 (dwarf2_rnglists_process, dwarf2_ranges_process)
9552 (read_attribute_value, dwarf_decode_lines_1)
9553 (var_decode_location, decode_locdesc): Update.
9554 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9555 read.c. Remove "cu" parameter.
9556 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9557 method.
9558
9559 2020-02-08 Tom Tromey <tom@tromey.com>
9560
9561 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9562 (read_indirect_line_string): Update.
9563 * dwarf2/comp-unit.c (read_offset): Remove.
9564 (read_comp_unit_head): Update.
9565 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9566 method.
9567 (read_offset): Don't declare.
9568
9569 2020-02-08 Tom Tromey <tom@tromey.com>
9570
9571 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9572 * dwarf2/read.c (struct comp_unit_head): Move to
9573 dwarf2/comp-unit.h.
9574 (enum class rcuh_kind): Move to comp-unit.h.
9575 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9576 (read_comp_unit_head, error_check_comp_unit_head)
9577 (read_and_check_comp_unit_head): Move to comp-unit.c.
9578 (read_offset, dwarf_unit_type_name): Likewise.
9579 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9580 (cutu_reader::cutu_reader, read_call_site_scope)
9581 (find_partial_die, follow_die_offset): Update.
9582 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9583
9584 2020-02-08 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/read.c (read_offset_1): Move to leb.c.
9587 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9588 (dwarf_decode_macro_bytes): Update.
9589 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9590 * dwarf2/leb.h (read_offset): Declare.
9591
9592 2020-02-08 Tom Tromey <tom@tromey.com>
9593
9594 * dwarf2/read.c (dwarf2_section_size): Remove.
9595 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9596 Update.
9597 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9598
9599 2020-02-08 Tom Tromey <tom@tromey.com>
9600
9601 * dwarf2/read.c (read_initial_length): Move to leb.c.
9602 * dwarf2/leb.h (read_initial_length): Declare.
9603 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9604 handle_nonstd parameter.
9605 * dwarf2/frame.c (read_initial_length): Remove.
9606 (decode_frame_entry_1): Update.
9607
9608 2020-02-08 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2/loc.c (dwarf2_find_location_expression)
9611 (dwarf_evaluate_loc_desc::get_tls_address)
9612 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9613 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9614 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9615 (dwarf2_compile_property_to_c)
9616 (dwarf2_loc_desc_get_symbol_read_needs)
9617 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9618 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9619 (loclist_describe_location, loclist_tracepoint_var_ref)
9620 (loclist_generate_c_location): Update.
9621 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9622 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9623 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9624 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9625 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9626 (dwarf2_per_cu_data::addr_size)
9627 (dwarf2_per_cu_data::ref_addr_size)
9628 (dwarf2_per_cu_data::text_offset)
9629 (dwarf2_per_cu_data::addr_type): Now methods.
9630 (per_cu_header_read_in): Make per_cu "const".
9631 (dwarf2_version): Remove.
9632 (dwarf2_per_cu_data::int_type): Now a method.
9633 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9634 (set_die_type, read_array_type, read_subrange_index_type)
9635 (read_tag_string_type, read_subrange_type): Update.
9636 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9637 offset_size, ref_addr_size, text_offset, addr_type, version,
9638 objfile, int_type, addr_sized_int_type>: Declare methods.
9639
9640 2020-02-08 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9643 Move earlier.
9644
9645 2020-02-08 Tom Tromey <tom@tromey.com>
9646
9647 * dwarf2/read.h (dwarf_line_debug): Declare.
9648 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9649 * dwarf2/read.c: Move line_header code to new files.
9650 (dwarf_line_debug): No longer static.
9651 * dwarf2/line-header.c: New file.
9652 * dwarf2/line-header.h: New file.
9653
9654 2020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (struct line_header) <file_full_name,
9657 file_file_name>: Return unique_xmalloc_ptr.
9658 (line_header::file_file_name): Update.
9659 (line_header::file_full_name): Update.
9660 (dw2_get_file_names_reader): Update.
9661 (macro_start_file): Update.
9662
9663 2020-02-08 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/read.c (struct line_header) <file_full_name,
9666 file_file_name>: Declare methods.
9667 (dw2_get_file_names_reader): Update.
9668 (file_file_name): Now a method.
9669 (file_full_name): Likewise.
9670 (macro_start_file): Update.
9671
9672 2020-02-08 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2/read.c (dwarf_always_disassemble)
9675 (show_dwarf_always_disassemble): Move to loc.c.
9676 (_initialize_dwarf2_read): Move "always-disassemble" registration
9677 to loc.c.
9678 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9679 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9680 static.
9681 (show_dwarf_always_disassemble): Move from read.c.
9682 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9683
9684 2020-02-08 Tom Tromey <tom@tromey.com>
9685
9686 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9687 (create_quick_file_names_table): Return htab_up.
9688 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9689 Update.
9690 * dwarf2/read.h (struct dwarf2_per_objfile)
9691 <quick_file_names_table>: Now htab_up.
9692
9693 2020-02-08 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9696
9697 2020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9700 Rewrite.
9701 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9702 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9703 (abbrev_table::abbrev_table): No longer inline.
9704 (ABBREV_HASH_SIZE): Remove.
9705 (abbrev_table::m_abbrevs): Now an htab_up.
9706
9707 2020-02-08 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9710 (cutu_reader): Update.
9711 (build_type_psymtabs_1): Update.
9712 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9713 (abbrev_table::alloc_abbrev): Update.
9714 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9715 (abbrev_table::read): New static method, renamed from
9716 abbrev_table_read_table.
9717 (abbrev_table::alloc_abbrev)
9718 (abbrev_table::add_abbrev): Now private.
9719 (abbrev_table::abbrev_table): Now private.
9720 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9721
9722 2020-02-08 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9725 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9726 htab_up.
9727
9728 2020-02-08 Tom Tromey <tom@tromey.com>
9729
9730 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9731 htab_up.
9732 (lookup_dwo_unit_in_dwp): Update.
9733 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9734 on obstack.
9735
9736 2020-02-08 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9739 obstack.
9740
9741 2020-02-08 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9744 line_header_hash.
9745 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9746 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9747 Change type to htab_up.
9748
9749 2020-02-08 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9752 htab_up. Don't allocate on obstack.
9753 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9754 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9755 Change type to htab_up.
9756
9757 2020-02-08 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9760 Change type to htab_up.
9761 * dwarf2/read.c (create_signatured_type_table_from_index)
9762 (create_signatured_type_table_from_debug_names)
9763 (create_all_type_units, add_type_unit)
9764 (lookup_dwo_signatured_type, lookup_signatured_type)
9765 (process_skeletonless_type_unit): Update.
9766 (create_debug_type_hash_table, create_debug_types_hash_table):
9767 Change type of types_htab.
9768 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9769 htab_up. Don't allocate on obstack.
9770 (create_cus_hash_table): Change type of cus_htab parameter.
9771 (struct dwo_file) <cus, tus>: Now htab_up.
9772 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9773 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9774 (queue_and_load_all_dwo_tus): Update.
9775 * dwarf2/index-write.c (write_gdbindex): Update.
9776 (write_debug_names): Update.
9777
9778 2020-02-08 Tom Tromey <tom@tromey.com>
9779
9780 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9781 dwarf2/read.c. Remove "next" member. Add constructor ntad
9782 destructor.
9783 (struct dwarf2_per_objfile) <queue>: New member.
9784 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9785 dwarf2/read.h.
9786 (dwarf2_queue, dwarf2_queue_tail): Remove.
9787 (class dwarf2_queue_guard): Add parameter to constructor. Use
9788 DISABLE_COPY_AND_ASSIGN.
9789 <m_per_objfile>: New member.
9790 <~dwarf2_queue_guard>: Rewrite.
9791 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9792 Update.
9793 (~dwarf2_queue_item): New.
9794
9795 2020-02-08 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.c (struct die_info) <has_children>: New member.
9798 (dw2_get_file_names_reader): Remove has_children.
9799 (dw2_get_file_names): Update.
9800 (read_cutu_die_from_dwo): Remove has_children.
9801 (cutu_reader::init_tu_and_read_dwo_dies)
9802 (cutu_reader::cutu_reader): Update.
9803 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9804 Remove has_children.
9805 (build_type_psymtabs_1, process_skeletonless_type_unit)
9806 (load_partial_comp_unit, load_full_comp_unit): Update.
9807 (create_dwo_cu_reader): Remove has_children.
9808 (create_cus_hash_table, read_die_and_children): Update.
9809 (read_full_die_1,read_full_die): Remove has_children.
9810 (read_signatured_type): Update.
9811 (class cutu_reader) <has_children>: Remove.
9812
9813 2020-02-08 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/expr.c: Rename from dwarf2expr.c.
9816 * dwarf2/expr.h: Rename from dwarf2expr.h.
9817 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9818 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9819 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9820 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9821 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9822 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9823 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9824 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9825 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9826 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9827 * dwarf2/loc.c: Rename from dwarf2loc.c.
9828 * dwarf2/loc.h: Rename from dwarf2loc.h.
9829 * dwarf2/read.c: Rename from dwarf2read.c.
9830 * dwarf2/read.h: Rename from dwarf2read.h.
9831 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9832 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9833 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9834 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9835 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9836 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9837 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9838 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9839 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9840 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9841 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9842 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9843 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9844 Update.
9845 * Makefile.in (COMMON_SFILES): Update.
9846 (HFILES_NO_SRCDIR): Update.
9847
9848 2020-02-08 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9851 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9852
9853 2020-02-08 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2read.h (struct die_info): Don't declare.
9856
9857 2020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2read.h (die_info_ptr): Remove typedef.
9860
9861 2020-02-08 Tom Tromey <tom@tromey.com>
9862
9863 * dwarf2read.c (read_call_site_scope)
9864 (handle_data_member_location, dwarf2_add_member_fn)
9865 (mark_common_block_symbol_computed, read_common_block)
9866 (attr_to_dynamic_prop, partial_die_info::read)
9867 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9868 (dwarf2_symbol_mark_computed, set_die_type): Update.
9869 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9870 method.
9871 (attr_form_is_block): Don't declare.
9872 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9873
9874 2020-02-08 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2read.c (dwarf2_find_base_address, )
9877 (read_call_site_scope, rust_containing_type)
9878 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9879 (handle_data_member_location, dwarf2_add_member_fn)
9880 (get_alignment, read_structure_type, process_structure_scope)
9881 (mark_common_block_symbol_computed, read_common_block)
9882 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9883 (partial_die_info::read, read_attribute_value, new_symbol)
9884 (lookup_die_type, dwarf2_get_ref_die_offset)
9885 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9886 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9887 (dwarf2_symbol_mark_computed): Update.
9888 * dwarf2/attribute.h (struct attribute) <value_as_address,
9889 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9890 methods.
9891 (value_as_address, attr_form_is_section_offset)
9892 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9893 * dwarf2/attribute.c (attribute::value_as_address)
9894 (attribute::form_is_section_offset, attribute::form_is_constant)
9895 (attribute::form_is_ref): Now methods.
9896
9897 2020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2read.c (struct attribute, DW_STRING)
9900 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9901 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9902 (attr_form_is_block, attr_form_is_section_offset)
9903 (attr_form_is_constant, attr_form_is_ref): Move.
9904 * dwarf2/attribute.h: New file.
9905 * dwarf2/attribute.c: New file, from dwarf2read.c.
9906 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9907
9908 2020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9911 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9912 Move.
9913 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9914 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9915 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9916 abbrev.c.
9917 * dwarf2/abbrev.h: New file.
9918 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9919 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9920
9921 2020-02-08 Tom Tromey <tom@tromey.com>
9922
9923 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9924 (dwarf2_section_size, dwarf2_get_section_info)
9925 (create_signatured_type_table_from_debug_names)
9926 (create_addrmap_from_aranges, read_debug_names_from_section)
9927 (get_gdb_index_contents_from_section, read_comp_unit_head)
9928 (error_check_comp_unit_head, read_abbrev_offset)
9929 (create_debug_type_hash_table, init_cu_die_reader)
9930 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9931 (read_comp_units_from_section, create_cus_hash_table)
9932 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9933 (create_dwp_v2_section, dwarf2_rnglists_process)
9934 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9935 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9936 (read_indirect_string_from_dwz, read_addr_index_1)
9937 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9938 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9939 (fill_in_loclist_baton): Update.
9940 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9941 get_containing_section, get_bfd_owner, get_bfd_section,
9942 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9943 (dwarf2_read_section, get_section_name, get_section_file_name)
9944 (get_containing_section, get_section_bfd_owner)
9945 (get_section_bfd_section, get_section_name, get_section_file_name)
9946 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9947 declare.
9948 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9949 (dwarf2_section_info::get_bfd_owner)
9950 (dwarf2_section_info::get_bfd_section)
9951 (dwarf2_section_info::get_name)
9952 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9953 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9954 (dwarf2_section_info::read): Now methods.
9955 * dwarf-index-write.c (class debug_names): Update.
9956
9957 2020-02-08 Tom Tromey <tom@tromey.com>
9958
9959 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9960 Move to dwarf2/section.h.
9961 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9962 (get_section_bfd_section, get_section_name)
9963 (get_section_file_name, get_section_id, get_section_flags)
9964 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9965 dwarf2/section.c.
9966 * dwarf2/section.h: New file.
9967 * dwarf2/section.c: New file, from dwarf2read.c.
9968 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9969
9970 2020-02-08 Tom Tromey <tom@tromey.com>
9971
9972 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9973 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9974 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9975 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9976 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9977 * dwarf2/leb.h: New file, from dwarf2read.c.
9978 * dwarf2/leb.c: New file, from dwarf2read.c.
9979 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9980 Remove.
9981 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9982 (COMMON_SFILES): Add dwarf2/leb.c.
9983
9984 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9985
9986 GDB 9.1 released.
9987
9988 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9989
9990 PR gdb/25190:
9991 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9992 * gdb/remote.c (remote_console_output): Update.
9993 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9994 (ui_file_puts): ...this.
9995 * gdb/ui-file.h (ui_file_puts): Add declaration.
9996 * gdb/utils.c (emit_style_escape): Update.
9997 (flush_wrap_buffer): Update.
9998 (fputs_maybe_filtered): Update.
9999 (fputs_unfiltered): Add function.
10000
10001 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10002
10003 * gdb/event-loop.c (gdb_wait_for_event): Update.
10004 * gdb/printcmd.c (printf_command): Update.
10005 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10006 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10007 (gdb_os_flush_stderr): Update.
10008 * gdb/remote.c (remote_console_output): Update.
10009 * gdb/ui-file.c (gdb_flush): Rename to...
10010 (ui_file_flush): ...this.
10011 (stderr_file::write): Update.
10012 (stderr_file::puts): Update.
10013 * gdb/ui-file.h (gdb_flush): Rename to...
10014 (ui_file_flush): ...this.
10015 * gdb/utils.c (gdb_flush): Add function.
10016 * gdb/utils.h (gdb_flush): Add declaration.
10017
10018 2020-02-07 Tom Tromey <tromey@adacore.com>
10019
10020 PR breakpoints/24915:
10021 * source.c (find_and_open_source): Do not check basenames_may_differ.
10022
10023 2020-02-07 Tom Tromey <tom@tromey.com>
10024
10025 * README: Update gdbserver documentation.
10026 * gdbserver: Move to top level.
10027 * configure.tgt (build_gdbserver): Remove.
10028 * configure.ac: Remove --enable-gdbserver.
10029 * configure: Rebuild.
10030 * Makefile.in (distclean): Don't mention gdbserver.
10031
10032 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10033
10034 * source-cache.c (source_cache::ensure): Surround
10035 get_plain_source_lines with a try/catch.
10036 (source_cache::get_line_charpos): Get rid of try/catch
10037 and only check for the return value of "ensure".
10038 * tui/tui-source.c (tui_source_window::set_contents):
10039 Simplify "nlines" calculation.
10040
10041 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10042
10043 * MAINTAINERS (Write After Approval): Add myself.
10044
10045 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10046
10047 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10048 function call.
10049
10050 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10051
10052 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10053
10054 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10055
10056 * nat/riscv-linux-tdesc.h: New file.
10057 * nat/riscv-linux-tdesc.c: New file, taking code from...
10058 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10059 ... here.
10060 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10061 NATDEPFILES.
10062
10063 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10064
10065 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10066 we don't set the fake simulator ptid to the null_ptid.
10067
10068 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10069
10070 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10071 * gdbthread.h (class thread_info) <resumed>: Likewise.
10072 * infrun.c (resume_1): Likewise.
10073 (proceed): Likewise.
10074 (infrun_thread_stop_requested): Likewise.
10075 (stop_all_threads): Likewise.
10076 (handle_inferior_event): Likewise.
10077 (restart_threads): Likewise.
10078 (finish_step_over): Likewise.
10079 (keep_going_stepped_thread): Likewise.
10080 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10081 (linux_handle_extended_wait): Likewise.
10082 * record-btrace.c (get_thread_current_frame_id): Likewise.
10083 * record-full.c (record_full_wait_1): Likewise.
10084 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10085 * target.c (target_resume): Likewise.
10086 * thread.c (set_running_thread): Likewise.
10087
10088 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10089
10090 * f-valprint.c (f77_print_array_1): Changed datatype of index
10091 variable to LONGEST from int to enable it to contain bound
10092 values correctly.
10093
10094 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10095
10096 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10097 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10098 offsets according to FLEN determined.
10099 (riscv_linux_nat_target::read_description): Determine FLEN
10100 dynamically.
10101 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10102 according to FLEN determined.
10103 (riscv_linux_nat_target::store_registers): Likewise.
10104
10105 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10106
10107 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10108 when reg->group is empty and reggroup is not.
10109
10110 2020-01-31 Tom Tromey <tromey@adacore.com>
10111
10112 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10113 Call beneath target's mourn_inferior after unpushing.
10114
10115 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10116
10117 PR tui/9765
10118 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10119 have enough lines to fill the screen, still return the lowest
10120 address we found.
10121
10122 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10123
10124 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10125 '-', '<', and '>' commands.
10126
10127 2020-01-29 Pedro Alves <palves@redhat.com>
10128 Sergio Durigan Junior <sergiodj@redhat.com>
10129
10130 * infcmd.c (construct_inferior_arguments): Assert that
10131 'argc' is greater than 0.
10132
10133 2020-01-29 Luis Machado <luis.machado@linaro.org>
10134
10135 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10136 (BRK_INSN_MASK): Define to 0xd4200000.
10137 (aarch64_program_breakpoint_here_p): New function.
10138 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10139 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10140 breakpoint.c.
10141 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10142 breakpoint.h
10143 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10144 call gdbarch_program_breakpoint_here_p.
10145 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10146 default_program_breakpoint_here_p, changed return type to bool and
10147 simplified.
10148 * breakpoint.h (program_breakpoint_here): Moved prototype to
10149 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10150 return type to bool.
10151 * gdbarch.c: Regenerate.
10152 * gdbarch.h: Regenerate.
10153 * gdbarch.sh (program_breakpoint_here_p): New method.
10154 * infrun.c (handle_signal_stop): Call
10155 gdbarch_program_breakpoint_here_p.
10156
10157 2020-01-26 Tom Tromey <tom@tromey.com>
10158
10159 * ctfread.c (struct ctf_fp_info): Reindent.
10160 (_initialize_ctfread): Remove.
10161
10162 2020-01-26 Tom Tromey <tom@tromey.com>
10163
10164 * psymtab.c (partial_map_expand_apply)
10165 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10166 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10167 (psym_print_stats, psym_expand_symtabs_for_function)
10168 (psym_map_symbol_filenames, psym_map_matching_symbols)
10169 (psym_expand_symtabs_matching)
10170 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10171 (maintenance_check_psymtabs): Use new methods.
10172 * psympriv.h (struct partial_symtab) <readin_p,
10173 get_compunit_symtab>: New methods.
10174 <readin, compunit_symtab>: Remove members.
10175 (struct standard_psymtab): New.
10176 (struct legacy_psymtab): Derive from standard_psymtab.
10177 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10178 standard_psymtab.
10179 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10180
10181 2020-01-26 Tom Tromey <tom@tromey.com>
10182
10183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10184 read_dependencies. Add assert.
10185 * psymtab.c (partial_symtab::read_dependencies): New method.
10186 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10187 method.
10188 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10189 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10190 read_dependencies.
10191 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10192 Add assert.
10193
10194 2020-01-26 Tom Tromey <tom@tromey.com>
10195
10196 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10197 Call expand_psymtab.
10198 (xcoff_read_symtab): Call expand_psymtab.
10199 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10200 legacy_expand_psymtab.
10201 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10202 method.
10203 (struct legacy_psymtab) <expand_psymtab>: Implement.
10204 <legacy_expand_psymtab>: New member.
10205 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10206 (parse_partial_symbols): Set legacy_expand_psymtab.
10207 (psymtab_to_symtab_1): Change argument order. Call
10208 expand_psymtab.
10209 (new_psymtab): Set legacy_expand_psymtab.
10210 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10211 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10212 expand_psymtab.
10213 (dwarf2_psymtab::expand_psymtab): Rename from
10214 psymtab_to_symtab_1. Call expand_psymtab.
10215 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10216 (dbx_end_psymtab): Likewise.
10217 (dbx_psymtab_to_symtab_1): Change argument order. Call
10218 expand_psymtab.
10219 (dbx_read_symtab): Call expand_psymtab.
10220 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10221 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10222 (ctf_psymtab::read_symtab): Call expand_psymtab.
10223
10224 2020-01-26 Tom Tromey <tom@tromey.com>
10225
10226 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10227 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10228 messages.
10229 * mdebugread.c (mdebug_read_symtab): Remove prints.
10230 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10231 assert.
10232 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10233
10234 2020-01-26 Tom Tromey <tom@tromey.com>
10235
10236 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10237 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10238 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10239 legacy_symtab.
10240 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10241 * psymtab.c (psymtab_to_symtab): Call method.
10242 (dump_psymtab): Update.
10243 * psympriv.h (struct partial_symtab): Add virtual destructor.
10244 <read_symtab>: New method.
10245 (struct legacy_symtab): New.
10246 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10247 (struct pst_map) <pst>: Now a legacy_psymtab.
10248 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10249 (new_psymtab): Use legacy_psymtab.
10250 * dwarf2read.h (struct dwarf2_psymtab): New.
10251 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10252 * dwarf2read.c (dwarf2_create_include_psymtab)
10253 (dwarf2_build_include_psymtabs, create_type_unit_group)
10254 (create_partial_symtab, process_psymtab_comp_unit_reader)
10255 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10256 (set_partial_user): Use dwarf2_psymtab.
10257 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10258 (psymtab_to_symtab_1, process_full_comp_unit)
10259 (process_full_type_unit, dwarf2_ranges_read)
10260 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10261 (dwarf_decode_lines): Use dwarf2_psymtab.
10262 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10263 (add_address_entry_worker, write_one_signatured_type)
10264 (recursively_count_psymbols, recursively_write_psymbols)
10265 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10266 (write_debug_names): Likewise.
10267 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10268 <pst>: Now a legacy_psymtab.
10269 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10270 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10271 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10272 * ctfread.c (struct ctf_psymtab): New.
10273 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10274 ctf_psymtab.
10275 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10276 (create_partial_symtab): Return a ctf_psymtab.
10277 (scan_partial_symbols): Update.
10278
10279 2020-01-26 Tom Tromey <tom@tromey.com>
10280
10281 * xcoffread.c (xcoff_start_psymtab): Use new.
10282 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10283 renamed from start_psymtab_common.
10284 * psympriv.h (struct partial_symtab): Add new constructor.
10285 (start_psymtab_common): Don't declare.
10286 * mdebugread.c (parse_partial_symbols): Use new.
10287 * dwarf2read.c (create_partial_symtab): Use new.
10288 * dbxread.c (start_psymtab): Use new.
10289 * ctfread.c (create_partial_symtab): Use new.
10290
10291 2020-01-26 Tom Tromey <tom@tromey.com>
10292
10293 * xcoffread.c (xcoff_end_psymtab): Use new.
10294 * psymtab.c (start_psymtab_common): Use new.
10295 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10296 Update.
10297 * psympriv.h (struct partial_symtab): Add parameters to
10298 constructor. Don't inline.
10299 (allocate_psymtab): Don't declare.
10300 * mdebugread.c (new_psymtab): Use new.
10301 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10302 * dbxread.c (dbx_end_psymtab): Use new.
10303
10304 2020-01-26 Tom Tromey <tom@tromey.com>
10305
10306 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10307 allocate_psymtab. Update documentation.
10308 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10309 allocate_psymtab. Do not use new.
10310 (allocate_psymtab): Use new. Update.
10311
10312 2020-01-26 Tom Tromey <tom@tromey.com>
10313
10314 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10315 * psymtab.c (psym_print_stats): Update.
10316 * psympriv.h (struct partial_symtab) <readin,
10317 psymtabs_addrmap_supported, anonymous>: Now bool.
10318 * mdebugread.c (psymtab_to_symtab_1): Update.
10319 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10320 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10321 (process_full_comp_unit, process_full_type_unit): Update.
10322 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10323 * ctfread.c (psymtab_to_symtab): Update.
10324
10325 2020-01-26 Tom Tromey <tom@tromey.com>
10326
10327 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10328 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10329 * psymtab.c (psymtab_storage): Delete psymtabs.
10330 (psymtab_storage::allocate_psymtab): Use new.
10331 (psymtab_storage::discard_psymtab): Use delete.
10332 * psympriv.h (struct partial_symtab): Add constructor and
10333 initializers.
10334
10335 2020-01-26 Tom Tromey <tom@tromey.com>
10336
10337 * machoread.c: Do not include psympriv.h.
10338
10339 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10340
10341 * NEWS: Mention the new option and the set/show commands.
10342
10343 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10344
10345 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10346 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10347 (validate_exec_file): New variables, enums, functions.
10348 (exec_file_locate_attach, print_section_info): Style the filenames.
10349 (_initialize_exec): Install show_exec_file_mismatch_command and
10350 set_exec_file_mismatch_command.
10351 * gdbcore.h (validate_exec_file): Declare.
10352 * infcmd.c (attach_command): Call validate_exec_file.
10353 * remote.c ( remote_target::remote_add_inferior): Likewise.
10354
10355 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * frame.c (find_frame_sal): Move call to get_next_frame into more
10358 inner scope.
10359 * inline-frame.c (inilne_state) <inline_state>: Update argument
10360 types.
10361 (inilne_state) <skipped_symbol>: Rename to...
10362 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10363 (skip_inline_frames): Build vector of skipped symbols and use this
10364 to reate the inline_state.
10365 (inline_skipped_symbol): Add a comment and some assertions, fetch
10366 skipped symbol from the list.
10367
10368 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10369
10370 * buildsym.c (lte_is_less_than): Delete.
10371 (buildsym_compunit::end_symtab_with_blockvector): Create local
10372 lambda function to sort line table entries, and use
10373 std::stable_sort instead of std::sort.
10374 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10375 markers when looking for a previous line.
10376
10377 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * dwarf2read.c (lnp_state_machine::record_line): Include
10380 end_sequence parameter in debug print out. Record the line if we
10381 are at an end_sequence marker even if it's not the start of a
10382 statement.
10383 * symmisc.c (maintenance_print_one_line_table): Print end of
10384 sequence markers with 'END' not '0'.
10385
10386 2020-01-24 Pedro Alves <palves@redhat.com>
10387
10388 PR gdb/25410
10389 * thread.c (scoped_restore_current_thread::restore): Use
10390 switch_to_inferior_no_thread.
10391 * exec.c: Include "progspace-and-thread.h".
10392 (add_target_sections, remove_target_sections):
10393 scoped_restore_current_pspace_and_thread instead of
10394 scoped_restore_current_thread.
10395 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10396 and aspace to the inferior before calling clone_program_space.
10397 Remove stale comment.
10398
10399 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10400
10401 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10402 (arm_netbsd_nat_target::fetch_registers): ...this.
10403 (arm_nbsd_nat_target::store_registers): Rename to...
10404 (arm_netbsd_nat_target::store_registers): ...this.
10405
10406 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10407
10408 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10409 register_t.
10410
10411 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10412
10413 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10414 Update comment.
10415 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10416 Likewise.
10417 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10418 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10419 the correct replacement (iterate_over_regset_sections).
10420 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10421 Update comment.
10422
10423 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10424
10425 PR gdb/23718
10426 * gdb/python/python.c (execute_gdb_command): Call
10427 async_enable_stdin in catch block.
10428
10429 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10430
10431 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10432 SWITCH_THRU_ALL_UIS.
10433
10434 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10435
10436 PR tui/9765
10437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10438 comment, add extra parameter, and update to store previous symbol
10439 when appropriate.
10440 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10441 add extra parameter.
10442 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10443 remove unneeded parameter, add try/catch around gdb_print_insn,
10444 rewrite to add items to asm_lines vector.
10445 (tui_find_backward_disassembly_start_address): New function.
10446 (tui_find_disassembly_address): Updated throughout.
10447 (tui_disasm_window::set_contents): Update for changes to
10448 tui_disassemble.
10449 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10450 number of lines to scroll.
10451
10452 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10453
10454 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10455 (SECT_OFF_DATA): Likewise.
10456 (SECT_OFF_RODATA): Likewise.
10457 (SECT_OFF_TEXT): Likewise.
10458 (SECT_OFF_BSS): Likewise.
10459 (struct objfile) <text_section_offset, data_section_offset>: New
10460 methods.
10461 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10462 objfile::text_section_offset.
10463 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10464 * coffread.c (coff_symtab_read): Likewise.
10465 (enter_linenos): Likewise.
10466 (process_coff_symbol): Likewise.
10467 * ctfread.c (get_objfile_text_range): Likewise.
10468 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10469 Use objfile::data_section_offset.
10470 * dwarf2-frame.c (execute_cfa_program): Use
10471 objfile::text_section_offset.
10472 (dwarf2_frame_find_fde): Likewise.
10473 * dwarf2read.c (create_addrmap_from_index): Likewise.
10474 (create_addrmap_from_aranges): Likewise.
10475 (dw2_find_pc_sect_compunit_symtab): Likewise.
10476 (process_psymtab_comp_unit_reader): Likewise.
10477 (add_partial_symbol): Likewise.
10478 (add_partial_subprogram): Likewise.
10479 (process_full_comp_unit): Likewise.
10480 (read_file_scope): Likewise.
10481 (read_func_scope): Likewise.
10482 (read_lexical_block_scope): Likewise.
10483 (read_call_site_scope): Likewise.
10484 (dwarf2_rnglists_process): Likewise.
10485 (dwarf2_ranges_process): Likewise.
10486 (dwarf2_ranges_read): Likewise.
10487 (dwarf_decode_lines_1): Likewise.
10488 (new_symbol): Likewise.
10489 (dwarf2_fetch_die_loc_sect_off): Likewise.
10490 (dwarf2_per_cu_text_offset): Likewise.
10491 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10492 * hppa-tdep.c (read_unwind_info): Likewise.
10493 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10494 * psympriv.h (struct partial_symtab): Likewise.
10495 * psymtab.c (find_pc_sect_psymtab): Likewise.
10496 * solib-svr4.c (enable_break): Likewise.
10497 * stap-probe.c (relocate_address): Use
10498 objfile::data_section_offset.
10499 * xcoffread.c (enter_line_range): Use
10500 objfile::text_section_offset.
10501 (read_xcoff_symtab): Likewise.
10502
10503 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10506 declaration to narrower scopes.
10507
10508 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10509
10510 * darwin-nat.h (struct darwin_exception_msg, enum
10511 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10512 Move up.
10513 (class darwin_nat_target) <wait_1, check_new_threads,
10514 decode_exception_message, decode_message, stop_inferior,
10515 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10516 * darwin-nat.c (darwin_check_new_threads): Rename to...
10517 (darwin_nat_target::check_new_threads): ... this.
10518 (darwin_suspend_inferior_it): Remove.
10519 (darwin_decode_exception_message): Rename to...
10520 (darwin_nat_target::decode_exception_message): ... this.
10521 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10522 (darwin_decode_message): Rename to...
10523 (darwin_nat_target::decode_message): ... this.
10524 (cancel_breakpoint): Rename to...
10525 (darwin_nat_target::cancel_breakpoint): ... this.
10526 (darwin_wait): Rename to...
10527 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10528 instead of iterate_over_inferiors.
10529 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10530 (darwin_stop_inferior): Rename to...
10531 (darwin_nat_target::stop_inferior): ... this.
10532 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10533 (darwin_init_thread_list): Rename to...
10534 (darwin_nat_target::init_thread_list): ... this.
10535 (darwin_ptrace_him): Rename to...
10536 (darwin_nat_target::ptrace_him): ... this.
10537 (darwin_nat_target::create_inferior): Pass lambda function to
10538 fork_inferior.
10539 (darwin_nat_target::detach): Call stop_inferior instead of
10540 darwin_stop_inferior.
10541 * fork-inferior.h (fork_inferior): Change init_trace_fun
10542 parameter to gdb::function_view.
10543 * fork-inferior.c (fork_inferior): Likewise.
10544
10545 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10546
10547 * i386-cygwin-tdep.c (core_process_module_section): Update.
10548 * windows-nat.c (struct lm_info_windows): Add text_offset.
10549 (windows_xfer_shared_libraries): Update.
10550 * windows-tdep.c (windows_xfer_shared_library):
10551 Add text_offset_cached argument.
10552 * windows-tdep.h (windows_xfer_shared_library): Update.
10553
10554 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10555
10556 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10557
10558 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10559
10560 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10561 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10562 replace with range-based for.
10563 (gdbsim_interrupt_inferior): Remove.
10564 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10565 with a range-based for. Inline code from
10566 gdbsim_interrupt_inferior.
10567
10568 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10569
10570 * infrun.c (proceed): Fix indentation.
10571
10572 2020-01-21 Tom Tromey <tromey@adacore.com>
10573
10574 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10575 * python/python.c (python_extension_ops): Update.
10576 (gdbpy_colorize): New function.
10577 * python/lib/gdb/__init__.py (colorize): New function.
10578 * extension.h (ext_lang_colorize): Declare.
10579 * extension.c (ext_lang_colorize): New function.
10580 * extension-priv.h (struct extension_language_ops) <colorize>: New
10581 member.
10582 * cli/cli-style.c (_initialize_cli_style): Update help text.
10583
10584 2020-01-21 Luis Machado <luis.machado@linaro.org>
10585
10586 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10587 <cond>: Change type to bool.
10588 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10589 (aarch64_displaced_step_cb): Likewise.
10590 (aarch64_displaced_step_tb): Likewise.
10591
10592 2020-01-21 Luis Machado <luis.machado@linaro.org>
10593
10594 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10595 output.
10596
10597 2020-01-21 Luis Machado <luis.machado@linaro.org>
10598
10599 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10600 <pc_adjust>: Adjust the documentation.
10601 (aarch64_displaced_step_fixup): Check if PC really moved before
10602 adjusting it.
10603
10604 2020-01-19 Tom Tromey <tom@tromey.com>
10605
10606 * disasm.c (~gdb_disassembler): New destructor.
10607 (gdb_buffered_insn_length): Call disassemble_free_target.
10608 * disasm.h (class gdb_disassembler): Declare destructor. Use
10609 DISABLE_COPY_AND_ASSIGN.
10610
10611 2020-01-19 Tom Tromey <tom@tromey.com>
10612
10613 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10614 (die_reader_func_ftype): Remove.
10615 (cutu_reader): New class.
10616 (dw2_get_file_names_reader): Remove "data" parameter.
10617 (dw2_get_file_names): Use cutu_reader.
10618 (create_debug_type_hash_table): Update.
10619 (read_cutu_die_from_dwo): Update comment.
10620 (lookup_dwo_unit): Add dwo_name parameter.
10621 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10622 die_reader_func_ftype and data parameters.
10623 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10624 Remove die_reader_func_ftype and data parameters.
10625 (~cutu_reader): New; from init_cutu_and_read_dies.
10626 (cutu_reader::cutu_reader): Rename from
10627 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10628 and data parameters.
10629 (init_cutu_and_read_dies_simple): Remove.
10630 (struct process_psymtab_comp_unit_data): Remove.
10631 (process_psymtab_comp_unit_reader): Remove data parameter; add
10632 want_partial_unit and pretend_language parameters.
10633 (process_psymtab_comp_unit): Use cutu_reader.
10634 (build_type_psymtabs_reader): Remove data parameter.
10635 (build_type_psymtabs_1): Use cutu_reader.
10636 (process_skeletonless_type_unit): Likewise.
10637 (load_partial_comp_unit_reader): Remove.
10638 (load_partial_comp_unit): Use cutu_reader.
10639 (load_full_comp_unit_reader): Remove.
10640 (load_full_comp_unit): Use cutu_reader.
10641 (struct create_dwo_cu_data): Remove.
10642 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10643 dwo_unit parameters.
10644 (create_cus_hash_table): Use cutu_reader.
10645 (struct dwarf2_read_addr_index_data): Remove.
10646 (dwarf2_read_addr_index_reader): Remove.
10647 (dwarf2_read_addr_index): Use cutu_reader.
10648 (read_signatured_type_reader): Remove.
10649 (read_signatured_type): Use cutu_reader.
10650
10651 2020-01-19 Tom Tromey <tom@tromey.com>
10652
10653 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10654 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10655 (tui_wrefresh): Declare.
10656 * tui/tui-wingeneral.c (suppress_output): New global.
10657 (tui_suppress_output, ~tui_suppress_output): New constructor and
10658 destructor.
10659 (tui_wrefresh): New function.
10660 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10661 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10662 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10663 method.
10664 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10665 tui_wrefresh.
10666 (tui_data_window::no_refresh): New method.
10667 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10668 (tui_reg_command): Use tui_suppress_output
10669 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10670 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10671 method.
10672 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10673
10674 2020-01-19 Tom Tromey <tom@tromey.com>
10675
10676 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10677 Handle case where symtab is null.
10678
10679 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10680
10681 * linux-fork.c (one_fork_p): Simplify.
10682
10683 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10684
10685 * top.c (struct qt_args): Remove.
10686 (kill_or_detach): Change return type to void, replace `void *`
10687 parameter with a proper one.
10688 (print_inferior_quit_action): Likewise.
10689 (quit_confirm): Use range-based for loop to iterate over inferiors.
10690 (quit_force): Likewise.
10691
10692 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10695 `void *` parameter with proper parameters.
10696 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10697 (print_one_inferior): Change return type to void, replace `void *`
10698 parameter with proper parameters.
10699 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10700 inferiors.
10701 (get_other_inferior): Remove.
10702 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10703 inferiors.
10704
10705 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * mi/mi-interp.c (report_initial_inferior): Remove.
10708 (mi_interp::init): Use range-based for to iterate over inferiors.
10709
10710 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * python/py-inferior.c (build_inferior_list): Remove.
10713 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10714
10715 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10716
10717 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10718 (btrace_stitch_trace): Likewise.
10719 * charset.c (intermediate_encoding): Likewise (vaild).
10720 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10721 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10722 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10723
10724 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10725
10726 * windows-tdep.c (windows_get_tlb_type):
10727 Add rtl_user_process_parameters type.
10728
10729 2020-01-16 Pedro Alves <palves@redhat.com>
10730 Norbert Lange <nolange79@gmail.com>
10731
10732 PR build/24805
10733 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10734 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10735 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10736 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10737 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10738 (ps_plog): Redeclare exported functions with default visibility.
10739
10740 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10741
10742 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10743 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10744
10745 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10746
10747 * infcmd.c (post_create_inferior): Use get_thread_regcache
10748 instead of get_current_regcache.
10749
10750 2020-01-14 Tom Tromey <tom@tromey.com>
10751
10752 PR symtab/12535:
10753 * python/python.c (gdbpy_decode_line): Treat empty string the same
10754 as no argument.
10755
10756 2020-01-14 Tom Tromey <tom@tromey.com>
10757
10758 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10759
10760 2020-01-14 Tom Tromey <tom@tromey.com>
10761
10762 * nat/linux-btrace.c: Don't include <config.h>.
10763 * nat/linux-ptrace.c: Don't include <config.h>.
10764 * nat/x86-linux-dregs.c: Don't include <config.h>.
10765
10766 2020-01-14 Tom Tromey <tom@tromey.com>
10767
10768 * configure: Rebuild.
10769 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10770
10771 2020-01-14 Tom Tromey <tom@tromey.com>
10772
10773 * nat/x86-linux-dregs.c: Include configh.h.
10774 * nat/linux-ptrace.c: Include configh.h.
10775 * nat/linux-btrace.c: Include configh.h.
10776 * defs.h: Include config.h, bfd.h.
10777 * configure.ac: Don't source common.host.
10778 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10779 * configure: Rebuild.
10780 * acinclude.m4: Update path.
10781 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10782 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10783 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10784 (CLIBS): Add LIBSUPPORT.
10785 (CDEPS): Likewise.
10786 (COMMON_SFILES): Remove gdbsupport files.
10787 (HFILES_NO_SRCDIR): Likewise.
10788 (stamp-version): Update path to create-version.sh.
10789 (ALLDEPFILES): Remove gdbsupport files.
10790
10791 2020-01-14 Tom Tromey <tom@tromey.com>
10792
10793 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10794 USE_WIN32API when needed.
10795 * configure.ac (USE_WIN32API): Don't define.
10796 (WIN32LIBS): Use WIN32APILIBS.
10797 * configure: Rebuild.
10798
10799 2020-01-14 Tom Tromey <tom@tromey.com>
10800
10801 * configure: Rebuild.
10802 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10803
10804 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10805
10806 * skip.c (skip_function_command): Make skip w/o arguments use the
10807 name of the inlined function if pc is inside any inlined function.
10808
10809 2020-01-14 Luis Machado <luis.machado@linaro.org>
10810
10811 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10812 * infrun.c (resume_1): Likewise.
10813 (handle_inferior_event): Remove stale comment.
10814 * linux-nat.c (linux_nat_target::resume): Update comments.
10815 (save_stop_reason): Likewise.
10816 (linux_nat_filter_event): Likewise.
10817 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10818
10819 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * elfread.c (record_minimal_symbol): Set section index to 0 for
10822 non-allocatable sections.
10823
10824
10825 2020-01-13 Ali Tamur <tamur@google.com>
10826
10827 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10828 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10829 to gdb::optional. Update comments.
10830 (dwo_file): Update comments.
10831 (read_attribute): Update API to take an additional out parameter,
10832 need_reprocess. This is used to mark attributes that need other
10833 attributes (e.g. str_offsets_base) for correct computation which may not
10834 have been read yet.
10835 (read_attribute_reprocess): New function declaration.
10836 (read_addr_index): Likewise.
10837 (read_dwo_str_index): Likewise.
10838 (read_stub_str_index): Likewise.
10839 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10840 (lookup_addr_base): New function definition.
10841 (lookup_ranges_base): Likewise.
10842 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10843 lookup_ranges_base.
10844 (init_cutu_and_read_dies): Update comments.
10845 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10846 unit. This is used to inherit parent's str_offsets_base and addr_base.
10847 Update comments.
10848 (init_cutu_and_read_dies_simple): Reflect API changes.
10849 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10850 (create_cus_hash_table): Change API to take parent compile unit.
10851 Reflect API changes.
10852 (open_and_init_dwo_file): Reflect API changes.
10853 (dwarf2_get_pc_bounds): Update comments.
10854 (dwarf2_record_block_ranges): Likewise.
10855 (read_full_die_1): Change implementation to reprocess attributes that
10856 need str_offsets_base and addr_base.
10857 (partial_die_info::read): Likewise.
10858 (read_attribute_reprocess): New function definition.
10859 (read_attribute_value): Change API to take an additional out parameter,
10860 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10861 when a non-dwo compile unit has index based attributes.
10862 (read_attribute): Reflect API changes.
10863 (read_addr_index_1): Reflect API changes. Update comments.
10864 (dwarf2_read_addr_index_data): Reflect API changes.
10865 (dwarf2_read_addr_index): Likewise.
10866 (read_str_index): Change API and implementation. This becomes a helper
10867 to be used by the new string index related methods. Update error
10868 message and comments.
10869 (read_dwo_str_index): New function definition.
10870 (read_stub_str_index): Likewise.
10871 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10872 * symfile.h (dwarf2_debug_sections): Likewise.
10873 * xcoffread.c (dwarf2_debug_sections): Likewise.
10874
10875 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10876
10877 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10878 core_reg_sect type to gdb_byte *.
10879 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10880 * cris-tdep.c (fetch_core_registers): Likewise.
10881 * corelow.c (core_target::get_core_register_section): Change
10882 type of `contents` to gdb::byte_vector.
10883
10884 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 * tui/tui-wingeneral.c (box_win): Position the title in the center
10887 of the border.
10888
10889 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10890
10891 * corelow.c (core_target::get_core_register_section): Use
10892 std::vector instead of alloca.
10893
10894 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * warning.m4: Add -Wmissing-declarations to build_warnings.
10897 * configure: Re-generate.
10898
10899 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * python/python.c (init__gdb_module): Add declaration.
10902
10903 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10906 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10907 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10908 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10909 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10910 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10911 * ada-exp.y (_initialize_ada_exp): Add declaration.
10912 * ada-lang.c (_initialize_ada_language): Add declaration.
10913 * ada-tasks.c (_initialize_tasks): Add declaration.
10914 * agent.c (_initialize_agent): Add declaration.
10915 * aix-thread.c (_initialize_aix_thread): Add declaration.
10916 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10917 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10918 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10919 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10920 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10921 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10922 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10923 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10924 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10925 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10926 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10927 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10928 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10929 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10930 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10931 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10932 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10933 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10934 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10935 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10936 * annotate.c (_initialize_annotate): Add declaration.
10937 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10938 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10939 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10940 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10941 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10942 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10943 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10944 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10945 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10946 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10947 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10948 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10949 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10950 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10951 * auto-load.c (_initialize_auto_load): Add declaration.
10952 * auxv.c (_initialize_auxv): Add declaration.
10953 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10954 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10955 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10956 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10957 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10958 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10959 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10960 * breakpoint.c (_initialize_breakpoint): Add declaration.
10961 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10962 * btrace.c (_initialize_btrace): Add declaration.
10963 * charset.c (_initialize_charset): Add declaration.
10964 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10965 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10966 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10967 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10968 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10969 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10970 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10971 * coffread.c (_initialize_coffread): Add declaration.
10972 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10973 * compile/compile.c (_initialize_compile): Add declaration.
10974 * complaints.c (_initialize_complaints): Add declaration.
10975 * completer.c (_initialize_completer): Add declaration.
10976 * copying.c (_initialize_copying): Add declaration.
10977 * corefile.c (_initialize_core): Add declaration.
10978 * corelow.c (_initialize_corelow): Add declaration.
10979 * cp-abi.c (_initialize_cp_abi): Add declaration.
10980 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10981 * cp-support.c (_initialize_cp_support): Add declaration.
10982 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10983 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10984 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10985 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10986 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10987 * ctfread.c (_initialize_ctfread): Add declaration.
10988 * d-lang.c (_initialize_d_language): Add declaration.
10989 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10990 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10991 * dbxread.c (_initialize_dbxread): Add declaration.
10992 * dcache.c (_initialize_dcache): Add declaration.
10993 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10994 * disasm.c (_initialize_disasm): Add declaration.
10995 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10996 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10997 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10998 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10999 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11000 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11001 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11002 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11003 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11004 * elfread.c (_initialize_elfread): Add declaration.
11005 * exec.c (_initialize_exec): Add declaration.
11006 * extension.c (_initialize_extension): Add declaration.
11007 * f-lang.c (_initialize_f_language): Add declaration.
11008 * f-valprint.c (_initialize_f_valprint): Add declaration.
11009 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11010 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11011 * filesystem.c (_initialize_filesystem): Add declaration.
11012 * findcmd.c (_initialize_mem_search): Add declaration.
11013 * findvar.c (_initialize_findvar): Add declaration.
11014 * fork-child.c (_initialize_fork_child): Add declaration.
11015 * frame-base.c (_initialize_frame_base): Add declaration.
11016 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11017 * frame.c (_initialize_frame): Add declaration.
11018 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11019 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11020 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11021 * gcore.c (_initialize_gcore): Add declaration.
11022 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11023 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11024 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11025 * gdbarch.c (_initialize_gdbarch): Add declaration.
11026 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11027 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11028 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11029 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11030 * go-lang.c (_initialize_go_language): Add declaration.
11031 * go32-nat.c (_initialize_go32_nat): Add declaration.
11032 * guile/guile.c (_initialize_guile): Add declaration.
11033 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11034 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11035 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11036 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11037 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11038 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11039 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11040 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11041 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11042 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11043 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11044 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11045 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11046 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11047 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11048 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11049 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11050 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11051 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11052 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11053 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11054 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11055 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11056 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11057 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11058 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11059 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11060 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11061 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11062 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11063 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11064 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11065 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11066 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11067 * infcall.c (_initialize_infcall): Add declaration.
11068 * infcmd.c (_initialize_infcmd): Add declaration.
11069 * inflow.c (_initialize_inflow): Add declaration.
11070 * infrun.c (_initialize_infrun): Add declaration.
11071 * interps.c (_initialize_interpreter): Add declaration.
11072 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11073 * jit.c (_initialize_jit): Add declaration.
11074 * language.c (_initialize_language): Add declaration.
11075 * linux-fork.c (_initialize_linux_fork): Add declaration.
11076 * linux-nat.c (_initialize_linux_nat): Add declaration.
11077 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11078 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11079 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11080 * m2-lang.c (_initialize_m2_language): Add declaration.
11081 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11082 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11083 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11084 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11085 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11086 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11087 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11088 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11089 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11090 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11091 * machoread.c (_initialize_machoread): Add declaration.
11092 * macrocmd.c (_initialize_macrocmd): Add declaration.
11093 * macroscope.c (_initialize_macroscope): Add declaration.
11094 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11095 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11096 * maint.c (_initialize_maint_cmds): Add declaration.
11097 * mdebugread.c (_initialize_mdebugread): Add declaration.
11098 * memattr.c (_initialize_mem): Add declaration.
11099 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11100 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11101 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11102 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11103 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11104 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11105 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11106 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11107 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11108 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11109 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11110 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11111 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11112 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11113 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11114 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11115 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11116 * mipsread.c (_initialize_mipsread): Add declaration.
11117 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11118 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11119 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11120 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11121 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11122 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11123 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11124 * nto-procfs.c (_initialize_procfs): Add declaration.
11125 * objc-lang.c (_initialize_objc_language): Add declaration.
11126 * observable.c (_initialize_observer): Add declaration.
11127 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11128 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11129 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11130 * osabi.c (_initialize_gdb_osabi): Add declaration.
11131 * osdata.c (_initialize_osdata): Add declaration.
11132 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11133 * parse.c (_initialize_parse): Add declaration.
11134 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11135 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11136 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11137 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11138 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11139 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11140 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11141 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11142 * printcmd.c (_initialize_printcmd): Add declaration.
11143 * probe.c (_initialize_probe): Add declaration.
11144 * proc-api.c (_initialize_proc_api): Add declaration.
11145 * proc-events.c (_initialize_proc_events): Add declaration.
11146 * proc-service.c (_initialize_proc_service): Add declaration.
11147 * procfs.c (_initialize_procfs): Add declaration.
11148 * producer.c (_initialize_producer): Add declaration.
11149 * psymtab.c (_initialize_psymtab): Add declaration.
11150 * python/python.c (_initialize_python): Add declaration.
11151 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11152 * record-btrace.c (_initialize_record_btrace): Add declaration.
11153 * record-full.c (_initialize_record_full): Add declaration.
11154 * record.c (_initialize_record): Add declaration.
11155 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11156 * regcache.c (_initialize_regcache): Add declaration.
11157 * reggroups.c (_initialize_reggroup): Add declaration.
11158 * remote-notif.c (_initialize_notif): Add declaration.
11159 * remote-sim.c (_initialize_remote_sim): Add declaration.
11160 * remote.c (_initialize_remote): Add declaration.
11161 * reverse.c (_initialize_reverse): Add declaration.
11162 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11163 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11164 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11165 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11166 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11167 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11168 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11169 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11170 Add declaration.
11171 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11172 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11173 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11174 * rust-exp.y (_initialize_rust_exp): Add declaration.
11175 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11176 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11177 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11178 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11179 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11180 * score-tdep.c (_initialize_score_tdep): Add declaration.
11181 * ser-go32.c (_initialize_ser_dos): Add declaration.
11182 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11183 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11184 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11185 * ser-uds.c (_initialize_ser_socket): Add declaration.
11186 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11187 * serial.c (_initialize_serial): Add declaration.
11188 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11189 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11190 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11191 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11192 * skip.c (_initialize_step_skip): Add declaration.
11193 * sol-thread.c (_initialize_sol_thread): Add declaration.
11194 * solib-aix.c (_initialize_solib_aix): Add declaration.
11195 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11196 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11197 * solib-frv.c (_initialize_frv_solib): Add declaration.
11198 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11199 * solib-target.c (_initialize_solib_target): Add declaration.
11200 * solib.c (_initialize_solib): Add declaration.
11201 * source-cache.c (_initialize_source_cache): Add declaration.
11202 * source.c (_initialize_source): Add declaration.
11203 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11204 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11205 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11206 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11207 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11208 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11209 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11210 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11211 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11212 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11213 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11214 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11215 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11216 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11217 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11218 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11219 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11220 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11221 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11222 * stabsread.c (_initialize_stabsread): Add declaration.
11223 * stack.c (_initialize_stack): Add declaration.
11224 * stap-probe.c (_initialize_stap_probe): Add declaration.
11225 * std-regs.c (_initialize_frame_reg): Add declaration.
11226 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11227 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11228 * symfile.c (_initialize_symfile): Add declaration.
11229 * symmisc.c (_initialize_symmisc): Add declaration.
11230 * symtab.c (_initialize_symtab): Add declaration.
11231 * target.c (_initialize_target): Add declaration.
11232 * target-connection.c (_initialize_target_connection): Add
11233 declaration.
11234 * target-dcache.c (_initialize_target_dcache): Add declaration.
11235 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11236 * thread.c (_initialize_thread): Add declaration.
11237 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11238 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11239 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11240 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11241 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11242 * tracectf.c (_initialize_ctf): Add declaration.
11243 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11244 * tracefile.c (_initialize_tracefile): Add declaration.
11245 * tracepoint.c (_initialize_tracepoint): Add declaration.
11246 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11247 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11248 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11249 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11250 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11251 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11252 * tui/tui.c (_initialize_tui): Add declaration.
11253 * typeprint.c (_initialize_typeprint): Add declaration.
11254 * ui-style.c (_initialize_ui_style): Add declaration.
11255 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11256 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11257 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11258 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11259 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11260 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11261 * unittests/filtered_iterator-selftests.c
11262 (_initialize_filtered_iterator_selftests): Add declaration.
11263 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11264 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11265 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11266 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11267 * unittests/main-thread-selftests.c
11268 (_initialize_main_thread_selftests): Add declaration.
11269 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11270 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11271 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11272 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11273 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11274 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11275 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11276 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11277 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11278 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11279 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11280 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11281 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11282 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11283 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11284 declaration.
11285 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11286 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11287 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11288 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11289 * user-regs.c (_initialize_user_regs): Add declaration.
11290 * utils.c (_initialize_utils): Add declaration.
11291 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11292 * valops.c (_initialize_valops): Add declaration.
11293 * valprint.c (_initialize_valprint): Add declaration.
11294 * value.c (_initialize_values): Add declaration.
11295 * varobj.c (_initialize_varobj): Add declaration.
11296 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11297 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11298 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11299 * windows-nat.c (_initialize_windows_nat): Add declaration.
11300 (_initialize_check_for_gdb_ini): Add declaration.
11301 (_initialize_loadable): Add declaration.
11302 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11303 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11304 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11305 * xcoffread.c (_initialize_xcoffread): Add declaration.
11306 * xml-support.c (_initialize_xml_support): Add declaration.
11307 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11308 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11309 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11310 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11311
11312 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11313
11314 * regformats/regdat.sh: Generate declaration for init function.
11315
11316 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11317
11318 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11319 up.
11320 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11321 close_one_inferior>: New methods.
11322 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11323 pass down target to find_inferior_pid.
11324 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11325 Pass down target to find_inferior_ptid.
11326 (gdbsim_target::create_inferior): Pass down target to
11327 add_thread_silent.
11328 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11329 target down to find_inferior_ptid and switch_to_thread.
11330 (gdbsim_target::close): Update to call close_one_inferior.
11331 (struct resume_data): Remove.
11332 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11333 directly, rather than through a void pointer.
11334 (gdbsim_target::resume): Update to call resume_one_inferior.
11335
11336 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11337
11338 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11339
11340 2020-01-12 Pedro Alves <palves@redhat.com>
11341
11342 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11343 directly for the current inferior instead of
11344 discard_all_inferiors.
11345 (discard_all_inferiors): Delete.
11346
11347 2020-01-11 Tom Tromey <tom@tromey.com>
11348
11349 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11350 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11351 deprecated_safe_get_selected_frame.
11352
11353 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11354
11355 * inferior.c (print_inferior): Switch inferior before printing it.
11356
11357 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11358 Pedro Alves <palves@redhat.com>
11359
11360 * progspace-and-thread.c (switch_to_program_space_and_thread):
11361 Assert there's an inferior for PSPACE. Use
11362 switch_to_inferior_no_thread to switch the inferior too.
11363 * progspace.c (program_space::~program_space): Call
11364 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11365 (program_space::free_all_objfiles): Don't call clear_symtab_users
11366 here.
11367 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11368
11369 2020-01-10 Pedro Alves <palves@redhat.com>
11370
11371 * NEWS: Mention multi-target debugging, "info connections", and
11372 "add-inferior -no-connection".
11373
11374 2020-01-10 Pedro Alves <palves@redhat.com>
11375
11376 * infrun.c: Include "target-connection.h".
11377 (check_multi_target_resumption): New.
11378 (proceed): Call it.
11379 * target-connection.c (make_target_connection_string): Make
11380 extern.
11381 * target-connection.h (make_target_connection_string): Declare.
11382
11383 2020-01-10 Pedro Alves <palves@redhat.com>
11384
11385 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11386 * inferior.c (uiout_field_connection): New function.
11387 (print_inferior): Add new "connection-id" column.
11388 (add_inferior_command): Show connection number/string of added
11389 inferior.
11390 * process-stratum-target.h
11391 (process_stratum_target::connection_string): New virtual method.
11392 (process_stratum_target::connection_number): New field.
11393 * remote.c (remote_target::connection_string): New override.
11394 * target-connection.c: New file.
11395 * target-connection.h: New file.
11396 * target.c (decref_target): Remove process_stratum targets from
11397 the connection list.
11398 (target_stack::push): Add process_stratum targets to the
11399 connection list.
11400
11401 2020-01-10 Pedro Alves <palves@redhat.com>
11402
11403 Revert:
11404 2016-04-12 Pedro Alves <palves@redhat.com>
11405 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11406 Remove references to name.
11407 * serial.h (struct serial) <name>: Delete.
11408
11409 2020-01-10 Pedro Alves <palves@redhat.com>
11410
11411 * gdbarch-selftests.c (register_to_value_test): Remove "target
11412 already pushed" check.
11413
11414 2020-01-10 Pedro Alves <palves@redhat.com>
11415 John Baldwin <jhb@FreeBSD.org>
11416
11417 * aarch64-linux-nat.c
11418 (aarch64_linux_nat_target::thread_architecture): Adjust.
11419 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11420 (task_command_1): Likewise.
11421 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11422 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11423 (aix_thread_target::store_registers)
11424 (aix_thread_target::thread_alive): Adjust.
11425 * amd64-fbsd-tdep.c: Include "inferior.h".
11426 (amd64fbsd_get_thread_local_address): Pass down target.
11427 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11428 thread's gdbarch instead of target_gdbarch.
11429 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11430 get_last_target_status.
11431 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11432 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11433 inferiors.
11434 (update_inserted_breakpoint_locations): Skip if inferiors with no
11435 execution.
11436 (update_global_location_list): When handling moribund locations,
11437 find representative inferior for location's pspace, and use thread
11438 count of its process_stratum target.
11439 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11440 * bsd-uthread.c (bsd_uthread_target::wait): Use
11441 as_process_stratum_target and adjust thread_change_ptid and
11442 add_thread calls.
11443 (bsd_uthread_target::update_thread_list): Use
11444 as_process_stratum_target and adjust find_thread_ptid,
11445 thread_change_ptid and add_thread calls.
11446 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11447 find_thread_ptid call.
11448 * corelow.c (add_to_thread_list): Adjust add_thread call.
11449 (core_target_open): Adjust add_thread_silent and thread_count
11450 calls.
11451 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11452 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11453 * event-top.c (async_disconnect): Pop targets from all inferiors.
11454 * exec.c (add_target_sections): Push exec target on all inferiors
11455 sharing the program space.
11456 (remove_target_sections): Remove the exec target from all
11457 inferiors sharing the program space.
11458 (exec_on_vfork): New.
11459 * exec.h (exec_on_vfork): Declare.
11460 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11461 Pass it down.
11462 (fbsd_nat_target::update_thread_list): Adjust.
11463 (fbsd_nat_target::resume): Adjust.
11464 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11465 down.
11466 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11467 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11468 get_thread_arch_regcache call.
11469 * fork-child.c (gdb_startup_inferior): Pass target down to
11470 startup_inferior and set_executing.
11471 * gdbthread.h (struct process_stratum_target): Forward declare.
11472 (add_thread, add_thread_silent, add_thread_with_info)
11473 (in_thread_list): Add process_stratum_target parameter.
11474 (find_thread_ptid(inferior*, ptid_t)): New overload.
11475 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11476 parameter.
11477 (all_threads()): Delete overload.
11478 (all_threads, all_non_exited_threads): Add process_stratum_target
11479 parameter.
11480 (all_threads_safe): Use brace initialization.
11481 (thread_count): Add process_stratum_target parameter.
11482 (set_resumed, set_running, set_stop_requested, set_executing)
11483 (threads_are_executing, finish_thread_state): Add
11484 process_stratum_target parameter.
11485 (switch_to_thread): Use is_current_thread.
11486 * i386-fbsd-tdep.c: Include "inferior.h".
11487 (i386fbsd_get_thread_local_address): Pass down target.
11488 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11489 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11490 have_inferiors check.
11491 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11492 (inf_ptrace_target::attach): Adjust.
11493 * infcall.c (run_inferior_call): Adjust.
11494 * infcmd.c (run_command_1): Pass target to
11495 scoped_finish_thread_state.
11496 (proceed_thread_callback): Skip inferiors with no execution.
11497 (continue_command): Rename 'all_threads' local to avoid hiding
11498 'all_threads' function. Adjust get_last_target_status call.
11499 (prepare_one_step): Adjust set_running call.
11500 (signal_command): Use user_visible_resume_target. Compare thread
11501 pointers instead of inferior_ptid.
11502 (info_program_command): Adjust to pass down target.
11503 (attach_command): Mark target's 'thread_executing' flag.
11504 (stop_current_target_threads_ns): New, factored out from ...
11505 (interrupt_target_1): ... this. Switch inferior before making
11506 target calls.
11507 * inferior-iter.h
11508 (struct all_inferiors_iterator, struct all_inferiors_range)
11509 (struct all_inferiors_safe_range)
11510 (struct all_non_exited_inferiors_range): Filter on
11511 process_stratum_target too. Remove explicit.
11512 * inferior.c (inferior::inferior): Push dummy target on target
11513 stack.
11514 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11515 Add process_stratum_target parameter, and pass it down.
11516 (have_live_inferiors): Adjust.
11517 (switch_to_inferior_and_push_target): New.
11518 (add_inferior_command, clone_inferior_command): Handle
11519 "-no-connection" parameter. Use
11520 switch_to_inferior_and_push_target.
11521 (_initialize_inferior): Mention "-no-connection" option in
11522 the help of "add-inferior" and "clone-inferior" commands.
11523 * inferior.h: Include "process-stratum-target.h".
11524 (interrupt_target_1): Use bool.
11525 (struct inferior) <push_target, unpush_target, target_is_pushed,
11526 find_target_beneath, top_target, process_target, target_at,
11527 m_stack>: New.
11528 (discard_all_inferiors): Delete.
11529 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11530 (all_inferiors, all_non_exited_inferiors): Add
11531 process_stratum_target parameter.
11532 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11533 (target_last_proc_target): New global.
11534 (follow_fork_inferior): Push target on new inferior. Pass target
11535 to add_thread_silent. Call exec_on_vfork. Handle target's
11536 reference count.
11537 (follow_fork): Adjust get_last_target_status call. Also consider
11538 target.
11539 (follow_exec): Push target on new inferior.
11540 (struct execution_control_state) <target>: New field.
11541 (user_visible_resume_target): New.
11542 (do_target_resume): Call target_async.
11543 (resume_1): Set target's threads_executing flag. Consider resume
11544 target.
11545 (commit_resume_all_targets): New.
11546 (proceed): Also consider resume target. Skip threads of inferiors
11547 with no execution. Commit resumtion in all targets.
11548 (start_remote): Pass current inferior to wait_for_inferior.
11549 (infrun_thread_stop_requested): Consider target as well. Pass
11550 thread_info pointer to clear_inline_frame_state instead of ptid.
11551 (infrun_thread_thread_exit): Consider target as well.
11552 (random_pending_event_thread): New inferior parameter. Use it.
11553 (do_target_wait): Rename to ...
11554 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11555 down.
11556 (threads_are_resumed_pending_p, do_target_wait): New.
11557 (prepare_for_detach): Adjust calls.
11558 (wait_for_inferior): New inferior parameter. Handle it. Use
11559 do_target_wait_1 instead of do_target_wait.
11560 (fetch_inferior_event): Adjust. Switch to representative
11561 inferior. Pass target down.
11562 (set_last_target_status): Add process_stratum_target parameter.
11563 Save target in global.
11564 (get_last_target_status): Add process_stratum_target parameter and
11565 handle it.
11566 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11567 (context_switch): Check inferior_ptid == null_ptid before calling
11568 inferior_thread().
11569 (get_inferior_stop_soon): Pass down target.
11570 (wait_one): Rename to ...
11571 (poll_one_curr_target): ... this.
11572 (struct wait_one_event): New.
11573 (wait_one): New.
11574 (stop_all_threads): Adjust.
11575 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11576 event's target.
11577 (switch_back_to_stepped_thread): Also consider target.
11578 (print_stop_event): Update.
11579 (normal_stop): Update. Also consider the resume target.
11580 * infrun.h (wait_for_inferior): Remove declaration.
11581 (user_visible_resume_target): New declaration.
11582 (get_last_target_status, set_last_target_status): New
11583 process_stratum_target parameter.
11584 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11585 process_stratum_target parameter, and use it.
11586 (clear_inline_frame_state (thread_info*)): New.
11587 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11588 process_stratum_target parameter.
11589 (clear_inline_frame_state (thread_info*)): Declare.
11590 * linux-fork.c (delete_checkpoint_command): Pass target down to
11591 find_thread_ptid.
11592 (checkpoint_command): Adjust.
11593 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11594 instead of just tweaking inferior_ptid.
11595 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11596 (exit_lwp): Pass target down to find_thread_ptid.
11597 (attach_proc_task_lwp_callback): Pass target down to
11598 add_thread/set_running/set_executing.
11599 (linux_nat_target::attach): Pass target down to
11600 thread_change_ptid.
11601 (get_detach_signal): Pass target down to find_thread_ptid.
11602 Consider last target status's target.
11603 (linux_resume_one_lwp_throw, resume_lwp)
11604 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11605 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11606 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11607 (linux_nat_target::async_wait_fd): New.
11608 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11609 target down.
11610 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11611 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11612 * linux-thread-db.c (struct thread_db_info::process_target): New
11613 field.
11614 (add_thread_db_info): Save target.
11615 (get_thread_db_info): New process_stratum_target parameter. Also
11616 match target.
11617 (delete_thread_db_info): New process_stratum_target parameter.
11618 Also match target.
11619 (thread_from_lwp): Adjust to pass down target.
11620 (thread_db_notice_clone): Pass down target.
11621 (check_thread_db_callback): Pass down target.
11622 (try_thread_db_load_1): Always push the thread_db target.
11623 (try_thread_db_load, record_thread): Pass target down.
11624 (thread_db_target::detach): Pass target down. Always unpush the
11625 thread_db target.
11626 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11627 target down. Always unpush the thread_db target.
11628 (find_new_threads_callback, thread_db_find_new_threads_2)
11629 (thread_db_target::update_thread_list): Pass target down.
11630 (thread_db_target::pid_to_str): Pass current inferior down.
11631 (thread_db_target::get_thread_local_address): Pass target down.
11632 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11633 target down.
11634 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11635 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11636 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11637 (procfs_init_inferior): Rename to ...
11638 (procfs_target::procfs_init_inferior): ... this and adjust.
11639 (procfs_target::create_inferior, procfs_notice_thread)
11640 (procfs_do_thread_registers): Adjust.
11641 * ppc-fbsd-tdep.c: Include "inferior.h".
11642 (ppcfbsd_get_thread_local_address): Pass down target.
11643 * proc-service.c (ps_xfer_memory): Switch current inferior and
11644 program space as well.
11645 (get_ps_regcache): Pass target down.
11646 * process-stratum-target.c
11647 (process_stratum_target::thread_address_space)
11648 (process_stratum_target::thread_architecture): Pass target down.
11649 * process-stratum-target.h
11650 (process_stratum_target::threads_executing): New field.
11651 (as_process_stratum_target): New.
11652 * ravenscar-thread.c
11653 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11654 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11655 down.
11656 * record-btrace.c (record_btrace_target::info_record): Adjust.
11657 (record_btrace_target::record_method)
11658 (record_btrace_target::record_is_replaying)
11659 (record_btrace_target::fetch_registers)
11660 (get_thread_current_frame_id, record_btrace_target::resume)
11661 (record_btrace_target::wait, record_btrace_target::stop): Pass
11662 target down.
11663 * record-full.c (record_full_wait_1): Switch to event thread.
11664 Pass target down.
11665 * regcache.c (regcache::regcache)
11666 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11667 process_stratum_target parameter and handle it.
11668 (current_thread_target): New global.
11669 (get_thread_regcache): Add process_stratum_target parameter and
11670 handle it. Switch inferior before calling target method.
11671 (get_thread_regcache): Pass target down.
11672 (get_thread_regcache_for_ptid): Pass target down.
11673 (registers_changed_ptid): Add process_stratum_target parameter and
11674 handle it.
11675 (registers_changed_thread, registers_changed): Pass target down.
11676 (test_get_thread_arch_aspace_regcache): New.
11677 (current_regcache_test): Define a couple local test_target_ops
11678 instances and use them for testing.
11679 (readwrite_regcache): Pass process_stratum_target parameter.
11680 (cooked_read_test, cooked_write_test): Pass mock_target down.
11681 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11682 (get_thread_arch_aspace_regcache): Add process_stratum_target
11683 parameter.
11684 (regcache::target): New method.
11685 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11686 (regcache::registers_changed_ptid): Add process_stratum_target
11687 parameter.
11688 (regcache::m_target): New field.
11689 (registers_changed_ptid): Add process_stratum_target parameter.
11690 * remote.c (remote_state::supports_vCont_probed): New field.
11691 (remote_target::async_wait_fd): New method.
11692 (remote_unpush_and_throw): Add remote_target parameter.
11693 (get_current_remote_target): Adjust.
11694 (remote_target::remote_add_inferior): Push target.
11695 (remote_target::remote_add_thread)
11696 (remote_target::remote_notice_new_inferior)
11697 (get_remote_thread_info): Pass target down.
11698 (remote_target::update_thread_list): Skip threads of inferiors
11699 bound to other targets. (remote_target::close): Don't discard
11700 inferiors. (remote_target::add_current_inferior_and_thread)
11701 (remote_target::process_initial_stop_replies)
11702 (remote_target::start_remote)
11703 (remote_target::remote_serial_quit_handler): Pass down target.
11704 (remote_target::remote_unpush_target): New remote_target
11705 parameter. Unpush the target from all inferiors.
11706 (remote_target::remote_unpush_and_throw): New remote_target
11707 parameter. Pass it down.
11708 (remote_target::open_1): Check whether the current inferior has
11709 execution instead of checking whether any inferior is live. Pass
11710 target down.
11711 (remote_target::remote_detach_1): Pass down target. Use
11712 remote_unpush_target.
11713 (extended_remote_target::attach): Pass down target.
11714 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11715 (remote_target::append_resumption): Pass down target.
11716 (remote_target::append_pending_thread_resumptions)
11717 (remote_target::remote_resume_with_hc, remote_target::resume)
11718 (remote_target::commit_resume): Pass down target.
11719 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11720 (remote_target::interrupt_query)
11721 (remote_target::remove_new_fork_children)
11722 (remote_target::check_pending_events_prevent_wildcard_vcont)
11723 (remote_target::remote_parse_stop_reply)
11724 (remote_target::process_stop_reply): Pass down target.
11725 (first_remote_resumed_thread): New remote_target parameter. Pass
11726 it down.
11727 (remote_target::wait_as): Pass down target.
11728 (unpush_and_perror): New remote_target parameter. Pass it down.
11729 (remote_target::readchar, remote_target::remote_serial_write)
11730 (remote_target::getpkt_or_notif_sane_1)
11731 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11732 down target.
11733 (remote_target::mourn_inferior): Pass down target. Use
11734 remote_unpush_target.
11735 (remote_target::core_of_thread)
11736 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11737 (remote_target::pid_to_exec_file)
11738 (remote_target::thread_handle_to_thread_info): Pass down target.
11739 (remote_target::async_wait_fd): New.
11740 * riscv-fbsd-tdep.c: Include "inferior.h".
11741 (riscv_fbsd_get_thread_local_address): Pass down target.
11742 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11743 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11744 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11745 Adjust.
11746 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11747 * solib-svr4.c (enable_break): Pass down target.
11748 * spu-multiarch.c (parse_spufs_run): Pass down target.
11749 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11750 * target-delegates.c: Regenerate.
11751 * target.c (g_target_stack): Delete.
11752 (current_top_target): Return the current inferior's top target.
11753 (target_has_execution_1): Refer to the passed-in inferior's top
11754 target.
11755 (target_supports_terminal_ours): Check whether the initial
11756 inferior was already created.
11757 (decref_target): New.
11758 (target_stack::push): Incref/decref the target.
11759 (push_target, push_target, unpush_target): Adjust.
11760 (target_stack::unpush): Defref target.
11761 (target_is_pushed): Return bool. Adjust to refer to the current
11762 inferior's target stack.
11763 (dispose_inferior): Delete, and inline parts ...
11764 (target_preopen): ... here. Only dispose of the current inferior.
11765 (target_detach): Hold strong target reference while detaching.
11766 Pass target down.
11767 (target_thread_name): Add assertion.
11768 (target_resume): Pass down target.
11769 (target_ops::beneath, find_target_at): Adjust to refer to the
11770 current inferior's target stack.
11771 (get_dummy_target): New.
11772 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11773 has a thread running.
11774 (initialize_targets): Rename to ...
11775 (_initialize_target): ... this.
11776 * target.h: Include "gdbsupport/refcounted-object.h".
11777 (struct target_ops): Inherit refcounted_object.
11778 (target_ops::shortname, target_ops::longname): Make const.
11779 (target_ops::async_wait_fd): New method.
11780 (decref_target): Declare.
11781 (struct target_ops_ref_policy): New.
11782 (target_ops_ref): New typedef.
11783 (get_dummy_target): Declare function.
11784 (target_is_pushed): Return bool.
11785 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11786 (all_matching_threads_iterator::all_matching_threads_iterator):
11787 Handle filter target.
11788 * thread-iter.h (struct all_matching_threads_iterator, struct
11789 all_matching_threads_range, class all_non_exited_threads_range):
11790 Filter by target too. Remove explicit.
11791 * thread.c (threads_executing): Delete.
11792 (inferior_thread): Pass down current inferior.
11793 (clear_thread_inferior_resources): Pass down thread pointer
11794 instead of ptid_t.
11795 (add_thread_silent, add_thread_with_info, add_thread): Add
11796 process_stratum_target parameter. Use it for thread and inferior
11797 searches.
11798 (is_current_thread): New.
11799 (thread_info::deletable): Use it.
11800 (find_thread_ptid, thread_count, in_thread_list)
11801 (thread_change_ptid, set_resumed, set_running): New
11802 process_stratum_target parameter. Pass it down.
11803 (set_executing): New process_stratum_target parameter. Pass it
11804 down. Adjust reference to 'threads_executing'.
11805 (threads_are_executing): New process_stratum_target parameter.
11806 Adjust reference to 'threads_executing'.
11807 (set_stop_requested, finish_thread_state): New
11808 process_stratum_target parameter. Pass it down.
11809 (switch_to_thread): Also match inferior.
11810 (switch_to_thread): New process_stratum_target parameter. Pass it
11811 down.
11812 (update_threads_executing): Reimplement.
11813 * top.c (quit_force): Pop targets from all inferior.
11814 (gdb_init): Don't call initialize_targets.
11815 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11816 Declare.
11817 (windows_add_thread, windows_delete_thread): Adjust.
11818 (get_windows_debug_event): Rename to ...
11819 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11820 * tracefile-tfile.c (tfile_target_open): Pass down target.
11821 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11822 Forward declare.
11823 (switch_to_thread): Add process_stratum_target parameter.
11824 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11825 parameter. Use it.
11826 (mi_on_resume): Pass target down.
11827 * nat/fork-inferior.c (startup_inferior): Add
11828 process_stratum_target parameter. Pass it down.
11829 * nat/fork-inferior.h (startup_inferior): Add
11830 process_stratum_target parameter.
11831 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11832
11833 2020-01-10 Pedro Alves <palves@redhat.com>
11834
11835 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11836 directly. Instead find the first thread in the thread list and
11837 use switch_to_thread.
11838
11839 2020-01-10 Pedro Alves <palves@redhat.com>
11840
11841 * remote.c (remote_target::remote_add_inferior): Don't bind a
11842 process to the current inferior if the current inferior is already
11843 bound to a process.
11844
11845 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11846 Pedro Alves <palves@redhat.com>
11847
11848 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11849 If no process is specified, return null_ptid instead of
11850 inferior_ptid.
11851 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11852 TARGET_WAITKIND_SIGNALLED with no pid.
11853
11854 2020-01-10 Pedro Alves <palves@redhat.com>
11855
11856 * remote.c (first_remote_resumed_thread): New.
11857 (remote_target::wait_as): Use it as default event_ptid instead of
11858 inferior_ptid.
11859
11860 2020-01-10 Pedro Alves <palves@redhat.com>
11861
11862 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11863
11864 2020-01-10 Pedro Alves <palves@redhat.com>
11865
11866 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11867 not -1.
11868
11869 2020-01-10 Pedro Alves <palves@redhat.com>
11870
11871 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11872 ptid to get_last_target_status.
11873 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11874 ptid to get_last_target_status.
11875 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11876 get_last_target_status.
11877 (info_program_command): Don't pass a target_waitstatus to
11878 get_last_target_status.
11879 * infrun.c (init_wait_for_inferior): Use
11880 nullify_last_target_wait_ptid.
11881 (get_last_target_status): Handle nullptr arguments.
11882 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11883 (print_stop_event): Don't pass a ptid to get_last_target_status.
11884 (normal_stop): Don't pass a ptid to get_last_target_status.
11885 * infrun.h (get_last_target_status, set_last_target_status): Move
11886 comments here and update.
11887 (nullify_last_target_wait_ptid): Declare.
11888 * linux-fork.c (fork_load_infrun_state): Remove local extern
11889 declaration of nullify_last_target_wait_ptid.
11890 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11891 to get_last_target_status.
11892
11893 2020-01-10 Pedro Alves <palves@redhat.com>
11894
11895 * gdbthread.h (scoped_restore_current_thread)
11896 <dont_restore, restore, m_dont_restore>: Declare.
11897 * thread.c (thread_alive): Add assertion. Return bool.
11898 (switch_to_thread_if_alive): New.
11899 (prune_threads): Switch inferior/thread.
11900 (print_thread_info_1): Switch thread before calling target methods.
11901 (scoped_restore_current_thread::restore): New, factored out from
11902 ...
11903 (scoped_restore_current_thread::~scoped_restore_current_thread):
11904 ... this.
11905 (scoped_restore_current_thread::scoped_restore_current_thread):
11906 Add assertion.
11907 (thread_apply_all_command, thread_select): Use
11908 switch_to_thread_if_alive.
11909 * infrun.c (proceed, restart_threads, handle_signal_stop)
11910 (switch_back_to_stepped_thread): Switch current thread before
11911 calling target methods.
11912
11913 2020-01-10 Pedro Alves <palves@redhat.com>
11914
11915 * inferior.c (switch_to_inferior_no_thread): New function,
11916 factored out from ...
11917 (inferior_command): ... here.
11918 * inferior.h (switch_to_inferior_no_thread): Declare.
11919 * mi/mi-main.c (run_one_inferior): Use
11920 switch_to_inferior_no_thread.
11921
11922 2020-01-10 Pedro Alves <palves@redhat.com>
11923
11924 * infcmd.c (kill_command): Remove dead code.
11925
11926 2020-01-10 Pedro Alves <palves@redhat.com>
11927
11928 * remote.c (remote_target::mourn_inferior): No longer check
11929 whether the target is running.
11930
11931 2020-01-10 Pedro Alves <palves@redhat.com>
11932
11933 * corelow.c (core_target::has_execution): Change parameter type to
11934 inferior pointer.
11935 * inferior.c (number_of_live_inferiors): Use
11936 inferior::has_execution instead of target_has_execution_1.
11937 * inferior.h (inferior::has_execution): New.
11938 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11939 inferior::has_execution instead of target_has_execution_1.
11940 * process-stratum-target.c
11941 (process_stratum_target::has_execution): Change parameter type to
11942 inferior pointer. Check the inferior's PID instead of
11943 inferior_ptid.
11944 * process-stratum-target.h
11945 (process_stratum_target::has_execution): Change parameter type to
11946 inferior pointer.
11947 * record-full.c (record_full_core_target::has_execution): Change
11948 parameter type to inferior pointer.
11949 * target.c (target_has_execution_1): Change parameter type to
11950 inferior pointer.
11951 (target_has_execution_current): Adjust.
11952 * target.h (target_ops::has_execution): Change parameter type to
11953 inferior pointer.
11954 (target_has_execution_1): Change parameter type to inferior
11955 pointer. Change return type to bool.
11956 * tracefile.h (tracefile_target::has_execution): Change parameter
11957 type to inferior pointer.
11958
11959 2020-01-10 Pedro Alves <palves@redhat.com>
11960
11961 * exceptions.c (print_flush): Remove current_top_target() check.
11962
11963 2020-01-10 Pedro Alves <palves@redhat.com>
11964
11965 * remote.c (show_remote_exec_file): Show the current inferior's
11966 exec-file instead of the command variable's value.
11967
11968 2020-01-10 Pedro Alves <palves@redhat.com>
11969
11970 * record-full.c (record_full_resume_ptid): New global.
11971 (record_full_target::resume): Set it.
11972 (record_full_wait_1): Use record_full_resume_ptid instead of
11973 inferior_ptid.
11974
11975 2020-01-10 Pedro Alves <palves@redhat.com>
11976
11977 * gdbthread.h (scoped_restore_current_thread)
11978 <dont_restore, restore, m_dont_restore>: Declare.
11979 * thread.c (thread_alive): Add assertion. Return bool.
11980 (switch_to_thread_if_alive): New.
11981 (prune_threads): Switch inferior/thread.
11982 (print_thread_info_1): Switch thread before calling target methods.
11983 (scoped_restore_current_thread::restore): New, factored out from
11984 ...
11985 (scoped_restore_current_thread::~scoped_restore_current_thread):
11986 ... this.
11987 (scoped_restore_current_thread::scoped_restore_current_thread):
11988 Add assertion.
11989 (thread_apply_all_command, thread_select): Use
11990 switch_to_thread_if_alive.
11991
11992 2020-01-10 George Barrett <bob@bob131.so>
11993
11994 * stap-probe.c (stap_modify_semaphore): Don't check for null
11995 semaphores.
11996 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11997 for null semaphores.
11998
11999 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12002 all source windows, and maintain horizontal scroll status while
12003 doing so.
12004
12005 2020-01-09 Tom Tromey <tom@tromey.com>
12006
12007 PR tui/18932:
12008 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12009 update_source_window, not print_source_lines.
12010
12011 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12012
12013 * tui/tui.c (tui_enable): Register tui hooks after calling
12014 tui_display_main.
12015
12016 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12017
12018 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12019
12020 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12021
12022 * thread.c (print_thread_info_1): Fix indentation.
12023
12024 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12025
12026 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12027 unique_xmalloc_ptr outside the if to always free the demangled name.
12028
12029 2020-01-08 Tom Tromey <tromey@adacore.com>
12030
12031 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12032 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12033 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12034 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12035 Remove.
12036 (section_offsets): New typedef.
12037 * symtab.c (fixup_section, get_msymbol_address): Update.
12038 * symmisc.c (dump_msymbols): Update.
12039 * symfile.h (relative_addr_info_to_section_offsets)
12040 (symfile_map_offsets_to_segments): Update.
12041 * symfile.c (build_section_addr_info_from_objfile)
12042 (init_objfile_sect_indices): Update.
12043 (struct place_section_arg): Change type of "offsets".
12044 (place_section): Update.
12045 (relative_addr_info_to_section_offsets): Change type of
12046 "section_offsets". Remove "num_sections" parameter.
12047 (default_symfile_offsets, syms_from_objfile_1)
12048 (set_objfile_default_section_offset): Update.
12049 (reread_symbols): No need to preserve section offsets by hand.
12050 (symfile_map_offsets_to_segments): Change type of "offsets".
12051 * stap-probe.c (relocate_address): Update.
12052 * stabsread.h (process_one_symbol): Update.
12053 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12054 (solib_target_relocate_section_addresses): Update.
12055 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12056 Update.
12057 * solib-frv.c (frv_relocate_main_executable): Update.
12058 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12059 * solib-aix.c (solib_aix_get_section_offsets): Change return
12060 type.
12061 (solib_aix_solib_create_inferior_hook): Update.
12062 * remote.c (remote_target::get_offsets): Update.
12063 * psymtab.c (find_pc_sect_psymtab): Update.
12064 * psympriv.h (struct partial_symbol) <address, text_low,
12065 text_high>: Update.
12066 * objfiles.h (obj_section_offset): Update.
12067 (struct objfile) <section_offsets>: Change type.
12068 <num_sections>: Remove.
12069 (objfile_relocate): Update.
12070 * objfiles.c (entry_point_address_query): Update
12071 (relocate_one_symbol): Change type of "section_offsets".
12072 (objfile_relocate1, objfile_relocate1): Change type of
12073 "new_offsets".
12074 (objfile_rebase1): Update.
12075 * mipsread.c (mipscoff_symfile_read): Update.
12076 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12077 parameter.
12078 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12079 (parse_external, psymtab_to_symtab_1): Update.
12080 * machoread.c (macho_symfile_offsets): Update.
12081 * ia64-tdep.c (ia64_find_unwind_table): Update.
12082 * hppa-tdep.c (read_unwind_info): Update.
12083 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12084 * dwarf2read.c (create_addrmap_from_index)
12085 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12086 (process_psymtab_comp_unit_reader, add_partial_symbol)
12087 (add_partial_subprogram, process_full_comp_unit)
12088 (read_file_scope, read_func_scope, read_lexical_block_scope)
12089 (read_call_site_scope, dwarf2_rnglists_process)
12090 (dwarf2_ranges_process, dwarf2_ranges_read)
12091 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12092 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12093 Update.
12094 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12095 Update.
12096 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12097 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12098 (process_one_symbol): Change type of "section_offsets".
12099 * ctfread.c (get_objfile_text_range): Update.
12100 * coffread.c (coff_symtab_read, enter_linenos)
12101 (process_coff_symbol): Update.
12102 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12103 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12104
12105 2020-01-08 Tom Tromey <tromey@adacore.com>
12106
12107 * dwarf2read.c (parse_macro_definition): Use std::string.
12108 (parse_macro_definition): Likewise.
12109
12110 2020-01-08 Tom Tromey <tromey@adacore.com>
12111
12112 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12113 (ATTR_ALLOC_CHUNK): Remove.
12114
12115 2020-01-08 Tom Tromey <tromey@adacore.com>
12116
12117 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12118
12119 2020-01-08 Tom Tromey <tromey@adacore.com>
12120
12121 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12122 (dwarf2_compute_name, open_dwo_file): Likewise.
12123 (process_enumeration_scope): Use std::vector.
12124 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12125 (partial_die_info::fixup, dwarf2_start_subfile)
12126 (guess_full_die_structure_name, dwarf2_name): Likewise.
12127 (determine_prefix): Update.
12128 (guess_full_die_structure_name): Make return type const.
12129 (partial_die_full_name): Return unique_xmalloc_ptr.
12130 (DW_FIELD_ALLOC_CHUNK): Remove.
12131
12132 2020-01-07 Tom Tromey <tromey@adacore.com>
12133
12134 PR build/24937:
12135 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12136
12137 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12138
12139 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12140
12141 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12142
12143 * stack.c (print_frame_info): Move disassemble_next_line code
12144 inside source_print block.
12145
12146 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12147
12148 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12149 gdb/signals.h, as we are now using native signal symbols.
12150
12151 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12152
12153 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12154 overflow by an early check of content vs threshold.
12155 * tui/tui-source.c (tui_source_window::line_is_displayed):
12156 Likewise.
12157
12158 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12159
12160 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12161
12162 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12163
12164 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12165 export table if no section contains it's RVA.
12166
12167 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12168
12169 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12170
12171 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12172
12173 * source.c (print_source_lines_base): Set last_line_listed.
12174
12175 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12176
12177 * tui/tui-disasm.c: Remove trailing spaces.
12178
12179 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12180 Pedro Alves <palves@redhat.com>
12181
12182 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12183 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12184 (windows_gdb_signal_to_target): New function, uses the above
12185 enumeration to convert GDB internal signal codes to equivalent
12186 Windows codes.
12187 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12188 * windows-nat.c: Include "gdb_wait.h".
12189 (get_windows_debug_event): Extract the fatal exception from the
12190 exit status and convert to the equivalent Posix signal number.
12191 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12192 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12193 * gdbsupport/gdb_wait.c: New file, implements
12194 windows_status_to_termsig.
12195 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12196 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12197
12198 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12199
12200 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12201 show_layout.
12202
12203 2020-01-05 Luis Machado <luis.machado@linaro.org>
12204
12205 * aarch64-linux-nat.c
12206 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12207 and bfd_mach_aarch64.
12208
12209 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12210
12211 * ui-file.c (stdio_file::can_emit_style_escape)
12212 (tee_file::can_emit_style_escape): Ensure style is used also on
12213 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12214 to gdb_stdout.
12215 * main.c (set_gdb_data_directory): Use file style to output the
12216 warning that the given pathname is not a directory.
12217 * top.c (show_history_filename, gdb_safe_append_history)
12218 (show_gdb_datadir): Use file style.
12219
12220 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12221
12222 * solib-target.c (struct lm_info_target):
12223 Change offsets to be a unique_xmalloc_ptr.
12224 (solib_target_relocate_section_addresses): Update.
12225
12226 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12227
12228 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12229
12230 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12231
12232 * MAINTAINERS (Write After Approval): Add myself.
12233
12234 2020-01-02 Luis Machado <luis.machado@linaro.org>
12235
12236 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12237 Cell BE architecture.
12238 * target.h (struct target_ops) <thread_architecture>: Likewise.
12239
12240 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12241
12242 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12243
12244 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12245
12246 * MAINTAINERS (Write After Approval): Add myself.
12247
12248 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12249
12250 * gdbarch.sh: Update copyright year range of generated files.
12251
12252 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12253
12254 Update copyright year range in all GDB files.
12255
12256 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12257
12258 * copyright.py: Convert to Python 3.
12259
12260 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12261
12262 * copyright.py: Adapt after move of gnulib directory from gdb
12263 directory to toplevel directory.
12264
12265 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12266
12267 * copyright.py (main): Exit if run from the wrong directory.
12268
12269 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12270
12271 * top.c (print_gdb_version): Change copyright year to 2020.
12272
12273 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12274
12275 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12276
12277 For older changes see ChangeLog-2019.
12278 \f
12279 Local Variables:
12280 mode: change-log
12281 left-margin: 8
12282 fill-column: 74
12283 version-control: never
12284 coding: utf-8
12285 End: