gdb: assert that we don't try to get a frame's id while it is computed
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2
3 * frame.c (enum class frame_id_status): New.
4 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5 (fprintf_frame): Update.
6 (compute_frame_id): Set frame id status to "computing" on entry.
7 Set it back to "not_computed" on failure and to "computed" on
8 success.
9 (get_frame_id): Assert the frame id is not being computed.
10 (create_sentinel_frame): Use frame_id_status::COMPUTED.
11 (create_new_frame): Likewise.
12 (frame_cleanup_after_sniffer): Update assert.
13
14 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
15
16 * regcache.c (pid_ptid_regcache_map): New type.
17 (target_ptid_regcache_map): Remove.
18 (target_pid_ptid_regcache_map): New type.
19 (regcaches): Change type to target_pid_ptid_regcache_map.
20 (get_thread_arch_aspace_regcache): Update.
21 (regcache_thread_ptid_changed): Update, handle pid-like ptid
22 case.
23 (regcaches_size): Update.
24 (regcache_count): Update.
25 (registers_changed_ptid_target_pid_test): New.
26 (_initialize_regcache): Register new test.
27
28 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * regcache.c (regcache_count): New.
31 (struct regcache_test_data): New.
32 (regcache_test_data_up): New.
33 (populate_regcaches_for_test): New.
34 (regcaches_test): Remove.
35 (get_thread_arch_aspace_regcache_test): New.
36 (registers_changed_ptid_all_test): New.
37 (registers_changed_ptid_target_test): New.
38 (registers_changed_ptid_target_ptid_test): New.
39 (regcache_thread_ptid_changed): Remove regcache_count lambda.
40 (_initialize_regcache): Register new tests.
41
42 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
45 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
46 gdbarch and aspace parameter. Use current inferior's aspace.
47 Validate regcache's arch value.
48 (regcaches_test): Update.
49
50 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * regcache.c (regcaches_test): Call registers_changed.
53
54 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55
56 * infrun.c (process_event_stop_test): Fix typo "breapoint".
57
58 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
59
60 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
61 to find the end of prologue for flang compiled binaries.
62 * arm-tdep.c (arm_skip_prologue): Likewise.
63 * i386-tdep.c (i386_skip_prologue): Likewise.
64 * producer.c (producer_is_llvm): New function.
65 (producer_parsing_tests): Added new tests for clang/flang.
66 * producer.h (producer_is_llvm): New declaration.
67
68 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
69
70 * linux-nat.c (linux_nat_debug_printf): New function.
71 (linux_nat_debug_printf_1): New macro. Use throughout the file.
72
73 2020-08-18 Aaron Merey <amerey@redhat.com>
74
75 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
76 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
77 (CLIBS): Add DEBUGINFOD_LIBS.
78
79 2020-08-17 Sergei Trofimovich <siarheit@google.com>
80
81 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
82 'gdbarch_num_regs'.
83
84 2020-08-17 Tom Tromey <tromey@adacore.com>
85
86 * ada-varobj.c (ada_varobj_decode_var): Handle case where
87 ada_get_decoded_value returns NULL.
88
89 2020-08-17 Tom Tromey <tromey@adacore.com>
90
91 * python/py-inferior.c (infpy_search_memory): Use
92 gdb_py_object_from_ulongest.
93 * python/py-infevents.c (create_inferior_call_event_object)
94 (create_memory_changed_event_object): Use
95 gdb_py_object_from_ulongest.
96 * python/py-linetable.c (ltpy_entry_get_pc): Use
97 gdb_py_object_from_ulongest.
98
99 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * loc.c (class symbol_needs_eval_context): Fix indentation.
102
103 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
106 bool.
107
108 2020-08-17 Tom de Vries <tdevries@suse.de>
109
110 PR gdb/26393
111 * gdbtypes.c (dump_dynamic_prop): New function.
112 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
113
114 2020-08-15 Tom de Vries <tdevries@suse.de>
115
116 PR backtrace/26390
117 * stack.c (print_frame_args): Temporarily set the selected
118 frame to FRAME while printing the frame's arguments.
119
120 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
121
122 PR breakpoints/26385
123 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
124 Always clear watchpoint with PTRACE_SET_DEBUGREG.
125
126 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
127
128 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
129 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
130 and >= to check return value instead of == -1 and != -1.
131
132 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * utils.h (class gdb_argv) <as_array_view>: New method.
135 * utils.c (gdb_argv_as_array_view_test): New.
136 (_initialize_utils): Register selftest.
137 * maint.c (maintenance_selftest): Use the new method.
138
139 2020-08-13 Kamil Rytarowski <n54@gmx.com>
140
141 * target.h (supports_dumpcore, dumpcore): New
142 function declarations.
143 * target.c (supports_dumpcore, dumpcore): New
144 functions.
145 * target-delegates.c: Rebuild.
146 * gcore.c (gcore_command): Use target_supports_dumpcore ()
147 and target_dumpcore ().
148
149 2020-08-13 Aaron Merey <amerey@redhat.com>
150
151 * debuginfod-support.c: Replace global variables with user_data.
152
153 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * maint.c (maintenance_selftest): Split args and pass array_view
156 to run_tests.
157
158 2020-08-12 Luis Machado <luis.machado@linaro.org>
159
160 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
161 type's length.
162 Use %s and pulongest to print the length.
163
164 2020-08-12 Pedro Alves <palves@redhat.com>
165
166 * NEWS: Move "Multi-target debugging support" item to the
167 "Changes since GDB 9" section.
168
169 2020-08-12 Pedro Alves <palves@redhat.com>
170
171 PR gdb/26336
172 * progspace.c (program_space::remove_objfile): Invalidate the
173 frame cache.
174
175 2020-08-11 Tom de Vries <tdevries@suse.de>
176
177 * MAINTAINERS: Mark ms1 as deleted.
178
179 2020-08-10 Luis Machado <luis.machado@linaro.org>
180
181 PR gdb/26310
182
183 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
184 act accordingly.
185 (aarch64_analyze_prologue_test): Add more unit tests to exercise
186 movz/str/stur/stp skipping behavior.
187
188 2020-08-10 Luis Machado <luis.machado@linaro.org>
189
190 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
191 struct user_sve_header instead of struct sve_context.
192
193 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * read.h (dwarf2_fetch_die_loc_sect_off,
196 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
197 `void *` parameter with function_view.
198 * read.c (dwarf2_fetch_die_loc_sect_off,
199 dwarf2_fetch_die_loc_cu_off): Likewise.
200 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
201 (per_cu_dwarf_call): Adjust.
202 (get_frame_address_in_block_wrapper): Remove.
203 (indirect_synthetic_pointer): Adjust.
204 (get_ax_pc): Remove.
205 (dwarf2_compile_expr_to_ax): Adjust.
206
207 2020-08-08 Tom de Vries <tdevries@suse.de>
208
209 PR build/26344
210 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
211 constructor.
212 * regcache.c (get_thread_arch_aspace_regcache): Same.
213
214 2020-08-07 Tom Tromey <tromey@adacore.com>
215
216 * ravenscar-thread.c
217 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
218 New method.
219 (ravenscar_thread_target::wait): Check
220 runtime_initialized.
221 (ravenscar_thread_target::prepare_to_store)
222 (ravenscar_thread_target::stopped_by_sw_breakpoint)
223 (ravenscar_thread_target::stopped_by_hw_breakpoint)
224 (ravenscar_thread_target::stopped_by_watchpoint)
225 (ravenscar_thread_target::stopped_data_address)
226 (ravenscar_thread_target::core_of_thread): Use
227 scoped_restore_current_thread and
228 set_base_thread_from_ravenscar_task.
229
230 2020-08-07 Tom Tromey <tromey@adacore.com>
231
232 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
233
234 2020-08-07 Tom Tromey <tromey@adacore.com>
235
236 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
237 update_inferior_ptid before update_thread_list.
238 (temporarily_change_regcache_ptid): New class.
239 (ravenscar_thread_target::fetch_registers)
240 (ravenscar_thread_target::store_registers)
241 (ravenscar_thread_target::prepare_to_store): Use base thread when
242 forwarding operation.
243
244 2020-08-07 Tom Tromey <tromey@adacore.com>
245
246 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
247 "is_pid" case.
248
249 2020-08-07 Tom Tromey <tromey@adacore.com>
250
251 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
252 New methods.
253 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
254 first.
255 (ravenscar_thread_target::add_thread): Rename from
256 ravenscar_add_thread.
257 (ravenscar_thread_target::update_thread_list): Use a lambda.
258 (ravenscar_thread_target::xfer_partial): New method.
259
260 2020-08-07 Tom Tromey <tromey@adacore.com>
261
262 * ada-lang.h (ada_task_list_iterator_ftype): Now a
263 gdb::function_view.
264 (iterate_over_live_ada_tasks): Change type of argument.
265 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
266 of argument.
267
268 2020-08-07 Tom Tromey <tromey@adacore.com>
269
270 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
271 Remove.
272 (ravenscar_thread_target::extra_thread_info): Remove.
273 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
274 defer to target beneath for non-Ravenscar threads.
275
276 2020-08-07 Tom Tromey <tromey@adacore.com>
277
278 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
279 get_base_thread_from_ravenscar_task>: Now methods.
280 <m_cpu_map>: New member.
281 (ravenscar_thread_target::get_thread_base_cpu): Rename from
282 ravenscar_get_thread_base_cpu. Check m_cpu_map.
283 (ravenscar_thread_target::task_is_currently_active): Update.
284 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
285 Now a method.
286 (ravenscar_thread_target::add_active_thread): Put initial thread
287 into the m_cpu_map.
288
289 2020-08-07 Tom Tromey <tromey@adacore.com>
290
291 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
292 event_ptid.
293
294 2020-08-07 Tom Tromey <tromey@adacore.com>
295
296 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
297 runtime_initialized.
298
299 2020-08-07 Tom Tromey <tromey@adacore.com>
300
301 * ravenscar-thread.c (ravenscar_thread_target): Don't call
302 add_active_thread.
303 (ravenscar_thread_target::add_active_thread): Now public.
304 (ravenscar_inferior_created): Call add_active_thread after pushing
305 the target.
306
307 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * regcache.c (ptid_regcache_map): New type.
310 (target_ptid_regcache_map): New type.
311 (regcaches): Change type to target_ptid_regcache_map.
312 (get_thread_arch_aspace_regcache): Update to regcaches' new
313 type.
314 (regcache_thread_ptid_changed): Likewise.
315 (registers_changed_ptid): Likewise.
316 (regcaches_size): Likewise.
317 (regcaches_test): Update.
318 (regcache_thread_ptid_changed): Update.
319 * regcache.h (regcache_up): New type.
320 * gdbsupport/ptid.h (hash_ptid): New struct.
321
322 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
323
324 * observable.h (thread_ptid_changed): Add parameter
325 `process_stratum_target *`.
326 * infrun.c (infrun_thread_ptid_changed): Add parameter
327 `process_stratum_target *` and use it.
328 (selftests): New namespace.
329 (infrun_thread_ptid_changed): New function.
330 (_initialize_infrun): Register selftest.
331 * regcache.c (regcache_thread_ptid_changed): Add parameter
332 `process_stratum_target *` and use it.
333 (regcache_thread_ptid_changed): New function.
334 (_initialize_regcache): Register selftest.
335 * thread.c (thread_change_ptid): Pass target to
336 thread_ptid_changed observable.
337
338 2020-08-06 Caroline Tice <cmtice@google.com>
339
340 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
341 (struct dwp_sections): Update field comments. Add loclists and
342 rnglists fields.
343 (struct virtual_v2_dwo_sections): Rename struct to
344 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
345 size & offset fields for loclists and rnglists.
346 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
347 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
348 skipping dummy type units.
349 (create_dwp_hash_table): Update the large comment above the function to
350 discuss Version 5 DWP files as well, with references. Update all the
351 version checks in the function to check for version 5 as well. Add new
352 section at the end to create dwp hash table for version 5.
353 (create_dwp_v2_section): Rename function to
354 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
355 Add V5 to error message text.
356 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
357 into calls to create_dwp_v2_or_v5_section.
358 (create_dwo_unit_in_dwp_v5): New function.
359 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
360 check for version2; add else clause to handle version 5.
361 (open_and_init_dwo_file): Add code to check dwarf version & only call
362 create_debug_types_hash_table (with sections.types) if version is not 5;
363 else call create_debug_type_hash_table, with sections.info.
364 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
365 version 5.
366 (dwarf2_locate_v5_dwp_sections): New function.
367 (open_and_init_dwp_file): Add else-if clause for version 5 to call
368 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
369
370 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
371
372 * regcache.h (class regcache): Remove friend
373 registers_changed_ptid.
374 <regcache_thread_ptid_changed>: Remove.
375 <regcaches>: Remove.
376 * regcache.c (regcache::regcaches): Rename to...
377 (regcaches): ... this. Make static.
378 (get_thread_arch_aspace_regcache): Update.
379 (regcache::regcache_thread_ptid_changed): Rename to...
380 (regcache_thread_ptid_changed): ... this. Update.
381 (class regcache_access): Remove.
382 (regcaches_test): Update.
383 (_initialize_regcache): Update.
384 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
385 <forward_list>.
386
387 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
388
389 * regcache.h (class regcache) <current_regcache>: Rename to...
390 <regcaches>: ... this. Move doc here.
391 * regcache.c (regcache::current_regcache) Rename to...
392 (regcache::regcaches): ... this. Move doc to header.
393 (get_thread_arch_aspace_regcache): Update.
394 (regcache::regcache_thread_ptid_changed): Update.
395 (registers_changed_ptid): Update.
396 (class regcache_access) <current_regcache_size>: Rename to...
397 <regcaches_size>: ... this.
398 (current_regcache_test): Rename to...
399 (regcaches_test): ... this.
400 (_initialize_regcache): Update.
401
402 2020-08-06 Victor Collod <vcollod@nvidia.com>
403
404 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
405
406 2020-08-05 Kevin Buettner <kevinb@redhat.com>
407
408 * corelow.c (core_target::build_file_mappings): Don't output
409 null pathname in warning.
410
411 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
414 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
415 gdb.dwarf2/dw2-single-line-discriminators.exp,
416 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
417
418 2020-08-05 Tom Tromey <tromey@adacore.com>
419
420 PR rust/26197:
421 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
422 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
423 Fix off-by-one and type size errors in ordinary case.
424
425 2020-08-05 Tom de Vries <tdevries@suse.de>
426
427 * gdbtypes.c (type_not_allocated, type_not_associated): Use
428 "prop->const_val () == 0" instead of "prop->const_val () != 0".
429
430 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
431
432 * frame.h (frame_id_p): Return bool.
433 (frame_id_artificial_p): Return bool.
434 (frame_id_eq): Return bool.
435 (has_stack_frames): Return bool.
436 (get_selected_frame): Fix typo in comment.
437 (get_frame_pc_if_available): Return bool.
438 (get_frame_address_in_block_if_available): Return bool.
439 (get_frame_func_if_available): Return bool.
440 (read_frame_register_unsigned): Return bool.
441 (get_frame_register_bytes): Return bool.
442 (safe_frame_unwind_memory): Return bool.
443 (deprecated_frame_register_read): Return bool.
444 (frame_unwinder_is): Return bool.
445 * frame.c (struct frame_info) <prev_arch::p>: Change type to
446 bool.
447 <this_id::p>: Likewise.
448 <prev_p>: Likewise.
449 (frame_stash_add): Return bool.
450 (get_frame_id): Use bool.
451 (frame_id_build_special) Use bool.
452 (frame_id_build_unavailable_stack): Use bool.
453 (frame_id_build): Use bool.
454 (frame_id_p): Return bool, use true/false instead of 1/0.
455 (frame_id_artificial_p): Likewise.
456 (frame_id_eq): Likewise.
457 (frame_id_inner): Likewise.
458 (get_frame_func_if_available): Likewise.
459 (read_frame_register_unsigned): Likewise.
460 (deprecated_frame_register_read): Likewise.
461 (get_frame_register_bytes): Likewise.
462 (has_stack_frames): Likewise.
463 (inside_main_func): Likewise.
464 (inside_entry_func): Likewise.
465 (get_frame_pc_if_available): Likewise.
466 (get_frame_address_in_block_if_available): Likewise.
467 (frame_unwinder_is): Likewise.
468 (safe_frame_unwind_memory): Likewise.
469 (frame_unwind_arch): Likewise.
470
471 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
472
473 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
474 type to cached_copy_status.
475 (fprintf_frame): Adjust.
476 (get_frame_func_if_available): Adjust.
477 (frame_cleanup_after_sniffer): Adjust.
478
479 2020-08-04 Mark Wielaard <mark@klomp.org>
480
481 * MAINTAINERS (Write After Approval): Update email address.
482
483 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
486 dynamic_prop::const_val.
487
488 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
491 dynamic_prop::kind.
492
493 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
494
495 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
496
497 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
498
499 * configure.tgt: Set gdb_sim for bpf-*-* targets.
500
501 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
502 Jose E. Marchesi <jose.marchesi@oracle.com>
503
504 * configure.tgt: Add entry for bpf-*-*.
505 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
506 (ALLDEPFILES): Add bpf-tdep.c.
507 * bpf-tdep.c: New file.
508 * MAINTAINERS: Add bpf target and maintainer.
509 * NEWS: Mention the support for the new target.
510
511 2020-08-04 Tom de Vries <tdevries@suse.de>
512
513 PR symtab/23270
514 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
515 Error.
516
517 2020-08-03 John Baldwin <jhb@FreeBSD.org>
518
519 * syscalls/freebsd.xml: Regenerate.
520
521 2020-08-03 John Baldwin <jhb@FreeBSD.org>
522
523 * syscalls/update-freebsd.sh: Fix usage and year range.
524
525 2020-08-03 Tom de Vries <tdevries@suse.de>
526
527 PR symtab/26333
528 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
529 DW_LNE_lo_user/DW_LNE_hi_user range.
530
531 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
532
533 PR ada/26318
534 * ada-lang.c (ada_modulus): Return 0 if property is not of const
535 kind.
536
537 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
538
539 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
540
541 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542
543 * breakpoint.c (set_breakpoint_condition): Update the condition
544 expressions after checking that the input condition string parses
545 successfully and does not contain junk at the end.
546
547 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
549 * breakpoint.c (set_breakpoint_condition): Update the
550 condition string after parsing the new condition successfully.
551
552 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553
554 * proc-api.c (_STRUCTURED_PROC): Don't define.
555 * proc-events.c: Likewise.
556 * proc-flags.c: Likewise.
557 * proc-why.c: Likewise.
558 * procfs.c: Likewise.
559
560 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
561 * configure, config.in: Regenerate.
562
563 2020-07-30 Tom de Vries <tdevries@suse.de>
564
565 PR build/26320
566 * ui-style.h (struct ui_file_style::color): Wrap m_value and
567 m_red/m_green/m_blue in a union.
568
569 2020-07-29 Tom de Vries <tdevries@suse.de>
570
571 PR tdep/26280
572 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
573
574 2020-07-28 Tom Tromey <tromey@adacore.com>
575
576 PR symtab/26270:
577 * symtab.h (find_pc_partial_function_sym): Declare.
578 * cli/cli-cmds.c (disassemble_command): Use
579 find_pc_partial_function_sym. Check asm_demangle.
580 * blockframe.c (cache_pc_function_sym): New global.
581 (cache_pc_function_name): Remove.
582 (clear_pc_function_cache): Update.
583 (find_pc_partial_function_sym): New function, from
584 find_pc_partial_function.
585 (find_pc_partial_function): Rewrite using
586 find_pc_partial_function_sym.
587
588 2020-07-28 Tom Tromey <tromey@adacore.com>
589
590 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
591 help. Add usage.
592
593 2020-07-28 Tom Tromey <tromey@adacore.com>
594
595 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
596 <DW_OP_GNU_variable_value>: Cast to address type.
597
598 2020-07-28 Kamil Rytarowski <n54@gmx.com>
599
600 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
601 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
602 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
603 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
604 (nbsd_get_siginfo_type): New.
605 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
606 (_initialize_nbsd_tdep): New.
607
608 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR binutils/26301
611 * configure: Regenerated.
612
613 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
614
615 PR binutils/26301
616 * configure: Regenerated.
617
618 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * python/py-frame.c: Remove 'user-regs.h' include.
621 (frapy_read_register): Rewrite to make use of
622 gdbpy_parse_register_id.
623 * python/py-registers.c (gdbpy_parse_register_id): New function,
624 moved here from python/py-unwind.c. Updated the return type, and
625 also accepts register descriptor objects.
626 * python/py-unwind.c: Remove 'user-regs.h' include.
627 (pyuw_parse_register_id): Moved to python/py-registers.c.
628 (unwind_infopy_add_saved_register): Update to use
629 gdbpy_parse_register_id.
630 (pending_framepy_read_register): Likewise.
631 * python/python-internal.h (gdbpy_parse_register_id): Declare.
632
633 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * python/py-registers.c: Add 'user-regs.h' include.
636 (register_descriptor_iter_find): New function.
637 (register_descriptor_iterator_object_methods): New static global
638 methods array.
639 (register_descriptor_iterator_object_type): Add pointer to methods
640 array.
641
642 2020-07-27 John Baldwin <jhb@FreeBSD.org>
643
644 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
645 for all architectures on FreeBSD 11.3 and later.
646
647 2020-07-27 Tom Tromey <tromey@adacore.com>
648
649 * gcore.h (load_corefile): Don't declare.
650
651 2020-07-27 Tom de Vries <tdevries@suse.de>
652
653 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
654 * config.in: Regenerate.
655 * configure: Regenerate.
656
657 2020-07-26 Eli Zaretskii <eliz@gnu.org>
658
659 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
660 ws2tcpip.h. When checking whether socklen_t type is defined, use
661 ws2tcpip.h if it is available and sys/socket.h isn't.
662 * configure: Regenerate.
663 * config.in: Regenerate.
664
665 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 PR fortran/23051
668 PR fortran/26139
669 * valops.c (value_ind): Pass address to
670 readjust_indirect_value_type.
671 * value.c (readjust_indirect_value_type): Make parameter
672 non-const, and add extra address parameter. Resolve original type
673 before using it.
674 * value.h (readjust_indirect_value_type): Update function
675 signature and comment.
676
677 2020-07-25 Tom de Vries <tdevries@suse.de>
678
679 PR symtab/26243
680 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
681 entries.
682
683 2020-07-24 Aaron Merey <amerey@redhat.com>
684
685 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
686 * configure: Rebuild.
687
688 2020-07-23 Kevin Buettner <kevinb@redhat.com>
689
690 PR corefiles/26294
691 * corelow.c (_initialize_corelow): Add period to help text
692 for "maintenance print core-file-backed-mappings".
693
694 2020-07-23 Pedro Alves <pedro@palves.net>
695
696 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
697 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
698 meanwhile.
699 * frame.c (frame_cache_generation, get_frame_cache_generation):
700 New.
701 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
702 (get_prev_frame_if_no_cycle): On exception, don't touch
703 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
704 * frame.h (get_frame_cache_generation): Declare.
705
706 2020-07-23 Tom de Vries <tdevries@suse.de>
707
708 PR tui/26282
709 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
710 New default constructor.
711
712 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
715 exclude non-statement entries.
716
717 2020-07-22 Kevin Buettner <kevinb@redhat.com>
718
719 * NEWS (New commands): Mention new command
720 "maintenance print core-file-backed-mappings".
721
722 2020-07-22 Kevin Buettner <kevinb@redhat.com>
723
724 * corelow.c (gdbcmd.h): Include.
725 (core_target::info_proc_mappings): New method.
726 (get_current_core_target): New function.
727 (maintenance_print_core_file_backed_mappings): New function.
728 (_initialize_corelow): Add core-file-backed-mappings to
729 "maint print" commands.
730
731 2020-07-22 Kevin Buettner <kevinb@redhat.com>
732
733 * linux-tdep.c (dump_note_entry_p): New function.
734 (linux_dump_mapping_p_ftype): New typedef.
735 (linux_find_memory_regions_full): Add new parameter,
736 should_dump_mapping_p.
737 (linux_find_memory_regions): Adjust call to
738 linux_find_memory_regions_full.
739 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
740 call to linux_find_memory_regions_full.
741
742 2020-07-22 Kevin Buettner <kevinb@redhat.com>
743
744 * corelow.c (solist.h, unordered_map): Include.
745 (class core_target): Add field m_core_file_mappings and
746 method build_file_mappings.
747 (core_target::core_target): Call build_file_mappings.
748 (core_target::~core_target): Free memory associated with
749 m_core_file_mappings.
750 (core_target::build_file_mappings): New method.
751 (core_target::xfer_partial): Use m_core_file_mappings
752 for memory transfers.
753 * linux-tdep.c (linux_read_core_file_mappings): New
754 function.
755 (linux_core_info_proc_mappings): Rewrite to use
756 linux_read_core_file_mappings.
757 (linux_init_abi): Register linux_read_core_file_mappings.
758
759 2020-07-22 Kevin Buettner <kevinb@redhat.com>
760
761 * arch-utils.c (default_read_core_file_mappings): New function.
762 * arch-utils.c (default_read_core_file_mappings): Declare.
763 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
764 * gdbarch.h, gdbarch.c: Regenerate.
765
766 2020-07-22 Kevin Buettner <kevinb@redhat.com>
767
768 PR corefiles/25631
769 * corelow.c (core_target:xfer_partial): Revise
770 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
771 case after first checking the stratum beneath the core
772 target.
773 (has_all_memory): Return true.
774 * target.c (raw_memory_xfer_partial): Revise comment
775 regarding use of has_all_memory.
776
777 2020-07-22 Kevin Buettner <kevinb@redhat.com>
778
779 * exec.h (section_table_xfer_memory): Revise declaration,
780 replacing section name parameter with an optional callback
781 predicate.
782 * exec.c (section_table_xfer_memory): Likewise.
783 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
784 of section_table_xfer_memory.
785
786 2020-07-22 Tom Tromey <tromey@adacore.com>
787
788 * mi/mi-cmd-stack.c (list_args_or_locals): Use
789 lookup_symbol_search_name.
790
791 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * python/py-registers.c (gdbpy_register_object_data_init): Remove
794 redundant local variable.
795 (gdbpy_get_register_descriptor): Extract descriptor vector as a
796 reference, not pointer, update code accordingly.
797
798 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
799 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
800
801 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
802 * jit.c (jit_breakpoint_re_set_internal): Use the
803 `skip_jit_symbol_lookup` field.
804
805 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
806 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 * jit.c (jit_read_descriptor): Define the descriptor address once,
809 use twice.
810 (jit_breakpoint_deleted): Move the declaration of the loop variable
811 `iter` into the loop header.
812 (jit_breakpoint_re_set_internal): Move the declaration of the local
813 variable `objf_data` to the first point of definition.
814 (jit_event_handler): Move the declaration of local variables
815 `code_entry`, `entry_addr`, and `objf` to their first point of use.
816 Rename `objf` to `jited`.
817
818 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
821 Remove.
822 * jit.c (get_jiter_objfile_data): Update.
823
824 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
825 Simon Marchi <simon.marchi@polymtl.ca>
826
827 * jit.c (struct jit_program_space_data): Remove.
828 (jit_program_space_key): Remove.
829 (jiter_objfile_data::~jiter_objfile_data): Remove program space
830 stuff.
831 (get_jit_program_space_data): Remove.
832 (jit_breakpoint_deleted): Iterate on all of the program space's
833 objfiles.
834 (jit_inferior_init): Likewise.
835 (jit_breakpoint_re_set_internal): Likewise. Also change return
836 type to void.
837 (jit_breakpoint_re_set): Pass current_program_space to
838 jit_breakpoint_re_set_internal.
839
840 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * jit.h (struct jiter_objfile_data) <cached_code_address,
843 jit_breakpoint>: Move to here from ...
844 * jit.c (jit_program_space_data): ... here.
845 (jiter_objfile_data::~jiter_objfile_data): Update.
846 (jit_breakpoint_deleted): Update.
847 (jit_breakpoint_re_set_internal): Update.
848
849 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
850
851 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
852 checks.
853 (jit_read_descriptor): Remove NULL check.
854 (jit_event_handler): Add an assertion.
855
856 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * jit.h (struct jit_objfile_data): Split into...
859 (struct jiter_objfile_data): ... this ...
860 (struct jited_objfile_data): ... and this.
861 * objfiles.h (struct objfile) <jit_data>: Remove.
862 <jiter_data, jited_data>: New fields.
863 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
864 (jiter_objfile_data::~jiter_objfile_data): ... this.
865 (get_jit_objfile_data): Rename to ...
866 (get_jiter_objfile_data): ... this.
867 (add_objfile_entry): Update.
868 (jit_read_descriptor): Use get_jiter_objfile_data.
869 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
870 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
871 (jit_inferior_exit_hook): Use objfile's jited_data field.
872
873 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * jit.h: Forward-declare `struct minimal_symbol`.
876 (struct jit_objfile_data): Migrate to here from jit.c; also add a
877 constructor, destructor, and an objfile* field.
878 * jit.c (jit_objfile_data): Remove.
879 (struct jit_objfile_data): Migrate from here to jit.h.
880 (jit_objfile_data::~jit_objfile_data): New destructor
881 implementation with code moved from free_objfile_data.
882 (free_objfile_data): Delete.
883 (get_jit_objfile_data): Update to use the jit_data field of objfile.
884 (jit_find_objf_with_entry_addr): Ditto.
885 (jit_inferior_exit_hook): Ditto.
886 (_initialize_jit): Remove the call to
887 register_objfile_data_with_cleanup.
888 * objfiles.h (struct objfile) <jit_data>: New field.
889
890 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891
892 * jit.h: Forward-declare `struct objfile`.
893 (jit_event_handler): Add a second parameter, the JITer objfile.
894 * jit.c (jit_read_descriptor): Change the signature to take the
895 JITer objfile as an argument instead of the jit_program_space_data.
896 (jit_inferior_init): Update the call to jit_read_descriptor.
897 (jit_event_handler): Use the new JITer objfile argument when calling
898 jit_read_descriptor.
899 * breakpoint.c (handle_jit_event): Update the call to
900 jit_event_handler to pass the JITer objfile.
901
902 2020-07-21 John Baldwin <jhb@FreeBSD.org>
903
904 * gdbarch.c: Regenerate.
905 * gdbarch.h: Regenerate.
906 * gdbarch.sh (handle_segmentation_fault): Remove method.
907 * infrun.c (handle_segmentation_fault): Remove.
908 (print_signal_received_reason): Remove call to
909 handle_segmentation_fault.
910
911 2020-07-21 John Baldwin <jhb@FreeBSD.org>
912
913 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
914 Rename to sparc64_linux_report_signal_info and add siggnal
915 argument.
916 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
917 instead of sparc64_linux_handle_segmentation_fault.
918
919 2020-07-21 John Baldwin <jhb@FreeBSD.org>
920
921 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
922 i386_linux_report_signal_info instead of
923 i386_linux_handle_segmentation_fault.
924 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
925 to i386_linux_report_signal_info and add siggnal argument.
926 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
927 of i386_linux_handle_segmentation_fault.
928 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
929 to i386_linux_report_signal_info and add siggnal argument.
930
931 2020-07-21 John Baldwin <jhb@FreeBSD.org>
932
933 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
934 hook if present.
935
936 2020-07-21 John Baldwin <jhb@FreeBSD.org>
937
938 * gdbarch.c: Regenerate.
939 * gdbarch.h: Regenerate.
940 * gdbarch.sh (report_signal_info): New method.
941 * infrun.c (print_signal_received_reason): Invoke gdbarch
942 report_signal_info hook if present.
943
944 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * python/py-registers.c : Add 'unordered_map' include.
947 (gdbpy_new_reggroup): Renamed to...
948 (gdbpy_get_reggroup): ...this. Update to only create register
949 group descriptors when needed.
950 (gdbpy_reggroup_iter_next): Update.
951
952 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * python/py-registers.c (gdbpy_register_object_data): New static
955 global.
956 (gdbpy_register_object_data_init): New function.
957 (gdbpy_new_register_descriptor): Renamed to...
958 (gdbpy_get_register_descriptor): ...this, and update to reuse
959 existing register descriptors where possible.
960 (gdbpy_register_descriptor_iter_next): Update.
961 (gdbpy_initialize_registers): Register new gdbarch data.
962
963 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
964
965 * linux-nat.c (stopped_pids): Make static.
966
967 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
968
969 PR ada/26235
970 * gdbtypes.c (ada_discrete_type_low_bound,
971 ada_discrete_type_high_bound): Handle undefined bounds.
972
973 2020-07-21 Kamil Rytarowski <n54@gmx.com>
974
975 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
976 declaration.
977 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
978 function.
979
980 2020-07-20 John Baldwin <jhb@FreeBSD.org>
981
982 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
983 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
984 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
985 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
986 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
987 method.
988
989 2020-07-20 Ludovic Courtès <ludo@gnu.org>
990
991 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
992 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
993 which are deprecated in Guile 3.0.
994 * configure.ac (try_guile_versions): Add "guile-3.0".
995 * configure (try_guile_versions): Regenerate.
996 * NEWS: Update entry.
997
998 2020-07-20 Ludovic Courtès <ludo@gnu.org>
999 Doug Evans <dje@google.com>
1000
1001 PR gdb/21104
1002 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1003 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1004 USING_GUILE_BEFORE_2_2.
1005 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1006 Change type to 'scm_t_port_type *'.
1007 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1008 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1009 parameter and honor it. Update callers.
1010 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1011 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1012 functions.
1013 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1014 USING_GUILE_BEFORE_2_2.
1015 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1016 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1017 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1018 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1019 and 'SCM_PORT_TYPE'.
1020 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1021 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1022 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1023 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1024 [!USING_GUILE_BEFORE_2_2]: New functions.
1025 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1026 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1027 'gdbscm_memory_port_read'.
1028 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1029 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1030 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1031 function.
1032 (ioscm_init_memory_port): Remove.
1033 (ioscm_init_memory_port_stream): New function
1034 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1035 function.
1036 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1037 Return scm_from_uint (0).
1038 (gdbscm_set_memory_port_read_buffer_size_x)
1039 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1040 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1041 Return scm_from_uint (0).
1042 (gdbscm_set_memory_port_write_buffer_size_x)
1043 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1044 * configure.ac (try_guile_versions): Add "guile-2.2".
1045 * configure: Regenerate.
1046 * NEWS: Add entry.
1047
1048 2020-07-18 Tom Tromey <tom@tromey.com>
1049
1050 * linux-nat.c (linux_multi_process): Remove.
1051 (linux_nat_target::supports_multi_process): Return true.
1052
1053 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1056 (riscv_lookup_target_description): Return pointer out of
1057 unique_ptr.
1058 * target-descriptions.c (allocate_target_description): Add
1059 comment.
1060 (target_desc_deleter::operator()): Likewise.
1061 * target-descriptions.h (struct target_desc_deleter): Moved to
1062 gdbsupport/tdesc.h.
1063 (target_desc_up): Likewise.
1064
1065 2020-07-17 Tom Tromey <tromey@adacore.com>
1066
1067 * linux-nat.c (linux_nat_target::supports_non_stop)
1068 (linux_nat_target::always_non_stop_p): Use "true".
1069 (linux_nat_target::supports_disable_randomization): Use "true" and
1070 "false".
1071
1072 2020-07-16 Caroline Tice <cmtice@google.com>
1073
1074 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1075 (RNGLIST_HEADER_SIZE64): New constant definition.
1076 (struct dwop_section_names): Add rnglists_dwo.
1077 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1078 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1079 (struct dwo_sections): Add rnglists field.
1080 (read_attribut_reprocess): Add tag parameter.
1081 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1082 (cu_debug_rnglists_section): New function (decl & definition).
1083 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1084 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1085 die whose range is being checked; get rnglist section from
1086 cu_debug_rnglists_section, to get from either objfile or dwo file as
1087 appropriate. Add cases for DW_RLE_base_addressx,
1088 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1089 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1090 test inside if-condition and updating complaint message.
1091 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1092 dwarf2_rnglists_process.
1093 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1094 dwarf2_ranges_process.
1095 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1096 need_ranges_base and update comment appropriately. Also pass die tag
1097 to dwarf2_ranges_read.
1098 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1099 need_ranges_base and update comment appropriately. Also pass die tag
1100 to dwarf2_ranges_process.
1101 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1102 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1103 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1104 need_ranges_base and update comment appropriately. Also pass die tag
1105 to read_attribute_reprocess and dwarf2_ranges_read.
1106 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1107 and update function comment appropriately.
1108 (read_loclist_index): Call read_loclists_rnglists_header instead of
1109 read_loclist_header.
1110 (read_rnglist_index): New function.
1111 (read_attribute_reprocess): Add tag parameter. Add code for
1112 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1113 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1114
1115 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1118 being resolved.
1119
1120 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * arch-utils.c (show_architecture): Update formatting of messages.
1123
1124 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * gdbtypes.h (struct type) <bounds>: Handle array and string
1127 types.
1128 * ada-lang.c (assign_aggregate): Use type::bounds on
1129 array/string type.
1130 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1131 * c-varobj.c (c_number_of_children): Likewise.
1132 (c_describe_child): Likewise.
1133 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1134 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1135 (f_type_print_base): Likewise.
1136 * f-valprint.c (f77_array_offset_tbl): Likewise.
1137 (f77_get_upperbound): Likewise.
1138 (f77_print_array_1): Likewise.
1139 * guile/scm-type.c (gdbscm_type_range): Likewise.
1140 * m2-typeprint.c (m2_array): Likewise.
1141 (m2_is_long_set_of_type): Likewise.
1142 * m2-valprint.c (get_long_set_bounds): Likewise.
1143 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1144 * python/py-type.c (typy_range): Likewise.
1145 * rust-lang.c (rust_internal_print_type): Likewise.
1146 * type-stack.c (type_stack::follow_types): Likewise.
1147 * valarith.c (value_subscripted_rvalue): Likewise.
1148 * valops.c (value_cast): Likewise.
1149
1150 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1151
1152 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1153 callers to use the equivalent accessor methods.
1154
1155 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1156
1157 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1158 (struct type) <bit_stride>: New method.
1159 (TYPE_BIT_STRIDE): Remove.
1160 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1161
1162 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1165 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1166 callers to use the equivalent accessor methods instead.
1167
1168 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1169
1170 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1171 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1172 callers to use the equivalent accessor methods instead.
1173
1174 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1175
1176 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1177 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1178 to use dynamic_prop::kind.
1179
1180 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1183 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1184 to get the bound property's kind and check against
1185 PROP_UNDEFINED.
1186
1187 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1188
1189 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1190 all callers to use type::range_bounds followed by
1191 dynamic_prop::{low,high}.
1192
1193 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1196 const_val, set_const_val, baton, set_locexpr, set_loclist,
1197 set_addr_offset, variant_parts, set_variant_parts,
1198 original_type, set_original_type>: New methods.
1199 <kind>: Rename to...
1200 <m_kind>: ... this. Update all users to use the new methods
1201 instead.
1202 <data>: Rename to...
1203 <m_data>: ... this. Update all users to use the new methods
1204 instead.
1205
1206 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1207
1208 * gdbtypes.c (get_discrete_bounds): Return failure if
1209 the range type's bounds are not both defined and constant
1210 values.
1211 (get_array_bounds): Update comment. Remove undefined bound check.
1212
1213 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1216 the type::bounds method directly.
1217
1218 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1219
1220 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1221 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1222 are used to set the range type's bounds to use set_bounds.
1223
1224 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1225
1226 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1227
1228 2020-07-10 Pedro Alves <pedro@palves.net>
1229
1230 * gdbthread.h (inferior_ref): Define.
1231 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1232 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1233 * thread.c
1234 (scoped_restore_current_thread::restore):
1235 Adjust to gdb::ref_ptr.
1236 (scoped_restore_current_thread::~scoped_restore_current_thread):
1237 Remove manual decref handling.
1238 (scoped_restore_current_thread::scoped_restore_current_thread):
1239 Adjust to use
1240 inferior_ref::new_reference/thread_info_ref::new_reference.
1241 Incref the thread before calling get_frame_id instead of after.
1242 Let TARGET_CLOSE_ERROR propagate.
1243
1244 2020-07-10 Pedro Alves <pedro@palves.net>
1245
1246 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1247 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1248 NOT_AVAILABLE_ERROR.
1249 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1250 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1251
1252 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1253 Pedro Alves <pedro@palves.net>
1254
1255 PR gdb/26199
1256 * infrun.c (threads_are_resumed_pending_p): Delete.
1257 (do_target_wait): Remove threads_are_executing and
1258 threads_are_resumed_pending_p checks from the inferior_matches
1259 lambda. Update comments.
1260
1261 2020-07-10 Pedro Alves <pedro@palves.net>
1262
1263 PR gdb/26199
1264 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1265 executing threads.
1266
1267 2020-07-10 Pedro Alves <pedro@palves.net>
1268
1269 PR gdb/26199
1270 * infrun.c (handle_no_resumed): Handle multiple targets.
1271
1272 2020-07-10 Pedro Alves <pedro@palves.net>
1273
1274 PR gdb/26199
1275 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1276 target_is_async_p.
1277
1278 2020-07-10 Pedro Alves <pedro@palves.net>
1279
1280 PR gdb/26199
1281 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1282 threads, not all threads.
1283
1284 2020-07-10 Pedro Alves <pedro@palves.net>
1285
1286 PR gdb/26199
1287 * remote.c (remote_target::open_1): Pass remote target pointer as
1288 data to create_async_event_handler.
1289 (remote_async_inferior_event_handler): Mark async event handler
1290 before returning if the remote target still has either pending
1291 events or unacknowledged notifications.
1292
1293 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1294
1295 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1296 declaration.
1297 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1298 function.
1299
1300 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1301
1302 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1303 inferior_ptid.
1304
1305 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1306
1307 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1308 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1309 AT_FREEBSD_PS_STRINGS.
1310
1311 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1312
1313 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1314 of debugfile path on Windows.
1315
1316 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1317
1318 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1319 argument to 'data'.
1320
1321 2020-07-08 Tom Tromey <tromey@adacore.com>
1322
1323 * ada-lang.c (ada_exception_message_1): Use read_memory.
1324
1325 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 PR python/22748
1328 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1329 special handling for inline frames.
1330 * findvar.c (value_of_register_lazy): Skip inline frames when
1331 creating lazy register values.
1332 * frame.c (frame_id_computed_p): Delete definition.
1333 * frame.h (frame_id_computed_p): Delete declaration.
1334
1335 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * NEWS: Mention additions to Python API.
1338 * python/py-arch.c (archpy_register_groups): New function.
1339 (arch_object_methods): Add 'register_groups' method.
1340 * python/py-registers.c (reggroup_iterator_object): New struct.
1341 (reggroup_object): New struct.
1342 (gdbpy_new_reggroup): New function.
1343 (gdbpy_reggroup_to_string): New function.
1344 (gdbpy_reggroup_name): New function.
1345 (gdbpy_reggroup_iter): New function.
1346 (gdbpy_reggroup_iter_next): New function.
1347 (gdbpy_new_reggroup_iterator): New function
1348 (gdbpy_initialize_registers): Register new types.
1349 (reggroup_iterator_object_type): Define new Python type.
1350 (gdbpy_reggroup_getset): New static global.
1351 (reggroup_object_type): Define new Python type.
1352 * python/python-internal.h
1353
1354 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1357 * python/py-arch.c (archpy_registers): New function.
1358 (arch_object_methods): Add 'registers' method.
1359 * python/py-registers.c: New file.
1360 * python/python-internal.h
1361 (gdbpy_new_register_descriptor_iterator): Declare.
1362 (gdbpy_initialize_registers): Declare.
1363 * python/python.c (do_start_initialization): Call
1364 gdbpy_initialize_registers.
1365 * NEWS: Mention additions to the Python API.
1366
1367 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * NEWS: Mention new Python API method.
1370 * python/py-unwind.c (pending_framepy_architecture): New function.
1371 (pending_frame_object_methods): Add architecture method.
1372
1373 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * gdbarch.c: Regenerate.
1376 * gdbarch.h: Regenerate.
1377 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1378 (gdbarch_data): Use internal_error for the case where
1379 deprecated_set_gdbarch_data was originally needed.
1380 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1381 and use passed in obstack.
1382 (libunwind_frame_set_descr): Should no longer get back NULL from
1383 gdbarch_data.
1384 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1385 type.
1386 * user-regs.c (user_regs_init): Update parameters, and use passed
1387 in obstack.
1388 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1389 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1390
1391 2020-07-06 Tom de Vries <tdevries@suse.de>
1392
1393 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1394 End-Of-Sequence in lte_is_less_than.
1395 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1396 "gdb: Don't reorder line table entries too much when sorting".
1397
1398 2020-07-06 Tom de Vries <tdevries@suse.de>
1399
1400 PR tui/26205
1401 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1402
1403 2020-07-05 Tom de Vries <tdevries@suse.de>
1404
1405 PR build/26187
1406 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1407 std::uncaught_exceptions instead of deprecated
1408 std::uncaught_exception.
1409
1410 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * macroexp.h (macro_stringify): Return
1413 gdb::unique_xmalloc_ptr<char>.
1414 * macroexp.c (macro_stringify): Likewise.
1415 * macrotab.c (fixup_definition): Update.
1416
1417 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1420 (lex_one_token): Update.
1421 * macroexp.c (struct macro_buffer) <release>: Return
1422 gdb::unique_xmalloc_ptr<char>.
1423 (macro_stringify): Update.
1424 (macro_expand): Update.
1425 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1426 * macroexp.h (macro_expand_next): Likewise.
1427
1428 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1429
1430 * macroexp.h (macro_lookup_ftype): Remove.
1431 (macro_expand, macro_expand_once, macro_expand_next): Remove
1432 lookup function parameters, add scope parameter.
1433 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1434 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1435 * macroscope.h (standard_macro_lookup): Change parameter type
1436 to macro_scope.
1437 * macroscope.c (standard_macro_lookup): Likewise.
1438 * c-exp.y (lex_one_token): Update.
1439 * macrocmd.c (macro_expand_command): Likewise.
1440 (macro_expand_once_command): Likewise.
1441
1442 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * inf-loop.c (inferior_event_handler): Remove client_data param.
1445 * inf-loop.h (inferior_event_handler): Likewise.
1446 * infcmd.c (step_1): Adjust.
1447 * infrun.c (proceed): Adjust.
1448 (fetch_inferior_event): Remove client_data param.
1449 (infrun_async_inferior_event_handler): Adjust.
1450 * infrun.h (fetch_inferior_event): Remove `void *` param.
1451 * linux-nat.c (handle_target_event): Adjust.
1452 * record-btrace.c (record_btrace_handle_async_inferior_event):
1453 Adjust.
1454 * record-full.c (record_full_async_inferior_event_handler):
1455 Adjust.
1456 * remote.c (remote_async_inferior_event_handler): Adjust.
1457
1458 2020-07-01 Tom Tromey <tom@tromey.com>
1459
1460 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1461 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1462
1463 2020-07-01 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1466 tui_gen_win_info.
1467 (tui_win_info::make_window): Merge with
1468 tui_gen_win_info::make_window.
1469 (tui_win_info::make_visible): Move from tui_gen_win_info.
1470 * tui/tui-win.c (tui_win_info::max_width): Move from
1471 tui_gen_win_info.
1472 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1473 type.
1474 <window_factory>: Likewise.
1475 * tui/tui-layout.c (tui_win_info::resize): Move from
1476 tui_gen_win_info.
1477 (make_standard_window): Change return type.
1478 (get_locator_window, tui_get_window_by_name): Likewise.
1479 (tui_layout_window::apply): Remove a cast.
1480 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1481 (struct tui_win_info): Merge with tui_gen_win_info.
1482 (struct tui_gen_win_info): Remove.
1483
1484 2020-07-01 Tom Tromey <tom@tromey.com>
1485
1486 * tui/tui-stack.h (struct tui_locator_window): Derive from
1487 tui_win_info.
1488 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1489 <can_box>: New method.
1490
1491 2020-07-01 Tom Tromey <tom@tromey.com>
1492
1493 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1494
1495 2020-07-01 Tom Tromey <tom@tromey.com>
1496
1497 * tui/tui-regs.c (tui_data_window::display_registers_from)
1498 (tui_data_window::display_registers_from)
1499 (tui_data_window::first_data_item_displayed)
1500 (tui_data_window::delete_data_content_windows): Update.
1501 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1502 Remove.
1503 (tui_data_window::check_register_values): Update.
1504 (tui_data_item_window::rerender): Add parameters. Update.
1505 (tui_data_item_window::refresh_window): Remove.
1506 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1507 virtual.
1508 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1509 tui_gen_win_info.
1510 <refresh_window, max_height, min_height>: Remove.
1511 <rerender>: Add parameters.
1512 <x, y, visible>: New members.
1513 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1514 <m_item_width>: New member.
1515
1516 2020-07-01 Tom Tromey <tom@tromey.com>
1517
1518 * tui/tui-regs.c (tui_data_window::show_register_group)
1519 (tui_data_window::check_register_values): Update.
1520 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1521 from item_no.
1522
1523 2020-07-01 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1526 useless "if".
1527
1528 2020-07-01 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1531 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1532
1533 2020-07-01 Tom Tromey <tom@tromey.com>
1534
1535 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1536 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1537 (struct tui_line_or_address): Move from tui-data.h.
1538 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1539 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1540 (tui_cmd_window, tui_source_window_base, tui_source_window)
1541 (tui_disasm_window): Don't declare.
1542 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1543 to tui-winsource.h.
1544 (SINGLE_KEY): Move to tui-stack.c.
1545
1546 2020-07-01 Tom Tromey <tom@tromey.com>
1547
1548 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1549 std::string.
1550 * tui/tui-regs.c (class tab_expansion_file): New.
1551 (tab_expansion_file::write): New method.
1552 (tui_register_format): Change return type. Use
1553 tab_expansion_file.
1554 (tui_get_register, tui_data_window::display_registers_from)
1555 (tui_data_item_window::rerender): Update.
1556 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1557 * tui/tui-io.c (tui_expand_tabs): Remove.
1558
1559 2020-07-01 Tom Tromey <tom@tromey.com>
1560
1561 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1562
1563 2020-07-01 Fangrui Song <maskray@google.com>
1564
1565 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1566
1567 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1568
1569 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1570 forms for DW_AT_associated and DW_AT_allocated attributes,
1571 which is already checked in function attr_to_dynamic_prop.
1572
1573 2020-06-30 Tom Tromey <tromey@adacore.com>
1574
1575 * dwarf2/read.c (quirk_rust_enum): Correctly call
1576 alloc_rust_variant for default-less enum.
1577
1578 2020-06-30 Tom Tromey <tromey@adacore.com>
1579
1580 PR build/26183:
1581 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1582 gdb::to_string.
1583
1584 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1587 * gdbarch.h: Re-generate.
1588
1589 2020-06-28 Tom Tromey <tom@tromey.com>
1590
1591 * command.h (cmd_types): Remove.
1592 (cmd_type): Don't declare.
1593 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1594 typedef.
1595 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1596 * cli/cli-decode.c (cmd_type): Remove.
1597
1598 2020-06-27 Pedro Alves <palves@redhat.com>
1599
1600 * fork-child.c (prefork_hook): Adjust.
1601 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1602 Delete.
1603 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1604 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1605 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1606 Remove declarations.
1607 (struct inferior) <set_tty, tty>: New methods.
1608 (struct inferior) <terminal>: Rename to ...
1609 (struct inferior) <m_terminal>: ... this and make private.
1610 * main.c (captured_main_1): Adjust.
1611 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1612 (mi_cmd_inferior_tty_show): Adjust.
1613 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1614 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1615
1616 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1617
1618 * configure.ac: Add --enable-libctf: handle --disable-static
1619 properly.
1620 * acinclude.m4: sinclude ../config/enable.m4.
1621 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1622 (LIBCTF): Substitute in.
1623 (CTF_DEPS): New, likewise.
1624 (CLIBS): libctf needs symbols from libbfd: move earlier.
1625 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1626 flags.
1627 * ctfread.c: Surround in ENABLE_LIBCTF.
1628 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1629 * configure: Regenerate.
1630 * config.in: Likewise.
1631
1632 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1635
1636 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * inferior.h (struct inferior) <terminal>: Change type to
1639 gdb::unique_xmalloc_ptr<char>.
1640 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1641 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1642 field, adjust to unique pointer.
1643 (get_inferior_io_terminal): Adjust to unique pointer.
1644
1645 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1648 registers, not just the known core set of registers.
1649
1650 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1653 fflags, frm, and fcsr registers.
1654 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1655 restore groups.
1656 (riscv_tdesc_unknown_reg): New function.
1657 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1658 tdesc_use_registers.
1659 * riscv-tdep.h (struct gdbarch_tdep): Add
1660 unknown_csrs_first_regnum, unknown_csrs_count,
1661 duplicate_fflags_regnum, duplicate_frm_regnum, and
1662 duplicate_fcsr_regnum fields.
1663
1664 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1667 callback, use the callback (when not null) to help number unknown
1668 registers.
1669 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1670 (tdesc_use_registers): Add extra parameter to declaration.
1671
1672 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1675 in the file.
1676 (class riscv_pending_register_alias): Likewise.
1677 (riscv_register_feature::register_info): Change 'required_p' field
1678 to 'required', and change its type. Add 'check' member function.
1679 (riscv_register_feature::register_info::check): Define new member
1680 function.
1681 (riscv_xreg_feature): Change initialisation of 'required' field.
1682 (riscv_freg_feature): Likewise.
1683 (riscv_virtual_feature): Likewise.
1684 (riscv_csr_feature): Likewise.
1685 (riscv_check_tdesc_feature): Take extra parameter, the csr
1686 tdesc_feature, rewrite the function to use the new
1687 riscv_register_feature::register_info::check function.
1688 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1689
1690 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * features/Makefile: Remove all references to the deleted files
1693 below.
1694 * features/riscv/32bit-csr.c: Deleted.
1695 * features/riscv/32bit-csr.xml: Deleted.
1696 * features/riscv/64bit-csr.c: Deleted.
1697 * features/riscv/64bit-csr.xml: Deleted.
1698 * features/riscv/rebuild-csr-xml.sh: Deleted.
1699
1700 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1703 whitespace error for declaration of names member variable.
1704 (struct riscv_register_feature): Add new prefer_first_name member
1705 variable, and fix whitespace error in declaration of registers.
1706 (riscv_xreg_feature): Initialize prefer_first_name field.
1707 (riscv_freg_feature): Likewise.
1708 (riscv_virtual_feature): Likewise.
1709 (riscv_csr_feature): Likewise.
1710 (riscv_register_name): Expand on comments. Remove register name
1711 modifications for CSR and virtual registers.
1712
1713 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1714
1715 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1716 errors.
1717
1718 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1721 riscv-opc.h.
1722 (class riscv_pending_register_alias): New class.
1723 (riscv_check_tdesc_feature): Take vector of pending aliases and
1724 populate it as appropriate.
1725 (riscv_setup_register_aliases): Delete.
1726 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1727 to riscv_check_tdesc_feature in all cases. Use the vector to
1728 create the register aliases.
1729
1730 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1731
1732 * sol2-tdep.c (sol2_static_transform_name): Remove.
1733 (sol2_init_abi): Don't register it.
1734 * gdbarch.sh (static_transform_name): Remove.
1735 * gdbarch.c, gdbarch.h: Regenerate.
1736
1737 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1738 gdbarch_static_transform_name.
1739 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1740 * stabsread.c (define_symbol) <'X'>: Remove.
1741 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1742 handling.
1743 <'V'>: Likewise.
1744 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1745 <'S'>: Remove call to gdbarch_static_transform_name.
1746
1747 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1748
1749 * procfs.c (procfs_pre_trace): New function.
1750 (procfs_target::create_inferior): Pass it to fork_inferior.
1751
1752 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1753
1754 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1755 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1756 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1757 sol2-tdep.o, sparc-sol2-tdep.o.
1758 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1759 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1760 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1761 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1762
1763 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1764
1765 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1766 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1767 Call sol2_init_abi.
1768 Remove calls to set_gdbarch_skip_solib_resolver,
1769 set_gdbarch_core_pid_to_str.
1770 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1771 (i386_sol2_static_transform_name): Remove.
1772 (i386_sol2_init_abi): Call sol2_init_abi.
1773 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1774 set_gdbarch_static_transform_name,
1775 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1776 Use sol2_sigtramp_p.
1777 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1778 (sol2_sigtramp_p): New function.
1779 (sol2_static_transform_name): New function.
1780 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1781 (sol2_init_abi): New function.
1782 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1783 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1784 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1785 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1786 (sparc_sol2_static_transform_name): Remove.
1787 (sparc32_sol2_init_abi): Call sol2_init_abi.
1788 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1789 set_gdbarch_static_transform_name,
1790 set_gdbarch_skip_solib_resolver,
1791 set_gdbarch_core_pid_to_str.
1792 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1793 (sparc_sol2_static_transform_name): Remove
1794 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1795 call sol2_sigtramp_p.
1796 (sparc64_sol2_init_abi): Call sol2_init_abi.
1797 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1798 set_gdbarch_static_transform_name,
1799 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1800
1801 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1802
1803 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1804 * exec.c (validate_exec_file): If from_tty, set both
1805 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1806 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1807 and from_tty, unconditionally ask a confirmation.
1808
1809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * target-descriptions.c (tdesc_architecture_name): Protect against
1812 NULL pointer dereference.
1813 (maint_print_xml_tdesc_cmd): New function.
1814 (_initialize_target_descriptions): Register new 'maint print
1815 xml-tdesc' command and give it the filename completer.
1816 * NEWS: Mention new 'maint print xml-tdesc' command.
1817
1818 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * target-descriptions.c (class tdesc_compatible_info): New class.
1821 (struct target_desc): Change type of compatible vector.
1822 (tdesc_compatible_p): Update for change in type of
1823 target_desc::compatible.
1824 (tdesc_compatible_info_list): New function.
1825 (tdesc_compatible_info_arch_name): New function.
1826 (tdesc_add_compatible): Update for change in type of
1827 target_desc::compatible.
1828 (print_c_tdesc::visit_pre): Likewise.
1829
1830 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1833 whitespace to underscore.
1834 (maint_print_c_tdesc_cmd): Use fake filename for target
1835 descriptions that came from the target.
1836 (_initialize_target_descriptions): Add filename command completion
1837 for 'maint print c-tdesc'.
1838
1839 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1842 lines.
1843
1844 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1847 lines.
1848 (dwarf2_find_location_expression): Likewise.
1849 (call_site_parameter_matches): Likewise.
1850 (dwarf2_compile_expr_to_ax): Likewise.
1851 (disassemble_dwarf_expression): Likewise.
1852 (loclist_describe_location): Likewise.
1853
1854 2020-06-23 Pedro Alves <palves@redhat.com>
1855
1856 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1857 progspace-and-thread.h. Include scoped-mock-context.h instead.
1858 (register_to_value_test): Use scoped_mock_context.
1859 * regcache.c: Include "scoped-mock-context.h".
1860 (cooked_read_test): Don't error out if a target is already pushed.
1861 Use scoped_mock_context. Adjust.
1862 * scoped-mock-context.h: New file.
1863
1864 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1867 initializer.
1868 (ada_language::is_string_type_p): New member function.
1869 * c-lang.c (c_language_data): Delete la_is_string_type_p
1870 initializer.
1871 (cplus_language_data): Likewise.
1872 (asm_language_data): Likewise.
1873 (minimal_language_data): Likewise.
1874 * d-lang.c (d_language_data): Likewise.
1875 * f-lang.c (f_is_string_type_p): Delete function, implementation
1876 moved to f_language::is_string_type_p.
1877 (f_language_data): Delete la_is_string_type_p initializer.
1878 (f_language::is_string_type_p): New member function,
1879 implementation from f_is_string_type_p.
1880 * go-lang.c (go_is_string_type_p): Delete function, implementation
1881 moved to go_language::is_string_type_p.
1882 (go_language_data): Delete la_is_string_type_p initializer.
1883 (go_language::is_string_type_p): New member function,
1884 implementation from go_is_string_type_p.
1885 * language.c (language_defn::is_string_type_p): Define new member
1886 function.
1887 (default_is_string_type_p): Make static, add comment copied from
1888 header file.
1889 (unknown_language_data): Delete la_is_string_type_p initializer.
1890 (unknown_language::is_string_type_p): New member function.
1891 (auto_language_data): Delete la_is_string_type_p initializer.
1892 (auto_language::is_string_type_p): New member function.
1893 * language.h (language_data): Delete la_is_string_type_p field.
1894 (language_defn::is_string_type_p): Declare new function.
1895 (default_is_string_type_p): Delete desclaration, move comment to
1896 definition.
1897 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1898 moved to m2_language::is_string_type_p.
1899 (m2_language_data): Delete la_is_string_type_p initializer.
1900 (m2_language::is_string_type_p): New member function,
1901 implementation from m2_is_string_type_p.
1902 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1903 initializer.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_is_string_type_p): Delete function,
1906 implementation moved to pascal_language::is_string_type_p.
1907 (pascal_language_data): Delete la_is_string_type_p initializer.
1908 (pascal_language::is_string_type_p): New member function,
1909 implementation from pascal_is_string_type_p.
1910 * rust-lang.c (rust_is_string_type_p): Delete function,
1911 implementation moved to rust_language::is_string_type_p.
1912 (rust_language_data): Delete la_is_string_type_p initializer.
1913 (rust_language::is_string_type_p): New member function,
1914 implementation from rust_is_string_type_p.
1915 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1916 is_string_type_p.
1917
1918 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * ada-lang.c (ada_language_data): Delete la_print_typedef
1921 initializer.
1922 (ada_language::print_typedef): New member function.
1923 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1924 (cplus_language_data): Likewise.
1925 (asm_language_data): Likewise.
1926 (minimal_language_data): Likewise.
1927 * d-lang.c (d_language_data): Likewise.
1928 * f-lang.c (f_language_data): Likewise.
1929 (f_language::print_typedef): New member function.
1930 * go-lang.c (go_language_data): Delete la_print_typedef
1931 initializer.
1932 * language.c (language_defn::print_typedef): Define member
1933 function.
1934 (unknown_language_data): Delete la_print_typedef initializer.
1935 (unknown_language::print_typedef): New member function.
1936 (auto_language_data): Delete la_print_typedef initializer.
1937 (auto_language::print_typedef): New member function.
1938 * language.h (language_data): Delete la_print_typedef field.
1939 (language_defn::print_typedef): Declare new member function.
1940 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1941 (default_print_typedef): Delete declaration.
1942 * m2-lang.c (m2_language_data): Delete la_print_typedef
1943 initializer.
1944 (m2_language::print_typedef): New member function.
1945 * objc-lang.c (objc_language_data): Delete la_print_typedef
1946 initializer.
1947 * opencl-lang.c (opencl_language_data): Likewise.
1948 * p-lang.c (pascal_language_data): Likewise.
1949 (pascal_language::print_typedef): New member function.
1950 * rust-lang.c (rust_print_typedef): Delete function,
1951 implementation moved to rust_language::print_typedef.
1952 (rust_language): Delete la_print_typedef initializer.
1953 (rust_language::print_typedef): New member function,
1954 implementation from rust_print_typedef.
1955 * typeprint.c (default_print_typedef): Delete.
1956
1957 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1960 (ada_language::printstr): New member function.
1961 * c-lang.c (c_language_data): Delete la_printstr initializer.
1962 (cplus_language_data): Likewise.
1963 (asm_language_data): Likewise.
1964 (minimal_language_data): Likewise.
1965 * d-lang.c (d_language_data): Likewise.
1966 * f-lang.c (f_printstr): Rename to f_language::printstr.
1967 (f_language_data): Delete la_printstr initializer.
1968 (f_language::printstr): New member function, implementation from
1969 f_printstr.
1970 * go-lang.c (go_language_data): Delete la_printstr initializer.
1971 * language.c (language_defn::printstr): Define new member
1972 function.
1973 (unk_lang_printstr): Delete.
1974 (unknown_language_data): Delete la_printstr initializer.
1975 (unknown_language::printstr): New member function.
1976 (auto_language_data): Delete la_printstr initializer.
1977 (auto_language::printstr): New member function.
1978 * language.h (language_data): Delete la_printstr field.
1979 (language_defn::printstr): Declare new member function.
1980 (LA_PRINT_STRING): Update call to printstr.
1981 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1982 (m2_language_data): Delete la_printstr initializer.
1983 (m2_language::printstr): New member function, implementation from
1984 m2_printstr.
1985 * objc-lang.c (objc_language_data): Delete la_printstr
1986 initializer.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1989 (pascal_language_data): Delete la_printstr initializer.
1990 (pascal_language::printstr): New member function, implementation
1991 from pascal_printstr.
1992 * p-lang.h (pascal_printstr): Delete declaration.
1993 * rust-lang.c (rust_printstr): Update header comment.
1994 (rust_language_data): Delete la_printstr initializer.
1995 (rust_language::printstr): New member function.
1996
1997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2000 (ada_language::printchar): New member function.
2001 * c-lang.c (c_language_data): Delete la_printchar initializer.
2002 (cplus_language_data): Likewise.
2003 (asm_language_data): Likewise.
2004 (minimal_language_data): Likewise.
2005 * d-lang.c (d_language_data): Likewise.
2006 * f-lang.c (f_printchar): Rename to f_language::printchar.
2007 (f_language_data): Delete la_printchar initializer.
2008 (f_language::printchar): New member function, implementation from
2009 f_printchar.
2010 * go-lang.c (go_language_data): Delete la_printchar initializer.
2011 * language.c (unk_lang_printchar): Delete.
2012 (language_defn::printchar): Define new member function.
2013 (unknown_language_data): Delete la_printchar initializer.
2014 (unknown_language::printchar): New member function.
2015 (auto_language_data): Delete la_printchar initializer.
2016 (auto_language::printchar): New member function.
2017 * language.h (language_data): Delete la_printchar field.
2018 (language_defn::printchar): Declare new member function.
2019 (LA_PRINT_CHAR): Update call to printchar.
2020 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2021 (m2_language::printchar): New member function.
2022 * objc-lang.c (objc_language_data): Delete la_printchar
2023 initializer.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_language_data): Delete la_printchar
2026 initializer.
2027 (pascal_language::printchar): New member function.
2028 * rust-lang.c (rust_printchar): Rename to
2029 rust_language::printchar.
2030 (rust_language_data): Delete la_printchar initializer.
2031 (rust_language::printchar): New member function, implementation
2032 from rust_printchar.
2033
2034 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2037 (ada_language_data): Delete la_emitchar initializer.
2038 (ada_language::emitchar): New member function, implementation from
2039 emit_char.
2040 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2041 (cplus_language_data): Likewise.
2042 (asm_language_data): Likewise.
2043 (minimal_language_data): Likewise.
2044 * d-lang.c (d_language_data): Likewise.
2045 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2046 (f_language_data): Delete la_emitchar initializer.
2047 (f_language::emitchar): New member function, implementation from
2048 f_emit_char.
2049 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2050 * language.c (unk_lang_emit_char): Delete.
2051 (language_defn::emitchar): New member function definition.
2052 (unknown_language_data): Delete la_emitchar initializer.
2053 (unknown_language::emitchar): New member function.
2054 (auto_language_data): Delete la_emitchar initializer.
2055 (auto_language::emitchar): New member function.
2056 * language.h (language_data): Delete la_emitchar field.
2057 (language_defn::emitchar): New member field declaration.
2058 (LA_EMIT_CHAR): Update call to emitchar.
2059 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2060 (m2_language_data): Delete la_emitchar initializer.
2061 (m2_language::emitchar): New member function, implementation from
2062 m2_emit_char.
2063 * objc-lang.c (objc_language_data): Delete la_emitchar
2064 initializer.
2065 * opencl-lang.c (opencl_language_data): Likewise.
2066 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2067 (pascal_language_data): Delete la_emitchar initializer.
2068 (pascal_language::emitchar): New member function, implementation
2069 from pascal_emit_char.
2070 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2071 (rust_language_data): Delete la_emitchar initializer.
2072 (rust_language::emitchar): New member function, implementation
2073 from rust_emitchar.
2074
2075 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2078 (ada_language_data): Delete la_post_parser initializer.
2079 (ada_language::post_parser): New member function.
2080 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2081 (cplus_language_data): Likewise.
2082 (asm_language_data): Likewise.
2083 (minimal_language_data): Likewise.
2084 * d-lang.c (d_language_data): Likewise.
2085 * f-lang.c (f_language_data): Likewise.
2086 * go-lang.c (go_language_data): Likewise.
2087 * language.c (unknown_language_data): Likewise.
2088 (auto_language_data): Likewise.
2089 * language.h (language_data): Delete la_post_parser field.
2090 (language_defn::post_parser): New member function.
2091 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2092 * objc-lang.c (objc_language_data): Likewise.
2093 * opencl-lang.c (opencl_language_data): Likewise.
2094 * p-lang.c (pascal_language_data): Likewise.
2095 * parse.c (parse_exp_in_context): Update call to post_parser.
2096 (null_post_parser): Delete definition.
2097 * parser-defs.h (null_post_parser): Delete declaration.
2098 * rust-lang.c (rust_language_data): Delete la_post_parser
2099 initializer.
2100
2101 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (parse): Rename to ada_language::parser.
2104 (ada_language_data): Delete la_parser initializer.
2105 (ada_language::parser): New member function, implementation from
2106 parse.
2107 * c-lang.c (c_language_data): Delete la_parser initializer.
2108 (cplus_language_data): Likewise.
2109 (asm_language_data): Likewise.
2110 (minimal_language_data): Likewise.
2111 * d-lang.c (d_language_data): Likewise.
2112 (d_language::parser): New member function.
2113 * f-lang.c (f_language_data): Delete la_parser initializer.
2114 (f_language::parser): New member function.
2115 * go-lang.c (go_language_data): Delete la_parser initializer.
2116 (go_language::parser): New member function.
2117 * language.c (unk_lang_parser): Delete.
2118 (language_defn::parser): Define new member function.
2119 (unknown_language_data): Delete la_parser initializer.
2120 (unknown_language::parser): New member function.
2121 (auto_language_data): Delete la_parser initializer.
2122 (auto_language::parser): New member function.
2123 * language.h (language_data): Delete la_parser field.
2124 (language_defn::parser): Declare new member function.
2125 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2126 (m2_language::parser): New member function.
2127 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2128 * opencl-lang.c (opencl_language_data): Likewise.
2129 * p-lang.c (pascal_language_data): Likewise.
2130 (pascal_language::parser): New member function.
2131 * parse.c (parse_exp_in_context): Update call to parser.
2132 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2133 (rust_language::parser): New member function.
2134
2135 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * top.c (print_gdb_configuration): Print --with-python-libdir
2138 configuration value.
2139
2140 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2141
2142 * NEWS: Mention change to the alias command.
2143
2144 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2145
2146 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2147 (alias_command_completer)
2148 (make_alias_options_def_group): New functions.
2149 (alias_opts, alias_option_defs): New struct and array.
2150 (alias_usage_error): Update usage.
2151 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2152 Use option framework.
2153 (_initialize_cli_cmds): Update alias command help.
2154 Update aliases command help.
2155 (show_user):
2156 Add NULL for new default_args lookup_cmd argument.
2157 (valid_command_p): Rename to validate_aliased_command.
2158 Add NULL for new default_args lookup_cmd argument. Verify that the
2159 aliased_command has no default args.
2160 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2161 (lookup_cmd_1, lookup_cmd): New argument default_args.
2162 (add_alias_cmd):
2163 Add NULL for new default_args lookup_cmd argument.
2164 (print_help_for_command): Show default args under the layout
2165 alias some_alias = some_aliased_cmd some_alias_default_arg.
2166 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2167 xfree default_args in destructor.
2168 * cli/cli-script.c (process_next_line, do_define_command):
2169 Add NULL for new default_args lookup_cmd argument.
2170 * command.h: Declare new default_args argument in lookup_cmd
2171 and lookup_cmd_1.
2172 * completer.c (complete_line_internal_1):
2173 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2174 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2175 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2176 Likewise.
2177 * infcmd.c (_initialize_infcmd): Likewise.
2178 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2179 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2180 * python/py-param.c (add_setshow_generic): Likewise.
2181 * remote.c (_initialize_remote): Likewise.
2182 * top.c (execute_command): Prepend default_args if command has some.
2183 (set_verbose):
2184 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2185 * tracepoint.c (validate_actionline, encode_actions_1):
2186 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2187
2188 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2189
2190 * jit.c (jit_read_descriptor): Use bool as the return type.
2191 (jit_breakpoint_re_set_internal): Use bool as the return type.
2192 Invert the return value logic; return true if the jit breakpoint
2193 has been successfully initialized.
2194 (jit_inferior_init): Update the call to
2195 jit_breakpoint_re_set_internal.
2196
2197 2020-06-22 Pedro Alves <palves@redhat.com>
2198
2199 PR gdb/25939
2200 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2201 Use the current inferior instead. Don't return
2202 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2203 wait again.
2204 * sol-thread.c (sol_thread_target::wait): Don't reference
2205 inferior_ptid.
2206 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2207 (sol_update_thread_list_callback): Use the current inferior's pid
2208 instead of inferior_ptid.
2209
2210 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2211
2212 * procfs.c: Cleanup many comments.
2213
2214 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2215 (AFTER_WATCHFLAG): Replace by value.
2216
2217 (MAIN_PROC_NAME_FORMAT): Inline ...
2218 (create_procinfo): ... here.
2219
2220 (procfs_debug_inferior): Remove SYS_exec handling.
2221 (syscall_is_exec): Likewise.
2222 (procfs_set_exec_trap): Likewise.
2223
2224 (syscall_is_lwp_exit): Inline in callers.
2225 (syscall_is_exit): Likewise.
2226 (syscall_is_exec): Likewise.
2227 (syscall_is_lwp_create): Likewise.
2228
2229 (invalidate_cache): Remove #if 0 code.
2230
2231 (make_signal_thread_runnable): Remove.
2232 (procfs_target::resume): Remove #if 0 code.
2233
2234 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2235
2236 PR gdb/25939
2237 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2238 call ...
2239 (procfs_target::create_inferior): ... here.
2240
2241 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2242
2243 * exec.c (validate_exec_file): Ensure the build-id is up to
2244 date by calling reopen_exec_file (that checks file timestamp
2245 to decide to re-read the file).
2246
2247 2020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 PR gdb/25412
2250 * gdbthread.h (delete_thread, delete_thread_silent)
2251 (find_thread_ptid): Update comments.
2252 * thread.c (current_thread_): New global.
2253 (is_current_thread): Move higher, and reimplement.
2254 (inferior_thread): Reimplement.
2255 (set_thread_exited): Use bool. Add assertions.
2256 (add_thread_silent): Simplify thread-reuse handling by always
2257 calling delete_thread.
2258 (delete_thread): Remove intro comment.
2259 (find_thread_ptid): Skip exited threads.
2260 (switch_to_thread_no_regs): Write to current_thread_.
2261 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2262 INFERIOR_PTID. Clear current_thread_.
2263
2264 2020-06-18 Pedro Alves <palves@redhat.com>
2265
2266 * aix-thread.c (pd_update): Use switch_to_thread.
2267
2268 2020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * ravenscar-thread.c (ravenscar_thread_target): Update.
2271 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2272 (ravenscar_thread_target::add_active_thread): ... this. Don't
2273 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2274 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2275
2276 2020-06-18 Pedro Alves <palves@redhat.com>
2277
2278 * nat/windows-nat.c (current_windows_thread): Remove.
2279 * nat/windows-nat.h (current_windows_thread): Remove.
2280 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2281 Adjust.
2282 (display_selectors): Adjust to fetch the current
2283 windows_thread_info based on inferior_ptid.
2284 (fake_create_process): No longer write to current_windows_thread.
2285 (windows_nat_target::get_windows_debug_event):
2286 Don't set inferior_ptid or current_windows_thread.
2287 (windows_nat_target::wait): Adjust to not rely on
2288 current_windows_thread.
2289 (do_initial_windows_stuff): Now a method of windows_nat_target.
2290 Switch to the last_ptid thread.
2291 (windows_nat_target::attach): Adjust.
2292 (windows_nat_target::detach): Use switch_to_no_thread instead of
2293 writing to inferior_ptid directly.
2294 (windows_nat_target::create_inferior): Adjust.
2295
2296 2020-06-18 Pedro Alves <palves@redhat.com>
2297
2298 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2299
2300 2020-06-18 Pedro Alves <palves@redhat.com>
2301
2302 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2303 after creating it, instead of writing to inferior_ptid. Don't
2304 write to inferior_ptid.
2305
2306 2020-06-18 Pedro Alves <palves@redhat.com>
2307
2308 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2309
2310 2020-06-18 Pedro Alves <palves@redhat.com>
2311
2312 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2313 it, instead of writing to inferior_ptid.
2314
2315 2020-06-18 Pedro Alves <palves@redhat.com>
2316
2317 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2318 to inferior_ptid.
2319
2320 2020-06-18 Pedro Alves <palves@redhat.com>
2321
2322 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2323 instead of writing to inferior_ptid directly.
2324
2325 2020-06-18 Pedro Alves <palves@redhat.com>
2326
2327 * corelow.c (core_target::close): Use switch_to_no_thread instead
2328 of writing to inferior_ptid directly.
2329 (add_to_thread_list, core_target_open): Use switch_to_thread
2330 instead of writing to inferior_ptid directly.
2331
2332 2020-06-18 Pedro Alves <palves@redhat.com>
2333
2334 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2335 inferior_ptid.
2336 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2337 inferior_ptid.
2338 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2339 inferior_ptid directly.
2340 (darwin_nat_target::init_thread_list): Switch to thread, instead
2341 of writing to inferior_ptid.
2342 (darwin_nat_target::attach): Don't write to inferior_ptid.
2343 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2344
2345 2020-06-18 Pedro Alves <palves@redhat.com>
2346
2347 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2348 thread.
2349 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2350 Instead use switch_to_thread.
2351 (gnu_nat_target::detach): Use switch_to_no_thread
2352 instead of writing to inferior_ptid directly. Used passed-in
2353 inferior instead of looking up the inferior by pid.
2354
2355 2020-06-18 Pedro Alves <palves@redhat.com>
2356
2357 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2358 inferior_ptid.
2359
2360 2020-06-18 Pedro Alves <palves@redhat.com>
2361
2362 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2363 inferior_ptid.
2364 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2365 thread.
2366 (nto_procfs_target::detach): Avoid referencing
2367 inferior_ptid. Use switch_to_no_thread instead of writing to
2368 inferior_ptid directly.
2369 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2370 instead of writing to inferior_ptid directly.
2371 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2372 to thread.
2373
2374 2020-06-18 Pedro Alves <palves@redhat.com>
2375
2376 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2377 after creating it, instead of writing to inferior_ptid.
2378 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2379 to inferior_ptid directly.
2380 (gdbsim_target::wait): Don't write to inferior_ptid.
2381
2382 2020-06-18 Pedro Alves <palves@redhat.com>
2383
2384 * remote.c (remote_target::remote_notice_new_inferior): Use
2385 switch_to_thread instead of writing to inferior_ptid directly.
2386 (remote_target::add_current_inferior_and_thread): Use
2387 switch_to_no_thread instead of writing to inferior_ptid directly.
2388 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2389 and switch_to_thread instead of using set_current_inferior or
2390 writing to inferior_ptid directly.
2391
2392 2020-06-18 Pedro Alves <palves@redhat.com>
2393
2394 * tracectf.c (ctf_target_open): Switch to added thread instead of
2395 writing to inferior_ptid directly.
2396 (ctf_target::close): Use switch_to_no_thread instead of writing to
2397 inferior_ptid directly.
2398
2399 2020-06-18 Pedro Alves <palves@redhat.com>
2400
2401 * tracefile-tfile.c (tfile_target_open): Don't write to
2402 inferior_ptid directly, instead switch to added thread.
2403 (tfile_target::close): Use switch_to_no_thread instead of writing
2404 to inferior_ptid directly.
2405
2406 2020-06-18 Pedro Alves <palves@redhat.com>
2407
2408 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2409 (procfs_target::detach): Use switch_to_no_thread
2410 instead of writing to inferior_ptid directly.
2411 (do_attach): Change return type to void. Switch to the added
2412 thread.
2413 (procfs_target::create_inferior): Switch to the added thread.
2414 (procfs_do_thread_registers): Don't write to inferior_ptid.
2415
2416 2020-06-18 Pedro Alves <palves@redhat.com>
2417
2418 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2419 of writing to inferior_ptid.
2420 (scoped_restore_exited_inferior): Delete.
2421 (handle_vfork_child_exec_or_exit): Simplify using
2422 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2423 instead of writing to inferior_ptid.
2424 (THREAD_STOPPED_BY): Delete.
2425 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2426 (thread_stopped_by_hw_breakpoint): Delete.
2427 (save_waitstatus): Use
2428 scoped_restore_current_thread+switch_to_thread, and call
2429 target_stopped_by_watchpoint instead of
2430 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2431 instead of thread_stopped_by_sw_breakpoint, and
2432 target_stopped_by_hw_breakpoint instead of
2433 thread_stopped_by_hw_breakpoint.
2434 (handle_inferior_event)
2435 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2436 inferior_ptid directly, nor
2437 set_current_inferior/set_current_program_space. Use
2438 switch_to_thread / switch_to_inferior_no_thread instead.
2439
2440 2020-06-18 Pedro Alves <palves@redhat.com>
2441
2442 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2443 instead of writing to inferior_ptid.
2444
2445 2020-06-18 Pedro Alves <palves@redhat.com>
2446
2447 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2448 added thread.
2449 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2450 to the added thread.
2451 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2452 instead of writing to inferior_ptid.
2453
2454 2020-06-18 Pedro Alves <palves@redhat.com>
2455
2456 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2457 (register_to_value_test): Mock a program_space too. Heap-allocate
2458 the address space. Don't write to inferior_ptid. Use
2459 switch_to_thread instead.
2460
2461 2020-06-18 Pedro Alves <palves@redhat.com>
2462
2463 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2464 Delete.
2465 (find_signalled_thread()): New, factored out from
2466 linux_make_corefile_notes and adjusted to handle exited threads.
2467 (linux_make_corefile_notes): Adjust to use the new
2468 find_signalled_thread.
2469
2470 2020-06-18 Pedro Alves <palves@redhat.com>
2471
2472 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2473 of saving/restoring inferior_ptid.
2474
2475 2020-06-17 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2478 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2479 declare.
2480 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2481
2482 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2485 of partial symtabs.
2486
2487 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * regformats/reg-arm.dat: Remove.
2490 * regformats/reg-bfin.dat: Remove.
2491 * regformats/reg-cris.dat: Remove.
2492 * regformats/reg-crisv32.dat: Remove.
2493 * regformats/reg-m32r.dat: Remove.
2494 * regformats/reg-tilegx.dat: Remove.
2495 * regformats/reg-tilegx32.dat: Remove.
2496
2497 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * features/Makefile (WHICH): Remove arm files.
2500 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2501 * regformats/arm/arm-with-neon.dat: Remove.
2502 * regformats/arm/arm-with-vfpv2.dat: Remove.
2503 * regformats/arm/arm-with-vfpv3.dat: Remove.
2504
2505 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * features/Makefile (XMLTOC): Remove rx.xml.
2508
2509 2020-06-17 Pedro Alves <palves@redhat.com>
2510
2511 * gdbthread.h (thread_control_state) <trap_expected> Update
2512 comments.
2513
2514 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2517 ada_language::lookup_symbol_nonlocal.
2518 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2519 (ada_language::lookup_symbol_nonlocal): New member function,
2520 implementation from ada_lookup_symbol_nonlocal.
2521 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2522 initializer.
2523 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2524 initializer.
2525 (cplus_language::lookup_symbol_nonlocal): New member function.
2526 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2527 (minimal_language_data) Likewise.
2528 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2529 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2530 initializer.
2531 (d_language::lookup_symbol_nonlocal): New member function.
2532 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2533 initializer.
2534 (f_language::lookup_symbol_nonlocal): New member function.
2535 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2536 initializer.
2537 * language.c (unknown_language_data): Likewise.
2538 (auto_language_data): Likewise.
2539 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2540 field.
2541 (language_defn::lookup_symbol_nonlocal): New member function.
2542 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2543 initializer.
2544 * objc-lang.c (objc_language_data): Likewise.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2548 rust_language::lookup_symbol_nonlocal.
2549 (rust_language_data): Delete la_lookup_symbol_nonlocal
2550 initializer.
2551 (rust_language::lookup_symbol_nonlocal): New member function,
2552 implementation from rust_lookup_symbol_nonlocal.
2553 * symtab.c (lookup_symbol_aux): Update call to
2554 lookup_symbol_nonlocal.
2555 (basic_lookup_symbol_nonlocal): Rename to...
2556 (language_defn::lookup_symbol_nonlocal): ...this, and update
2557 header comment. Remove language_defn parameter, and replace with
2558 uses of `this'.
2559 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2560
2561 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2562
2563 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2564 initializer.
2565 (ada_language::value_print_inner): New member function.
2566 * c-lang.c (c_language_data): Delete la_value_print_inner
2567 initializer.
2568 (cplus_language_data): Likewise.
2569 (asm_language_data): Likewise.
2570 (minimal_language_data): Likewise.
2571 * d-lang.c (d_language_data): Likewise.
2572 (d_language::value_print_inner): New member function.
2573 * f-lang.c (f_language_data): Delete la_value_print_inner
2574 initializer.
2575 (f_language::value_print_inner): New member function.
2576 * f-lang.h (f_value_print_innner): Rename to...
2577 (f_value_print_inner): ...this (note spelling of 'inner').
2578 * f-valprint.c (f_value_print_innner): Rename to...
2579 (f_value_print_inner): ...this (note spelling of 'inner').
2580 * go-lang.c (go_language_data): Delete la_value_print_inner
2581 initializer.
2582 (go_language::value_print_inner): New member function.
2583 * language.c (language_defn::value_print_inner): Define new member
2584 function.
2585 (unk_lang_value_print_inner): Delete.
2586 (unknown_language_data): Delete la_value_print_inner initializer.
2587 (unknown_language::value_print_inner): New member function.
2588 (auto_language_data): Delete la_value_print_inner initializer.
2589 (auto_language::value_print_inner): New member function.
2590 * language.h (language_data): Delete la_value_print_inner field.
2591 (language_defn::value_print_inner): Delcare new member function.
2592 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2593 initializer.
2594 (m2_language::value_print_inner): New member function.
2595 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2596 initializer.
2597 * opencl-lang.c (opencl_language_data): Likewise.
2598 * p-lang.c (pascal_language_data): Likewise.
2599 (pascal_language::value_print_inner): New member function.
2600 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2601 initializer.
2602 (rust_language::value_print_inner): New member function.
2603 * valprint.c (do_val_print): Update call to value_print_inner.
2604
2605 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * ada-lang.c (ada_language_data): Delete la_value_print
2608 initializer.
2609 (ada_language::value_print): New member function.
2610 * c-lang.c (c_language_data): Delete la_value_print initializer.
2611 (cplus_language_data): Likewise.
2612 (asm_language_data): Likewise.
2613 (minimal_language_data): Likewise.
2614 * d-lang.c (d_language_data): Likewise.
2615 * f-lang.c (f_language_data): Likewise.
2616 * go-lang.c (go_language_data): Likewise.
2617 * language.c (unk_lang_value_print): Delete.
2618 (language_defn::value_print): Define new member function.
2619 (unknown_language_data): Delete la_value_print initializer.
2620 (unknown_language::value_print): New member function.
2621 (auto_language_data): Delete la_value_print initializer.
2622 (auto_language::value_print): New member function.
2623 * language.h (language_data): Delete la_value_print field.
2624 (language_defn::value_print): Declare new member function.
2625 (LA_VALUE_PRINT): Update call to value_print.
2626 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2627 * objc-lang.c (objc_language_data): Likewise.
2628 * opencl-lang.c (opencl_language_data): Likewise.
2629 * p-lang.c (pascal_language_data): Likewise.
2630 (pascal_language::value_print): New member function.
2631 * rust-lang.c (rust_language_data): Delete la_value_print
2632 initializer.
2633
2634 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * ada-lang.c (ada_watch_location_expression): Rename to
2637 ada_language::watch_location_expression.
2638 (ada_language_data): Delete la_watch_location_expression
2639 initializer.
2640 (ada_language::watch_location_expression): New member function,
2641 implementation from ada_watch_location_expression.
2642 * breakpoint.c (watch_command_1): Update call to
2643 watch_location_expression.
2644 * c-lang.c (c_watch_location_expression): Rename to
2645 language_defn::watch_location_expression.
2646 (c_language_data): Delete la_watch_location_expression
2647 initializer.
2648 (cplus_language_data): Likewise.
2649 (asm_language_data): Likewise.
2650 (minimal_language_data): Likewise.
2651 * c-lang.h (c_watch_location_expression): Delete declaration.
2652 * d-lang.c (d_language_data): Delete la_watch_location_expression
2653 initializer.
2654 * f-lang.c (f_language_data): Likewise.
2655 * go-lang.c (go_language_data): Likewise.
2656 * language.c (language_defn::watch_location_expression): Member
2657 function implementation from c_watch_location_expression.
2658 (unknown_language_data): Delete la_watch_location_expression
2659 initializer.
2660 (auto_language_data): Likewise.
2661 * language.h (language_data): Delete la_watch_location_expression
2662 field.
2663 (language_defn::watch_location_expression): Declare new member
2664 function.
2665 * m2-lang.c (m2_language_data): Delete
2666 la_watch_location_expression initializer.
2667 * objc-lang.c (objc_language_data): Likewise.
2668 * opencl-lang.c (opencl_language_data): Likewise.
2669 * p-lang.c (pascal_language_data): Likewise.
2670 * rust-lang.c (rust_watch_location_expression): Rename to
2671 rust_language::watch_location_expression.
2672 (rust_language_data): Delete la_watch_location_expression
2673 initializer.
2674 (rust_language::watch_location_expression): New member function,
2675 implementation from rust_watch_location_expression.
2676
2677 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2680 ada_language::collect_symbol_completion_matches.
2681 (ada_language_data): Delete la_collect_symbol_completion_matches
2682 initializer.
2683 (ada_language::collect_symbol_completion_matches): New member
2684 function, implementation from
2685 ada_collect_symbol_completion_matches.
2686 * c-lang.c (c_language_data): Delete
2687 la_collect_symbol_completion_matches initializer.
2688 (cplus_language_data): Likewise.
2689 (asm_language_data): Likewise.
2690 (minimal_language_data): Likewise.
2691 * d-lang.c (d_language_data): Likewise.
2692 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2693 f_language::collect_symbol_completion_matches.
2694 (f_language_data): Delete la_collect_symbol_completion_matches
2695 initializer.
2696 (f_language::collect_symbol_completion_matches) New member
2697 function, implementation from f_collect_symbol_completion_matches.
2698 * go-lang.c (go_language_data): Delete
2699 la_collect_symbol_completion_matches initializer.
2700 * language.c (unknown_language_data): Likewise.
2701 (auto_language_data): Likewise.
2702 * language.h (language_data): Delete
2703 la_collect_symbol_completion_matches field.
2704 (language_defn::collect_symbol_completion_matches): New member
2705 function.
2706 * m2-lang.c (m2_language_data): Delete
2707 la_collect_symbol_completion_matches initializer.
2708 * objc-lang.c (objc_language_data): Likewise.
2709 * opencl-lang.c (opencl_language_data): Likewise.
2710 * p-lang.c (pascal_language_data): Likewise.
2711 * rust-lang.c (rust_language_data): Likewise.
2712 * symtab.c (default_collect_symbol_completion_matches): Delete.
2713 (collect_symbol_completion_matches): Update call to
2714 collect_symbol_completion_matches.
2715 (collect_symbol_completion_matches_type): Likewise.
2716 * symtab.h (default_collect_symbol_completion_matches): Delete
2717 declaration.
2718
2719 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2722 (ada_language_data): Delete la_word_break_characters initializer.
2723 (ada_language::word_break_characters): New member function.
2724 * c-lang.c (c_language_data): Delete la_word_break_characters
2725 initializer.
2726 (cplus_language_data): Likewise.
2727 (asm_language_data): Likewise.
2728 (minimal_language_data): Likewise.
2729 * completer.c: Update global comment.
2730 (advance_to_expression_complete_word_point): Update call to
2731 word_break_characters.
2732 (complete_files_symbols): Likewise.
2733 (complete_line_internal_1): Likewise.
2734 (default_completer_handle_brkchars): Likewise.
2735 (skip_quoted_chars): Likewise.
2736 * d-lang.c (d_language_data): Delete la_word_break_characters
2737 initializer.
2738 * f-lang.c (f_word_break_characters): Delete.
2739 (f_language_data): Delete la_word_break_characters initializer.
2740 (f_language::word_break_characters): New member function.
2741 * go-lang.c (go_language_data): Delete la_word_break_characters
2742 initializer.
2743 * language.c (unknown_language_data): Likewise.
2744 (auto_language_data): Likewise.
2745 * language.h (default_word_break_characters): Move declaration to
2746 earlier in the file.
2747 (language_data): Delete la_word_break_characters field.
2748 (language_defn::word_break_characters): New member function.
2749 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2750 initializer.
2751 * objc-lang.c (objc_language_data): Likewise.
2752 * opencl-lang.c (opencl_language_data): Likewise.
2753 * p-lang.c (pascal_language_data): Likewise.
2754 * rust-lang.c (rust_language_data): Likewise.
2755
2756 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2759 (ada_language_data): Delete la_get_symbol_name_matcher
2760 initializer.
2761 (language_defn::get_symbol_name_matcher_inner): New member
2762 function.
2763 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2764 initializer.
2765 (cplus_language_data): Likewise.
2766 (cplus_language::get_symbol_name_matcher_inner): New member
2767 function.
2768 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2769 (minimal_language_data): Likewise.
2770 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2771 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2772 initializer.
2773 * dictionary.c (iter_match_first_hashed): Update call to
2774 get_symbol_name_matcher.
2775 (iter_match_next_hashed): Likewise.
2776 (iter_match_next_linear): Likewise.
2777 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2778 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2779 initializer.
2780 (f_language::get_symbol_name_matcher_inner): New member function.
2781 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2782 initializer.
2783 * language.c (default_symbol_name_matcher): Update header comment,
2784 make static.
2785 (language_defn::get_symbol_name_matcher): New definition.
2786 (language_defn::get_symbol_name_matcher_inner): Likewise.
2787 (get_symbol_name_matcher): Delete.
2788 (unknown_language_data): Delete la_get_symbol_name_matcher
2789 initializer.
2790 (auto_language_data): Likewise.
2791 * language.h (language_data): Delete la_get_symbol_name_matcher
2792 field.
2793 (language_defn::get_symbol_name_matcher): New member function.
2794 (language_defn::get_symbol_name_matcher_inner): Likewise.
2795 (default_symbol_name_matcher): Delete declaration.
2796 * linespec.c (find_methods): Update call to
2797 get_symbol_name_matcher.
2798 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2799 initializer.
2800 * minsyms.c (lookup_minimal_symbol): Update call to
2801 get_symbol_name_matcher.
2802 (iterate_over_minimal_symbols): Likewise.
2803 * objc-lang.c (objc_language_data): Delete
2804 la_get_symbol_name_matcher initializer.
2805 * opencl-lang.c (opencl_language_data): Likewise.
2806 * p-lang.c (pascal_language_data): Likewise.
2807 * psymtab.c (psymbol_name_matches): Update call to
2808 get_symbol_name_matcher.
2809 * rust-lang.c (rust_language_data): Delete
2810 la_get_symbol_name_matcher initializer.
2811 * symtab.c (symbol_matches_search_name): Update call to
2812 get_symbol_name_matcher.
2813 (compare_symbol_name): Likewise.
2814
2815 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * ada-lang.c (ada_language_data): Delete la_compute_program
2818 initializer.
2819 * c-lang.c (c_language_data): Likewise.
2820 (c_language::compute_program): New member function.
2821 (cplus_language_data): Delete la_compute_program initializer.
2822 (cplus_language::compute_program): New member function.
2823 (asm_language_data): Delete la_compute_program initializer.
2824 (minimal_language_data): Likewise.
2825 * c-lang.h (c_compute_program): Update comment.
2826 (cplus_compute_program): Likewise.
2827 * compile/compile-c-support.c (c_compute_program): Likewise.
2828 (cplus_compute_program): Likewise.
2829 * compile/compile.c (compile_to_object): Update call to
2830 la_compute_program.
2831 * d-lang.c (d_language_data): Delete la_compute_program
2832 initializer.
2833 * f-lang.c (f_language_data): Likewise.
2834 * go-lang.c (go_language_data): Likewise.
2835 * language.c (unknown_language_data): Likewise.
2836 (auto_language_data): Likewise.
2837 * language.h (language_data): Delete la_compute_program field.
2838 (language_defn::compute_program): New member function.
2839 * m2-lang.c (m2_language_data): Delete la_compute_program
2840 initializer.
2841 * objc-lang.c (objc_language_data): Likewise.
2842 * opencl-lang.c (opencl_language_data): Likewise.
2843 * p-lang.c (pascal_language_data): Likewise.
2844 * rust-lang.c (rust_language_data): Likewise.
2845
2846 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * ada-lang.c (ada_language_data) Delete
2849 la_class_name_from_physname initializer.
2850 * c-lang.c (c_language_data): Likewise.
2851 (cplus_language_data): Likewise.
2852 (cplus_language::class_name_from_physname): New member function.
2853 (asm_language_data): Delete la_class_name_from_physname
2854 initializer.
2855 (minimal_language_data): Likewise.
2856 * d-lang.c (d_language_data): Likewise.
2857 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2858 method on language_defn class.
2859 (guess_full_die_structure_name): Likewise.
2860 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2861 initializer.
2862 * go-lang.c (go_language_data): Likewise.
2863 * language.c (language_class_name_from_physname): Delete.
2864 (unk_lang_class_name): Delete.
2865 (unknown_language_data): Delete la_class_name_from_physname
2866 initializer.
2867 (auto_language_data): Likewise.
2868 * language.h (language_data): Delete la_class_name_from_physname
2869 field.
2870 (language_defn::class_name_from_physname): New function.
2871 (language_class_name_from_physname): Delete declaration.
2872 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
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-16 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-data.h (STATUS_NAME): New macro.
2882 * tui/tui-layout.c (tui_remove_some_windows)
2883 (initialize_known_windows, tui_register_window)
2884 (tui_layout_split::remove_windows, initialize_layouts)
2885 (tui_new_layout_command): Don't use hard-coded window names.
2886
2887 2020-06-16 Tom Tromey <tom@tromey.com>
2888
2889 PR tui/25348:
2890 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2891 tui_initialize_readline. Only run once. Call rl_initialize.
2892 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2893 tui_initialize_readline.
2894 * tui/tui-io.c (tui_setup_io): Call
2895 tui_ensure_readline_initialized.
2896 * tui/tui-interp.c (tui_interp::init): Update.
2897
2898 2020-06-16 Tom Tromey <tom@tromey.com>
2899
2900 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2901 Also preserve the status window.
2902
2903 2020-06-16 Tom Tromey <tom@tromey.com>
2904
2905 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2906 where m_window==nullptr.
2907
2908 2020-06-15 Tom Tromey <tromey@adacore.com>
2909
2910 * windows-nat.c (windows_nat::handle_output_debug_string):
2911 Update.
2912 (windows_nat::handle_ms_vc_exception): Update.
2913 * target.h (target_read_string): Change API.
2914 * target.c (target_read_string): Change API.
2915 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2916 Update.
2917 * solib-frv.c (frv_current_sos): Update.
2918 * solib-dsbt.c (dsbt_current_sos): Update.
2919 * solib-darwin.c (darwin_current_sos): Update.
2920 * linux-thread-db.c (inferior_has_bug): Update.
2921 * expprint.c (print_subexp_standard): Update.
2922 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2923 (ada_exception_message_1): Update.
2924
2925 2020-06-15 Tom Tromey <tromey@adacore.com>
2926
2927 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2928
2929 2020-06-15 Tom Tromey <tromey@adacore.com>
2930
2931 * valprint.c (read_string): Update comment.
2932 * target.c (MIN): Remove.
2933 (target_read_string): Rewrite.
2934
2935 2020-06-15 Tom Tromey <tromey@adacore.com>
2936
2937 * corefile.c (read_memory_string): Remove.
2938 * ada-valprint.c (ada_value_print_ptr): Update.
2939 * ada-lang.h (ada_tag_name): Change return type.
2940 * ada-lang.c (type_from_tag): Update.
2941 (ada_tag_name_from_tsd): Change return type. Use
2942 target_read_string.
2943 (ada_tag_name): Likewise.
2944 * gdbcore.h (read_memory_string): Don't declare.
2945
2946 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2947
2948 * symtab.c (rbreak_command): Ignore Windows drive colon.
2949
2950 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * NEWS: Mention removed GDBserver host support.
2953
2954 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2955
2956 * features/riscv/rebuild-csr-xml.sh: Updated.
2957
2958 2020-06-11 Tom Tromey <tom@tromey.com>
2959
2960 PR gdb/18318:
2961 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2962
2963 2020-06-09 Jonny Grant <jg@jguk.org>
2964 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * main.c (captured_main_1): Don't print new line after help.
2967 (print_gdb_help): add mailing list and IRC channel information
2968 to --help. Add new lines between items in the footer. Remove
2969 quotes around bug url.
2970
2971 2020-06-11 Keith Seitz <keiths@redhat.com>
2972
2973 PR gdb/21356
2974 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2975 Resolve typedefs for type length calculations.
2976
2977 2020-06-10 Tom de Vries <tdevries@suse.de>
2978
2979 PR ada/24713
2980 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2981 (write_psymbols): Enable .gdb_index for ada.
2982 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2983 ada.
2984
2985 2020-06-10 Tom de Vries <tdevries@suse.de>
2986
2987 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2988 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2989 namei" instead of "const char *name" argument.
2990 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2991 dw2_symtab_iter_init.
2992
2993 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2996 to use type::field and field::type instead.
2997
2998 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3001 to use field::type instead.
3002
3003 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3004
3005 * gdbtypes.h (struct field) <type, set_type>: New methods.
3006 Rename `type` field to...
3007 <m_type>: ... this. Change references throughout to use type or
3008 set_type methods.
3009 (FIELD_TYPE): Use field::type. Change call sites that modify
3010 the field's type to use field::set_type instead.
3011
3012 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3015 to use type::index_type instead.
3016
3017 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3020 methods.
3021 (TYPE_INDEX_TYPE): Use type::index_type.
3022 * gdbtypes.c (create_array_type_with_stride): Likewise.
3023
3024 2020-06-07 Tom Tromey <tom@tromey.com>
3025
3026 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3027 parameter.
3028 (generic_value_print): Update.
3029
3030 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 Revert commit 982a38f60b0.
3033 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3034
3035 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3038 avoid use after free.
3039
3040 2020-06-05 Tom de Vries <tdevries@suse.de>
3041
3042 * NEWS: Fix typos.
3043
3044 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3047 the per_bfd object.
3048 (dwarf2_read_debug_names): Likewise.
3049 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3050 object when re-using a per_bfd object with an index.
3051
3052 2020-06-03 Tom de Vries <tdevries@suse.de>
3053
3054 PR symtab/26046
3055 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3056 children for C++.
3057 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3058 DW_TAG_subprogram.
3059
3060 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * ada-lang.c (ada_language_data): Delete skip_trampoline
3063 initializer.
3064 * c-lang.c (c_language_data): Likewise.
3065 (cplus_language_data): Likewise.
3066 (cplus_language::skip_trampoline): New member function.
3067 (asm_language_data): Delete skip_trampoline initializer.
3068 (minimal_language_data): Likewise.
3069 * d-lang.c (d_language_data): Likewise.
3070 * f-lang.c (f_language_data): Likewise.
3071 * go-lang.c (go_language_data): Likewise.
3072 * language.c (unk_lang_trampoline): Delete function.
3073 (skip_language_trampoline): Update.
3074 (unknown_language_data): Delete skip_trampoline initializer.
3075 (auto_language_data): Likewise.
3076 * language.h (language_data): Delete skip_trampoline field.
3077 (language_defn::skip_trampoline): New function.
3078 * m2-lang.c (m2_language_data): Delete skip_trampoline
3079 initializer.
3080 * objc-lang.c (objc_skip_trampoline): Delete function, move
3081 implementation to objc_language::skip_trampoline.
3082 (objc_language_data): Delete skip_trampoline initializer.
3083 (objc_language::skip_trampoline): New member function with
3084 implementation from objc_skip_trampoline.
3085 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3086 initializer.
3087 * p-lang.c (pascal_language_data): Likewise.
3088 * rust-lang.c (rust_language_data): Likewise.
3089
3090 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3093 (ada_language::demangle): New member function.
3094 * c-lang.c (c_language_data): Delete la_demangle initializer.
3095 (cplus_language_data): Delete la_demangle initializer.
3096 (cplus_language::demangle): New member function.
3097 (asm_language_data): Delete la_demangle initializer.
3098 (minimal_language_data): Delete la_demangle initializer.
3099 * d-lang.c (d_language_data): Delete la_demangle initializer.
3100 (d_language::demangle): New member function.
3101 * f-lang.c (f_language_data): Delete la_demangle initializer.
3102 (f_language::demangle): New member function.
3103 * go-lang.c (go_language_data): Delete la_demangle initializer.
3104 (go_language::demangle): New member function.
3105 * language.c (language_demangle): Update.
3106 (unk_lang_demangle): Delete.
3107 (unknown_language_data): Delete la_demangle initializer.
3108 (unknown_language::demangle): New member function.
3109 (auto_language_data): Delete la_demangle initializer.
3110 (auto_language::demangle): New member function.
3111 * language.h (language_data): Delete la_demangle field.
3112 (language_defn::demangle): New function.
3113 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3114 * objc-lang.c (objc_language_data): Delete la_demangle
3115 initializer.
3116 (objc_language::demangle): New member function.
3117 * opencl-lang.c (opencl_language_data): Delete la_demangle
3118 initializer.
3119 * p-lang.c (pascal_language_data): Likewise.
3120 * rust-lang.c (rust_language_data): Likewise.
3121 (rust_language::demangle): New member function.
3122
3123 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * ada-lang.c (ada_language_data): Delete la_print_type
3126 initializer.
3127 (ada_language::print_type): New member function.
3128 * c-lang.c (c_language_data): Delete la_print_type initializer.
3129 (c_language::print_type): New member function.
3130 (cplus_language_data): Delete la_print_type initializer.
3131 (cplus_language::print_type): New member function.
3132 (asm_language_data): Delete la_print_type initializer.
3133 (asm_language::print_type): New member function.
3134 (minimal_language_data): Delete la_print_type initializer.
3135 (minimal_language::print_type): New member function.
3136 * d-lang.c (d_language_data): Delete la_print_type initializer.
3137 (d_language::print_type): New member function.
3138 * f-lang.c (f_language_data): Delete la_print_type initializer.
3139 (f_language::print_type): New member function.
3140 * go-lang.c (go_language_data): Delete la_print_type initializer.
3141 (go_language::print_type): New member function.
3142 * language.c (unk_lang_print_type): Delete.
3143 (unknown_language_data): Delete la_print_type initializer.
3144 (unknown_language::print_type): New member function.
3145 (auto_language_data): Delete la_print_type initializer.
3146 (auto_language::print_type): New member function.
3147 * language.h (language_data): Delete la_print_type field.
3148 (language_defn::print_type): New function.
3149 (LA_PRINT_TYPE): Update.
3150 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3151 (m2_language::print_type): New member function.
3152 * objc-lang.c (objc_language_data): Delete la_print_type
3153 initializer.
3154 (objc_language::print_type): New member function.
3155 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3156 to opencl_language::print_type.
3157 (opencl_language_data): Delete la_print_type initializer.
3158 (opencl_language::print_type): New member function, implementation
3159 from opencl_print_type.
3160 * p-lang.c (pascal_language_data): Delete la_print_type
3161 initializer.
3162 (pascal_language::print_type): New member function.
3163 * rust-lang.c (rust_print_type): Delete, implementation moved to
3164 rust_language::print_type.
3165 (rust_language_data): Delete la_print_type initializer.
3166 (rust_language::print_type): New member function, implementation
3167 from rust_print_type.
3168
3169 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3172 implementation moves to...
3173 (ada_language::sniff_from_mangled_name): ...here. Update return
3174 type.
3175 (ada_language_data): Delete la_sniff_from_mangled_name
3176 initializer.
3177 * c-lang.c (c_language_data): Likewise.
3178 (cplus_language_data): Likewise.
3179 (cplus_language::sniff_from_mangled_name): New member function,
3180 implementation taken from gdb_sniff_from_mangled_name.
3181 (asm_language_data): Delete la_sniff_from_mangled_name
3182 initializer.
3183 (minimal_language_data): Likewise.
3184 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3185 implementation moves to cplus_language::sniff_from_mangled_name.
3186 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3187 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3188 moves to...
3189 (d_language::sniff_from_mangled_name): ...here.
3190 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3191 * f-lang.c (f_language_data): Likewise.
3192 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3193 moves to...
3194 (go_language::sniff_from_mangled_name): ...here.
3195 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3196 * language.c (language_sniff_from_mangled_name): Delete.
3197 (unknown_language_data): Delete la_sniff_from_mangled_name
3198 initializer.
3199 (auto_language_data): Likewise.
3200 * language.h (language_data): Delete la_sniff_from_mangled_name
3201 field.
3202 (language_defn::sniff_from_mangled_name): New function.
3203 (language_sniff_from_mangled_name): Delete declaration.
3204 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3205 field.
3206 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3207 implementation moves to...
3208 (objc_language::sniff_from_mangled_name): ...here.
3209 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3210 * opencl-lang.c (opencl_language_data): Likewise.
3211 * p-lang.c (pascal_language_data): Likewise.
3212 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3213 implementation moves to...
3214 (rust_language::sniff_from_mangled_name): ...here.
3215 (rust_language_data): Delete la_sniff_from_mangled_name
3216 initializer.
3217 * symtab.c (symbol_find_demangled_name): Call
3218 sniff_from_mangled_name member function.
3219
3220 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3223 initializer.
3224 * c-lang.c (c_language_data): Likewise.
3225 (cplus_language_data): Likewise.
3226 (cplus_language::search_name_hash): New member function.
3227 (asm_language_data): Delete la_search_name_hash initializer.
3228 (minimal_language_data): Likewise.
3229 * d-lang.c (d_language_data): Likewise.
3230 * dictionary.c (default_search_name_hash): Rename to...
3231 (language_defn::search_name_hash): ...this.
3232 * f-lang.c (f_language_data): Likewise.
3233 (f_language::search_name_hash): New member function.
3234 * go-lang.c (go_language_data): Delete la_search_name_hash
3235 initializer.
3236 * language.c (unknown_language_data): Likewise.
3237 (auto_language_data): Likewise.
3238 * language.h (struct language_data): Delete la_search_name_hash
3239 field.
3240 (language_defn::search_name_hash): Declare new member function.
3241 (default_search_name_hash): Delete declaration.
3242 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3243 initializer.
3244 * objc-lang.c (objc_language_data): Likewise.
3245 * opencl-lang.c (opencl_language_data): Likewise.
3246 * p-lang.c (pascal_language_data): Likewise.
3247 * rust-lang.c (rust_language_data): Likewise.
3248 * symtab.c (search_name_hash): Update call.
3249
3250 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3253 initializer.
3254 * c-lang.c (class compile_instance): Declare.
3255 (c_language_data): Delete la_get_compile_instance initializer.
3256 (c_language::get_compile_instance): New member function.
3257 (cplus_language_data): Delete la_get_compile_instance initializer.
3258 (cplus_language::get_compile_instance): New member function.
3259 (asm_language_data): Delete la_get_compile_instance initializer.
3260 (minimal_language_data): Likewise.
3261 * c-lang.h (c_get_compile_context): Update comment.
3262 (cplus_get_compile_context): Update comment.
3263 * compile/compile.c (compile_to_object): Update calls, don't rely
3264 on function pointer being NULL.
3265 * d-lang.c (d_language_data): Delete la_get_compile_instance
3266 initializer.
3267 * f-lang.c (f_language_data): Likewise.
3268 * go-lang.c (go_language_data): Likewise.
3269 * language.c (unknown_language_data): Likewise.
3270 (auto_language_data): Likewise.
3271 * language.h (language_data): Delete la_get_compile_instance field.
3272 (language_defn::get_compile_instance): New member function.
3273 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3274 initializer.
3275 * objc-lang.c (objc_language_data): Likewise.
3276 * opencl-lang.c (opencl_language_data): Likewise.
3277 * p-lang.c (pascal_language_data): Likewise.
3278 * rust-lang.c (rust_language_data): Likewise.
3279
3280 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_add_all_symbols): Update comment.
3283 (ada_iterate_over_symbols): Delete, move implementation to...
3284 (ada_language::iterate_over_symbols): ...here, a new member
3285 function, rewrite to use range based for loop.
3286 (ada_language_data): Delete la_iterate_over_symbols initializer.
3287 * c-lang.c (c_language_data): Likewise.
3288 (cplus_language_data): Likewise.
3289 (asm_language_data): Likewise.
3290 (minimal_language_data): Likewise.
3291 * d-lang.c (d_language_data): Likewise.
3292 * f-lang.c (f_language_data): Likewise.
3293 * go-lang.c (go_language_data): Likewise.
3294 * language.c (unknown_language_data): Likewise.
3295 (auto_language_data): Likewise.
3296 * language.h (language_data): Delete la_iterate_over_symbols field.
3297 (language_defn::iterate_over_symbols): New member function.
3298 (LA_ITERATE_OVER_SYMBOLS): Update.
3299 * linespec.c (iterate_over_all_matching_symtabs): Update.
3300 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3301 initializer.
3302 * objc-lang.c (objc_language_data): Likewise.
3303 * opencl-lang.c (opencl_language_data): Likewise.
3304 * p-lang.c (pascal_language_data): Likewise.
3305 * rust-lang.c (rust_language_data): Likewise.
3306
3307 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * ada-lang.c (ada_language_data): Delete
3310 la_lookup_transparent_type initializer.
3311 * c-lang.c (c_language_data): Likewise.
3312 (cplus_language_data): Likewise.
3313 (cplus_language::lookup_transparent_type): New member function.
3314 (asm_language_data): Delete la_lookup_transparent_type
3315 initializer.
3316 (minimal_language_data): Likewise.
3317 * d-lang.c (d_language_data): Likewise.
3318 * f-lang.c (f_language_data): Likewise.
3319 * go-lang.c (go_language_data): Likewise.
3320 * language.c (unknown_language_data): Likewise.
3321 (auto_language_data): Likewise.
3322 * language.h (struct language_data): Delete
3323 la_lookup_transparent_type field.
3324 (language_defn::lookup_transparent_type): New member function.
3325 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3326 initializer.
3327 * objc-lang.c (objc_language_data): Likewise.
3328 * opencl-lang.c (opencl_language_data): Likewise.
3329 * p-lang.c (pascal_language_data): Likewise.
3330 * rust-lang.c (rust_language_data): Likewise.
3331 * symtab.c (symbol_matches_domain): Update call.
3332
3333 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * ada-lang.c (ada_language_arch_info): Delete function, move
3336 implementation to...
3337 (ada_language::language_arch_info): ...here, a new member
3338 function.
3339 (ada_language_data): Delete la_language_arch_info.
3340 * c-lang.c (c_language_data): Likewise.
3341 (c_language::language_arch_info): New member function.
3342 (cplus_language_arch_info): Delete function, move
3343 implementation to...
3344 (cplus_language::language_arch_info): ...here, a new member
3345 function.
3346 (cplus_language_data): Delete la_language_arch_info.
3347 (asm_language_data): Likewise.
3348 (asm_language::language_arch_info): New member function.
3349 (minimal_language_data): Delete la_language_arch_info.
3350 (minimal_language::language_arch_info): New member function.
3351 * d-lang.c (d_language_arch_info): Delete function, move
3352 implementation to...
3353 (d_language::language_arch_info): ...here, a new member
3354 function.
3355 (d_language_data): Delete la_language_arch_info.
3356 * f-lang.c (f_language_arch_info): Delete function, move
3357 implementation to...
3358 (f_language::language_arch_info): ...here, a new member
3359 function.
3360 (f_language_data): Delete la_language_arch_info.
3361 * go-lang.c (go_language_arch_info): Delete function, move
3362 implementation to...
3363 (go_language::language_arch_info): ...here, a new member
3364 function.
3365 (go_language_data): Delete la_language_arch_info.
3366 * language.c (unknown_language_data): Likewise.
3367 (unknown_language::language_arch_info): New member function.
3368 (auto_language_data): Delete la_language_arch_info.
3369 (auto_language::language_arch_info): New member function.
3370 (language_gdbarch_post_init): Update call to
3371 la_language_arch_info.
3372 * language.h (language_data): Delete la_language_arch_info
3373 function pointer.
3374 (language_defn::language_arch_info): New function.
3375 * m2-lang.c (m2_language_arch_info): Delete function, move
3376 implementation to...
3377 (m2_language::language_arch_info): ...here, a new member
3378 function.
3379 (m2_language_data): Delete la_language_arch_info.
3380 * objc-lang.c (objc_language_arch_info): Delete function, move
3381 implementation to...
3382 (objc_language::language_arch_info): ...here, a new member
3383 function.
3384 (objc_language_data): Delete la_language_arch_info.
3385 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3386 implementation to...
3387 (opencl_language::language_arch_info): ...here, a new member
3388 function.
3389 (opencl_language_data): Delete la_language_arch_info.
3390 * p-lang.c (pascal_language_arch_info): Delete function, move
3391 implementation to...
3392 (pascal_language::language_arch_info): ...here, a new member
3393 function.
3394 (pascal_language_data): Delete la_language_arch_info.
3395 * rust-lang.c (rust_language_arch_info): Delete function, move
3396 implementation to...
3397 (rust_language::language_arch_info): ...here, a new member
3398 function.
3399 (rust_language_data): Delete la_language_arch_info.
3400
3401 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3404 initializer.
3405 * c-lang.c (c_language_data): Likewise.
3406 (cplus_language_data): Likewise.
3407 (cplus_language::pass_by_reference_info): New method.
3408 (asm_language_data): Delete la_pass_by_reference initializer.
3409 (minimal_language_data): Likewise.
3410 * cp-abi.c (cp_pass_by_reference): Remove use of
3411 default_pass_by_reference.
3412 * d-lang.c (d_language_data): Likewise.
3413 * f-lang.c (f_language_data): Likewise.
3414 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3415 default_pass_by_reference.
3416 * go-lang.c (go_language_data): Likewise.
3417 * language.c (language_pass_by_reference): Update.
3418 (default_pass_by_reference): Delete.
3419 (unknown_language_data): Delete la_pass_by_reference
3420 initializer.
3421 (auto_language_data): Likewise.
3422 * language.h (struct language_data): Delete la_pass_by_reference
3423 field.
3424 (language_defn::pass_by_reference_info): New member function.
3425 (default_pass_by_reference): Delete declaration.
3426 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3427 initializer.
3428 * objc-lang.c (objc_language_data): Likewise.
3429 * opencl-lang.c (opencl_language_data): Likewise.
3430 * p-lang.c (pascal_language_data): Likewise.
3431 * rust-lang.c (rust_language_data): Likewise.
3432
3433 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * ada-lang.c (ada_read_var_value): Delete function, move
3436 implementation to...
3437 (ada_language::read_var_value): ...here.
3438 (ada_language_data): Delete la_read_var_value initializer.
3439 * c-lang.c (c_language_data): Likewise.
3440 (cplus_language_data): Likewise.
3441 (minimal_language_data): Likewise.
3442 * d-lang.c (d_language_data): Likewise.
3443 * f-lang.c (f_language_data): Likewise.
3444 * findvar.c (default_read_var_value): Rename to...
3445 (language_defn::read_var_value): ...this.
3446 * findvar.c (read_var_value): Update header comment, and change to
3447 call member function instead of function pointer.
3448 * go-lang.c (go_language_data): Likewise.
3449 * language.c (unknown_language_data): Delete la_read_var_value
3450 initializer.
3451 (auto_language_data): Likewise.
3452 * language.h (struct language_data): Delete la_read_var_value
3453 field.
3454 (language_defn::read_var_value): New member function.
3455 (default_read_var_value): Delete declaration.
3456 * m2-lang.c (m2_language_data): Delete la_read_var_value
3457 initializer.
3458 * objc-lang.c (objc_language_data): Likewise.
3459 * opencl-lang.c (opencl_language_data): Likewise.
3460 * p-lang.c (pascal_language_data): Likewise.
3461 * rust-lang.c (rust_language_data): Likewise.
3462 * value.h (default_read_var_value): Delete declaration.
3463
3464 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * ada-lang.c (ada_print_array_index): Delete function, move
3467 implementation to...
3468 (ada_language::print_array_index): ...here.
3469 (ada_language_data): Delete la_print_array_index initializer.
3470 * c-lang.c (c_language_data): Likewise.
3471 (cplus_language_data): Likewise.
3472 (minimal_language_data): Likewise.
3473 * d-lang.c (d_language_data): Likewise.
3474 * f-lang.c (f_language_data): Likewise.
3475 * go-lang.c (go_language_data): Likewise.
3476 * language.c (default_print_array_index): Delete function, move
3477 implementation to...
3478 (language_defn::print_array_index): ...here.
3479 (unknown_language_data): Delete la_print_array_index initializer.
3480 (auto_language_data): Likewise.
3481 * language.h (struct language_data): Delete la_print_array_index
3482 field.
3483 (language_defn::print_array_index): New member function.
3484 (LA_PRINT_ARRAY_INDEX): Update.
3485 (default_print_array_index): Delete declaration.
3486 * m2-lang.c (m2_language_data): Delete la_print_array_index
3487 initializer.
3488 * objc-lang.c (objc_language_data): Likewise.
3489 * opencl-lang.c (opencl_language_data): Likewise.
3490 * p-lang.c (pascal_language_data): Likewise.
3491 * rust-lang.c (rust_language_data): Likewise.
3492
3493 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * gdb/ada-lang.c (ada_language_defn): Convert to...
3496 (ada_language_data): ...this.
3497 (class ada_language): New class.
3498 (ada_language_defn): New static global.
3499 * gdb/c-lang.c (c_language_defn): Convert to...
3500 (c_language_data): ...this.
3501 (class c_language): New class.
3502 (c_language_defn): New static global.
3503 (cplus_language_defn): Convert to...
3504 (cplus_language_data): ...this.
3505 (class cplus_language): New class.
3506 (cplus_language_defn): New static global.
3507 (asm_language_defn): Convert to...
3508 (asm_language_data): ...this.
3509 (class asm_language): New class.
3510 (asm_language_defn): New static global.
3511 (minimal_language_defn): Convert to...
3512 (minimal_language_data): ...this.
3513 (class minimal_language): New class.
3514 (minimal_language_defn): New static global.
3515 * gdb/d-lang.c (d_language_defn): Convert to...
3516 (d_language_data): ...this.
3517 (class d_language): New class.
3518 (d_language_defn): New static global.
3519 * gdb/f-lang.c (f_language_defn): Convert to...
3520 (f_language_data): ...this.
3521 (class f_language): New class.
3522 (f_language_defn): New static global.
3523 * gdb/go-lang.c (go_language_defn): Convert to...
3524 (go_language_data): ...this.
3525 (class go_language): New class.
3526 (go_language_defn): New static global.
3527 * gdb/language.c (unknown_language_defn): Remove declaration.
3528 (current_language): Initialize to nullptr, real initialization is
3529 moved to _initialize_language.
3530 (languages): Delete global.
3531 (language_defn::languages): Define.
3532 (set_language_command): Use language_defn::languages.
3533 (set_language): Likewise.
3534 (range_error): Likewise.
3535 (language_enum): Likewise.
3536 (language_def): Likewise.
3537 (add_set_language_command): Use language_def::languages for the
3538 language list, and language_def to lookup language pointers.
3539 (skip_language_trampoline): Use language_defn::languages.
3540 (unknown_language_defn): Convert to...
3541 (unknown_language_data): ...this.
3542 (class unknown_language): New class.
3543 (unknown_language_defn): New static global.
3544 (auto_language_defn): Convert to...
3545 (auto_language_data): ...this.
3546 (class auto_language): New class.
3547 (auto_language_defn): New static global.
3548 (language_gdbarch_post_init): Use language_defn::languages.
3549 (_initialize_language): Initialize current_language.
3550 * gdb/language.h (struct language_defn): Rename to...
3551 (struct language_data): ...this.
3552 (struct language_defn): New.
3553 (auto_language_defn): Delete.
3554 (unknown_language_defn): Delete.
3555 (minimal_language_defn): Delete.
3556 (ada_language_defn): Delete.
3557 (asm_language_defn): Delete.
3558 (c_language_defn): Delete.
3559 (cplus_language_defn): Delete.
3560 (d_language_defn): Delete.
3561 (f_language_defn): Delete.
3562 (go_language_defn): Delete.
3563 (m2_language_defn): Delete.
3564 (objc_language_defn): Delete.
3565 (opencl_language_defn): Delete.
3566 (pascal_language_defn): Delete.
3567 (rust_language_defn): Delete.
3568 * gdb/m2-lang.c (m2_language_defn): Convert to...
3569 (m2_language_data): ...this.
3570 (class m2_language): New class.
3571 (m2_language_defn): New static global.
3572 * gdb/objc-lang.c (objc_language_defn): Convert to...
3573 (objc_language_data): ...this.
3574 (class objc_language): New class.
3575 (objc_language_defn): New static global.
3576 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3577 (opencl_language_data): ...this.
3578 (class opencl_language): New class.
3579 (opencl_language_defn): New static global.
3580 * gdb/p-lang.c (pascal_language_defn): Convert to...
3581 (pascal_language_data): ...this.
3582 (class pascal_language): New class.
3583 (pascal_language_defn): New static global.
3584 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3585 language pointer, update comment format.
3586 * gdb/rust-lang.c (rust_language_defn): Convert to...
3587 (rust_language_data): ...this.
3588 (class rust_language): New class.
3589 (rust_language_defn): New static global.
3590
3591 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3594 member variable.
3595 <m_stmt_at_address>: New member variable.
3596 (lnp_state_machine::record_line): Don't record some lines, update
3597 tracking of is_stmt at the same address.
3598 (lnp_state_machine::lnp_state_machine): Initialise new member
3599 variables.
3600
3601 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3602
3603 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3604 "-include gnu-nat-mig.h".
3605 * gnu-nat-mig.h: New file.
3606 * gnu-nat.c: Include "gnu-nat-mig.h".
3607 (exc_server, msg_reply_server, notify_server,
3608 process_reply_server): Remove declarations.
3609
3610 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3611
3612 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3613 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3614 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3615 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3616 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3617 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3618 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3619 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3620 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3621 to gnu_nat_target class.
3622 * gnu-nat.c: Likewise.
3623 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3624 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3625 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3626 object.
3627 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3628 instead of `gnu_target'.
3629
3630 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3631
3632 * i386-gnu-tdep.c: Include "gdbcore.h"
3633 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3634 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3635 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3636 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3637 i386_gnu_sigcontext_addr): New functions
3638 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3639 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3640 tdep.
3641
3642 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3643
3644 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3645 before fork_inferior call. Avoid calling it if target_is_pushed returns
3646 true.
3647
3648 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3649
3650 * gnu-nat.h (gnu_target): New variable declaration.
3651 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3652 gnu_target.
3653 * gnu-nat.c (gnu_target): New variable.
3654 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3655 add_thread_silent, and add_thread calls.
3656 (gnu_nat_target::create_inferior): Pass gnu_target to
3657 add_thread_silent, thread_change_ptid call.
3658 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3659 call.
3660
3661 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3662
3663 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3664 (gnu_nat_target::find_memory_regions): Remove unused
3665 `old_address' variable.
3666
3667 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3668
3669 * gnu-nat.c: Include "gdbarch.h".
3670
3671 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3672
3673 * reply_mig_hack.awk (Error return): Cast function through
3674 void *, to bypass compiler function call check.
3675
3676 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3677
3678 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3679 $(srcdir)/reply_mig_hack.awk.
3680
3681 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3682
3683 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3684
3685 2020-05-30 Jonny Grant <jg@jguk.org>
3686
3687 * configure.ac (ACX_BUGURL): change bug URL to https.
3688
3689 2020-05-30 Pedro Alves <palves@redhat.com>
3690
3691 * cp-support.c (replace_typedefs_template): New.
3692 (replace_typedefs_qualified_name): Handle
3693 DEMANGLE_COMPONENT_TEMPLATE.
3694
3695 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3696
3697 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3698 dwarf2/index-cache.h, dwarf2/index-write.c,
3699 dwarf2/index-write.h, dwarf2/line-header.c,
3700 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3701 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3702 variables and fields from `dwarf2_per_objfile` to just
3703 `per_objfile` throughout.
3704
3705 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3706
3707 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3708 <push_dwarf_reg_entry_value>: Add comment.
3709
3710 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3711 Keith Seitz <keiths@redhat.com>
3712
3713 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3714 instead of PyEval_ReleaseLock.
3715 (class gdbpy_gil): Move to earlier in file.
3716 (finalize_python): Set gdb_python_initialized.
3717 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3718 when not initialized.
3719
3720 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3723 <push_dwarf_reg_entry_value>: Remove assert. Override
3724 per_objfile with caller_per_objfile.
3725
3726 2020-05-28 Tom de Vries <tdevries@suse.de>
3727
3728 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3729 PR gold/15646 workaround to symbol kind "type".
3730
3731 2020-05-27 Tom Tromey <tromey@adacore.com>
3732
3733 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3734
3735 2020-05-27 Tom Tromey <tromey@adacore.com>
3736
3737 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3738 Use htab_find_with_hash.
3739 <add_abbrev>: Remove "abbrev_number" parameter.
3740 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3741 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3742 (hash_abbrev): Add comment.
3743 (abbrev_table::lookup_abbrev): Move to header file.
3744 (abbrev_table::read): Update.
3745
3746 2020-05-27 Tom Tromey <tromey@adacore.com>
3747
3748 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3749 method.
3750 <canonical_name>: New member.
3751 <raw_name>: Rename from "name".
3752 (partial_die_info): Initialize canonical_name.
3753 (scan_partial_symbols): Check raw_name.
3754 (partial_die_parent_scope, partial_die_full_name)
3755 (add_partial_symbol, add_partial_subprogram)
3756 (add_partial_enumeration, load_partial_dies): Use "name" method.
3757 (partial_die_info::name): New method.
3758 (partial_die_info::read, guess_partial_die_structure_name)
3759 (partial_die_info::fixup): Update.
3760
3761 2020-05-27 Tom Tromey <tromey@adacore.com>
3762
3763 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3764 <get_ref_die_offset>: Inline.
3765 <get_ref_die_offset_complaint>: New method.
3766 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3767 (attribute::get_ref_die_offset_complaint): Rename from
3768 get_ref_die_offset. Just issue complaint.
3769
3770 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3771
3772 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3773
3774 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3775
3776 * exec.c (exec_file_attach): Use errno value of first openp failure.
3777
3778 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3779
3780 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3781 Don't close thread handle.
3782
3783 2020-05-27 Tom Tromey <tom@tromey.com>
3784 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3787 shared_ptr.
3788 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3789 member.
3790 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3791 dwarf2_per_bfd_objfile_data_key>: New globals.
3792 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3793 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3794 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3795 shared.
3796 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3797 short-circuit when sharing.
3798 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3799 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3800
3801 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3804 to...
3805 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3806 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3807
3808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3811 build_name_components, find_name_components_bounds>:
3812 Add per_objfile parameter.
3813 (struct mapped_index) <symbol_name_at>: Likewise.
3814 (struct mapped_debug_names): Remove constructor.
3815 <dwarf2_per_objfile>: Remove field.
3816 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3817 (mapped_index_base::find_name_components_bounds,
3818 mapped_index_base::build_name_components,
3819 dw2_expand_symtabs_matching_symbol): Likewise.
3820 (class mock_mapped_index) <symbol_name_at>: Likewise.
3821 (check_match): Likewise.
3822 (check_find_bounds_finds): Likewise.
3823 (test_mapped_index_find_name_component_bounds): Update.
3824 (CHECK_MATCH): Update.
3825 (dw2_expand_symtabs_matching): Update.
3826 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3827 per_objfile parameter.
3828 <find_vec_in_debug_names>: Likewise.
3829 <m_per_objfile>: New field.
3830 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3831 parameter.
3832 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3833 (dw2_debug_names_iterator::next): Update.
3834 (dw2_debug_names_lookup_symbol): Update.
3835 (dw2_debug_names_expand_symtabs_for_function): Update.
3836 (dw2_debug_names_map_matching_symbols): Update.
3837 (dw2_debug_names_expand_symtabs_matching): Update.
3838 (dwarf2_read_debug_names): Update.
3839
3840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3841
3842 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3843 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3844 move to dwarf2_per_objfile.
3845 <read_in_chain>: Remove.
3846 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3847 remove_all_cus, age_comp_units>: New methods.
3848 <m_dwarf2_cus>: New member.
3849 (struct dwarf2_per_cu_data) <cu>: Remove.
3850 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3851 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3852 moved to methods of dwarf2_per_objfile.
3853 (dwarf2_clear_marks): Remove.
3854 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3855 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3856 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3857 (dwarf2_per_objfile::remove_all_cus): New.
3858 (class free_cached_comp_units) <~free_cached_comp_units>:
3859 Update.
3860 (load_cu): Update.
3861 (dw2_do_instantiate_symtab): Adjust.
3862 (fill_in_sig_entry_from_dwo_entry): Adjust.
3863 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3864 (cutu_reader::cutu_reader): Likewise.
3865 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3866 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3867 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3868 and dwarf2_per_objfile::age_comp_units.
3869 (load_partial_comp_unit): Update.
3870 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3871 (process_queue): Likewise.
3872 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3873 backlink.
3874 (dwarf2_read_addr_index): Likewise.
3875 (follow_die_offset): Likewise.
3876 (dwarf2_fetch_die_loc_sect_off): Likewise.
3877 (dwarf2_fetch_constant_bytes): Likewise.
3878 (dwarf2_fetch_die_type_sect_off): Likewise.
3879 (follow_die_sig_1): Likewise.
3880 (load_full_type_unit): Likewise.
3881 (read_signatured_type): Likewise.
3882 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3883 (dwarf2_cu::~dwarf2_cu): Remove.
3884 (dwarf2_per_objfile::get_cu): New.
3885 (dwarf2_per_objfile::set_cu): New.
3886 (age_cached_comp_units): Rename to...
3887 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3888 to std::unordered_map.
3889 (free_one_cached_comp_unit): Rename to...
3890 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3891 to std::unordered_map.
3892 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3893 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3894 a dwarf2_per_objfile in data.
3895 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3896 (dwarf2_clear_marks): Remove.
3897
3898 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3901 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3902 (init_tu_and_read_dwo_dies): Likewise.
3903 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3904 (cutu_reader::cutu_reader): Likewise.
3905 (load_partial_comp_unit): Likewise.
3906 (process_psymtab_comp_unit): Update.
3907 (build_type_psymtabs_1): Update.
3908 (process_skeletonless_type_unit): Update.
3909 (load_full_comp_unit): Update.
3910 (find_partial_die): Update.
3911 (dwarf2_read_addr_index): Update.
3912 (read_signatured_type): Update.
3913
3914 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3915
3916 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3917 m_header_read_in>: New fields.
3918 <get_header>: New method.
3919 * dwarf2/read.c (per_cu_header_read_in): Remove.
3920 (dwarf2_per_cu_data::get_header): New.
3921 (dwarf2_per_cu_data::addr_size): Update.
3922 (dwarf2_per_cu_data::offset_size): Update.
3923 (dwarf2_per_cu_data::ref_addr_size): Update.
3924
3925 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3928 (dw2_do_instantiate_symtab): Update.
3929 (queue_and_load_all_dwo_tus): Change parameter from
3930 dwarf2_per_cu_data to dwarf2_cu.
3931 (dwarf2_fetch_die_loc_sect_off): Update.
3932 (dwarf2_fetch_constant_bytes): Update.
3933 (dwarf2_fetch_die_type_sect_off): Update.
3934
3935 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3936
3937 * dwarf2/read.c (process_full_comp_unit,
3938 process_full_type_unit): Remove per_cu, per_objfile paramters.
3939 Add dwarf2_cu parameter.
3940 (process_queue): Update.
3941
3942 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3943
3944 * dwarf2/read.c (create_cu_from_index_list): Replace
3945 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3946 (create_cus_from_index_list): Likewise.
3947 (create_cus_from_index): Likewise.
3948 (create_signatured_type_table_from_index): Likewise.
3949 (create_cus_from_debug_names_list): Likewise.
3950 (create_cus_from_debug_names): Likewise.
3951 (dwarf2_read_gdb_index): Update.
3952 (dwarf2_read_debug_names): Update.
3953
3954 2020-05-27 Tom Tromey <tom@tromey.com>
3955 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/read.h (struct dwarf2_per_objfile)
3958 <get_type_for_signatured_type, set_type_for_signatured_type>:
3959 New methods.
3960 <m_type_map>: New member.
3961 (struct signatured_type) <type>: Remove.
3962 * dwarf2/read.c
3963 (dwarf2_per_objfile::get_type_for_signatured_type,
3964 dwarf2_per_objfile::set_type_for_signatured_type): New.
3965 (get_signatured_type): Use new methods.
3966
3967 2020-05-27 Tom Tromey <tom@tromey.com>
3968 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3971 (struct dwarf2_per_objfile) <type_units>: New member.
3972 <get_type_unit_group_unshareable>: New method.
3973 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3974 num_symtabs, symtabs>: Remove; move to
3975 type_unit_group_unshareable.
3976 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3977 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3978 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3979
3980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/read.h (struct dwarf2_per_cu_data):
3983 <dwarf2_per_objfile>: Remove.
3984 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3985 dwarf2_per_objfile.
3986 (create_signatured_type_table_from_index): Likewise.
3987 (create_signatured_type_table_from_debug_names): Likewise.
3988 (create_debug_type_hash_table): Likewise.
3989 (fill_in_sig_entry_from_dwo_entry): Likewise.
3990 (create_type_unit_group): Likewise.
3991 (read_comp_units_from_section): Likewise.
3992 (create_cus_hash_table): Likewise.
3993
3994 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3997 dwarf2_per_cu_data::dwarf2_per_objfile.
3998 (compute_compunit_symtab_includes): Likewise.
3999 (dwarf2_cu::start_symtab): Likewise.
4000
4001 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4004 parameter.
4005 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4006 (read_namespace_alias): Update.
4007 (lookup_die_type): Update.
4008 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4009 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4010 Update.
4011 (disassemble_dwarf_expression): Update.
4012
4013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * dwarf2/read.h (struct dwarf2_queue_item): Add
4016 dwarf2_per_objfile parameter, assign new parameter.
4017 <per_objfile>: New field.
4018 * dwarf2/read.c (free_one_cached_comp_unit): Add
4019 dwarf2_per_objfile parameter.
4020 (queue_comp_unit): Likewise.
4021 (dw2_do_instantiate_symtab): Update.
4022 (process_psymtab_comp_unit): Update.
4023 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4024 (process_imported_unit_die): Update.
4025 (queue_and_load_dwo_tu): Update.
4026 (follow_die_offset): Update.
4027 (follow_die_sig_1): Update.
4028
4029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4032 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4033 (read_call_site_scope): Assign per_objfile.
4034 (dwarf2_per_cu_data::objfile): Remove.
4035 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4036 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4037 dwarf2_per_objfile parameter.
4038 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4039 dwarf2_per_objfile parameter.
4040 (dwarf_expr_reg_to_entry_parameter): Add output
4041 dwarf2_per_objfile parameter.
4042 (locexpr_get_frame_base): Update.
4043 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4044 <push_dwarf_reg_entry_value>: Update.
4045 <call_site_to_target_addr>: Update.
4046 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4047 parameter.
4048 (value_of_dwarf_reg_entry): Update.
4049 (rw_pieced_value): Update.
4050 (indirect_synthetic_pointer): Update.
4051 (dwarf2_evaluate_property): Update.
4052 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4053 parameter.
4054 (locexpr_read_variable): Update.
4055 (locexpr_get_symbol_read_needs): Update.
4056 (loclist_read_variable): Update.
4057
4058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4061 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4062 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4063 parameter.
4064 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4065 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4066 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4067 parameter.
4068 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4069 sect_variable_value): Add dwarf2_per_objfile parameter.
4070 (class dwarf_evaluate_loc_desc) <dwarf_call,
4071 dwarf_variable_value>: Update.
4072 (fetch_const_value_from_synthetic_pointer): Add
4073 dwarf2_per_objfile parameter.
4074 (fetch_const_value_from_synthetic_pointer): Update.
4075 (coerced_pieced_ref): Update.
4076 (class symbol_needs_eval_context) <dwarf_call,
4077 dwarf_variable_value>: Update.
4078 (dwarf2_compile_expr_to_ax): Update.
4079
4080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4083 parameter.
4084 (dwarf2_evaluate_loc_desc_full): Update.
4085
4086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4089 parameter.
4090 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4091 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4092 dwarf2_per_objfile parameter.
4093 (decode_debug_loc_dwo_addresses): Likewise.
4094 (dwarf2_find_location_expression): Update.
4095 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4096 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4097 parameter.
4098 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4099 parameter.
4100 (locexpr_describe_location_1): Likewise.
4101 (locexpr_describe_location): Update.
4102
4103 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4106 Remove.
4107 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4108 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4109 (dwarf2_compile_property_to_c): Update.
4110 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4111 use text offset from objfile.
4112 (locexpr_tracepoint_var_ref): Update.
4113 (locexpr_generate_c_location): Update.
4114 (loclist_describe_location): Update.
4115 (loclist_tracepoint_var_ref): Update.
4116 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4117 dwarf2_per_objfile parameter.
4118 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4119 use text offset from objfile.
4120 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4121
4122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * dwarf2/expr.h (struct dwarf_expr_context)
4125 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4126 <offset>: Remove.
4127 <per_objfile>: New member.
4128 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4129 dwarf2_per_objfile parameter. Don't set offset, set
4130 per_objfile.
4131 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4132 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4133 a dwarf2_per_objfile object instead of an offset.
4134 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4135 constructor.
4136 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4137 to dwarf2_expr_executor constructor. Don't set offset.
4138 (dwarf2_fetch_cfa_info): Update.
4139 (struct dwarf2_frame_cache) <text_offset>: Remove.
4140 <per_objfile>: New field.
4141 (dwarf2_frame_cache): Update.
4142 (dwarf2_frame_prev_register): Update.
4143 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4144 <dwarf_evaluate_loc_desc>: Add constructor.
4145 (dwarf2_evaluate_loc_desc_full): Update.
4146 (dwarf2_locexpr_baton_eval): Update.
4147 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4148 Add constructor.
4149 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4150
4151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4152
4153 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4154 addr_sized_int_type>: Move to dwarf2_cu.
4155 <int_type>: Move to dwarf2_per_objfile.
4156 (struct dwarf2_per_objfile) <int_type>: Move here.
4157 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4158 addr_sized_int_type>: Move here.
4159 (read_func_scope): Update.
4160 (read_array_type): Update.
4161 (read_tag_string_type): Update.
4162 (attr_to_dynamic_prop): Update.
4163 (dwarf2_per_cu_data::int_type): Rename to...
4164 (dwarf2_per_objfile::int_type): ... this.
4165 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4166 (dwarf2_cu::addr_sized_int_type): ... this.
4167 (read_subrange_type): Update.
4168 (dwarf2_per_cu_data::addr_type): Rename to...
4169 (dwarf2_cu::addr_type): ... this.
4170 (set_die_type): Update.
4171
4172 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4175 data through per_cu->cu.
4176
4177 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4180 dwarf2_per_cu_data parameter fo dwarf2_cu.
4181 (lookup_dwo_type_unit): Likewise.
4182 (read_cutu_die_from_dwo): Likewise.
4183 (lookup_dwo_unit): Likewise.
4184 (open_and_init_dwo_file): Likewise.
4185 (lookup_dwo_cutu): Likewise.
4186 (lookup_dwo_comp_unit): Likewise.
4187 (lookup_dwo_type_unit): Likewise.
4188 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4189 (cutu_reader::cutu_reader): Update.
4190
4191 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4194 parameter.
4195 (process_full_type_unit): Likewise.
4196 (process_queue): Update.
4197
4198 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * dwarf2/read.c (recursively_compute_inclusions): Add
4201 dwarf2_per_objfile parameter.
4202 (compute_compunit_symtab_includes): Likewise.
4203 (process_cu_includes): Update.
4204
4205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4208 parameter.
4209 (create_type_unit_group): Update.
4210 (process_psymtab_comp_unit_reader): Update.
4211 (build_type_psymtabs_reader): Update.
4212
4213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4216 object through m_this_cu->cu.
4217
4218 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4219
4220 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4221 the info parameter.
4222 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4223
4224 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4225
4226 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4227 per_objfile parameter.
4228 (load_full_type_unit): Add per_objfile parameter.
4229 (read_signatured_type): Likewise.
4230 (load_full_comp_unit): Likewise.
4231 (load_cu): Likewise.
4232 (dw2_do_instantiate_symtab): Likewise.
4233 (dw2_get_file_names): Likewise.
4234 (dw2_map_symtabs_matching_filename): Update.
4235 (dw_expand_symtabs_matching_file_matcher): Update.
4236 (dw2_map_symbol_filenames): Update.
4237 (process_psymtab_comp_unit): Add per_objfile parameter.
4238 (build_type_psymtabs_1): Update.
4239 (process_skeletonless_type_unit): Update.
4240 (dwarf2_build_psymtabs_hard): Update.
4241 (load_partial_comp_unit): Add per_objfile parameter.
4242 (scan_partial_symbols): Update.
4243 (load_full_comp_unit): Add per_objfile parameter.
4244 (process_imported_unit_die): Update.
4245 (create_cus_hash_table): Update.
4246 (find_partial_die): Update.
4247 (dwarf2_read_addr_index): Update.
4248 (follow_die_offset): Update.
4249 (dwarf2_fetch_die_loc_sect_off): Update.
4250 (dwarf2_fetch_constant_bytes): Update.
4251 (dwarf2_fetch_die_type_sect_off): Update.
4252 (follow_die_sig_1): Update.
4253 (load_full_type_unit): Add per_objfile parameter.
4254 (read_signatured_type): Likewise.
4255
4256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4259 of objfile_name.
4260
4261 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4264 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4265 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4266 field.
4267 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4268 (create_cus_from_index): Update.
4269 (dwarf2_read_gdb_index): Update.
4270 (create_cus_from_debug_names): Update.
4271 (dwarf2_read_debug_names): Update.
4272 (get_abbrev_section_for_cu): Update.
4273 (create_all_comp_units): Update.
4274 (read_attribute_value): Update.
4275 (get_debug_line_section): Update.
4276 * dwarf2/index-cache.c (index_cache::store): Update.
4277 * dwarf2/index-write.c (save_gdb_index_command): Update.
4278 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4279
4280 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4281
4282 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4283 member.
4284 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4285 dwarf2_per_cu_data::per_bfd.
4286 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4287 (create_type_unit_group): Likewise.
4288 (queue_comp_unit): Remove reference to
4289 per_cu->dwarf2_per_objfile.
4290 (maybe_queue_comp_unit): Likewise.
4291 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4292 (create_cus_hash_table): Assign new field.
4293
4294 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4295
4296 * dwarf2/read.c: Replace
4297 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4298 dwarf2_cu->per_objfile throughout.
4299
4300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4303 parameter, don't use per_cu->dwarf2_per_objfile.
4304 (dw2_instantiate_symtab): Likewise.
4305 (dw2_find_last_source_symtab): Update.
4306 (dw2_map_expand_apply): Update.
4307 (dw2_lookup_symbol): Update.
4308 (dw2_expand_symtabs_for_function): Update.
4309 (dw2_expand_all_symtabs): Update.
4310 (dw2_expand_symtabs_with_fullname): Update.
4311 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4312 don't use per_cu->dwarf2_per_objfile.
4313 (dw2_expand_marked_cus): Update.
4314 (dw2_find_pc_sect_compunit_symtab): Update.
4315 (dw2_debug_names_lookup_symbol): Update.
4316 (dw2_debug_names_expand_symtabs_for_function): Update.
4317 (dw2_debug_names_map_matching_symbols): Update.
4318 (dwarf2_psymtab::expand_psymtab): Update.
4319
4320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4323 <per_objfile>: New member.
4324 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4325 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4326 call to dwarf2_cu.
4327 (cutu_reader::cutu_reader): Update.
4328 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4329
4330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4333 struct dwarf2_per_objfile.
4334 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4335 dwarf2_per_bfd.
4336 * dwarf2/read.c (set_die_type): Update.
4337 (get_die_type_at_offset): Update.
4338
4339 2020-05-27 Tom Tromey <tom@tromey.com>
4340 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4343 method.
4344 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4345 get_symtab, set_symtab>: New methods.
4346 <m_symtabs>: New field.
4347 (struct dwarf2_psymtab): Derive from partial_symtab.
4348 <readin_p, get_compunit_symtab>: Declare methods.
4349 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4350 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4351 New methods.
4352 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4353 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4354 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4355 (dw2_symtab_iter_next, dw2_print_stats)
4356 (dw2_expand_symtabs_with_fullname)
4357 (dw2_expand_symtabs_matching_one)
4358 (dw_expand_symtabs_matching_file_matcher)
4359 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4360 (dw2_debug_names_iterator::next)
4361 (dw2_debug_names_map_matching_symbols)
4362 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4363 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4364 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4365 New methods.
4366 (get_compunit_symtab, process_full_comp_unit)
4367 (process_full_type_unit): Update.
4368 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4369
4370 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4371
4372 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4373 then introduce a new dwarf2_per_objfile type.
4374 <read_line_string>: Move to the new dwarf2_per_objfile type.
4375 <objfile>: Likewise.
4376 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4377 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4378 dwarf2_per_objfile->per_bfd.
4379 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4380 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4381 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4382 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4383 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4384 (dwarf2_per_objfile::locate_sections): Rename to...
4385 (dwarf2_per_bfd::locate_sections): ... this.
4386 (dwarf2_per_objfile::get_cutu): Rename to...
4387 (dwarf2_per_bfd::get_cutu): ... this.
4388 (dwarf2_per_objfile::get_cu): Rename to...
4389 (dwarf2_per_bfd::get_cu): ... this.
4390 (dwarf2_per_objfile::get_tu): Rename to...
4391 (dwarf2_per_bfd::get_tu): ... this.
4392 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4393 (dwarf2_per_bfd::allocate_per_cu): ... this.
4394 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4395 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4396 (get_gdb_index_contents_ftype): Change parameter from
4397 dwarf2_per_objfile to dwarf2_per_bfd.
4398 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4399 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4400
4401 2020-05-27 Tom Tromey <tom@tromey.com>
4402 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4405 (allocate_piece_closure): Set "per_objfile" member.
4406 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4407 (locexpr_describe_location, loclist_describe_location): Use new
4408 member.
4409 * dwarf2/read.c (read_call_site_scope)
4410 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4411 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4412 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4413 handle_data_member_location): Set per_objfile member.
4414 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4415 member.
4416 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4417
4418 2020-05-27 Tom Tromey <tom@tromey.com>
4419
4420 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4421 allocate_signatured_type>: Declare new methods.
4422 <m_num_psymtabs>: New member.
4423 (struct dwarf2_per_cu_data) <index>: New member.
4424 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4425 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4426 (create_cu_from_index_list): Use allocate_per_cu.
4427 (create_signatured_type_table_from_index)
4428 (create_signatured_type_table_from_debug_names)
4429 (create_debug_type_hash_table, add_type_unit)
4430 (read_comp_units_from_section): Use allocate_signatured_type.
4431
4432 2020-05-27 Tom Tromey <tom@tromey.com>
4433
4434 * psymtab.c (partial_map_expand_apply)
4435 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4436 (psym_lookup_global_symbol_language)
4437 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4438 (psym_print_stats, psym_expand_symtabs_for_function)
4439 (psym_map_symbol_filenames, psym_map_matching_symbols)
4440 (psym_expand_symtabs_matching)
4441 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4442 (maintenance_check_psymtabs): Update.
4443 * psympriv.h (struct partial_symtab) <readin_p,
4444 get_compunit_symtab>: Add objfile parameter.
4445 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4446 Likewise.
4447 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4448 get_compunit_symtab>: Likewise.
4449 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4450
4451 2020-05-27 Tom Tromey <tom@tromey.com>
4452
4453 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4454 member.
4455 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4456 (create_cu_from_index_list)
4457 (create_signatured_type_table_from_index)
4458 (create_signatured_type_table_from_debug_names)
4459 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4460 (dwarf2_create_include_psymtab)
4461 (create_debug_type_hash_table, add_type_unit)
4462 (create_type_unit_group, read_comp_units_from_section)
4463 (dwarf2_compute_name, create_cus_hash_table)
4464 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4465 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4466 obstack.
4467 (dw2_get_real_path): Likewise. Change argument to
4468 dwarf2_per_objfile.
4469
4470 2020-05-27 Luis Machado <luis.machado@linaro.org>
4471
4472 PR tdep/26000
4473 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4474 for ldrd (immediate).
4475
4476 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4477
4478 * command.h: Add comment giving the name of class_tui.
4479 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4480 create the fake command for the help for class_tui.
4481
4482 2020-05-26 Tom Tromey <tromey@adacore.com>
4483
4484 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4485 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4486 (val_atr): New function.
4487 (value_val_atr): Use it.
4488 * ada-valprint.c (print_optional_low_bound): Change low bound
4489 handling for enums.
4490 (val_print_packed_array_elements): Don't call discrete_position.
4491 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4492 discrete_position for enum types.
4493 * language.c (default_print_array_index): Change type.
4494 * language.h (struct language_defn) <la_print_array_index>: Add
4495 index_type parameter, change type of index_value.
4496 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4497 (default_print_array_index): Update.
4498 * valprint.c (maybe_print_array_index): Don't call
4499 value_from_longest. Update.
4500 (value_print_array_elements): Don't call discrete_position.
4501
4502 2020-05-26 Tom Tromey <tromey@adacore.com>
4503
4504 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4505 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4506
4507 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4508
4509 PR gdb/13519
4510 * avr-tdep.c (avr_integer_to_address): Return data or code
4511 address accordingly to the second 'type' argument of the
4512 function.
4513
4514 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4515
4516 * infcmd.c, inferior.h: (construct_inferior_arguments):
4517 Moved function from here to gdbsupport/common-inferior.{h,cc}
4518
4519 2020-05-23 Tom Tromey <tom@tromey.com>
4520
4521 Revert commit eca1f90c:
4522 * NEWS: Remove entry for completion styling.
4523 * completer.c (_rl_completion_prefix_display_length): Move
4524 declaration later.
4525 (gdb_fnprint): Revert.
4526 (gdb_display_match_list_1): Likewise.
4527 * cli/cli-style.c (completion_prefix_style)
4528 (completion_difference_style, completion_suffix_style): Remove.
4529 (_initialize_cli_style): Revert.
4530 * cli/cli-style.h (completion_prefix_style)
4531 (completion_difference_style, completion_suffix_style): Don't
4532 declare.
4533
4534 2020-05-24 Pedro Alves <palves@redhat.com>
4535
4536 * symtab.c (completion_list_add_name): Return boolean indication
4537 of whether the symbol matched.
4538 (completion_list_add_symbol): Don't try to remove C++ aliases if
4539 the symbol didn't match in the first place.
4540 * symtab.h (completion_list_add_name): Return bool.
4541
4542 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4543
4544 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4545 type::field.
4546
4547 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4548
4549 GDB 9.2 released.
4550
4551 2020-05-23 Tom Tromey <tom@tromey.com>
4552
4553 * NEWS: Add entry for completion styling.
4554 * completer.c (_rl_completion_prefix_display_length): Move
4555 declaration earlier.
4556 (gdb_fnprint): Use completion_style.
4557 (gdb_display_match_list_1): Likewise.
4558 * cli/cli-style.c (completion_prefix_style)
4559 (completion_difference_style, completion_suffix_style): New
4560 globals.
4561 (_initialize_cli_style): Register new globals.
4562 * cli/cli-style.h (completion_prefix_style)
4563 (completion_difference_style, completion_suffix_style): Declare.
4564
4565 2020-05-23 Pedro Alves <palves@redhat.com>
4566
4567 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4568 (parse_escape): Use ISDIGIT instead of isdigit.
4569 (puts_debug): Use gdb_isprint instead of isprint.
4570 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4571 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4572 ISSPACE instead of isspace.
4573 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4574 instead of isspace.
4575 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4576 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4577 instead of isxdigit and ISDIGIT instead of isdigit.
4578
4579 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * gdbtypes.h (struct type) <field>: New method.
4582 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4583 or type::field.
4584
4585 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4588 (TYPE_FIELDS): Use type::fields. Change all call sites that
4589 modify the propery to use type::set_fields instead.
4590
4591 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4594 type::num_fields instead.
4595
4596 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4599 methods.
4600 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4601 that modify the number of fields to use type::set_num_fields
4602 instead.
4603
4604 2020-05-22 Tom Tromey <tromey@adacore.com>
4605
4606 * compile/compile-object-load.h (munmap_list_free): Don't
4607 declare.
4608
4609 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * annotate.c (annotate_source_line): Update return type, add call
4612 to update current symtab and line.
4613 * annotate.h (annotate_source_line): Update return type, and
4614 extend header comment.
4615 * source.c (info_line_command): Check annotation_level before
4616 calling annotate_source_line.
4617 * stack.c (print_frame_info): If calling annotate_source_line
4618 returns true, then don't print any other source line information.
4619
4620 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4623
4624 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * coffread.c (patch_type): Remove NULL check before xfree.
4627 * corefile.c (set_gnutarget): Likewise.
4628 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4629 * exec.c (build_section_table): Likewise.
4630 * remote.c (remote_target::pass_signals): Likewise.
4631 * utils.c (n_spaces): Likewise.
4632 * cli/cli-script.c (document_command): Likewise.
4633 * i386-windows-tdep.c (core_process_module_section): Likewise.
4634 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4635
4636 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * symfile.c (reread_symbols): Clear objfile's section_offsets
4639 vector and section indices, re-compute them by calling
4640 sym_offsets.
4641
4642 2020-05-20 Tom Tromey <tromey@adacore.com>
4643
4644 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4645 (desc_one_bound, desc_index_type): Compute field name.
4646
4647 2020-05-20 Tom de Vries <tdevries@suse.de>
4648
4649 PR symtab/25833
4650 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4651
4652 2020-05-20 Alan Modra <amodra@gmail.com>
4653
4654 PR 25993
4655 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4656 bfd_set_filename.
4657 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4658 passed to bfd_set_filename.
4659 * symfile-mem.c (add_vsyscall_page): Likewise for string
4660 passed to symbol_file_add_from_memory.
4661 (symbol_file_add_from_memory): Make name param a const char* and
4662 don't strdup.
4663
4664 2020-05-20 Alan Modra <amodra@gmail.com>
4665
4666 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4667 rather than accessing bfd->filename directly.
4668 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4669 and use bfd_section_name.
4670 * dwarf2/frame.c (decode_frame_entry): Likewise.
4671 * exec.c (exec_set_section_address): Likewise.
4672 * solib-aix.c (solib_aix_bfd_open): Likewise.
4673 * stap-probe.c (get_stap_base_address): Likewise.
4674 * symfile.c (reread_symbols): Likewise.
4675
4676 2020-05-19 Tom Tromey <tromey@adacore.com>
4677
4678 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4679
4680 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4683
4684 2020-05-19 Pedro Alves <palves@redhat.com>
4685
4686 * NEWS (set exec-file-mismatch): Adjust entry.
4687 * exec.c: Include "build-id.h".
4688 (validate_exec_file): Try to match build IDs instead of filenames.
4689 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4690 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4691 and pass down 'warn_if_slow'.
4692 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4693 gdb_bfd_open_closure to pass it down.
4694 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4695
4696 2020-05-19 Pedro Alves <palves@redhat.com>
4697
4698 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4699 * target.c (target_fileio_open_1): Rename to target_fileio_open
4700 and make extern. Use bool.
4701 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4702 (target_fileio_read_alloc_1): Adjust.
4703 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4704 (target_fileio_open_warn_if_slow): Delete declaration.
4705
4706 2020-05-19 Pedro Alves <palves@redhat.com>
4707
4708 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4709 Adjust all callers.
4710
4711 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4712
4713 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4714 whether disp is negative.
4715
4716 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * symfile.h (struct symfile_segment_data)
4719 <~symfile_segment_data>: Remove.
4720 <segment_info>: Change to std::vector.
4721 * symfile.c (default_symfile_segments): Update.
4722 * elfread.c (elf_symfile_segments): Update.
4723
4724 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4727 <segments>: New.
4728 <segment_bases, segment_sizes>: Remove.
4729 * symfile.c (default_symfile_segments): Update.
4730 * elfread.c (elf_symfile_segments): Update.
4731 * remote.c (remote_target::get_offsets): Update.
4732 * solib-target.c (solib_target_relocate_section_addresses):
4733 Update.
4734
4735 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * symfile.h (struct symfile_segment_data): Initialize fields.
4738 <~symfile_segment_data>: Add.
4739 (symfile_segment_data_up): New.
4740 (struct sym_fns) <sym_segments>: Return a
4741 symfile_segment_data_up.
4742 (default_symfile_segments): Return a symfile_segment_data_up.
4743 (free_symfile_segment_data): Remove.
4744 (get_symfile_segment_data): Return a symfile_segment_data_up.
4745 * symfile.c (default_symfile_segments): Likewise.
4746 (get_symfile_segment_data): Likewise.
4747 (free_symfile_segment_data): Remove.
4748 (symfile_find_segment_sections): Update.
4749 * elfread.c (elf_symfile_segments): Return a
4750 symfile_segment_data_up.
4751 * remote.c (remote_target::get_offsets): Update.
4752 * solib-target.c (solib_target_relocate_section_addresses):
4753 Update.
4754 * symfile-debug.c (debug_sym_segments): Return a
4755 symfile_segment_data_up.
4756
4757 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4758
4759 PR build/25981
4760 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4761 Hardcode register numbers.
4762
4763 PR build/25981
4764 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4765 procfs_find_LDT_entry): Remove.
4766 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4767 procfs_find_LDT_entry): Remove.
4768 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4769 Remove.
4770
4771 2020-05-17 Pedro Alves <palves@redhat.com>
4772 Andrew Burgess <andrew.burgess@embecosm.com>
4773 Keno Fischer <keno@juliacomputing.com>
4774
4775 PR gdb/25741
4776 * breakpoint.c (build_target_condition_list): Update comments.
4777 (build_target_command_list): Update comments and skip matching
4778 locations.
4779 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4780 a separate function. Simplify "set breakpoint auto-hw off"
4781 handling.
4782 (insert_breakpoints): Update comment.
4783 (tracepoint_locations_match): New parameter. For breakpoints,
4784 compare location types too, if the caller wants to.
4785 (handle_automatic_hardware_breakpoints): New functions.
4786 (bp_location_is_less_than): Also sort by location type and
4787 hardware breakpoint length.
4788 (update_global_location_list): Handle "set breakpoint auto-hw on"
4789 here.
4790 (update_breakpoint_locations): Ask breakpoint_locations_match to
4791 ignore location types.
4792
4793 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4794
4795 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4796 type::name instead.
4797
4798 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * gdbtypes.h (struct type) <name, set_name>: New methods.
4801 (TYPE_CODE): Use type::name. Change all call sites used to set
4802 the name to use type::set_name instead.
4803
4804 2020-05-16 Tom Tromey <tom@tromey.com>
4805
4806 * top.c (quit_force): Update.
4807 * infrun.c (handle_no_resumed): Update.
4808 * top.h (all_uis): New function.
4809 (ALL_UIS): Remove.
4810
4811 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4814
4815 2020-05-16 Pedro Alves <palves@redhat.com>
4816
4817 * ia64-linux-nat.c
4818 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4819 Declare method.
4820 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4821
4822 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4825 (sparc64_adi_info): Likewise.
4826
4827 2020-05-15 Tom Tromey <tom@tromey.com>
4828
4829 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4830 block_objfile.
4831 (lookup_objfile_from_block): Remove.
4832 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4833 (lookup_global_symbol): Use block_objfile.
4834 * symtab.h (lookup_objfile_from_block): Don't declare.
4835 * printcmd.c (clear_dangling_display_expressions): Use
4836 block_objfile.
4837 * parse.c (operator_check_standard): Use block_objfile.
4838
4839 2020-05-15 Tom Tromey <tom@tromey.com>
4840
4841 * language.c (language_alloc_type_symbol): Set
4842 SYMBOL_SECTION.
4843 * symtab.c (initialize_objfile_symbol): Remove.
4844 (allocate_symbol): Remove.
4845 (allocate_template_symbol): Remove.
4846 * dwarf2/read.c (fixup_go_packaging): Use "new".
4847 (new_symbol): Use "new".
4848 (read_variable): Don't call initialize_objfile_symbol. Use
4849 "new".
4850 (read_func_scope): Use "new".
4851 * xcoffread.c (process_xcoff_symbol): Don't call
4852 initialize_objfile_symbol.
4853 (SYMBOL_DUP): Remove.
4854 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4855 "new".
4856 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4857 (allocate_template_symbol): Don't declare.
4858 (struct symbol): Add copy constructor. Change defaults.
4859 * jit.c (finalize_symtab): Use "new".
4860 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4861 Use "new".
4862 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4863 (common_block_end): Use "new".
4864 * mdebugread.c (parse_symbol): Use "new".
4865 (new_symbol): Likewise.
4866
4867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4868
4869 * NEWS: Mention changes to help and apropos.
4870
4871 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4872
4873 * command.h (enum command_class): Improve comments, document
4874 that class_alias is for user-defined aliases, give the class
4875 name for each class, remove unused class_xdb.
4876 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4877 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4878 by a precise class.
4879 * infcmd.c (_initialize_infcmd): Likewise.
4880 * reverse.c (_initialize_reverse): Likewise.
4881 * stack.c (_initialize_stack): Likewise.
4882 * symfile.c (_initialize_symfile): Likewise.
4883 * tracepoint.c (_initialize_tracepoint): Likewise.
4884
4885 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886
4887 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4888 when their aliased command is traversed.
4889 (help_cmd): Add fput_command_names_styled call to
4890 output command name and aliases when command has an alias.
4891
4892 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4893
4894 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4895 * cli/cli-decode.c (help_cmd_list): Declare as static,
4896 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4897 a command together with the command.
4898 (fput_command_name_styled, fput_command_names_styled): New functions.
4899 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4900 fput_command_name_styled.
4901 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4902 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4903
4904 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905
4906 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4907 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4908 * command.h (cmd_show_list): Likewise.
4909 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4910 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4911
4912 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4913
4914 * unittests/command-def-selftests.c (traverse_command_structure):
4915 Verify all commands of a list have the same prefix command and
4916 that only the top cmdlist commands have a null prefix.
4917
4918 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4919
4920 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4921 as prefix, not one of its aliases.
4922 (set_cmd_prefix): Remove.
4923 (do_add_cmd): Centralize the setting of the prefix of a command, when
4924 command is defined after its full chain of prefix commands.
4925 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4926 (add_setshow_cmd_full): Likewise.
4927 (update_prefix_field_of_prefixed_commands): New function.
4928 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4929 update_prefix_field_of_prefixed_commands.
4930 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4931 addresses of remote_set_cmdlist and remote_show_cmdlist given
4932 as argument, not the address of an argument.
4933 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4934 * gdb/remote.c (_initialize_remote): Likewise.
4935
4936 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4937
4938 * cli/cli-cmds.c (alias_command): Check for an existing alias
4939 using lookup_cmd_composition, as valid_command_p is too strict
4940 and forbids aliases that are the prefix of an existing alias
4941 or command.
4942 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4943 command is properly recognised as a valid command.
4944
4945 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4946
4947 * unittests/help-doc-selftests.c: Rename to
4948 unittests/command-def-selftests.c
4949 * unittests/command-def-selftests.c (help_doc_tests): Update some
4950 comments.
4951 (command_structure_tests, traverse_command_structure): New namespace
4952 and function.
4953 (command_structure_invariants_tests): New function.
4954 (_initialize_command_def_selftests) Renamed from
4955 _initialize_help_doc_selftests, register command_structure_invariants
4956 selftest.
4957
4958 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4959
4960 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4961 an alias of 'show'.
4962
4963 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4964
4965 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4966 ada_is_fixed_point_type. Update all callers.
4967 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4968 all callers.
4969 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4970 Update all callers.
4971 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4972 print_fixed_point_type. Update all callers.
4973 * ada-valprint.c (ada_value_print_num): Replace call to
4974 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4975
4976 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4977
4978 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4979 processors.
4980 (cpu_supports_bts): Add CV_AMD case.
4981
4982 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4983 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * infrun.c (stop_all_threads): Collect multiple wait events at
4986 each pass.
4987
4988 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4991 type::code instead.
4992
4993 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4994
4995 * gdbtypes.h (struct type) <code, set_code>: New methods.
4996 (TYPE_CODE): Use type::code. Change all call sites used to set
4997 the code to use type::set_code instead.
4998
4999 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5000 Tom de Vries <tdevries@suse.de>
5001 Pedro Alves <palves@redhat.com>
5002
5003 PR threads/25478
5004 * infrun.c (stop_all_threads): Do NOT ignore
5005 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5006 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5007 received.
5008 (handle_no_resumed): Remove code handling a live inferior with no
5009 threads.
5010 * remote.c (has_single_non_exited_thread): New.
5011 (remote_target::update_thread_list): Do not delete a thread if is
5012 the last thread of the process.
5013 * thread.c (thread_select): Call delete_exited_threads instead of
5014 prune_threads.
5015
5016 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5017
5018 * infrun.c (stop_all_threads): Enable/disable thread events of all
5019 targets. Move a debug message denoting the end of the function
5020 into the SCOPED_EXIT block.
5021
5022 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5023
5024 * process-stratum-target.h: Include <set>.
5025 (all_non_exited_process_targets, switch_to_target_no_thread): New
5026 function declarations.
5027 * process-stratum-target.c (all_non_exited_process_targets)
5028 (switch_to_target_no_thread): New function implementations.
5029
5030 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5031
5032 * infrun.c (handle_inferior_event): Extract out a piece of code
5033 into...
5034 (mark_non_executing_threads): ...this new function.
5035
5036 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5037
5038 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5039 use.
5040
5041 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5042
5043 * regcache.c (regcache_read_pc_protected): New function
5044 implementation that returns 0 if the PC cannot read via
5045 'regcache_read_pc'.
5046 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5047 instead of 'regcache_read_pc'.
5048 (keep_going_pass_signal): Ditto.
5049
5050 2020-05-13 Tom Tromey <tromey@adacore.com>
5051
5052 * ada-lang.c (align_value): Remove.
5053 (ada_template_to_fixed_record_type_1): Use align_up.
5054
5055 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5056
5057 * async-event.c: Update the copyright year.
5058 * async-event.h: Update the copyright year.
5059
5060 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * objfiles.h (is_addr_in_objfile,
5063 shared_objfile_contains_address_p): Return bool.
5064 * objfile.c (is_addr_in_objfile,
5065 shared_objfile_contains_address_p): Return bool.
5066
5067 2020-05-11 Tom Tromey <tromey@adacore.com>
5068
5069 * cli/cli-cmds.c (info_command): Restore.
5070 (_initialize_cli_cmds): Use add_prefix_command for "info".
5071 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5072
5073 2020-05-11 Tom Tromey <tromey@adacore.com>
5074
5075 * ada-lang.c (ada_value_primitive_field): Now public.
5076 * ada-lang.h (ada_value_primitive_field): Declare.
5077 * ada-valprint.c (print_field_values): Use
5078 ada_value_primitive_field for wrapper fields.
5079
5080 2020-05-11 Tom de Vries <tdevries@suse.de>
5081
5082 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5083 MODULE_DOMAIN.
5084
5085 2020-05-11 Tom de Vries <tdevries@suse.de>
5086
5087 PR symtab/25941
5088 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5089 with length 0, if not gdb-produced.
5090 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5091
5092 2020-05-09 Tom de Vries <tdevries@suse.de>
5093
5094 PR gdb/25955
5095 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5096 calculation.
5097
5098 2020-05-09 Tom Tromey <tom@tromey.com>
5099
5100 * top.c (server_command): Now bool.
5101 * top.h (server_command): Now bool.
5102
5103 2020-05-08 Tom Tromey <tromey@adacore.com>
5104
5105 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5106 already being processed.
5107
5108 2020-05-08 Tom Tromey <tom@tromey.com>
5109
5110 * printcmd.c (struct display) <next>: Remove.
5111 <display>: New constructor.
5112 <exp_string>: Now a std::string.
5113 <enabled_p>: Now a bool.
5114 (display_number): Move definition earlier.
5115 (displays): Rename from display_chain. Now a std::vector.
5116 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5117 (display_command): Update.
5118 (do_one_display, disable_display)
5119 (enable_disable_display_command, do_enable_disable_display):
5120 Update.
5121 (free_display): Remove.
5122 (clear_displays): Rewrite.
5123 (delete_display): Update.
5124 (map_display_numbers): Use function_view. Remove "data"
5125 parameter. Update.
5126 (do_delete_display): Remove.
5127 (undisplay_command): Update.
5128 (do_one_display, do_displays, disable_display)
5129 (info_display_command): Update.
5130 (do_enable_disable_display): Remove.
5131 (enable_disable_display_command)
5132 (clear_dangling_display_expressions): Update.
5133
5134 2020-05-08 Tom Tromey <tom@tromey.com>
5135
5136 * symtab.c (set_symbol_cache_size)
5137 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5138 (maintenance_print_symbol_cache_statistics): Update.
5139 * symmisc.c (print_symbol_bcache_statistics)
5140 (print_objfile_statistics, maintenance_print_objfiles)
5141 (maintenance_info_symtabs, maintenance_check_symtabs)
5142 (maintenance_expand_symtabs, maintenance_info_line_tables):
5143 Update.
5144 * symfile-debug.c (set_debug_symfile): Update.
5145 * source.c (forget_cached_source_info): Update.
5146 * python/python.c (gdbpy_progspaces): Update.
5147 * psymtab.c (maintenance_info_psymtabs): Update.
5148 * probe.c (parse_probes): Update.
5149 * linespec.c (iterate_over_all_matching_symtabs)
5150 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5151 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5152 * exec.c (exec_target::close): Update.
5153 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5154 * breakpoint.c (print_one_breakpoint_location)
5155 (create_longjmp_master_breakpoint)
5156 (create_std_terminate_master_breakpoint): Update.
5157 * progspace.c (program_spaces): Now a std::vector.
5158 (maybe_new_address_space): Update.
5159 (add_program_space): Remove.
5160 (program_space::program_space): Update.
5161 (remove_program_space): Update.
5162 (number_of_program_spaces): Remove.
5163 (print_program_space, update_address_spaces): Update.
5164 * progspace.h (program_spaces): Change type.
5165 (ALL_PSPACES): Remove.
5166 (number_of_program_spaces): Don't declare.
5167 (struct program_space) <next>: Remove.
5168
5169 2020-05-08 Tom Tromey <tom@tromey.com>
5170
5171 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5172 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5173 (enable_break): Update.
5174 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5175 (frv_fdpic_find_canonical_descriptor): Update.
5176 (frv_fetch_objfile_link_map): Update.
5177 * progspace.c (program_space::free_all_objfiles): Update.
5178 (program_space::solibs): New method.
5179 * progspace.h (struct program_space) <solibs>: New method.
5180 * solist.h (master_so_list): Don't declare.
5181 (ALL_SO_LIBS): Remove.
5182 * solib.h (so_list_head): Remove.
5183 (update_solib_list): Update comment.
5184 * solib.c (master_so_list): Remove.
5185 (solib_used, update_solib_list, solib_add)
5186 (info_sharedlibrary_command, clear_solib)
5187 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5188
5189 2020-05-08 Tom Tromey <tom@tromey.com>
5190
5191 * extension.c (extension_languages): Now a std::array.
5192 (ALL_EXTENSION_LANGUAGES): Remove.
5193 (get_ext_lang_defn, get_ext_lang_of_file)
5194 (eval_ext_lang_from_control_command): Update.
5195 (finish_ext_lang_initialization)
5196 (auto_load_ext_lang_scripts_for_objfile)
5197 (ext_lang_type_printers::ext_lang_type_printers)
5198 (apply_ext_lang_type_printers)
5199 (ext_lang_type_printers::~ext_lang_type_printers)
5200 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5201 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5202 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5203 (get_matching_xmethod_workers, ext_lang_colorize)
5204 (ext_lang_before_prompt): Update.
5205 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5206
5207 2020-05-08 Tom Tromey <tom@tromey.com>
5208
5209 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5210 overload.
5211 <swap_string, m_string>: Remove.
5212 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5213 Update.
5214 * stabsread.c (define_symbol, read_type): Update.
5215 * linespec.c (find_linespec_symbols): Update.
5216 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5217 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5218 * dbxread.c (read_dbx_symtab): Update.
5219 * cp-support.h (cp_canonicalize_string_full)
5220 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5221 Return unique_xmalloc_ptr.
5222 * cp-support.c (inspect_type): Update.
5223 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5224 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5225 Likewise.
5226 * c-typeprint.c (print_name_maybe_canonical): Update.
5227 * break-catch-throw.c (check_status_exception_catchpoint):
5228 Update.
5229
5230 2020-05-08 Tom de Vries <tdevries@suse.de>
5231
5232 * infrun.c (follow_fork): Copy current_line and current_symtab to
5233 child thread.
5234
5235 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * async-event.c (struct async_signal_handler, struct
5238 async_event_handler): Reformat, remove typedef.
5239
5240 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5243 access thistype->main_type->dyn_prop_list directly.
5244
5245 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5248 (remove_dyn_prop): Remove. Update all users to use
5249 type::remove_dyn_prop.
5250 * gdbtypes.c (remove_dyn_prop): Rename to...
5251 (type::remove_dyn_prop): ... this.
5252
5253 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5254
5255 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5256 (add_dyn_prop): Remove. Update all users to use
5257 type::add_dyn_prop.
5258 * gdbtypes.c (add_dyn_prop): Rename to...
5259 (type::add_dyn_prop): ... this.
5260
5261 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5264 (get_dyn_prop): Remove. Update all users to use
5265 type::dyn_prop.
5266 * gdbtypes.c (get_dyn_prop): Rename to...
5267 (type::dyn_prop): ... this.
5268
5269 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5272
5273 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5276 instruction, skip it if it's there.
5277
5278 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5281
5282 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5283
5284 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5285 * gdbtypes.c (recursive_dump_type): Remove use of
5286 TYPE_INCOMPLETE.
5287
5288 2020-05-03 Tom Tromey <tom@tromey.com>
5289
5290 * breakpoint.c (catch_command, tcatch_command): Remove.
5291 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5292 add_show_prefix_cmd.
5293 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5294 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5295 Remove.
5296 (add_internal_problem_command): Use add_basic_prefix_cmd,
5297 add_show_prefix_cmd.
5298 * mips-tdep.c (set_mipsfpu_command): Remove.
5299 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5300 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5301 (_initialize_index_cache): Use add_basic_prefix_cmd.
5302 * memattr.c (dummy_cmd): Remove.
5303 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5304 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5305 (_initialize_tui_win): Use add_basic_prefix_cmd,
5306 add_show_prefix_cmd.
5307 * cli/cli-logging.c (set_logging_command): Remove.
5308 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5309 add_show_prefix_cmd.
5310 (show_logging_command): Remove.
5311 * target.c (target_command): Remove.
5312 (add_target): Use add_basic_prefix_cmd.
5313
5314 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5315
5316 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5317
5318 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319
5320 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5321 info_command.
5322
5323 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5324
5325 * nbsd-nat.c (nbsd_enable_proc_events)
5326 (nbsd_nat_target::post_startup_inferior): Add.
5327 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5328 (nbsd_nat_target::update_thread_list): Rewrite.
5329 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5330 "PTRACE_LWP_CREATE".
5331 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5332
5333 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5334
5335 * stack.c (_initialize_stack): Remove duplicated creation
5336 of "frame" command and "f" alias.
5337
5338 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5339
5340 PR gdb/18706
5341 * gdbtypes.c (check_typedef): Calculate size of array of
5342 stubbed type.
5343
5344 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5345
5346 PR gdb/15559
5347 * i386-tdep.c (i386_push_dummy_call): Call
5348 i386_thiscall_push_dummy_call.
5349 (i386_thiscall_push_dummy_call): New function.
5350 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5351 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5352 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5353
5354 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbarch.sh (do_read): Add shellcheck disable directive for
5357 warning SC2162.
5358
5359 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5362 "referenced but not assigned" warning.
5363
5364 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * gdbarch.sh: Remove code that sets fallbackdefault.
5367
5368 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * gdbarch.sh: Use shell operators && and || instead of
5371 -a and -o.
5372
5373 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5374
5375 * gdbarch.sh: Use $(...) instead of `...`.
5376
5377 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * gdbarch.sh: Use double quotes around variables.
5380
5381 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * gdbarch.sh: Use %s with printf, instead of variables in the
5384 format string.
5385
5386 2020-04-29 Tom Tromey <tromey@adacore.com>
5387
5388 PR ada/25875:
5389 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5390 type fields here.
5391 (read_enumeration_type): Call
5392 update_enumeration_type_from_children later. Update comments.
5393 (process_enumeration_scope): Don't create type fields.
5394
5395 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5396
5397 * nbsd-tdep.c: Include "xml-syscall.h".
5398 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5399
5400 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5401
5402 * nbsd-nat.c: Include "sys/wait.h".
5403 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5404 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5405 (nbsd_nat_target::remove_exec_catchpoint)
5406 (nbsd_nat_target::set_syscall_catchpoint): Add.
5407 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5408 (nbsd_nat_target::insert_exec_catchpoint)
5409 (nbsd_nat_target::remove_exec_catchpoint)
5410 (nbsd_nat_target::set_syscall_catchpoint): Add.
5411 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5412 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5413 `nbsd_get_syscall_number'.
5414
5415 2020-04-29 Tom Tromey <tom@tromey.com>
5416
5417 * stack.c (print_block_frame_labels): Remove.
5418
5419 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5420
5421 PR gdb/17320
5422 * ada-valprint.c (val_print_packed_array_elements): Move array
5423 end bracket to new line.
5424 (ada_val_print_string): Remove extra spaces before first array
5425 element.
5426 * c-valprint.c (c_value_print_array): Likewise.
5427 * m2-valprint.c (m2_print_array_contents): Likewise.
5428 (m2_value_print_inner): Likewise.
5429 * p-valprint.c (pascal_value_print_inner): Likewise.
5430 * valprint.c (generic_val_print_array): Likewise.
5431 (value_print_array_elements): Move first array element and array
5432 end bracket to new line.
5433
5434 2020-04-29 Tom de Vries <tdevries@suse.de>
5435
5436 PR symtab/25889
5437 * linespec.c (find_method): Fix ix calculation.
5438
5439 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5440
5441 * syscalls/update-netbsd.sh: New file.
5442 * syscalls/netbsd.xml: Regenerate.
5443 * data-directory/Makefile.in: Register `netbsd.xml' in
5444 `SYSCALLS_FILES'.
5445
5446 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5447
5448 * syscalls/update-freebsd.sh: Add double quotes.
5449
5450 2020-04-28 Tom Tromey <tom@tromey.com>
5451
5452 * NEWS: Update.
5453 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5454 (cmdpy_init): Allow class_tui.
5455
5456 2020-04-28 Mark Williams <mark@myosotissp.com>
5457
5458 PR gdb/24480
5459 * dwarf2read.c: Add missing assingments to list_in_scope when
5460 start_symtab was already called.
5461
5462 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5463
5464 PR gdb/25881
5465 * dwarf2/read.c (offset_map_type): Use
5466 gdb:hash_enum<sect_offset> as hash function.
5467
5468 2020-04-28 Tom de Vries <tdevries@suse.de>
5469
5470 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5471 with DW_AT_signature.
5472
5473 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * configure.ac: Remove check for fs_base/gs_base in
5476 user_regs_struct.
5477 * configure: Re-generate.
5478 * config.in: Re-generate.
5479 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5480 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5481 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5482
5483 2020-04-27 Luis Machado <luis.machado@linaro.org>
5484
5485 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5486 problematic inline frame unwinding situation.
5487 * frame.c (frame_id_computed_p): New function.
5488 * frame.h (frame_id_computed_p): New prototype.
5489
5490 2020-04-26 Tom Tromey <tom@tromey.com>
5491
5492 * command.h (enum command_class) <class_pseudo>: Remove.
5493
5494 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5495
5496 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5497 and whitespace.
5498
5499 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5500
5501 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5502 `PT_GET_PROCESS_STATE' block.
5503
5504 2020-04-24 Tom Tromey <tom@tromey.com>
5505
5506 * symtab.h (symbol_get_demangled_name): Don't declare.
5507 * symtab.c (symbol_get_demangled_name): Remove.
5508 (general_symbol_info::natural_name)
5509 (general_symbol_info::demangled_name): Update.
5510
5511 2020-04-24 Tom Tromey <tom@tromey.com>
5512
5513 PR rust/25025:
5514 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5515
5516 2020-04-24 Tom Tromey <tom@tromey.com>
5517
5518 PR symtab/12707:
5519 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5520 exists.
5521 (new_symbol): Likewise.
5522 * compile/compile-object-load.c (get_out_value_type): Use
5523 symbol_matches_search_name.
5524
5525 2020-04-24 Tom Tromey <tom@tromey.com>
5526
5527 * dwarf2/read.c (add_partial_symbol): Do not call
5528 compute_and_set_names.
5529
5530 2020-04-24 Tom Tromey <tom@tromey.com>
5531
5532 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5533 overload.
5534
5535 2020-04-24 Tom Tromey <tom@tromey.com>
5536
5537 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5538 (add_psymbol_to_list): New overload. Make old overload call new
5539 one.
5540 * psympriv.h (add_psymbol_to_list): New overload.
5541
5542 2020-04-24 Tom Tromey <tom@tromey.com>
5543
5544 * dwarf2/read.c (partial_die_info::read) <case
5545 DW_AT_linkage_name>: Use value_as_string.
5546 (dwarf2_string_attr): Use value_as_string.
5547 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5548 method.
5549 * dwarf2/attribute.c (attribute::value_as_string): New method.
5550
5551 2020-04-24 Tom Tromey <tom@tromey.com>
5552
5553 * symtab.c (general_symbol_info::natural_name)
5554 (general_symbol_info::demangled_name): Check for language_rust.
5555
5556 2020-04-24 Tom Tromey <tom@tromey.com>
5557
5558 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5559 (dwarf2_physname): ... from here.
5560 (partial_die_info::read): Add Rust "{" hack.
5561
5562 2020-04-24 Tom Tromey <tom@tromey.com>
5563
5564 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5565 method.
5566 (symbol_set_demangled_name): Don't declare.
5567 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5568 symbol_set_demangled_name.
5569 (general_symbol_info::set_language)
5570 (general_symbol_info::compute_and_set_names): Update.
5571 * minsyms.c (minimal_symbol_reader::install): Update.
5572 * dwarf2/read.c (new_symbol): Update.
5573
5574 2020-04-24 Tom Tromey <tromey@adacore.com>
5575
5576 PR python/23662:
5577 * python/py-type.c (convert_field): Handle
5578 FIELD_LOC_KIND_DWARF_BLOCK.
5579 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5580 (typy_get_dynamic): Nw function.
5581 (type_object_getset): Add "dynamic".
5582 * NEWS: Add entry.
5583
5584 2020-04-24 Tom Tromey <tromey@adacore.com>
5585
5586 * ada-typeprint.c (print_choices, print_variant_part)
5587 (print_record_field_types_dynamic): New functions.
5588 (print_record_field_types): Use print_record_field_types_dynamic.
5589
5590 2020-04-24 Tom Tromey <tromey@adacore.com>
5591
5592 * dwarf2/read.c (handle_data_member_location): New overload.
5593 (dwarf2_add_field): Use it.
5594 (decode_locdesc): Add "computed" parameter. Update comment.
5595 * gdbtypes.c (is_dynamic_type_internal): Also look for
5596 FIELD_LOC_KIND_DWARF_BLOCK.
5597 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5598 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5599 virtual base classes.
5600 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5601 FIELD_LOC_KIND_DWARF_BLOCK.
5602
5603 2020-04-24 Tom Tromey <tromey@adacore.com>
5604
5605 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5606 * gdbtypes.c (is_dynamic_type_internal): Check
5607 TYPE_HAS_DYNAMIC_LENGTH.
5608 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5609 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5610 New macros.
5611 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5612 constant.
5613
5614 2020-04-24 Tom Tromey <tromey@adacore.com>
5615
5616 * dwarf2/read.c (struct variant_field): Rewrite.
5617 (struct variant_part_builder): New.
5618 (struct nextfield): Remove "variant" field. Add "offset".
5619 (struct field_info): Add "current_variant_part" and
5620 "variant_parts".
5621 (alloc_discriminant_info): Remove.
5622 (alloc_rust_variant): New function.
5623 (quirk_rust_enum): Update.
5624 (dwarf2_add_field): Set "offset" member. Don't handle
5625 DW_TAG_variant_part.
5626 (offset_map_type): New typedef.
5627 (convert_variant_range, create_one_variant)
5628 (create_one_variant_part, create_variant_parts)
5629 (add_variant_property): New functions.
5630 (dwarf2_attach_fields_to_type): Call add_variant_property.
5631 (read_structure_type): Don't handle DW_TAG_variant_part.
5632 (handle_variant_part, handle_variant): New functions.
5633 (handle_struct_member_die): Use them.
5634 (process_structure_scope): Don't handle variant parts.
5635 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5636 (struct discriminant_info): Remove.
5637 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5638 (struct main_type) <flag_discriminated_union>: Remove.
5639 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5640 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5641 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5642 Update.
5643 * valops.c (value_union_variant): Remove.
5644 * value.h (value_union_variant): Don't declare.
5645
5646 2020-04-24 Tom Tromey <tromey@adacore.com>
5647
5648 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5649 (ada_value_primitive_packed_val): Update.
5650 * ada-valprint.c (ada_value_print_1): Update.
5651 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5652 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5653 just an address. Use evaluate_for_locexpr_baton.
5654 (dwarf2_evaluate_property): Update.
5655 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5656 array_view.
5657 * findvar.c (default_read_var_value): Update.
5658 * gdbtypes.c (compute_variant_fields_inner)
5659 (resolve_dynamic_type_internal): Update.
5660 (resolve_dynamic_type): Change type of valaddr parameter.
5661 * gdbtypes.h (resolve_dynamic_type): Update.
5662 * valarith.c (value_subscripted_rvalue): Update.
5663 * value.c (value_from_contents_and_address): Update.
5664
5665 2020-04-24 Tom Tromey <tromey@adacore.com>
5666
5667 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5668 "push_initial_value" parameter.
5669 (dwarf2_evaluate_property): Likewise.
5670 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5671
5672 2020-04-24 Tom Tromey <tromey@adacore.com>
5673
5674 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5675 (variant::matches, compute_variant_fields_recurse)
5676 (compute_variant_fields_inner, compute_variant_fields): New
5677 functions.
5678 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5679 Use resolved_type after type is made.
5680 (operator==): Add new cases.
5681 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5682 (struct discriminant_range, struct variant, struct variant_part):
5683 New.
5684 (union dynamic_prop_data) <variant_parts, original_type>: New
5685 members.
5686 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5687 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5688 constants.
5689 * value.c (unpack_bits_as_long): Now public.
5690 * value.h (unpack_bits_as_long): Declare.
5691
5692 2020-04-24 Tom Tromey <tromey@adacore.com>
5693
5694 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5695 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5696
5697 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5698
5699 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5700
5701 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5702
5703 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5704 (remove_fork_catchpoint, post_startup_inferior)
5705 (post_attach): Move...
5706 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5707 (remove_fork_catchpoint, post_startup_inferior)
5708 (post_attach): ...here.
5709 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5710 (remove_fork_catchpoint, post_startup_inferior)
5711 (post_attach): Move...
5712 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5713 (remove_fork_catchpoint, post_startup_inferior)
5714 (post_attach): ...here.
5715
5716 2020-04-24 Tom Tromey <tromey@adacore.com>
5717
5718 * nat/windows-nat.h (struct windows_thread_info)
5719 <pc_adjusted>: New member.
5720 * windows-nat.c (windows_fetch_one_register): Check
5721 pc_adjusted.
5722 (windows_nat_target::get_windows_debug_event)
5723 (windows_nat_target::wait): Set pc_adjusted.
5724
5725 2020-04-24 Tom de Vries <tdevries@suse.de>
5726
5727 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5728 Run gdb-add-index inside temp dir.
5729
5730 2020-04-23 Tom Tromey <tromey@adacore.com>
5731
5732 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5733 in loop.
5734
5735 2020-04-23 Luis Machado <luis.machado@linaro.org>
5736
5737 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5738 get_frame_register instead of gdbarch_unwind_pc.
5739
5740 2020-04-23 Tom de Vries <tdevries@suse.de>
5741
5742 * symtab.c (lookup_global_symbol): Prefer def over decl.
5743
5744 2020-04-23 Tom de Vries <tdevries@suse.de>
5745
5746 PR symtab/25807
5747 * block.c (best_symbol, better_symbol): Promote to external.
5748 * block.h (best_symbol, better_symbol): Declare.
5749 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5750 decl.
5751
5752 2020-04-23 Tom Tromey <tromey@adacore.com>
5753
5754 PR ada/25837:
5755 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5756 "const char *", not a "const std::string &".
5757 <name_and_matcher::operator==>: Update.
5758 * unittests/lookup_name_info-selftests.c: Change type of
5759 "result".
5760
5761 2020-04-23 Tom Tromey <tom@tromey.com>
5762
5763 * inferior.h (iterate_over_inferiors): Don't declare.
5764 * inferior.c (iterate_over_inferiors): Remove.
5765 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5766 Remove.
5767 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5768 use iterate_over_inferiors.
5769 (darwin_resume_inferior_it)
5770 (struct resume_inferior_threads_param)
5771 (darwin_resume_inferior_threads_it): Remove.
5772 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5773
5774 2020-04-23 Tom de Vries <tdevries@suse.de>
5775
5776 * blockframe.c (find_pc_partial_function): Use
5777 find_pc_sect_compunit_symtab rather than
5778 objfile->sf->qf->find_pc_sect_compunit_symtab.
5779
5780 2020-04-22 Tom de Vries <tdevries@suse.de>
5781
5782 PR symtab/25764
5783 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5784 in psymtabs.
5785
5786 2020-04-22 Tom de Vries <tdevries@suse.de>
5787
5788 PR symtab/25801
5789 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5790 symtabs.
5791
5792 2020-04-22 Tom de Vries <tdevries@suse.de>
5793
5794 PR symtab/25700
5795 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5796 CU if already created.
5797
5798 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5799
5800 * infrun.c (displaced_step_fixup): Switch to the event_thread
5801 before calling displaced_step_restore, not after.
5802
5803 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5804
5805 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5806 its inferior is not recorded by us.
5807 (record_btrace_target_open): Replace call to
5808 all_non_exited_threads () with call to current_inferior
5809 ()->non_exited_threads ().
5810 (record_btrace_target::stop_recording): Likewise.
5811 (record_btrace_target::close): Likewise.
5812 (record_btrace_target::wait): Likewise.
5813 (record_btrace_target::record_stop_replaying): Likewise.
5814
5815 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5816
5817 * btrace.c (btrace_enable): Throw an error on double enables and
5818 when enabling recording fails.
5819 (btrace_disable): Throw an error if the thread is not recorded.
5820
5821 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5822
5823 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5824 request if we do not have a thread_info.
5825
5826 2020-04-21 Tom de Vries <tdevries@suse.de>
5827
5828 PR gdb/25471
5829 * thread.c
5830 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5831 exception in get_frame_id.
5832
5833 2020-04-20 Tom Tromey <tromey@adacore.com>
5834
5835 * python/python.c (struct gdbpy_event): Mark move constructor as
5836 noexcept.
5837 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5838 constructor as noexcept.
5839 * completer.h (struct completion_result): Mark move constructor as
5840 noexcept.
5841 * completer.c (completion_result::completion_result): Use
5842 initialization style. Don't call reset_match_list.
5843
5844 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5845
5846 * MAINTAINERS (Write After Approval): Add myself.
5847
5848 2020-04-18 Tom Tromey <tom@tromey.com>
5849
5850 * windows-tdep.c (init_w32_command_list)
5851 (w32_prefix_command_valid): Restore.
5852 (_initialize_windows_tdep): Call init_w32_command_list.
5853
5854 2020-04-18 Tom Tromey <tom@tromey.com>
5855
5856 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5857 * value.c (value_fn_field): Update.
5858 * valops.c (find_function_in_inferior)
5859 (value_allocate_space_in_inferior): Update.
5860 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5861 Update.
5862 * tui/tui-source.c (tui_source_window::set_contents): Update.
5863 * symtab.c (lookup_global_or_static_symbol)
5864 (find_function_start_sal_1, skip_prologue_sal)
5865 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5866 * symmisc.c (dump_msymbols, dump_symtab_1)
5867 (maintenance_print_one_line_table): Update.
5868 * symfile.c (init_entry_point_info, section_is_mapped)
5869 (list_overlays_command, simple_read_overlay_table)
5870 (simple_overlay_update_1): Update.
5871 * stap-probe.c (handle_stap_probe): Update.
5872 * stabsread.c (dbx_init_float_type, define_symbol)
5873 (read_one_struct_field, read_enum_type, read_range_type): Update.
5874 * source.c (info_line_command): Update.
5875 * python/python.c (gdbpy_source_objfile_script)
5876 (gdbpy_execute_objfile_script): Update.
5877 * python/py-type.c (save_objfile_types): Update.
5878 * python/py-objfile.c (py_free_objfile): Update.
5879 * python/py-inferior.c (python_new_objfile): Update.
5880 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5881 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5882 (maintenance_check_psymtabs): Update.
5883 * printcmd.c (info_address_command): Update.
5884 * objfiles.h (struct objfile) <arch>: New method, from
5885 get_objfile_arch.
5886 (get_objfile_arch): Don't declare.
5887 * objfiles.c (get_objfile_arch): Remove.
5888 (filter_overlapping_sections): Update.
5889 * minsyms.c (msymbol_is_function): Update.
5890 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5891 (output_nondebug_symbol): Update.
5892 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5893 (mdebug_expand_psymtab): Update.
5894 * machoread.c (macho_add_oso_symfile): Update.
5895 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5896 Update.
5897 * linux-fork.c (checkpoint_command): Update.
5898 * linespec.c (convert_linespec_to_sals): Update.
5899 * jit.c (finalize_symtab): Update.
5900 * infrun.c (insert_exception_resume_from_probe): Update.
5901 * ia64-tdep.c (ia64_find_unwind_table): Update.
5902 * hppa-tdep.c (internalize_unwinds): Update.
5903 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5904 Update.
5905 * gcore.c (call_target_sbrk): Update.
5906 * elfread.c (record_minimal_symbol, elf_symtab_read)
5907 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5908 (elf_gnu_ifunc_resolve_by_got): Update.
5909 * dwarf2/read.c (create_addrmap_from_index)
5910 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5911 (read_debug_names_from_section)
5912 (process_psymtab_comp_unit_reader, add_partial_symbol)
5913 (add_partial_subprogram, process_full_comp_unit)
5914 (read_file_scope, read_func_scope, read_lexical_block_scope)
5915 (read_call_site_scope, dwarf2_ranges_read)
5916 (dwarf2_record_block_ranges, dwarf2_add_field)
5917 (mark_common_block_symbol_computed, read_tag_pointer_type)
5918 (read_tag_string_type, dwarf2_init_float_type)
5919 (dwarf2_init_complex_target_type, read_base_type)
5920 (partial_die_info::read, partial_die_info::read)
5921 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5922 (dwarf2_fetch_die_loc_sect_off): Update.
5923 * dwarf2/loc.c (dwarf2_find_location_expression)
5924 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5925 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5926 (dwarf2_loc_desc_get_symbol_read_needs)
5927 (locexpr_describe_location_piece, locexpr_describe_location_1)
5928 (loclist_describe_location): Update.
5929 * dwarf2/index-write.c (write_debug_names): Update.
5930 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5931 * dtrace-probe.c (dtrace_process_dof): Update.
5932 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5933 (process_one_symbol): Update.
5934 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5935 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5936 (coff_read_enum_type): Update.
5937 * cli/cli-cmds.c (edit_command, list_command): Update.
5938 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5939 * breakpoint.c (create_overlay_event_breakpoint)
5940 (create_longjmp_master_breakpoint)
5941 (create_std_terminate_master_breakpoint)
5942 (create_exception_master_breakpoint, get_sal_arch): Update.
5943 * block.c (block_gdbarch): Update.
5944 * annotate.c (annotate_source_line): Update.
5945
5946 2020-04-17 Tom Tromey <tromey@adacore.com>
5947
5948 * auto-load.c (show_auto_load_cmd): Remove.
5949 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5950 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5951 (maintenance_print_arc_command): Remove.
5952 * tui/tui-win.c (tui_command): Remove.
5953 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5954 * tui/tui-layout.c (tui_layout_command): Remove.
5955 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5956 * python/python.c (user_set_python, user_show_python): Remove.
5957 (_initialize_python): Use add_basic_prefix_cmd,
5958 add_show_prefix_cmd.
5959 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5960 (install_gdb_commands): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 (info_guile_command): Remove.
5963 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5964 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5965 add_show_prefix_cmd.
5966 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5967 Remove do_set and do_show parameters.
5968 * cli/cli-style.c (set_style, show_style): Remove.
5969 (_initialize_cli_style): Use add_basic_prefix_cmd,
5970 add_show_prefix_cmd.
5971 (cli_style_option::add_setshow_commands): Remove do_set and
5972 do_show parameters.
5973 (cli_style_option::add_setshow_commands): Use
5974 add_basic_prefix_cmd, add_show_prefix_cmd.
5975 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5976 (set_style_name): Remove.
5977 * cli/cli-dump.c (dump_command, append_command): Remove.
5978 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5979 (tekhex_dump_command, binary_dump_command)
5980 (binary_append_command): Remove.
5981 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5982 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5983 (init_w32_command_list): Remove; move into ...
5984 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5985 * valprint.c (set_print, show_print, set_print_raw)
5986 (show_print_raw): Remove.
5987 (_initialize_valprint): Use add_basic_prefix_cmd,
5988 add_show_prefix_cmd.
5989 * typeprint.c (set_print_type, show_print_type): Remove.
5990 (_initialize_typeprint): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * record.c (set_record_command, show_record_command): Remove.
5993 (_initialize_record): Use add_basic_prefix_cmd,
5994 add_show_prefix_cmd.
5995 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5996 add_show_prefix_cmd.
5997 (info_command, show_command, set_debug, show_debug): Remove.
5998 * top.h (set_history, show_history): Don't declare.
5999 * top.c (set_history, show_history): Remove.
6000 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6001 (unset_tdesc_cmd): Remove.
6002 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6003 add_show_prefix_cmd.
6004 * symtab.c (info_module_command): Remove.
6005 (_initialize_symtab): Use add_basic_prefix_cmd.
6006 * symfile.c (overlay_command): Remove.
6007 (_initialize_symfile): Use add_basic_prefix_cmd.
6008 * sparc64-tdep.c (info_adi_command): Remove.
6009 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6010 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6011 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6012 add_show_prefix_cmd.
6013 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6014 (_initialize_serial): Use add_basic_prefix_cmd,
6015 add_show_prefix_cmd.
6016 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6017 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6018 add_show_prefix_cmd.
6019 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6020 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6021 add_show_prefix_cmd.
6022 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6023 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6024 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6025 add_show_prefix_cmd.
6026 * remote.c (remote_command, set_remote_cmd): Remove.
6027 (_initialize_remote): Use add_basic_prefix_cmd.
6028 * record-full.c (set_record_full_command)
6029 (show_record_full_command): Remove.
6030 (_initialize_record_full): Use add_basic_prefix_cmd,
6031 add_show_prefix_cmd.
6032 * record-btrace.c (cmd_set_record_btrace)
6033 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6034 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6035 (cmd_show_record_btrace_pt): Remove.
6036 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6037 add_show_prefix_cmd.
6038 * ravenscar-thread.c (set_ravenscar_command)
6039 (show_ravenscar_command): Remove.
6040 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6041 add_show_prefix_cmd.
6042 * mips-tdep.c (show_mips_command, set_mips_command)
6043 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6044 add_show_prefix_cmd.
6045 * maint.c (maintenance_command, maintenance_info_command)
6046 (maintenance_check_command, maintenance_print_command)
6047 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6048 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6049 add_show_prefix_cmd.
6050 (show_per_command_cmd): Remove.
6051 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6052 Remove.
6053 (maintenance_show_test_settings_cmd): Remove.
6054 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6055 add_show_prefix_cmd.
6056 * maint-test-options.c (maintenance_test_options_command):
6057 Remove.
6058 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6059 * macrocmd.c (macro_command): Remove
6060 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6061 * language.c (set_check, show_check): Remove.
6062 (_initialize_language): Use add_basic_prefix_cmd,
6063 add_show_prefix_cmd.
6064 * infcmd.c (unset_command): Remove.
6065 (_initialize_infcmd): Use add_basic_prefix_cmd.
6066 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6067 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6068 add_show_prefix_cmd.
6069 * go32-nat.c (go32_info_dos_command): Remove.
6070 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6071 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6072 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6073 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6074 (_initialize_frame): Use add_basic_prefix_cmd,
6075 add_show_prefix_cmd.
6076 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6077 (_initialize_dcache): Use add_basic_prefix_cmd,
6078 add_show_prefix_cmd.
6079 * cp-support.c (maint_cplus_command): Remove.
6080 (_initialize_cp_support): Use add_basic_prefix_cmd.
6081 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6082 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6083 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6084 add_basic_prefix_cmd, add_show_prefix_cmd.
6085 * breakpoint.c (save_command): Remove.
6086 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6087 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6088 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6089 add_show_prefix_cmd.
6090 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6091 (set_ada_command, show_ada_command): Remove.
6092 (_initialize_ada_language): Use add_basic_prefix_cmd,
6093 add_show_prefix_cmd.
6094 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6095
6096 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6097
6098 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6099 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6100
6101 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6104 warning messages.
6105
6106 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6109 import table is not at beginning of .idata section.
6110
6111 2020-04-16 Pedro Alves <palves@redhat.com>
6112
6113 * inferior.c (delete_inferior): Use delete operator directly
6114 instead of delete_program_space.
6115 * progspace.c (add_program_space): New, factored out from
6116 program_space::program_space.
6117 (remove_program_space): New, factored out from
6118 delete_program_space.
6119 (program_space::program_space): Remove intro comment. Rewrite.
6120 (program_space::~program_space): Remove intro comment. Call
6121 remove_program_space.
6122 (delete_program_space): Delete.
6123 * progspace.h (program_space::program_space): Make explicit. Move
6124 intro comment here, adjusted.
6125 (program_space::~program_space): Move intro comment here,
6126 adjusted.
6127 (delete_program_space): Remove.
6128
6129 2020-04-16 Tom Tromey <tromey@adacore.com>
6130
6131 * windows-nat.c (windows_nat::handle_access_violation): New
6132 function.
6133 * nat/windows-nat.h (handle_access_violation): Declare.
6134 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6135 windows-nat.c. Call handle_access_violation.
6136
6137 2020-04-16 Tom de Vries <tdevries@suse.de>
6138
6139 PR symtab/25791
6140 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6141 CUs without psymtab.
6142
6143 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6144
6145 * python/python.c (do_start_initialization): Don't call
6146 PyEval_InitThreads for Python 3.9 and beyond.
6147
6148 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6149
6150 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6151 thread functions.
6152 (obsd_nat_target::wait): Likewise.
6153
6154 2020-04-15 Tom Tromey <tromey@adacore.com>
6155
6156 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6157 (DEBUG_EXCEPT): Use debug_printf.
6158
6159 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6160
6161 * completer.c (class completion_tracker::completion_hash_entry)
6162 <hash_name>: New member function.
6163 (completion_tracker::discard_completions): New callback to hash a
6164 completion_hash_entry, pass this to htab_create_alloc.
6165
6166 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6167
6168 * windows-nat.c (windows_make_so): Warn rather than stopping with
6169 an error if realpath() fails.
6170
6171 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6172
6173 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6174 (nbsd_nat_target::info_proc): Add do_status.
6175
6176 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6177 Tom de Vries <tdevries@suse.de>
6178
6179 PR symtab/25718
6180 * psympriv.h (struct partial_symtab::read_symtab)
6181 (struct partial_symtab::expand_psymtab)
6182 (struct partial_symtab::read_dependencies): Update comments.
6183 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6184 read_symtab for includer.
6185 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6186 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6187 (struct dwarf2_include_psymtab::m_readin): Remove.
6188 (struct dwarf2_include_psymtab::includer): New member function.
6189 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6190
6191 2020-04-14 Tom de Vries <tdevries@suse.de>
6192
6193 PR symtab/25720
6194 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6195 with NULL symbol_matcher and lookup_name.
6196 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6197 and lookup_name.
6198 * dwarf2/read.c (dw2_expand_symtabs_matching)
6199 (dw2_debug_names_expand_symtabs_matching): Same.
6200 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6201 Make lookup_name a pointer. Update comment.
6202 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6203 lookup_name being a pointer.
6204 * symfile.c (expand_symtabs_matching): Same.
6205 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6206 * linespec.c (iterate_over_all_matching_symtabs): Same.
6207
6208 2020-04-13 Tom Tromey <tom@tromey.com>
6209
6210 * run-on-main-thread.c: Update include.
6211 * unittests/main-thread-selftests.c: Update include.
6212 * tui/tui-win.c: Update include.
6213 * tui/tui-io.c: Update include.
6214 * tui/tui-interp.c: Update include.
6215 * tui/tui-hooks.c: Update include.
6216 * top.h: Update include.
6217 * top.c: Update include.
6218 * ser-base.c: Update include.
6219 * remote.c: Update include.
6220 * remote-notif.c: Update include.
6221 * remote-fileio.c: Update include.
6222 * record-full.c: Update include.
6223 * record-btrace.c: Update include.
6224 * python/python.c: Update include.
6225 * posix-hdep.c: Update include.
6226 * mingw-hdep.c: Update include.
6227 * mi/mi-main.c: Update include.
6228 * mi/mi-interp.c: Update include.
6229 * main.c: Update include.
6230 * linux-nat.c: Update include.
6231 * interps.c: Update include.
6232 * infrun.c: Update include.
6233 * inf-loop.c: Update include.
6234 * event-top.c: Update include.
6235 * event-loop.c: Move to ../gdbsupport/.
6236 * event-loop.h: Move to ../gdbsupport/.
6237 * async-event.h: Update include.
6238 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6239
6240 2020-04-13 Tom Tromey <tom@tromey.com>
6241
6242 * tui/tui-win.c: Include async-event.h.
6243 * remote.c: Include async-event.h.
6244 * remote-notif.c: Include async-event.h.
6245 * record-full.c: Include async-event.h.
6246 * record-btrace.c: Include async-event.h.
6247 * infrun.c: Include async-event.h.
6248 * event-top.c: Include async-event.h.
6249 * event-loop.h: Move some declarations to async-event.h.
6250 * event-loop.c: Don't include ser-event.h or top.h. Move some
6251 code to async-event.c.
6252 * async-event.h: New file.
6253 * async-event.c: New file.
6254 * Makefile.in (COMMON_SFILES): Add async-event.c.
6255 (HFILES_NO_SRCDIR): Add async-event.h.
6256
6257 2020-04-13 Tom Tromey <tom@tromey.com>
6258
6259 * utils.c (flush_streams): New function.
6260 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6261
6262 2020-04-13 Tom Tromey <tom@tromey.com>
6263
6264 * event-loop.c (handle_file_event): Use warning, not
6265 printf_unfiltered.
6266
6267 2020-04-13 Tom Tromey <tom@tromey.com>
6268
6269 * event-loop.c: Include <chrono>.
6270
6271 2020-04-13 Tom Tromey <tom@tromey.com>
6272
6273 * gdb_select.h: Move to ../gdbsupport/.
6274 * event-loop.c: Update include path.
6275 * top.c: Update include path.
6276 * ser-base.c: Update include path.
6277 * ui-file.c: Update include path.
6278 * ser-tcp.c: Update include path.
6279 * guile/scm-ports.c: Update include path.
6280 * posix-hdep.c: Update include path.
6281 * ser-unix.c: Update include path.
6282 * gdb_usleep.c: Update include path.
6283 * mingw-hdep.c: Update include path.
6284 * inflow.c: Update include path.
6285 * infrun.c: Update include path.
6286 * event-top.c: Update include path.
6287
6288 2020-04-13 Tom Tromey <tom@tromey.com>
6289
6290 * configure: Rebuild.
6291 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6292
6293 2020-04-13 Tom Tromey <tom@tromey.com>
6294
6295 * event-loop.h (start_event_loop): Don't declare.
6296 * event-loop.c (start_event_loop): Move...
6297 * main.c (start_event_loop): ...here. Now static.
6298
6299 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6300
6301 * MAINTAINERS: Update my email address.
6302
6303 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6304
6305 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6306 IP_ALL.
6307
6308 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6309
6310 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6311 (nbsd_nat_target::info_proc): Add do_cmdline.
6312
6313 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6314
6315 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6316 (nbsd_nat_target::info_proc): Add do_cwd.
6317
6318 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6319
6320 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6321
6322 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6323
6324 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6325 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6326 (nbsd_nat_target::info_proc): New functions.
6327 * nbsd-nat.c (kinfo_get_vmmap): New function.
6328 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6329 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6330 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6331 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6332 functions.
6333 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6334 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6335 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6336 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6337 (KINFO_VME_FLAG_GROWS_DOWN): New.
6338
6339 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6340
6341 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6342 bit shift.
6343
6344 2020-04-10 Tom Tromey <tromey@adacore.com>
6345
6346 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6347
6348 2020-04-10 Tom Tromey <tromey@adacore.com>
6349
6350 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6351 separate debug files.
6352
6353 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6354
6355 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6356 Move to...
6357 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6358 ... here.
6359 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6360 Check for STATUS_WX86_BREAKPOINT.
6361 (windows_nat_target::wait): Same.
6362
6363 2020-04-10 Tom de Vries <tdevries@suse.de>
6364
6365 PR cli/25808
6366 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6367
6368 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6371 (Write After Approval): Remove Tom de Vries.
6372
6373 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6374
6375 revert partially:
6376 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6377
6378 * buildsym.c (record_line): Fix undefined behavior and preserve
6379 lines at eof.
6380
6381 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6382
6383 * auxv.h (svr4_auxv_parse): New.
6384 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6385 and generic_auxv_parse.
6386 (svr4_auxv_parse): Add.
6387 * obsd-tdep.c: Include "auxv.h".
6388 (obsd_auxv_parse): Remove.
6389 (obsd_init_abi): Remove comment.
6390 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6391 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6392 * nbsd-tdep.c: Include "auxv.h".
6393 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6394
6395 2020-04-08 Tom Tromey <tromey@adacore.com>
6396
6397 * nat/windows-nat.h (last_wait_event): Don't declare.
6398 (wait_for_debug_event): Update comment.
6399 * nat/windows-nat.c (last_wait_event): Now static.
6400
6401 2020-04-08 Tom Tromey <tromey@adacore.com>
6402
6403 * windows-nat.c (wait_for_debug_event): Move to
6404 nat/windows-nat.c.
6405 * nat/windows-nat.h (wait_for_debug_event): Declare.
6406 * nat/windows-nat.c (wait_for_debug_event): Move from
6407 windows-nat.c. No longer static.
6408
6409 2020-04-08 Tom Tromey <tromey@adacore.com>
6410
6411 * windows-nat.c (get_windows_debug_event): Use
6412 fetch_pending_stop.
6413 * nat/windows-nat.h (fetch_pending_stop): Declare.
6414 * nat/windows-nat.c (fetch_pending_stop): New function.
6415
6416 2020-04-08 Tom Tromey <tromey@adacore.com>
6417
6418 * windows-nat.c (windows_continue): Use matching_pending_stop and
6419 continue_last_debug_event.
6420 * nat/windows-nat.h (matching_pending_stop)
6421 (continue_last_debug_event): Declare.
6422 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6423 (matching_pending_stop, continue_last_debug_event): New
6424 functions.
6425
6426 2020-04-08 Tom Tromey <tromey@adacore.com>
6427
6428 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6429 (handle_exception_result): Move to nat/windows-nat.h.
6430 (DEBUG_EXCEPTION_SIMPLE): Remove.
6431 (windows_nat::handle_ms_vc_exception): New function.
6432 (handle_exception): Move to nat/windows-nat.c.
6433 (get_windows_debug_event): Update.
6434 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6435 nat/windows-nat.c.
6436 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6437 (handle_exception_result): Move from windows-nat.c.
6438 (handle_exception): Declare.
6439 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6440 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6441 windows-nat.c.
6442
6443 2020-04-08 Tom Tromey <tromey@adacore.com>
6444
6445 * windows-nat.c (exception_count, event_count): Remove.
6446 (handle_exception, get_windows_debug_event)
6447 (do_initial_windows_stuff): Update.
6448
6449 2020-04-08 Tom Tromey <tromey@adacore.com>
6450
6451 * windows-nat.c (windows_nat::handle_load_dll)
6452 (windows_nat::handle_unload_dll): Rename. No longer static.
6453 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6454 Declare.
6455
6456 2020-04-08 Tom Tromey <tromey@adacore.com>
6457
6458 * complaints.h (stop_whining): Declare at top-level.
6459 (complaint): Don't declare stop_whining.
6460
6461 2020-04-08 Tom Tromey <tromey@adacore.com>
6462
6463 * windows-nat.c (windows_nat::handle_output_debug_string):
6464 Rename. No longer static.
6465 * nat/windows-nat.h (handle_output_debug_string): Declare.
6466
6467 2020-04-08 Tom Tromey <tromey@adacore.com>
6468
6469 * windows-nat.c (current_process_handle, current_process_id)
6470 (main_thread_id, last_sig, current_event, last_wait_event)
6471 (current_windows_thread, desired_stop_thread_id, pending_stops)
6472 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6473 (display_selectors, fake_create_process)
6474 (get_windows_debug_event): Update.
6475 * nat/windows-nat.h (current_process_handle, current_process_id)
6476 (main_thread_id, last_sig, current_event, last_wait_event)
6477 (current_windows_thread, desired_stop_thread_id, pending_stops)
6478 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6479 * nat/windows-nat.c (current_process_handle, current_process_id)
6480 (main_thread_id, last_sig, current_event, last_wait_event)
6481 (current_windows_thread, desired_stop_thread_id, pending_stops)
6482 (siginfo_er): New globals. Move from windows-nat.c.
6483
6484 2020-04-08 Tom Tromey <tromey@adacore.com>
6485
6486 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6487 (handle_load_dll): Update.
6488 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6489
6490 2020-04-08 Tom Tromey <tromey@adacore.com>
6491
6492 * windows-nat.c (enum thread_disposition_type): Move to
6493 nat/windows-nat.h.
6494 (windows_nat::thread_rec): Rename from thread_rec. No longer
6495 static.
6496 (windows_add_thread, windows_nat_target::fetch_registers)
6497 (windows_nat_target::store_registers, handle_exception)
6498 (windows_nat_target::resume, get_windows_debug_event)
6499 (windows_nat_target::get_tib_address)
6500 (windows_nat_target::thread_name)
6501 (windows_nat_target::thread_alive): Update.
6502 * nat/windows-nat.h (enum thread_disposition_type): Move from
6503 windows-nat.c.
6504 (thread_rec): Declare.
6505
6506 2020-04-08 Tom Tromey <tromey@adacore.com>
6507
6508 * windows-nat.c: Add "using namespace".
6509 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6510 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6511
6512 2020-04-08 Tom Tromey <tromey@adacore.com>
6513
6514 * nat/windows-nat.h (struct windows_thread_info): Declare
6515 destructor.
6516 * nat/windows-nat.c (~windows_thread_info): New.
6517
6518 2020-04-08 Tom Tromey <tromey@adacore.com>
6519
6520 PR gdb/22992
6521 * windows-nat.c (current_event): Update comment.
6522 (last_wait_event, desired_stop_thread_id): New globals.
6523 (struct pending_stop): New.
6524 (pending_stops): New global.
6525 (windows_nat_target) <stopped_by_sw_breakpoint>
6526 <supports_stopped_by_sw_breakpoint>: New methods.
6527 (windows_fetch_one_register): Add assertions. Adjust PC.
6528 (windows_continue): Handle pending stops. Suspend other threads
6529 when stepping. Use last_wait_event
6530 (wait_for_debug_event): New function.
6531 (get_windows_debug_event): Use wait_for_debug_event. Handle
6532 pending stops. Queue spurious stops.
6533 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6534 (windows_nat_target::kill): Use wait_for_debug_event.
6535 * nat/windows-nat.h (struct windows_thread_info)
6536 <stopped_at_software_breakpoint>: New field.
6537 * nat/windows-nat.c (windows_thread_info::resume): Clear
6538 stopped_at_software_breakpoint.
6539
6540 2020-04-08 Tom Tromey <tromey@adacore.com>
6541
6542 * windows-nat.c (enum thread_disposition_type): New.
6543 (thread_rec): Replace "get_context" parameter with "disposition";
6544 change type.
6545 (windows_add_thread, windows_nat_target::fetch_registers)
6546 (windows_nat_target::store_registers, handle_exception)
6547 (windows_nat_target::resume, get_windows_debug_event)
6548 (windows_nat_target::get_tib_address)
6549 (windows_nat_target::thread_name)
6550 (windows_nat_target::thread_alive): Update.
6551
6552 2020-04-08 Tom Tromey <tromey@adacore.com>
6553
6554 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6555 (windows_continue): Use windows_continue::resume.
6556 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6557 resume>: Declare new methods.
6558 * nat/windows-nat.c: New file.
6559 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6560
6561 2020-04-08 Tom Tromey <tromey@adacore.com>
6562
6563 * windows-nat.c (windows_add_thread, windows_delete_thread)
6564 (windows_nat_target::fetch_registers)
6565 (windows_nat_target::store_registers, fake_create_process)
6566 (windows_nat_target::resume, windows_nat_target::resume)
6567 (get_windows_debug_event, windows_nat_target::wait)
6568 (windows_nat_target::pid_to_str)
6569 (windows_nat_target::get_tib_address)
6570 (windows_nat_target::get_ada_task_ptid)
6571 (windows_nat_target::thread_name)
6572 (windows_nat_target::thread_alive): Use lwp, not tid.
6573
6574 2020-04-08 Tom Tromey <tromey@adacore.com>
6575
6576 * windows-nat.c (handle_exception)
6577 (windows_nat_target::thread_name): Update.
6578 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6579 <name>: Now unique_xmalloc_ptr.
6580
6581 2020-04-08 Tom Tromey <tromey@adacore.com>
6582
6583 * windows-nat.c (thread_rec)
6584 (windows_nat_target::fetch_registers): Update.
6585 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6586 Update comment.
6587 <debug_registers_changed, reload_context>: Now bool.
6588
6589 2020-04-08 Tom Tromey <tromey@adacore.com>
6590
6591 * windows-nat.c (windows_add_thread): Use new.
6592 (windows_init_thread_list, windows_delete_thread): Use delete.
6593 (get_windows_debug_event): Update.
6594 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6595 destructor, and initializers.
6596
6597 2020-04-08 Tom Tromey <tromey@adacore.com>
6598
6599 * windows-nat.c (struct windows_thread_info): Remove.
6600 * nat/windows-nat.h: New file.
6601
6602 2020-04-08 Tom Tromey <tromey@adacore.com>
6603
6604 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6605 (thread_rec, windows_add_thread, windows_delete_thread)
6606 (windows_continue): Update.
6607
6608 2020-04-08 Tom Tromey <tromey@adacore.com>
6609
6610 * windows-nat.c (struct windows_thread_info): Remove typedef.
6611 (thread_head): Remove.
6612 (thread_list): New global.
6613 (thread_rec, windows_add_thread, windows_init_thread_list)
6614 (windows_delete_thread, windows_continue): Update.
6615
6616 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * windows-tdep.h (windows_init_abi): Add comment.
6619 (cygwin_init_abi): New declaration.
6620 * windows-tdep.c: Split signal enumeration in two, one for
6621 Windows and one for Cygwin.
6622 (windows_gdb_signal_to_target): Only deal with signal of the
6623 Windows OS ABI.
6624 (cygwin_gdb_signal_to_target): New function.
6625 (windows_init_abi): Rename to windows_init_abi_common, don't set
6626 gdb_signal_to_target gdbarch method. Add new new function with
6627 this name.
6628 (cygwin_init_abi): New function.
6629 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6630 comment. Don't call windows_init_abi.
6631 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6632 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6633 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6634 i386_windows_init_abi_common, don't call windows_init_abi. Add
6635 a new function of this name.
6636 (i386_cygwin_init_abi): New function.
6637 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6638 OS ABI Cygwin.
6639
6640 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6643 parameter.c.
6644 (dwarf2_read_gdb_index): Update.
6645
6646 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6647
6648 * nbsd-tdep.c: Include "objfiles.h".
6649 (nbsd_skip_solib_resolver): New.
6650 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6651
6652 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6653
6654 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6655 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6656 with DW_LLE_base_addressx are being emitted in DWARFv5.
6657 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6658 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6659 unsigned integer.
6660
6661 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6662
6663 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6664 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6665 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6666 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6667 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6668 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6669 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6670
6671
6672 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6673
6674 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6675 (read_loclist_index): New function definition.
6676 (lookup_loclist_base): New function definition.
6677 (read_loclist_header): New function definition.
6678 (dwarf2_cu): Add loclist_base and loclist_header field.
6679 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6680 (read_full_die_1): Read the value of DW_AT_loclists_base.
6681 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6682 (read_attribute_value): Handle DW_FORM_loclistx.
6683 (skip_one_die): Handle DW_FORM_loclistx.
6684 (loclist_header): New structure declaration.
6685 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6686
6687 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6690 constructor. Remove `addr` parameter from other constructor and
6691 add `per_cu` parameter.
6692 * dwarf2/read.c (create_partial_symtab): Update.
6693
6694 2020-04-07 Tom de Vries <tdevries@suse.de>
6695
6696 PR symtab/25796
6697 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6698 (partial_die_info::fixup): Inherit has_const_value.
6699
6700 2020-04-07 Tom de Vries <tdevries@suse.de>
6701
6702 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6703 symbols without address.
6704
6705 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6706
6707 * nbsd-nat.h (struct thread_info): Add forward declaration.
6708 (nbsd_nat_target::thread_alive): Add.
6709 (nbsd_nat_target::thread_name): Likewise.
6710 (nbsd_nat_target::update_thread_list): Likewise.
6711 (update_thread_list::post_attach): Likewise.
6712 (post_attach::pid_to_str): Likewise.
6713 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6714 (nbsd_thread_lister): Add.
6715 (nbsd_nat_target::thread_alive): Likewise.
6716 (nbsd_nat_target::thread_name): Likewise.
6717 (nbsd_add_threads): Likewise.
6718 (update_thread_list::post_attach): Likewise.
6719 (nbsd_nat_target::update_thread_list): Likewise.
6720 (post_attach::pid_to_str): Likewise.
6721
6722 2020-04-06 Tom Tromey <tromey@adacore.com>
6723
6724 * ada-valprint.c (print_variant_part): Extract the variant field.
6725 (print_field_values): Use the field as the outer value when
6726 recursing.
6727
6728 2020-04-06 Tom Tromey <tromey@adacore.com>
6729
6730 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6731 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6732 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6733 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6734 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6735
6736 2020-04-06 Tom Tromey <tromey@adacore.com>
6737
6738 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6739 TYPE_CODE_ERROR.
6740
6741 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6742
6743 * nbsd-tdep.c: Include "gdbarch.h".
6744 Define enum with NetBSD signal numbers.
6745 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6746 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6747 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6748 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6749 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6750 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6751 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6752 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6753 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6754 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6755 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6756 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6757
6758 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6759
6760 PR gdb/25325
6761 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6762
6763 2020-04-03 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6766 Read constant block.
6767
6768 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6769
6770 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6771 (gdb_bfd_get_full_section_contents): New declaration.
6772 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6773 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6774 gdb_bfd_get_full_section_contents.
6775
6776 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * exec.c (build_section_table): Replace internal_error with
6779 gdb_assert.
6780 (section_table_xfer_memory_partial): Likewise.
6781 * mdebugread.c (parse_partial_symbols): Likewise.
6782 * psymtab.c (lookup_partial_symbol): Likewise.
6783 * utils.c (wrap_here): Likewise.
6784
6785 2020-04-02 Tom Tromey <tromey@adacore.com>
6786
6787 * f-lang.c (build_fortran_types): Use arch_type to initialize
6788 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6789
6790 2020-04-02 Tom Tromey <tromey@adacore.com>
6791
6792 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6793 of attributes.
6794
6795 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6796 Bernd Edlinger <bernd.edlinger@hotmail.de>
6797 Tom Tromey <tromey@adacore.com>
6798
6799 * buildsym.c (buildsym_compunit::record_line): Remove
6800 deduplication code.
6801
6802 2020-04-02 Tom de Vries <tdevries@suse.de>
6803
6804 PR ada/24671
6805 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6806
6807 2020-04-02 Tom de Vries <tdevries@suse.de>
6808
6809 * dwarf2/read.c (dwarf2_gdb_index_functions,
6810 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6811 NULL.
6812 * psymtab.c (psym_lookup_global_symbol_language): New function.
6813 (psym_functions): Init psym_lookup_global_symbol_language with
6814 psym_lookup_global_symbol_language.
6815 * symfile-debug.c (debug_sym_quick_functions): Init
6816 lookup_global_symbol_language with NULL.
6817 * symfile.c (set_initial_language): Remove fixme comment.
6818 * symfile.h (struct quick_symbol_functions): Add
6819 lookup_global_symbol_language.
6820 * symtab.c (find_quick_global_symbol_language): New function.
6821 (find_main_name): Use find_quick_global_symbol_language.
6822
6823 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6826
6827 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6828
6829 * buildsym.c (record_line): Fix undefined behavior and preserve
6830 lines at eof.
6831
6832 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6833
6834 * buildsym.c (record_line): Fix the resizing condition.
6835
6836 2020-04-01 Tom Tromey <tom@tromey.com>
6837
6838 * value.h (value_literal_complex): Add comment.
6839 * valops.c (value_literal_complex): Refer to value.h.
6840
6841 2020-04-01 Tom Tromey <tom@tromey.com>
6842
6843 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6844 (scalar_type): New rule, from typebase.
6845 (typebase): Use scalar_type. Recognize complex types.
6846 (field_name): Handle FLOAT_KEYWORD.
6847 (ident_tokens): Add _Complex and __complex__.
6848
6849 2020-04-01 Tom Tromey <tom@tromey.com>
6850
6851 PR exp/25299:
6852 * valarith.c (promotion_type, complex_binop): New functions.
6853 (scalar_binop): Handle complex numbers. Use promotion_type.
6854 (value_pos, value_neg, value_complement): Handle complex numbers.
6855
6856 2020-04-01 Tom Tromey <tom@tromey.com>
6857
6858 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6859 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6860 (parse_number): Handle complex numbers.
6861
6862 2020-04-01 Tom Tromey <tom@tromey.com>
6863
6864 * c-valprint.c (c_decorations): Change complex suffix to "i".
6865
6866 2020-04-01 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.c (generic_value_print_complex): Use accessors.
6869 * value.h (value_real_part, value_imaginary_part): Declare.
6870 * valops.c (value_real_part, value_imaginary_part): New
6871 functions.
6872 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6873
6874 2020-04-01 Tom Tromey <tom@tromey.com>
6875
6876 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6877 (read_range_type): Update.
6878 * mdebugread.c (basic_type): Update.
6879 * go-lang.c (build_go_types): Use init_complex_type.
6880 * gdbtypes.h (struct main_type) <complex_type>: New member.
6881 (init_complex_type): Update.
6882 (arch_complex_type): Don't declare.
6883 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6884 Make name if none given. Use alloc_type_copy. Look for cached
6885 complex type.
6886 (arch_complex_type): Remove.
6887 (gdbtypes_post_init): Use init_complex_type.
6888 * f-lang.c (build_fortran_types): Use init_complex_type.
6889 * dwarf2/read.c (read_base_type): Update.
6890 * d-lang.c (build_d_types): Use init_complex_type.
6891 * ctfread.c (read_base_type): Update.
6892
6893 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6894
6895 * infrun.c (stop_all_threads): Update assertion, plus when
6896 stopping threads, take into account that we might be trying
6897 to stop an all-stop target.
6898 (stop_waiting): Call 'stop_all_threads' if there exists a
6899 non-stop target.
6900
6901 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6902
6903 * target.h (exists_non_stop_target): New function declaration.
6904 * target.c (exists_non_stop_target): New function.
6905
6906 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6907
6908 PR gdb/24789
6909 * eval.c (is_integral_or_integral_reference): New function.
6910 (evaluate_subexp_standard): Allow integer references in
6911 pointer arithmetic.
6912
6913 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6914
6915 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6916 check for no ptid in the stop reply when the target is non-stop.
6917
6918 2020-04-01 Tom Tromey <tromey@adacore.com>
6919
6920 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6921 "name" parameter to rvalue reference. Initialize m_name_holder.
6922 <lookup_name_info>: New overloads.
6923 <name>: Return gdb::string_view.
6924 <c_str>: New method.
6925 <make_ignore_params>: Update.
6926 <search_name_hash>: Update.
6927 <language_lookup_name>: Return const char *.
6928 <m_name>: Change type.
6929 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6930 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6931 (lookup_name_info::match_any): Update.
6932 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6933 Update.
6934 * minsyms.c (linkage_name_str): Update.
6935 * language.c (default_symbol_name_matcher): Update.
6936 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6937 Update.
6938 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6939 (ada_lookup_name_info::ada_lookup_name_info): Update.
6940 (literal_symbol_name_matcher): Update.
6941
6942 2020-04-01 Tom Tromey <tromey@adacore.com>
6943
6944 * psymtab.c (psymtab_search_name): Remove function.
6945 (psym_lookup_symbol): Create search name and lookup name here.
6946 (lookup_partial_symbol): Remove "name" parameter; add
6947 lookup_name.
6948 (psym_expand_symtabs_for_function): Update.
6949
6950 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6951
6952 PR tui/25597:
6953 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6954
6955 2020-03-31 Tom Tromey <tromey@adacore.com>
6956
6957 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6958 memcpy.
6959
6960 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6961
6962 * features/riscv/32bit-csr.xml: Regenerated.
6963 * features/riscv/64bit-csr.xml: Regenerated.
6964
6965 2020-03-30 Tom Tromey <tromey@adacore.com>
6966
6967 * ada-valprint.c (print_variant_part): Update.
6968 * ada-lang.h (ada_which_variant_applies): Update.
6969 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6970 outer_valaddr parameters; replace with "outer" value parameter.
6971 (to_fixed_variant_branch_type): Update.
6972
6973 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6974
6975 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6976 <list>. Remove inclusion of observable.h.
6977 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6978 (struct arch_lwp_info): New struct.
6979 (class ppc_linux_dreg_interface): New class.
6980 (struct ppc_linux_process_info): New struct.
6981 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6982 <low_new_clone, low_forget_process, low_prepare_to_resume>
6983 <copy_thread_dreg_state, mark_thread_stale>
6984 <mark_debug_registers_changed, register_hw_breakpoint>
6985 <clear_hw_breakpoint, register_wp, clear_wp>
6986 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6987 <num_memory_accesses, get_trigger_type>
6988 <create_watchpoint_request, hwdebug_point_cmp>
6989 <init_arch_lwp_info, get_arch_lwp_info>
6990 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6991 methods.
6992 <struct ptid_hash>: New inner struct.
6993 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6994 members.
6995 (saved_dabr_value, hwdebug_info, max_slots_number)
6996 (struct hw_break_tuple, struct thread_points, ppc_threads)
6997 (have_ptrace_hwdebug_interface)
6998 (hwdebug_find_thread_points_by_tid)
6999 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7000 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7001 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7002 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7003 use m_dreg_interface.
7004 (hwdebug_point_cmp): Change to...
7005 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7006 reference arguments instead of pointers.
7007 (ppc_linux_nat_target::ranged_break_num_registers): Use
7008 m_dreg_interface.
7009 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7010 m_dreg_interface. Call register_hw_breakpoint.
7011 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7012 m_dreg_interface. Call clear_hw_breakpoint.
7013 (get_trigger_type): Change to...
7014 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7015 comment.
7016 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7017 use m_dreg_interface. Call register_hw_breakpoint.
7018 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7019 use m_dreg_interface. Call clear_hw_breakpoint.
7020 (can_use_watchpoint_cond_accel): Change to...
7021 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7022 method. Update comment, use m_dreg_interface and
7023 m_process_info.
7024 (calculate_dvc): Change to...
7025 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7026 m_dreg_interface.
7027 (num_memory_accesses): Change to...
7028 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7029 (check_condition): Change to...
7030 (ppc_linux_nat_target::check_condition): ...this method.
7031 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7032 comment, use m_dreg_interface.
7033 (create_watchpoint_request): Change to...
7034 (ppc_linux_nat_target::create_watchpoint_request): ...this
7035 method. Use m_dreg_interface.
7036 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7037 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7038 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7039 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7040 (ppc_linux_nat_target::low_forget_process)
7041 (ppc_linux_nat_target::low_new_fork)
7042 (ppc_linux_nat_target::low_new_clone)
7043 (ppc_linux_nat_target::low_delete_thread)
7044 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7045 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7046 only call mark_thread_stale.
7047 (ppc_linux_thread_exit): Remove.
7048 (ppc_linux_nat_target::stopped_data_address): Change to...
7049 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7050 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7051 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7052 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7053 comment. Call low_stopped_data_address.
7054 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7055 m_dreg_interface.
7056 (ppc_linux_nat_target::masked_watch_num_registers): Use
7057 m_dreg_interface.
7058 (ppc_linux_nat_target::copy_thread_dreg_state)
7059 (ppc_linux_nat_target::mark_thread_stale)
7060 (ppc_linux_nat_target::mark_debug_registers_changed)
7061 (ppc_linux_nat_target::register_hw_breakpoint)
7062 (ppc_linux_nat_target::clear_hw_breakpoint)
7063 (ppc_linux_nat_target::register_wp)
7064 (ppc_linux_nat_target::clear_wp)
7065 (ppc_linux_nat_target::init_arch_lwp_info)
7066 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7067 (_initialize_ppc_linux_nat): Remove observer callback.
7068
7069 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7070
7071 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7072 (ppc_linux_nat_target::auxv_parse)
7073 (ppc_linux_nat_target::read_description)
7074 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7075 Move up.
7076
7077 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7078
7079 * linux-nat.h (low_new_clone): New method.
7080 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7081
7082 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7083
7084 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7085 (dbx_expand_psymtab): ... this.
7086 (start_psymtab): Update.
7087 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7088 (mdebug_expand_psymtab): ... this.
7089 (parse_partial_symbols): Update.
7090 (new_psymtab): Update.
7091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7092 (xcoff_expand_psymtab): ... this.
7093 (xcoff_start_psymtab): Update.
7094
7095 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7096
7097 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7098 <expand_dependencies>: ... this.
7099 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7100 (partial_symtab::expand_dependencies): ... this.
7101 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7102 Update.
7103 (dwarf2_psymtab::expand_psymtab): Update.
7104 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7105 * mdebugread.c (psymtab_to_symtab_1): Update.
7106 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7107
7108 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7109
7110 * psympriv.h (discard_psymtab): Remove.
7111 * dbxread.c (dbx_end_psymtab): Update.
7112 * xcoffread.c (xcoff_end_psymtab): Update.
7113
7114 2020-03-28 Tom Tromey <tom@tromey.com>
7115
7116 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7117 comment.
7118
7119 2020-03-28 Tom Tromey <tom@tromey.com>
7120
7121 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7122
7123 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7124
7125 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7126
7127 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7128
7129 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7130
7131 2020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7134 (mark_common_block_symbol_computed, read_tag_string_type)
7135 (attr_to_dynamic_prop, read_subrange_type): Update.
7136 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7137 to be methods on struct attribute.
7138 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7139 (read_call_site_scope, partial_die_info::read)
7140 (partial_die_info::read, lookup_die_type, follow_die_ref):
7141 Update.
7142 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7143 from dwarf2_get_ref_die_offset.
7144 (attribute::constant_value): New method, from
7145 dwarf2_get_attr_constant_value.
7146 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7147 Declare method.
7148 <constant_value>: New method.
7149
7150 2020-03-26 Tom Tromey <tom@tromey.com>
7151
7152 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7153 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7154 (dwarf_type_encoding_name): Move to stringify.c.
7155 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7156 * dwarf2/stringify.c: New file.
7157 * dwarf2/stringify.h: New file.
7158
7159 2020-03-26 Tom Tromey <tom@tromey.com>
7160
7161 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7162 Rewrite.
7163
7164 2020-03-26 Tom Tromey <tom@tromey.com>
7165
7166 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7167 methods.
7168 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7169 (lookup_ranges_base): Likewise.
7170 (read_cutu_die_from_dwo, read_full_die_1): Update.
7171
7172 2020-03-26 Tom Tromey <tom@tromey.com>
7173
7174 * dwarf2/read.c (read_import_statement, read_file_scope)
7175 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7176 (read_lexical_block_scope, read_call_site_scope)
7177 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7178 (handle_struct_member_die, process_structure_scope)
7179 (update_enumeration_type_from_children)
7180 (process_enumeration_scope, read_array_type, read_common_block)
7181 (read_namespace, read_module, read_subroutine_type): Update.
7182 (sibling_die): Remove.
7183
7184 2020-03-26 Tom Tromey <tom@tromey.com>
7185
7186 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7187 (build_type_psymtabs_reader, read_structure_type)
7188 (read_enumeration_type, read_full_die_1): Update.
7189 (dwarf2_attr_no_follow): Move to die.h.
7190 * dwarf2/die.h (struct die_info) <attr>: New method.
7191
7192 2020-03-26 Tom Tromey <tom@tromey.com>
7193
7194 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7195 <base_address>: Now an optional.
7196 (dwarf2_find_base_address, dwarf2_rnglists_process)
7197 (dwarf2_ranges_process, fill_in_loclist_baton)
7198 (dwarf2_symbol_mark_computed): Update.
7199
7200 2020-03-26 Tom Tromey <tom@tromey.com>
7201
7202 * dwarf2/read.c (struct die_info): Move to die.h.
7203 * dwarf2/die.h: New file.
7204
7205 2020-03-26 Tom Tromey <tom@tromey.com>
7206
7207 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7208 * dwarf2/read.c
7209 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7210 Move to line-header.c.
7211 (read_checked_initial_length_and_offset, read_formatted_entries):
7212 Likewise.
7213 (dwarf_decode_line_header): Split into two.
7214 * dwarf2/line-header.c
7215 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7216 Move from read.c.
7217 (read_checked_initial_length_and_offset, read_formatted_entries):
7218 Likewise.
7219 (dwarf_decode_line_header): New function, split from read.c.
7220
7221 2020-03-26 Tom Tromey <tom@tromey.com>
7222
7223 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7224 Declare method.
7225 * dwarf2/read.c (read_attribute_value): Update.
7226 (dwarf2_per_objfile::read_line_string): Rename from
7227 read_indirect_line_string.
7228 (read_formatted_entries): Update.
7229
7230 2020-03-26 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7233 variable.
7234
7235 2020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7238 const.
7239 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7240 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7241 parameter const.
7242
7243 2020-03-26 Tom Tromey <tom@tromey.com>
7244
7245 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7246 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7247 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7248 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7249
7250 2020-03-26 Tom Tromey <tom@tromey.com>
7251
7252 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7253 file_names_size, file_full_name, file_file_name>: Use const.
7254 <file_name_at, file_names>: Add const overload.
7255 * dwarf2/line-header.c (line_header::file_file_name)
7256 (line_header::file_full_name): Update.
7257
7258 2020-03-26 Tom Tromey <tom@tromey.com>
7259
7260 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7261 (macro_start_file, consume_improper_spaces)
7262 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7263 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7264 (dwarf_decode_macros): Move to macro.c.
7265 * dwarf2/macro.c: New file.
7266 * dwarf2/macro.h: New file.
7267 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7268
7269 2020-03-26 Tom Tromey <tom@tromey.com>
7270
7271 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7272 method.
7273 * dwarf2/section.c: New method. From
7274 read_indirect_string_at_offset_from.
7275 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7276 (read_indirect_string_at_offset_from): Move to section.c.
7277 (read_indirect_string_at_offset): Rewrite.
7278 (read_indirect_line_string_at_offset): Remove.
7279 (read_indirect_string, read_indirect_line_string)
7280 (dwarf_decode_macro_bytes): Update.
7281
7282 2020-03-26 Tom Tromey <tom@tromey.com>
7283
7284 * dwarf2/section.h (struct dwarf2_section_info)
7285 <overload_complaint>: Declare.
7286 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7287 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7288 Rename from dwarf2_section_buffer_overflow_complaint.
7289 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7290 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7291
7292 2020-03-26 Tom Tromey <tom@tromey.com>
7293
7294 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7295 Declare.
7296 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7297 Move from read.c.
7298 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7299 to section.c.
7300
7301 2020-03-26 Tom Tromey <tom@tromey.com>
7302
7303 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7304
7305 2020-03-26 Tom Tromey <tom@tromey.com>
7306
7307 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7308 "builder".
7309 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7310 parameter.
7311 (dwarf_decode_macros): Update.
7312
7313 2020-03-26 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/read.c (read_attribute_value): Update.
7316 (read_indirect_string_from_dwz): Move to dwz.c; change into
7317 method.
7318 (dwarf_decode_macro_bytes): Update.
7319 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7320 * dwarf2/dwz.c: New file.
7321 * Makefile.in (COMMON_SFILES): Add dwz.c.
7322
7323 2020-03-26 Tom Tromey <tom@tromey.com>
7324
7325 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7326 * dwarf2/read.c: Add include.
7327 * dwarf2/index-write.c: Add include.
7328 * dwarf2/index-cache.c: Add include.
7329 * dwarf2/dwz.h: New file.
7330
7331 2020-03-25 Tom Tromey <tom@tromey.com>
7332
7333 * compile/compile-object-load.c (get_out_value_type): Mention
7334 correct symbol name in error message.
7335
7336 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7337
7338 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7339
7340 2020-03-25 Tom de Vries <tdevries@suse.de>
7341
7342 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7343 * symmisc.c (dump_symtab_1): Print user and includes fields.
7344 (maintenance_info_symtabs): Same.
7345
7346 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 PR gdb/25534
7349 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7350 (riscv_regcache_cooked_write): New function.
7351 (riscv_push_dummy_call): Use new function.
7352 (riscv_return_value): Likewise.
7353
7354 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7357 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7358 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7359 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7360 * infrun.c (follow_fork): Likewise.
7361 (follow_fork_inferior): Likewise.
7362 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7363 * linux-nat.h (class linux_nat_target): Likewise.
7364 * remote.c (class remote_target) <follow_fork>: Likewise.
7365 (remote_target::follow_fork): Likewise.
7366 * target-delegates.c: Re-generate.
7367 * target.c (default_follow_fork): Likewise.
7368 (target_follow_fork): Likewise.
7369 * target.h (struct target_ops) <follow_fork>: Likewise.
7370 (target_follow_fork): Likewise.
7371
7372 2020-03-24 Tom de Vries <tdevries@suse.de>
7373
7374 * psymtab.c (maintenance_info_psymtabs): Print user field.
7375
7376 2020-03-20 Tom Tromey <tromey@adacore.com>
7377
7378 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7379 const.
7380 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7381 const.
7382
7383 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * ptrace.m4: Don't check for ptrace declaration.
7386 * config.in: Re-generate.
7387 * configure: Re-generate.
7388 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7389 not defined.
7390
7391 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7392
7393 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7394 `PTRACE_TYPE_RET'.
7395 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7396 * sparc-nat.c (gdb_ptrace): Likewise.
7397 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7398
7399 2020-03-20 Tom Tromey <tromey@adacore.com>
7400
7401 * c-exp.y (lex_one_token): Fix assert.
7402
7403 2020-03-20 Tom Tromey <tromey@adacore.com>
7404
7405 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7406 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7407 strncpy call.
7408
7409 2020-03-20 Tom Tromey <tromey@adacore.com>
7410
7411 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7412
7413 2020-03-20 Tom Tromey <tromey@adacore.com>
7414
7415 * ada-valprint.c (print_variant_part): Remove parameters; switch
7416 to value-based API.
7417 (print_field_values): Likewise.
7418 (ada_val_print_struct_union): Likewise.
7419 (ada_value_print_1): Update.
7420
7421 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7422
7423 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7424 nbsd_nat_target instead of inf_ptrace_target.
7425 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7426 nbsd_nat_target.
7427
7428 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7429
7430 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7431 it to the ptrace call.
7432 * (store_registers): Likewise.
7433
7434 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7435
7436 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7437 it to the ptrace call.
7438 * (store_registers): Likewise.
7439
7440 2020-03-19 Luis Machado <luis.machado@linaro.org>
7441
7442 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7443 valid, fetch vg value from ptrace.
7444
7445 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7446 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7447 * inf-ptrace.c: Likewise.
7448 * (gdb_ptrace): Add.
7449 * (inf_ptrace_target::resume): Update.
7450 * (inf_ptrace_target::xfer_partial): Likewise.
7451 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7452 * (inf_ptrace_peek_poke): Update.
7453
7454 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7455
7456 * x86-bsd-nat.c (gdb_ptrace): New.
7457 * (x86bsd_dr_set): Add new argument `ptid'.
7458 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7459 x86bsd_dr_set_addr): Update.
7460
7461 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7462
7463 * remote.c (remote_target::process_stop_reply): Handle events for
7464 all threads differently.
7465
7466 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7467
7468 * completer.c (completion_tracker::remove_completion): Define new
7469 function.
7470 * completer.h (completion_tracker::remove_completion): Declare new
7471 function.
7472 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7473 when adding a C++ function symbol.
7474
7475 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * completer.c (completion_tracker::completion_hash_entry): Define
7478 new class.
7479 (advance_to_filename_complete_word_point): Call
7480 recompute_lowest_common_denominator.
7481 (completion_tracker::completion_tracker): Call discard_completions
7482 to setup the hash table.
7483 (completion_tracker::discard_completions): Allow for being called
7484 from the constructor, pass new equal function, and element deleter
7485 when constructing the hash table. Initialise new class member
7486 variables.
7487 (completion_tracker::maybe_add_completion): Remove use of
7488 m_entries_vec, and store more information into m_entries_hash.
7489 (completion_tracker::recompute_lcd_visitor): New function, most
7490 content taken from...
7491 (completion_tracker::recompute_lowest_common_denominator):
7492 ...here, this now just visits each item in the hash calling the
7493 above visitor.
7494 (completion_tracker::build_completion_result): Remove use of
7495 m_entries_vec, call recompute_lowest_common_denominator.
7496 * completer.h (completion_tracker::have_completions): Remove use
7497 of m_entries_vec.
7498 (completion_tracker::completion_hash_entry): Declare new class.
7499 (completion_tracker::recompute_lowest_common_denominator): Change
7500 function signature.
7501 (completion_tracker::recompute_lcd_visitor): Declare new function.
7502 (completion_tracker::m_entries_vec): Delete.
7503 (completion_tracker::m_entries_hash): Initialize to NULL.
7504 (completion_tracker::m_lowest_common_denominator_valid): New
7505 member variable.
7506 (completion_tracker::m_lowest_common_denominator_max_length): New
7507 member variable.
7508
7509 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7510
7511 * regformats/regdef.h: Put reg in gdb namespace.
7512
7513 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7514
7515 * i386-bsd-nat.c (gdb_ptrace): New.
7516 * (i386bsd_fetch_inferior_registers,
7517 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7518 * (i386bsd_fetch_inferior_registers,
7519 i386bsd_store_inferior_registers) Use gdb_ptrace.
7520
7521 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7522
7523 * amd64-bsd-nat.c (gdb_ptrace): New.
7524 * (amd64bsd_fetch_inferior_registers,
7525 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7526 * (amd64bsd_fetch_inferior_registers,
7527 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7528
7529 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7530
7531 * user-regs.c (user_reg::read): Rename to...
7532 (user_reg::xread): ...this.
7533 * (append_user_reg): Rename argument `read' to `xread'.
7534 * (user_reg_add_builtin): Likewise.
7535 * (user_reg_add): Likewise.
7536 * (value_of_user_reg): Likewise.
7537
7538 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7539
7540 * sparc-nat.c (gdb_ptrace): New.
7541 * sparc-nat.c (sparc_fetch_inferior_registers)
7542 (sparc_store_inferior_registers) Remove obsolete comment.
7543 * sparc-nat.c (sparc_fetch_inferior_registers)
7544 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7545 * sparc-nat.c (sparc_fetch_inferior_registers)
7546 (sparc_store_inferior_registers) Use gdb_ptrace.
7547
7548 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7549
7550 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7551 it to the ptrace call.
7552 * sh-nbsd-nat.c (store_registers): Likewise.
7553
7554 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7555
7556 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7557 nbsd_nat_target instead of inf_ptrace_target.
7558 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7559 nbsd_nat_target.
7560
7561 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7562
7563 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7564
7565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7566
7567 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7568 <sys/sysctl.h>.
7569 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7570
7571 2020-03-17 Tom de Vries <tdevries@suse.de>
7572
7573 PR gdb/23710
7574 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7575 fields.
7576 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7577 fields.
7578 (process_imported_unit_die): Skip import of c++ CUs.
7579
7580 2020-03-16 Tom Tromey <tom@tromey.com>
7581
7582 * p-valprint.c (pascal_object_print_value): Initialize
7583 base_value.
7584
7585 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7586 Shahab Vahedi <shahab@synopsys.com>
7587
7588 * Makefile.in: Add arch/arc.o
7589 * configure.tgt: Likewise.
7590 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7591 (_initialize_arc_tdep): Don't initialize old target descriptions.
7592 (arc_read_description): New function to cache target descriptions.
7593 * arc-tdep.h (arc_read_description): Add proto type.
7594 * arch/arc.c: New file.
7595 * arch/arc.h: Likewise.
7596 * features/Makefile: Replace old target descriptions with new.
7597 * features/arc-arcompact.c: Remove.
7598 * features/arc-arcompact.xml: Likewise.
7599 * features/arc-v2.c: Likewise
7600 * features/arc-v2.xml: Likewise
7601 * features/arc/aux-arcompact.xml: New file.
7602 * features/arc/aux-v2.xml: Likewise.
7603 * features/arc/core-arcompact.xml: Likewise.
7604 * features/arc/core-v2.xml: Likewise.
7605 * features/arc/aux-arcompact.c: Generate.
7606 * features/arc/aux-v2.c: Likewise.
7607 * features/arc/core-arcompact.c: Likewise.
7608 * features/arc/core-v2.c: Likewise.
7609 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7610
7611 2020-03-16 Tom Tromey <tromey@adacore.com>
7612
7613 PR gdb/25663:
7614 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7615 putting value into bcache.
7616
7617 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7618
7619 PR gdb/21500
7620 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7621 to...
7622 (amd64_windows_init_abi_common): ... this. Don't set size of
7623 long type.
7624 (amd64_windows_init_abi): New function.
7625 (amd64_cygwin_init_abi): New function.
7626 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7627 the Cygwin OS ABI.
7628 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7629 comment.
7630
7631 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7634 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7635 (pe_import_directory_entry): New struct type.
7636 (is_linked_with_cygwin_dll): New function.
7637 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7638 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7639 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7640
7641 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7644 i386_cygwin_core_osabi_sniffer.
7645
7646 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * i386-cygwin-tdep.c: Rename to...
7649 * i386-windows-tdep.c: ... this.
7650 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7651 i386-windows-tdep.c.
7652 * configure.tgt: Likewise.
7653
7654 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7657 * osabi.c (gdb_osabi_names): Add "Windows".
7658 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7659 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7660 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7661 i386_cygwin_osabi_sniffer.
7662 (_initialize_i386_cygwin_tdep): Register OS ABI
7663 GDB_OSABI_WINDOWS for i386.
7664 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7665 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7666 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7667 for x86-64.
7668 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7669 when the target matches '*-*-mingw*'.
7670
7671 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * defs.h (enum gdb_osabi): Move to...
7674 * osabi.h (enum gdb_osabi): ... here.
7675 * gdbarch.sh: Include osabi.h in gdbarch.h.
7676 * gdbarch.h: Re-generate.
7677
7678 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7679
7680 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7681 function.
7682 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7683
7684 2020-03-14 Tom Tromey <tom@tromey.com>
7685
7686 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7687 for C++.
7688 (c_type_print_modifier): Likewise. Add "language" parameter.
7689 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7690 (c_type_print_base_1): Update.
7691 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7692 constants.
7693 * type-stack.c (type_stack::insert): Handle tp_atomic and
7694 tp_restrict.
7695 (type_stack::follow_type_instance_flags): Likewise.
7696 (type_stack::follow_types): Likewise. Merge type-following code.
7697 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7698 (space_identifier, cv_with_space_id)
7699 (const_or_volatile_or_space_identifier_noopt)
7700 (const_or_volatile_or_space_identifier): Remove.
7701 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7702 rules.
7703 (ptr_operator, typebase): Update.
7704 (enum token_flag) <FLAG_C>: New constant.
7705 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7706 "_Atomic".
7707 (lex_one_token): Handle FLAG_C.
7708
7709 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7710
7711 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7712 it to the ptrace call.
7713 * m68k-bsd-nat.c (store_registers): Likewise.
7714
7715 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7716
7717 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7718 gdb_byte *.
7719 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7720 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7721 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7722
7723 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7724
7725 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7726 nbsd_nat_target instead of inf_ptrace_target.
7727 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7728 nbsd_nat_target.
7729
7730 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7731
7732 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7733 register_t.
7734
7735 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7736
7737 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7738 it to the ptrace call.
7739 * alpha-bsd-nat.c (store_registers): Likewise.
7740
7741 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7742
7743 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7744 includes.
7745 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7746 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7747 fill_fpregset): Likewise.
7748
7749 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7750
7751 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7752 nbsd_nat_target instead of inf_ptrace_target.
7753 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7754 nbsd_nat_target.
7755
7756 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7757
7758 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7759 register_t.
7760
7761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7762
7763 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7764 it to the ptrace call.
7765 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7766 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7767 * arm-nbsd-nat.c (store_register): Likewise.
7768 * arm-nbsd-nat.c (store_regs): Likewise.
7769 * arm-nbsd-nat.c (store_fp_register): Likewise.
7770 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7771
7772 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7773
7774 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7775 nbsd_nat_target instead of inf_ptrace_target.
7776 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7777 nbsd_nat_target.
7778
7779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7780
7781 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7782 it to the ptrace call.
7783 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7784
7785 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7786
7787 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7788 it to the ptrace call.
7789 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7790
7791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7792
7793 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7794 gdb_byte *.
7795 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7796
7797 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7798
7799 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7800 instead of inf_ptrace_target.
7801 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7802 nbsd_nat_target.
7803
7804 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7805
7806 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7807 register_t.
7808
7809 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7810
7811 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7812 register_t.
7813
7814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7815
7816 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7817 register_t.
7818
7819 2020-03-13 Tom Tromey <tom@tromey.com>
7820
7821 * value.h (val_print): Don't declare.
7822 * valprint.h (val_print_array_elements)
7823 (val_print_scalar_formatted, generic_val_print): Don't declare.
7824 * valprint.c (generic_val_print_array): Take a struct value.
7825 (generic_val_print_ptr, generic_val_print_memberptr)
7826 (generic_val_print_bool, generic_val_print_int)
7827 (generic_val_print_char, generic_val_print_complex)
7828 (generic_val_print): Remove.
7829 (generic_value_print): Update.
7830 (do_val_print): Remove unused parameters. Don't call
7831 la_val_print.
7832 (val_print): Remove.
7833 (common_val_print): Update. Don't call value_check_printable.
7834 (val_print_scalar_formatted, val_print_array_elements): Remove.
7835 * rust-lang.c (rust_val_print): Remove.
7836 (rust_language_defn): Update.
7837 * p-valprint.c (pascal_val_print): Remove.
7838 (pascal_value_print_inner): Update.
7839 (pascal_object_print_val_fields, pascal_object_print_val):
7840 Remove.
7841 (pascal_object_print_static_field): Update.
7842 * p-lang.h (pascal_val_print): Don't declare.
7843 * p-lang.c (pascal_language_defn): Update.
7844 * opencl-lang.c (opencl_language_defn): Update.
7845 * objc-lang.c (objc_language_defn): Update.
7846 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7847 * m2-lang.h (m2_val_print): Don't declare.
7848 * m2-lang.c (m2_language_defn): Update.
7849 * language.h (struct language_defn) <la_val_print>: Remove.
7850 * language.c (unk_lang_value_print_inner): Rename. Change
7851 argument types.
7852 (unknown_language_defn, auto_language_defn): Update.
7853 * go-valprint.c (go_val_print): Remove.
7854 * go-lang.h (go_val_print): Don't declare.
7855 * go-lang.c (go_language_defn): Update.
7856 * f-valprint.c (f_val_print): Remove.
7857 * f-lang.h (f_value_print): Don't declare.
7858 * f-lang.c (f_language_defn): Update.
7859 * d-valprint.c (d_val_print): Remove.
7860 * d-lang.h (d_value_print): Don't declare.
7861 * d-lang.c (d_language_defn): Update.
7862 * cp-valprint.c (cp_print_value_fields)
7863 (cp_print_value_fields_rtti, cp_print_value): Remove.
7864 (cp_print_static_field): Update.
7865 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7866 (c_val_print_struct, c_val_print_union, c_val_print_int)
7867 (c_val_print_memberptr, c_val_print): Remove.
7868 * c-lang.h (c_val_print_array, cp_print_value_fields)
7869 (cp_print_value_fields_rtti): Don't declare.
7870 * c-lang.c (c_language_defn, cplus_language_defn)
7871 (asm_language_defn, minimal_language_defn): Update.
7872 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7873 (ada_val_print_enum): Take a struct value.
7874 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7875 (ada_val_print): Remove.
7876 (ada_value_print_1): Update.
7877 (printable_val_type): Remove.
7878 * ada-lang.h (ada_val_print): Don't declare.
7879 * ada-lang.c (ada_language_defn): Update.
7880
7881 2020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * valprint.c (do_val_print): Update.
7884 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7885 a struct value.
7886 (value_to_value_object_no_release): Declare.
7887 * python/py-value.c (value_to_value_object_no_release): New
7888 function.
7889 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7890 struct value.
7891 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7892 function.
7893 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7894 a struct value.
7895 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7896 Declare.
7897 (gdbscm_apply_val_pretty_printer): Take a struct value.
7898 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7899 value.
7900 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7901 value.
7902 * extension-priv.h (struct extension_language_ops)
7903 <apply_val_pretty_printer>: Take a struct value.
7904 * cp-valprint.c (cp_print_value): Create a struct value.
7905 (cp_print_value): Update.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * ada-valprint.c (print_field_values): Call common_val_print.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * ada-valprint.c (val_print_packed_array_elements): Remove
7914 bitoffset and val parameters. Call common_val_print.
7915 (ada_val_print_string): Remove offset, address, and original_value
7916 parameters.
7917 (ada_val_print_array): Update.
7918 (ada_value_print_array): New function.
7919 (ada_value_print_1): Call it.
7920
7921 2020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * ada-valprint.c (ada_value_print): Use common_val_print.
7924
7925 2020-03-13 Tom Tromey <tom@tromey.com>
7926
7927 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7928
7929 2020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * ada-valprint.c (ada_value_print_num): New function.
7932 (ada_value_print_1): Use it.
7933
7934 2020-03-13 Tom Tromey <tom@tromey.com>
7935
7936 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7937
7938 2020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * ada-valprint.c (ada_value_print_ptr): New function.
7941 (ada_value_print_1): Use it.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7946 call common_val_print.
7947 (ada_val_print_1): Update.
7948 (ada_value_print_1): New function.
7949 (ada_value_print_inner): Rewrite.
7950
7951 2020-03-13 Tom Tromey <tom@tromey.com>
7952
7953 * cp-valprint.c (cp_print_value_fields): Update.
7954 (cp_print_value): New function.
7955
7956 2020-03-13 Tom Tromey <tom@tromey.com>
7957
7958 * m2-valprint.c (m2_value_print_inner): Use
7959 cp_print_value_fields.
7960 * cp-valprint.c (cp_print_value_fields): New function.
7961 * c-valprint.c (c_value_print_struct): New function.
7962 (c_value_print_inner): Use c_value_print_struct.
7963 * c-lang.h (cp_print_value_fields): Declare.
7964
7965 2020-03-13 Tom Tromey <tom@tromey.com>
7966
7967 * c-valprint.c (c_value_print_array): New function.
7968 (c_value_print_inner): Use it.
7969
7970 2020-03-13 Tom Tromey <tom@tromey.com>
7971
7972 * c-valprint.c (c_value_print_memberptr): New function.
7973 (c_value_print_inner): Use it.
7974
7975 2020-03-13 Tom Tromey <tom@tromey.com>
7976
7977 * c-valprint.c (c_value_print_int): New function.
7978 (c_value_print_inner): Use it.
7979
7980 2020-03-13 Tom Tromey <tom@tromey.com>
7981
7982 * c-valprint.c (c_value_print_ptr): New function.
7983 (c_value_print_inner): Use it.
7984
7985 2020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * c-valprint.c (c_value_print_inner): Rewrite.
7988
7989 2020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * valprint.c (generic_value_print_complex): New function.
7992 (generic_value_print): Use it.
7993
7994 2020-03-13 Tom Tromey <tom@tromey.com>
7995
7996 * valprint.c (generic_val_print_float): Don't call
7997 val_print_scalar_formatted.
7998 (generic_val_print, generic_value_print): Update.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * valprint.c (generic_value_print_char): New function
8003 (generic_value_print): Use it.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * valprint.c (generic_value_print_int): New function.
8008 (generic_value_print): Use it.
8009
8010 2020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * valprint.c (generic_value_print_bool): New function.
8013 (generic_value_print): Use it.
8014
8015 2020-03-13 Tom Tromey <tom@tromey.com>
8016
8017 * valprint.c (generic_val_print_func): Simplify.
8018 (generic_val_print, generic_value_print): Update.
8019
8020 2020-03-13 Tom Tromey <tom@tromey.com>
8021
8022 * valprint.c (generic_val_print_flags): Remove.
8023 (generic_val_print, generic_value_print): Update.
8024 (val_print_type_code_flags): Add original_value parameter.
8025
8026 2020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * valprint.c (generic_val_print): Update.
8029 (generic_value_print): Update.
8030 * valprint.c (generic_val_print_enum): Don't call
8031 val_print_scalar_formatted.
8032
8033 2020-03-13 Tom Tromey <tom@tromey.com>
8034
8035 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8036 * valprint.c (generic_value_print_ptr): New function.
8037
8038 2020-03-13 Tom Tromey <tom@tromey.com>
8039
8040 * valprint.c (generic_value_print): Rewrite.
8041
8042 2020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * p-valprint.c (pascal_object_print_value_fields)
8045 (pascal_object_print_value): New functions.
8046
8047 2020-03-13 Tom Tromey <tom@tromey.com>
8048
8049 * p-valprint.c (pascal_value_print_inner): Rewrite.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * f-valprint.c (f_value_print_innner): Rewrite.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * m2-valprint.c (m2_print_unbounded_array): New overload.
8058 (m2_print_unbounded_array): Update.
8059 (m2_print_array_contents): Take a struct value.
8060 (m2_value_print_inner): Rewrite.
8061
8062 2020-03-13 Tom Tromey <tom@tromey.com>
8063
8064 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8065 (d_value_print_inner): New function.
8066 * d-lang.h (d_value_print_inner): Declare.
8067 * d-lang.c (d_language_defn): Use d_value_print_inner.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * go-valprint.c (go_value_print_inner): New function.
8072 * go-lang.h (go_value_print_inner): Declare.
8073 * go-lang.c (go_language_defn): Use go_value_print_inner.
8074
8075 2020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8078 API.
8079 (rust_val_print): Rewrite.
8080 (rust_value_print_inner): New function, from rust_val_print.
8081 (rust_language_defn): Use rust_value_print_inner.
8082
8083 2020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * ada-valprint.c (ada_value_print_inner): New function.
8086 * ada-lang.h (ada_value_print_inner): Declare.
8087 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8088
8089 2020-03-13 Tom Tromey <tom@tromey.com>
8090
8091 * f-valprint.c (f_value_print_innner): New function.
8092 * f-lang.h (f_value_print_innner): Declare.
8093 * f-lang.c (f_language_defn): Use f_value_print_innner.
8094
8095 2020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * p-valprint.c (pascal_value_print_inner): New function.
8098 * p-lang.h (pascal_value_print_inner): Declare.
8099 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8100
8101 2020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * m2-valprint.c (m2_value_print_inner): New function.
8104 * m2-lang.h (m2_value_print_inner): Declare.
8105 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8106
8107 2020-03-13 Tom Tromey <tom@tromey.com>
8108
8109 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8110 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8111 * c-valprint.c (c_value_print_inner): New function.
8112 * c-lang.h (c_value_print_inner): Declare.
8113 * c-lang.c (c_language_defn, cplus_language_defn)
8114 (asm_language_defn, minimal_language_defn): Use
8115 c_value_print_inner.
8116
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * p-valprint.c (pascal_object_print_value_fields): Now static.
8120 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * c-valprint.c (c_val_print_array): Simplify.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * valprint.c (value_print_array_elements): New function.
8129 * valprint.h (value_print_array_elements): Declare.
8130
8131 2020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8134 * mips-tdep.c (mips_print_register): Use
8135 value_print_scalar_formatted.
8136
8137 2020-03-13 Tom Tromey <tom@tromey.com>
8138
8139 * valprint.h (value_print_scalar_formatted): Declare.
8140 * valprint.c (value_print_scalar_formatted): New function.
8141
8142 2020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * valprint.h (generic_value_print): Declare.
8145 * valprint.c (generic_value_print): New function.
8146
8147 2020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * valprint.c (do_val_print): Call la_value_print_inner, if
8150 available.
8151 * rust-lang.c (rust_language_defn): Update.
8152 * p-lang.c (pascal_language_defn): Update.
8153 * opencl-lang.c (opencl_language_defn): Update.
8154 * objc-lang.c (objc_language_defn): Update.
8155 * m2-lang.c (m2_language_defn): Update.
8156 * language.h (struct language_defn) <la_value_print_inner>: New
8157 member.
8158 * language.c (unknown_language_defn, auto_language_defn): Update.
8159 * go-lang.c (go_language_defn): Update.
8160 * f-lang.c (f_language_defn): Update.
8161 * d-lang.c (d_language_defn): Update.
8162 * c-lang.c (c_language_defn, cplus_language_defn)
8163 (asm_language_defn, minimal_language_defn): Update.
8164 * ada-lang.c (ada_language_defn): Update.
8165
8166 2020-03-13 Tom Tromey <tom@tromey.com>
8167
8168 * c-valprint.c (c_value_print): Use common_val_print.
8169
8170 2020-03-13 Tom Tromey <tom@tromey.com>
8171
8172 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8173
8174 2020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * f-valprint.c (f77_print_array_1, f_val_print): Use
8177 common_val_print.
8178
8179 2020-03-13 Tom Tromey <tom@tromey.com>
8180
8181 * riscv-tdep.c (riscv_print_one_register_info): Use
8182 common_val_print.
8183
8184 2020-03-13 Tom Tromey <tom@tromey.com>
8185
8186 * mi/mi-main.c (output_register): Use common_val_print.
8187
8188 2020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * infcmd.c (default_print_one_register_info): Use
8191 common_val_print.
8192
8193 2020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * valprint.h (common_val_print_checked): Declare.
8196 * valprint.c (common_val_print_checked): New function.
8197 * stack.c (print_frame_arg): Use common_val_print_checked.
8198
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * valprint.c (do_val_print): New function, from val_print.
8202 (val_print): Use do_val_print.
8203 (common_val_print): Use do_val_print.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * valprint.c (value_print): Use scoped_value_mark.
8208
8209 2020-03-13 Tom de Vries <tdevries@suse.de>
8210
8211 PR symtab/25646
8212 * psymtab.c (partial_symtab::partial_symtab): Don't set
8213 globals_offset and statics_offset. Push element onto
8214 current_global_psymbols and current_static_psymbols stacks.
8215 (concat): New function.
8216 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8217 element from current_global_psymbols and current_static_psymbols
8218 stacks. Concat popped elements to global_psymbols and
8219 static_symbols.
8220 (add_psymbol_to_list): Use current_global_psymbols and
8221 current_static_psymbols stacks.
8222 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8223 current_static_psymbols fields.
8224
8225 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8226
8227 * corelow.c (sniff_core_bfd): Remove.
8228 (class core_target) <m_core_vec>: Remove.
8229 (core_target::core_target): Update.
8230 (core_file_fns): Remove.
8231 (deprecated_add_core_fns): Remove.
8232 (default_core_sniffer): Remove.
8233 (sniff_core_bfd): Remove.
8234 (default_check_format): Remove.
8235 (gdb_check_format): Remove.
8236 (core_target_open): Update.
8237 (core_target::get_core_register_section): Update.
8238 (get_core_registers_cb): Update.
8239 (core_target::fetch_registers): Update.
8240 * gdbcore.h (struct core_fns): Remove.
8241 (deprecated_add_core_fns): Remove.
8242 (default_core_sniffer): Remove.
8243 (default_check_format): Remove.
8244
8245 2020-03-12 Tom Tromey <tom@tromey.com>
8246
8247 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8248 CORE_ADDR.
8249 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8250
8251 2020-03-12 Tom Tromey <tom@tromey.com>
8252
8253 * remote.c (remote_target::download_tracepoint)
8254 (remote_target::enable_tracepoint)
8255 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8256 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8257 sprintf_vma.
8258
8259 2020-03-12 Tom Tromey <tom@tromey.com>
8260
8261 * symfile-mem.c: Update CORE_ADDR size assert.
8262
8263 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8264
8265 * selftest.m4: Move to gdbsupport/.
8266 * acinclude.m4: Update path to selftest.m4.
8267
8268 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8269
8270 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8271 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8272 gdbarch-selfselftests.c and selftest-arch.c.
8273 (SUBDIR_UNITTESTS_OBS): Rename to...
8274 (SELFTESTS_OBS): ... this.
8275 (COMMON_SFILES): Remove disasm-selftests.c and
8276 gdbarch-selftests.c.
8277 * configure.ac: Don't add selftest-arch.{c,o} to
8278 CONFIG_{SRCS,OBS}.
8279 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8280 preprocessor conditions.
8281
8282 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * configure.ac: Don't source bfd/development.sh.
8285 * selftest.m4: Modify comment.
8286 * configure: Re-generate.
8287
8288 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8289
8290 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8291 not "true" or "false".
8292 * configure: Re-generate.
8293
8294 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8295
8296 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8297 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8298 renamed to arm_nbsd_supply_gregset.
8299 (fetch_register): Update to call arm_nbsd_supply_gregset.
8300 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8301 (arm_netbsd_nat_target::fetch_registers): Update.
8302 (fetch_elfcore_registers): Removed.
8303 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8304 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8305 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8306 not require NetBSD system headers.
8307 (arm_nbsd_regset): New struct.
8308 (arm_nbsd_iterate_over_regset_sections): New function.
8309 (arm_netbsd_init_abi_common): Updated to call
8310 set_gdbarch_iterate_over_regset_sections.
8311 * arm-nbsd-tdep.h: New file.
8312
8313 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8314
8315 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8316 recursion.
8317
8318 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8319
8320 * configure: Re-generate.
8321
8322 2020-03-11 Tom Tromey <tromey@adacore.com>
8323
8324 * ada-typeprint.c (print_choices): Fix comment.
8325
8326 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8329 previous item in the list, when the list has no items.
8330
8331 2020-03-11 Tom de Vries <tdevries@suse.de>
8332
8333 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8334 PROP_LOCLIST handling code.
8335
8336 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * buildsym-legacy.c (record_line): Pass extra parameter to
8339 record_line.
8340 * buildsym.c (buildsym_compunit::record_line): Take an extra
8341 parameter, reduce duplication in the line table, and record the
8342 is_stmt flag in the line table.
8343 * buildsym.h (buildsym_compunit::record_line): Add extra
8344 parameter.
8345 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8346 non-statement lines.
8347 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8348 this to the symtab builder.
8349 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8350 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8351 through to dwarf_record_line_1.
8352 * infrun.c (process_event_stop_test): When stepping, don't stop at
8353 a non-statement instruction, and only refresh the step info when
8354 we land in the middle of a line's range. Also add an extra
8355 comment.
8356 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8357 field.
8358 * record-btrace.c (btrace_find_line_range): Only record lines
8359 marked as is-statement.
8360 * stack.c (frame_show_address): Show the frame address if we are
8361 in a non-statement sal.
8362 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8363 (maintenance_print_one_line_table): Print a header for the is_stmt
8364 column, and include is_stmt information in the output.
8365 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8366 preference to non-statements.
8367 (find_pcs_for_symtab_line): Prefer is-statement entries.
8368 (find_line_common): Likewise.
8369 * symtab.h (struct linetable_entry): Add is_stmt field.
8370 (struct symtab_and_line): Likewise.
8371 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8372 arranging the line table.
8373
8374 2020-03-07 Tom de Vries <tdevries@suse.de>
8375
8376 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8377 DIE.
8378
8379 2020-03-07 Tom Tromey <tom@tromey.com>
8380
8381 * valops.c (value_literal_complex): Remove obsolete comment.
8382 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8383 comment.
8384
8385 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8386
8387 * infrun.h: Forward-declare thread_info.
8388 (set_step_info): Add thread_info parameter, add doc.
8389 * infrun.c (set_step_info): Add thread_info parameter, move doc
8390 to header.
8391 * infrun.c (process_event_stop_test): Pass thread to
8392 set_step_info call.
8393 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8394 set_step_info.
8395 (prepare_one_step): Add thread_info parameter, pass it to
8396 set_step_frame and prepare_one_step (recursive) call.
8397 (step_1): Pass thread to prepare_one_step call.
8398 (step_command_fsm::should_stop): Pass thread to
8399 prepare_one_step.
8400 (until_next_fsm): Pass thread to set_step_frame call.
8401 (finish_command): Pass thread to set_step_info call.
8402
8403 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8404
8405 * windows-tdep.c (windows_solib_create_inferior_hook):
8406 Check if inferior is running.
8407
8408 2020-03-06 Tom de Vries <tdevries@suse.de>
8409
8410 * NEWS: Fix "the the".
8411 * ctfread.c: Same.
8412
8413 2020-03-06 Tom de Vries <tdevries@suse.de>
8414
8415 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8416
8417 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8418
8419 * .dir-locals.el: Add a comment referencing the other copies of
8420 this file.
8421
8422 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8423
8424 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8425 psargs.
8426
8427 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8428
8429 * .gitattributes: New file.
8430
8431 2020-03-04 Tom Tromey <tom@tromey.com>
8432
8433 * symmisc.c (print_symbol_bcache_statistics)
8434 (print_objfile_statistics): Update.
8435 * symfile.c (allocate_symtab): Use intern.
8436 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8437 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8438 macro_cache>: Remove.
8439 <string_cache>: New member.
8440 (struct objfile) <intern>: New methods.
8441 * elfread.c (elf_symtab_read): Use intern.
8442 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8443 (dwarf2_compute_name, dwarf2_physname)
8444 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8445 names.
8446 (guess_partial_die_structure_name): Update.
8447 (partial_die_info::fixup): Intern name.
8448 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8449 name.
8450 (dwarf2_name): Intern name. Update.
8451 * buildsym.c (buildsym_compunit::get_macro_table): Use
8452 string_cache.
8453
8454 2020-03-04 Tom Tromey <tom@tromey.com>
8455
8456 * jit.c (bfd_open_from_target_memory): Make "target" const.
8457 * corefile.c (gnutarget): Now const.
8458 * gdbcore.h (gnutarget): Now const.
8459
8460 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8461
8462 * NEWS: Mention support for WOW64 processes.
8463 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8464 (amd64_windows_segment_register_p): Remove static.
8465 (_initialize_amd64_windows_nat): Update.
8466 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8467 * i386-windows-nat.c (context_offset): Update.
8468 (i386_mappings): Rename and remove static.
8469 (i386_windows_segment_register_p): Remove static.
8470 (_initialize_i386_windows_nat): Update.
8471 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8472 (STATUS_WX86_SINGLE_STEP): New macro.
8473 (EnumProcessModulesEx): New macro.
8474 (Wow64SuspendThread): New macro.
8475 (Wow64GetThreadContext): New macro.
8476 (Wow64SetThreadContext): New macro.
8477 (Wow64GetThreadSelectorEntry): New macro.
8478 (windows_set_context_register_offsets): Add static.
8479 (windows_set_segment_register_p): Likewise.
8480 (windows_add_thread): Adapt for WOW64 processes.
8481 (windows_fetch_one_register): Likewise.
8482 (windows_nat_target::fetch_registers): Likewise.
8483 (windows_store_one_register): Likewise.
8484 (display_selector): Likewise.
8485 (display_selectors): Likewise.
8486 (handle_exception): Likewise.
8487 (windows_continue): Likewise.
8488 (windows_nat_target::resume): Likewise.
8489 (windows_add_all_dlls): Likewise.
8490 (do_initial_windows_stuff): Likewise.
8491 (windows_nat_target::attach): Likewise.
8492 (windows_get_exec_module_filename): Likewise.
8493 (windows_nat_target::create_inferior): Likewise.
8494 (windows_xfer_siginfo): Likewise.
8495 (_initialize_loadable): Initialize Wow64SuspendThread,
8496 Wow64GetThreadContext, Wow64SetThreadContext,
8497 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8498 * windows-nat.h (windows_set_context_register_offsets):
8499 Remove declaration.
8500 (windows_set_segment_register_p): Likewise.
8501 (i386_windows_segment_register_p): Add declaration.
8502 (amd64_windows_segment_register_p): Likewise.
8503
8504 2020-03-04 Luis Machado <luis.machado@linaro.org>
8505
8506 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8507 in "info registers" for AArch64/ARM.
8508
8509 The change caused "info registers" to not print GPR's.
8510
8511 gdb/ChangeLog:
8512
8513 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8514
8515 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8516 when reg->group is empty and reggroup is not.
8517
8518 2020-03-03 Tom Tromey <tromey@adacore.com>
8519
8520 * dwarf2/frame.c (struct dwarf2_frame_cache)
8521 <checked_tailcall_bottom, entry_cfa_sp_offset,
8522 entry_cfa_sp_offset_p>: Remove members.
8523 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8524 (dwarf2_frame_prev_register): Don't call
8525 dwarf2_tailcall_sniffer_first.
8526 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8527 * frame-unwind.c (add_unwinder): New fuction.
8528 (frame_unwind_init): Use it. Add tailcall unwinder.
8529
8530 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8531 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8532
8533 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8534 value should be printed as true.
8535
8536 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8537
8538 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8539 (windows_init_abi): Set and use windows_so_ops.
8540
8541 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8542
8543 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8544 when verifying if dealing with a convenience variable.
8545
8546 2020-03-03 Luis Machado <luis.machado@linaro.org>
8547
8548 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8549
8550 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8551
8552 * infrun.c (gdbarch_supports_displaced_stepping): New.
8553 (use_displaced_stepping): Break up conditions in smaller pieces.
8554 Use gdbarch_supports_displaced_stepping.
8555 (displaced_step_prepare_throw): Use
8556 gdbarch_supports_displaced_stepping.
8557
8558 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8559
8560 * NEWS: Mention new behaviour of the history filename.
8561 * top.c (write_history_p): Add comment.
8562 (show_write_history_p): Add header comment, give a different
8563 message when history writing is on, but the history filename is
8564 empty.
8565 (history_filename): Add comment.
8566 (history_filename_empty): New function.
8567 (show_history_filename): Add header comment, give a different
8568 message when the filename is empty.
8569 (init_history): Compare history_filename against nullptr, and only
8570 read history if the filename is not empty.
8571 (set_history_filename): Add header comment, and only make
8572 non-empty filenames absolute.
8573 (init_main): Make the filename argument to 'set history filename'
8574 optional.
8575
8576 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8577
8578 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8579 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8580 (fetch_fp_register): Update.
8581 (fetch_fp_regs): Update.
8582 (store_fp_register): Update.
8583 (store_fp_regs): Update.
8584 (arm_netbsd_nat_target::read_description): New function.
8585 (fetch_elfcore_registers): Update.
8586
8587 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8588
8589 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8590 general_thread if the stop reply is missing a thread-id.
8591 (remote_target::process_stop_reply): Use the first non-exited
8592 thread if the target didn't pass a thread-id.
8593 * infrun.c (do_target_wait): Move call to
8594 switch_to_inferior_no_thread to ....
8595 (do_target_wait_1): ... here.
8596
8597 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8598
8599 * debuginfod-support.c: Include defs.h first.
8600
8601 2020-02-28 Tom de Vries <tdevries@suse.de>
8602
8603 * symfile.c (set_initial_language): Use default language for lookup.
8604
8605 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8608 reader variable, pass `this` to read_cutu_die_from_dwo.
8609
8610 2020-02-27 Aaron Merey <amerey@redhat.com>
8611
8612 * source.c (open_source_file): Check for nullptr when computing
8613 srcpath.
8614
8615 2020-02-27 Tom Tromey <tromey@adacore.com>
8616
8617 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8618 member.
8619 (dwarf2_add_field): Don't update nfields.
8620 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8621
8622 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8625 abs.
8626
8627 2020-02-26 Tom Tromey <tom@tromey.com>
8628
8629 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8630 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8631 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8632 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8633 per_cu_data.
8634
8635 2020-02-26 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2/index-write.c (psym_index_map): Change type.
8638 (add_address_entry_worker, write_one_signatured_type)
8639 (recursively_count_psymbols, recursively_write_psymbols)
8640 (class debug_names, psyms_seen_size, write_gdbindex)
8641 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8642
8643 2020-02-26 Aaron Merey <amerey@redhat.com>
8644
8645 * Makefile.in: Handle optional debuginfod support.
8646 * NEWS: Update.
8647 * README: Add --with-debuginfod summary.
8648 * config.in: Regenerate.
8649 * configure: Regenerate.
8650 * configure.ac: Handle optional debuginfod support.
8651 * debuginfod-support.c: debuginfod helper functions.
8652 * debuginfod-support.h: Ditto.
8653 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8654 summary.
8655 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8656 when a dwz file cannot be found.
8657 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8658 debuginfo file cannot be found.
8659 * source.c (open_source_file): Query debuginfod servers when a
8660 source file cannot be found.
8661 * top.c (print_gdb_configuration): Include
8662 --{with,without}-debuginfod in the output.
8663
8664 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8665
8666 * thread.c (thr_try_catch_cmd): Print thread name.
8667
8668 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8671 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8672 dwarf2_fetch_die_type_sect_off): Move to...
8673 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8674 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8675 dwarf2_fetch_die_type_sect_off): ... here.
8676 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8677 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8678 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8679
8680 2020-02-26 Tom de Vries <tdevries@suse.de>
8681
8682 PR gdb/25603
8683 * symfile.c (set_initial_language): Exit-early if
8684 language_mode == language_mode_manual.
8685
8686 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8687
8688 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8689 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8690 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8691
8692 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * gdbtypes.c (create_array_type_with_stride): Handle negative
8695 array strides.
8696 * valarith.c (value_subscripted_rvalue): Likewise.
8697
8698 2020-02-25 Luis Machado <luis.machado@linaro.org>
8699
8700 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8701
8702 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8703
8704 * loc.h (dwarf2_get_die_type): Move to...
8705 * read.h (dwarf2_get_die_type): ... here.
8706 * read.c (dwarf2_get_die_type): Move doc to header.
8707
8708 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8709
8710 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8711 'gnulib/Makefile.in' to the list.
8712
8713 2020-02-24 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8716 Remove.
8717 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8718 XOBNEWVEC.
8719
8720 2020-02-24 Tom Tromey <tom@tromey.com>
8721
8722 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8723 New method.
8724 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8725 (dw2_do_instantiate_symtab, dw2_get_file_names)
8726 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8727
8728 2020-02-24 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8731 make_scoped_restore.
8732 (dwarf2_psymtab::read_symtab): Don't clear
8733 reading_partial_symbols.
8734
8735 2020-02-24 Tom de Vries <tdevries@suse.de>
8736
8737 PR gdb/25592
8738 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8739
8740 2020-02-24 Tom de Vries <tdevries@suse.de>
8741
8742 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8743 commands layout next/prev/regs.
8744
8745 2020-02-22 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8748 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8749
8750 2020-02-22 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8753
8754 2020-02-22 Tom Tromey <tom@tromey.com>
8755
8756 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8757 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8758 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8759 * tui/tui.c (_initialize_tui): Add usage text.
8760
8761 2020-02-22 Tom Tromey <tom@tromey.com>
8762
8763 * tui/tui-win.c (tui_set_focus_command)
8764 (tui_set_win_height_command): Use error_no_arg.
8765 (_initialize_tui_win): Update help text.
8766 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8767
8768 2020-02-22 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8771 * tui/tui-disasm.h (struct tui_disasm_window)
8772 <display_start_addr>: Declare.
8773 * tui/tui-source.h (struct tui_source_window)
8774 <display_start_addr>: Declare.
8775 * tui/tui-winsource.h (struct tui_source_window_base)
8776 <show_source_line, display_start_addr>: New methods.
8777 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8778 Rename and move to protected section.
8779 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8780 (tui_source_window_base::do_erase_source_content): Update.
8781 (tui_source_window_base::show_source_line): Now a method.
8782 (tui_source_window_base::show_source_content)
8783 (tui_source_window_base::tui_source_window_base)
8784 (tui_source_window_base::rerender)
8785 (tui_source_window_base::refill)
8786 (tui_source_window_base::do_scroll_horizontal)
8787 (tui_source_window_base::set_is_exec_point_at)
8788 (tui_source_window_base::update_breakpoint_info)
8789 (tui_source_window_base::update_exec_info): Update.
8790 * tui/tui-source.c (tui_source_window::set_contents)
8791 (tui_source_window::showing_source_p)
8792 (tui_source_window::do_scroll_vertical)
8793 (tui_source_window::location_matches_p)
8794 (tui_source_window::line_is_displayed): Update.
8795 (tui_source_window::display_start_addr): New method.
8796 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8797 (tui_disasm_window::do_scroll_vertical)
8798 (tui_disasm_window::location_matches_p): Update.
8799 (tui_disasm_window::display_start_addr): New method.
8800
8801 2020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * NEWS: Add entry for gdb.register_window_type.
8804 * tui/tui-layout.h (window_factory): New typedef.
8805 (tui_register_window): Declare.
8806 * tui/tui-layout.c (saved_tui_windows): New global.
8807 (tui_apply_current_layout): Use it.
8808 (tui_register_window): New function.
8809 * python/python.c (do_start_initialization): Call
8810 gdbpy_initialize_tui.
8811 (python_GdbMethods): Add "register_window_type" function.
8812 * python/python-internal.h (gdbpy_register_tui_window)
8813 (gdbpy_initialize_tui): Declare.
8814 * python/py-tui.c: New file.
8815 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8816
8817 2020-02-22 Tom Tromey <tom@tromey.com>
8818
8819 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8824 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8825 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8826 (tui_set_win_focus_to): Move from tui-win.c.
8827
8828 2020-02-22 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8831 functions.
8832 (known_window_types): New global.
8833 (tui_get_window_by_name): Reimplement.
8834 (initialize_known_windows): New function.
8835 (validate_window_name): Rewrite.
8836 (_initialize_tui_layout): Call initialize_known_windows.
8837
8838 2020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8841 Remove constants.
8842 * tui/tui-winsource.h (struct tui_source_window_base)
8843 <tui_source_window_base>: Remove parameter.
8844 * tui/tui-winsource.c
8845 (tui_source_window_base::tui_source_window_base): Remove
8846 parameter.
8847 (tui_source_window_base::refill): Update.
8848 * tui/tui-stack.h (struct tui_locator_window)
8849 <tui_locator_window>: Update.
8850 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8851 Default the constructor.
8852 * tui/tui-regs.h (struct tui_data_item_window)
8853 <tui_data_item_window>: Default the constructor.
8854 (struct tui_data_window) <tui_data_window>: Likewise.
8855 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8856 Default the constructor.
8857 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8858 Default the constructor.
8859 <type>: Remove.
8860 (struct tui_win_info) <tui_win_info>: Default the constructor.
8861 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8862 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8863 Default the constructor.
8864
8865 2020-02-22 Tom Tromey <tom@tromey.com>
8866
8867 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8868 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8869 * tui/tui-win.c (tui_resize_all): Don't call
8870 tui_delete_invisible_windows.
8871 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8872 done.
8873 (tui_set_layout): Update.
8874 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8875 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8876 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8877
8878 2020-02-22 Tom Tromey <tom@tromey.com>
8879
8880 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8881 correctly.
8882
8883 2020-02-22 Tom Tromey <tom@tromey.com>
8884
8885 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8886
8887 2020-02-22 Tom Tromey <tom@tromey.com>
8888
8889 * tui/tui-winsource.h (struct tui_source_window_iterator)
8890 <inner_iterator>: New etytypedef.
8891 <tui_source_window_iterator>: Take "end" parameter.
8892 <tui_source_window_iterator>: Take iterator.
8893 <operator*, advance>: Update.
8894 <m_iter>: Change type.
8895 <m_end>: New field.
8896 (struct tui_source_windows) <begin, end>: Update.
8897 * tui/tui-layout.c (tui_windows): New global.
8898 (tui_apply_current_layout): Clear tui_windows.
8899 (tui_layout_window::apply): Update tui_windows.
8900 * tui/tui-data.h (tui_windows): Declare.
8901 (all_tui_windows): Now inline function.
8902 (class tui_window_iterator, struct all_tui_windows): Remove.
8903
8904 2020-02-22 Tom Tromey <tom@tromey.com>
8905
8906 PR tui/17850:
8907 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8908 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8909 "height" argument.
8910 (class tui_layout_window) <get_sizes>: Likewise.
8911 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8912 argument.
8913 <get_sizes>: Add "height" argument.
8914 <m_vertical>: New field.
8915 * tui/tui-layout.c (tui_layout_split::clone): Update.
8916 (tui_layout_split::get_sizes): Add "height" argument.
8917 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8918 (tui_new_layout_command): Parse "-horizontal".
8919 (_initialize_tui_layout): Update help string.
8920 (tui_layout_split::specification): Add "-horizontal" when needed.
8921 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8922 argument.
8923 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8924 New methods.
8925
8926 2020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-layout.h (enum tui_adjust_result): New.
8929 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8930 (class tui_layout_window) <adjust_size>: Return
8931 tui_adjust_result. Rewrite.
8932 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8933 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8934
8935 2020-02-22 Tom Tromey <tom@tromey.com>
8936
8937 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8938 parameter and return types.
8939 (class tui_layout_base) <specification>: Add "depth".
8940 (class tui_layout_window) <specification>: Add "depth".
8941 (class tui_layout_split) <specification>: Add "depth".
8942 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8943 and return types.
8944 (tui_new_layout_command): Parse sub-layouts.
8945 (_initialize_tui_layout): Update help string.
8946 (tui_layout_window::specification): Add "depth".
8947 (add_layout_command): Update.
8948
8949 2020-02-22 Tom Tromey <tom@tromey.com>
8950
8951 * NEWS: Add "tui new-layout" item.
8952 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8953 Add new-layout command to help text.
8954 (validate_window_name): New function.
8955 (tui_new_layout_command): New function.
8956 (_initialize_tui_layout): Register "new-layout".
8957 (tui_layout_window::specification): New method.
8958 (tui_layout_window::specification): New method.
8959 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8960 method.
8961 (class tui_layout_window) <specification>: New method.
8962 (class tui_layout_split) <specification>: New method.
8963
8964 2020-02-22 Tom Tromey <tom@tromey.com>
8965
8966 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8967 * tui/tui-win.c (window_name_completer): Update comment.
8968 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8969 Declare method.
8970 (class tui_layout_window) <replace_window>: Likewise.
8971 (class tui_layout_split) <replace_window>: Likewise.
8972 (tui_set_layout): Don't declare.
8973 (tui_set_initial_layout): Declare function.
8974 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8975 (asm_regs_layout): New globals.
8976 (tui_current_layout, show_layout): Remove.
8977 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8978 (find_layout, tui_apply_layout): New function.
8979 (layout_completer): Remove.
8980 (tui_next_layout): Reimplement.
8981 (tui_next_layout_command): New function.
8982 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8983 (tui_regs_layout): Reimplement.
8984 (tui_regs_layout_command): New function.
8985 (extract_display_start_addr): Rewrite.
8986 (next_layout, prev_layout): Remove.
8987 (tui_layout_window::replace_window): New method.
8988 (tui_layout_split::replace_window): New method.
8989 (destroy_layout): New function.
8990 (layout_list): New global.
8991 (add_layout_command): New function.
8992 (initialize_layouts): Update.
8993 (tui_layout_command): New function.
8994 (_initialize_tui_layout): Install "layout" commands.
8995 * tui/tui-data.h (enum tui_layout_type): Remove.
8996 (tui_current_layout): Don't declare.
8997
8998 2020-02-22 Tom Tromey <tom@tromey.com>
8999
9000 * tui/tui-regs.c (tui_reg_layout): Remove.
9001 (tui_reg_command): Use tui_regs_layout.
9002 * tui/tui-layout.h (tui_reg_command): Declare.
9003 * tui/tui-layout.c (tui_reg_command): New function.
9004
9005 2020-02-22 Tom Tromey <tom@tromey.com>
9006
9007 * tui/tui.c (tui_rl_delete_other_windows): Call
9008 tui_remove_some_windows.
9009 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9010 Declare method.
9011 (class tui_layout_window) <remove_windows>: New method.
9012 (class tui_layout_split) <remove_windows>: Declare.
9013 (tui_remove_some_windows): Declare.
9014 * tui/tui-layout.c (tui_remove_some_windows): New function.
9015 (tui_layout_split::remove_windows): New method.
9016
9017 2020-02-22 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9020 * tui/tui-layout.h (tui_next_layout): Declare.
9021 * tui/tui-layout.c (tui_next_layout): New function.
9022
9023 2020-02-22 Tom Tromey <tom@tromey.com>
9024
9025 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9026 correct coordinates.
9027
9028 2020-02-22 Tom Tromey <tom@tromey.com>
9029
9030 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9031 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9032 DATA_WIN case.
9033
9034 2020-02-22 Tom Tromey <tom@tromey.com>
9035
9036 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9037 TUI_DISASM_WIN, not tui_win_list.
9038
9039 2020-02-22 Tom Tromey <tom@tromey.com>
9040
9041 * valprint.c (generic_val_print_enum_1)
9042 (val_print_type_code_flags): Style member names.
9043 * rust-lang.c (val_print_struct, rust_print_enum)
9044 (rust_print_struct_def, rust_internal_print_type): Style member
9045 names.
9046 * p-valprint.c (pascal_object_print_value_fields): Style member
9047 names. Only call fprintf_symbol_filtered for static members.
9048 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9049 * f-valprint.c (f_val_print): Style member names.
9050 * f-typeprint.c (f_type_print_base): Style member names.
9051 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9052 call fprintf_symbol_filtered for static members.
9053 (cp_print_class_member): Style member names.
9054 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9055 member names.
9056 * ada-valprint.c (ada_print_scalar): Style enum names.
9057 (ada_val_print_enum): Likewise.
9058 * ada-typeprint.c (print_enum_type): Style enum names.
9059
9060 2020-02-21 Tom Tromey <tom@tromey.com>
9061
9062 * psympriv.h (struct partial_symtab): Update comment.
9063
9064 2020-02-21 Tom Tromey <tromey@adacore.com>
9065
9066 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9067 type is CORE_ADDR.
9068
9069 2020-02-21 Tom de Vries <tdevries@suse.de>
9070
9071 PR gdb/25534
9072 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9073 if dependencies[i]->user != NULL.
9074
9075 2020-02-21 Ali Tamur <tamur@google.com>
9076
9077 * dwarf2/read.c (dwarf2_name): Add null check.
9078
9079 2020-02-20 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9082 ">=", in binary search.
9083 (dwarf2_find_containing_comp_unit): New overload.
9084 (run_test): New self-test.
9085 (_initialize_dwarf2_read): Register new test.
9086
9087 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9088
9089 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9090 * riscv-tdep.h: Likewise.
9091 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9092 rv32-only CSR.
9093 * features/riscv/64bit-csr.xml: Regenerated.
9094
9095 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9096 Tom Tromey <tom@tromey.com>
9097
9098 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9099 of 'fputc_unfiltered'.
9100 (putchar_unfiltered): Call 'fputc_unfiltered'.
9101 (fputc_unfiltered): Call 'fputs_unfiltered'.
9102
9103 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * config.in: Regenerate.
9106 * configure: Regenerate.
9107 * configure.ac: Add --with-python-libdir option.
9108 * main.c: Use WITH_PYTHON_LIBDIR.
9109
9110 2020-02-19 Tom Tromey <tom@tromey.com>
9111
9112 * symtab.c (general_symbol_info::compute_and_set_names): Use
9113 obstack_strndup. Simplify call to symbol_set_demangled_name.
9114
9115 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c (allocate_signatured_type_table,
9118 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9119 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9120 Remove objfile parameter, update all callers.
9121
9122 2020-02-19 Doug Evans <dje@google.com>
9123
9124 PR rust/25535
9125 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9126 rust_enum_variant calculation.
9127
9128 2020-02-19 Tom Tromey <tromey@adacore.com>
9129
9130 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9131
9132 2020-02-19 Tom Tromey <tromey@adacore.com>
9133
9134 * ada-lang.c (cache_symbol): Use obstack_strdup.
9135
9136 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9137
9138 * configure: Regenerate.
9139
9140 2020-02-19 Tom Tromey <tromey@adacore.com>
9141
9142 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9143 NULL check.
9144
9145 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9146
9147 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9148
9149 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9152 if GDBSERVER is not defined.
9153 (riscv_tdesc_cache): Likewise, also store const target_desc.
9154 (STATIC_IN_GDB): Define.
9155 (riscv_create_target_description): Update declaration with
9156 STATIC_IN_GDB.
9157 (riscv_lookup_target_description): New function, only define if
9158 GDBSERVER is not defined.
9159 * arch/riscv.h (riscv_create_target_description): Declare only
9160 when GDBSERVER is defined.
9161 (riscv_lookup_target_description): New declaration when GDBSERVER
9162 is not defined.
9163 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9164 (riscv_linux_read_features): ...this, and return
9165 riscv_gdbarch_features instead of target_desc.
9166 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9167 (riscv_linux_read_description): Rename to...
9168 (riscv_linux_read_features): ...this.
9169 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9170 Update to use riscv_gdbarch_features and
9171 riscv_lookup_target_description.
9172 * riscv-tdep.c (riscv_find_default_target_description): Use
9173 riscv_lookup_target_description instead of
9174 riscv_create_target_description.
9175
9176 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * valprint.c (generic_val_print_enum_1): When printing a flag
9179 enum with value 0 and there is no enumerator with value 0, print
9180 just "0" instead of "(unknown: 0x0)".
9181
9182 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * valprint.c (generic_val_print_enum_1): Print unknown part of
9185 flag enum in hex.
9186
9187 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9190 flag enums to contain duplicate enumerators.
9191 * valprint.c (generic_val_print_enum_1): Update comment.
9192
9193 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * dwarf2/read.c: Include "count-one-bits.h".
9196 (update_enumeration_type_from_children): If an enumerator has
9197 multiple bits set, don't treat the enumeration as a "flag enum".
9198 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9199 of flag enums have 0 or 1 bit set.
9200
9201 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9202
9203 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9204 conversion.
9205 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9206 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9207 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9208 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9209 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9210
9211 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9214
9215 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9218 displaced_step_closure_up.
9219 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9220 (struct displaced_step_closure_up):
9221 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9222 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9223 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9224 Likewise.
9225 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9226 * gdbarch.c, gdbarch.h: Re-generate.
9227 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9228 displaced_step_closure_up.
9229 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9230 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9231 * infrun.h (displaced_step_closure_up): New type alias.
9232 (struct displaced_step_inferior_state) <step_closure>: Change
9233 type to displaced_step_closure_up.
9234 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9235 displaced_step_closure_up.
9236 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9237
9238 2020-02-14 Tom Tromey <tom@tromey.com>
9239
9240 * minidebug.c (gnu_debug_key): New global.
9241 (find_separate_debug_file_in_section): Use it.
9242
9243 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9246 std::unique_ptr.
9247 * gdbarch.c: Re-generate.
9248 * gdbarch.h: Re-generate.
9249 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9250 change.
9251 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9252 type to std::unique_ptr.
9253 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
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): Likewise.
9257 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9258 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9259 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9260 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9261 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9262
9263 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9266 std::unique_ptr.
9267 (displaced_step_clear): Rename to...
9268 (displaced_step_reset): ... this. Just call displaced->reset ().
9269 (displaced_step_clear_cleanup): Rename to...
9270 (displaced_step_reset_cleanup): ... this.
9271 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9272 (displaced_step_fixup): Likewise.
9273 (resume_1): Likewise.
9274 (handle_inferior_event): Restore child's memory before calling
9275 displaced_step_fixup on the parent.
9276 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9277 to std::unique_ptr.
9278 <step_closure>: Change type to std::unique_ptr.
9279
9280 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * arm-tdep.c: Include count-one-bits.h.
9283 (cleanup_block_store_pc): Use count_one_bits.
9284 (cleanup_block_load_pc): Use count_one_bits.
9285 (arm_copy_block_xfer): Use count_one_bits.
9286 (thumb2_copy_block_xfer): Use count_one_bits.
9287 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9288 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9289 (thumb_get_next_pcs_raw): Use count_one_bits.
9290 (arm_get_next_pcs_raw): Use count_one_bits_l.
9291 * arch/arm.c (bitcount): Remove.
9292 * arch/arm.h (bitcount): Remove.
9293
9294 2020-02-14 Tom Tromey <tromey@adacore.com>
9295
9296 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9297 Update.
9298 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9299 * dwarf2/loc.c (call_site_find_chain_1): Return
9300 unique_xmalloc_ptr.
9301 (call_site_find_chain): Likewise.
9302
9303 2020-02-14 Richard Biener <rguenther@suse.de>
9304
9305 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9306 on expression with division operators.
9307
9308 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9309
9310 * MAINTAINERS (Write After Approval): Adding myself.
9311
9312 2020-02-12 Tom Tromey <tom@tromey.com>
9313
9314 * event-loop.c (event_data, gdb_event, event_handler_func):
9315 Remove.
9316
9317 2020-02-12 Tom Tromey <tom@tromey.com>
9318
9319 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9320 (dwarf2_frame_objfile_data): Add comment.
9321 (find_comp_unit, set_comp_unit): New functions.
9322 (dwarf2_frame_find_fde): Use find_comp_unit.
9323 (dwarf2_build_frame_info): Use set_comp_unit.
9324
9325 2020-02-12 Tom Tromey <tom@tromey.com>
9326
9327 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9328 (comp_unit): Don't initialize objfile.
9329 (execute_cfa_program): Add text_offset parameter.
9330 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9331 (dwarf2_frame_cache): Update.
9332 (dwarf2_build_frame_info): Don't set "objfile" member.
9333
9334 2020-02-12 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9337 (decode_frame_entry): Likewise.
9338 (dwarf2_build_frame_info): Update.
9339
9340 2020-02-12 Tom Tromey <tom@tromey.com>
9341
9342 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9343 (decode_frame_entry_1): Use the comp_unit obstack.
9344
9345 2020-02-12 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2/frame.c (struct comp_unit): Add initializers and
9348 constructor.
9349 (dwarf2_frame_objfile_data): Store a comp_unit.
9350 (dwarf2_frame_find_fde): Update.
9351 (dwarf2_build_frame_info): Use "new".
9352
9353 2020-02-12 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9356 (dwarf2_fde_table): Typedef for std::vector.
9357 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9358 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9359 (decode_frame_entry): Update.
9360 (dwarf2_build_frame_info): Use "new".
9361
9362 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9363
9364 * arm-tdep.c (arm_gdbarch_init): Update.
9365 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9366 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9367 have_neon, is_m>: Change to bool.
9368
9369 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9370
9371 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9372
9373 2020-02-12 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9376
9377 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9378
9379 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9380 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9381
9382 2020-02-11 Tom Tromey <tom@tromey.com>
9383
9384 * psymtab.h: Update comment.
9385
9386 2020-02-11 Tom Tromey <tom@tromey.com>
9387
9388 * gdb_obstack.h (struct auto_obstack): Use
9389 DISABLE_COPY_AND_ASSIGN.
9390
9391 2020-02-11 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2/frame.h (struct objfile): Don't forward declare.
9394
9395 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9396
9397 * cris-tdep.c (cris_supply_gregset): Change signature to match
9398 what struct regset expects.
9399 (cris_regset): New struct.
9400 (fetch_core_registers): Remove.
9401 (cris_iterate_over_regset_sections): New function.
9402 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9403 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9404
9405 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9406
9407 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9408 registers.
9409
9410 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9411
9412 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9413
9414 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9415
9416 * configure: Re-generate.
9417
9418 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * configure: Re-generate.
9421
9422 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9423
9424 * acinclude: Update warning.m4 path.
9425 * warning.m4: Move to gdbsupport.
9426
9427 2020-02-11 Tom Tromey <tromey@adacore.com>
9428
9429 * remote.c (remote_console_output): Update.
9430 * printcmd.c (printf_command): Update.
9431 * event-loop.c (gdb_wait_for_event): Update.
9432 * linux-nat.c (sigchld_handler): Update.
9433 * remote-sim.c (gdb_os_write_stdout): Update.
9434 (gdb_os_flush_stdout): Update.
9435 (gdb_os_flush_stderr): Update.
9436 (gdb_os_write_stderr): Update.
9437 * exceptions.c (print_exception): Update.
9438 * remote-fileio.c (remote_fileio_func_read): Update.
9439 (remote_fileio_func_write): Update.
9440 * tui/tui.c (tui_enable): Update.
9441 * tui/tui-interp.c (tui_interp::init): Update.
9442 * utils.c (init_page_info): Update.
9443 (putchar_unfiltered, fputc_unfiltered): Update.
9444 (gdb_flush): Update.
9445 (emit_style_escape): Update.
9446 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9447 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9448 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9449 (stderr_file::write): Update.
9450 (stderr_file::puts): Update.
9451 * ui-file.h (ui_file_isatty, ui_file_write)
9452 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9453 (ui_file_puts): Don't declare.
9454
9455 2020-02-10 Tom de Vries <tdevries@suse.de>
9456
9457 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9458 sentinel to char *.
9459
9460 2020-02-09 Tom de Vries <tdevries@suse.de>
9461
9462 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9463 filename if it matches "<artificial>".
9464
9465 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9466
9467 * windows-tdep.c (struct enum_value_name): New struct.
9468 (create_enum): New function.
9469 (windows_get_siginfo_type): Create and use enum types.
9470
9471 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9472
9473 * NEWS: Mention $_siginfo support for Windows.
9474 * windows-nat.c (handle_exception): Set siginfo_er.
9475 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9476 (windows_xfer_siginfo): New function.
9477 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9478 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9479 (init_windows_gdbarch_data): New function.
9480 (get_windows_gdbarch_data): New function.
9481 (windows_get_siginfo_type): New function.
9482 (windows_init_abi): Register windows_get_siginfo_type.
9483 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9484
9485 2020-02-08 Tom Tromey <tom@tromey.com>
9486
9487 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9488 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9489 <keep>: Declare method.
9490 <m_keep>: Remove member.
9491 <~cutu_reader>: Remove.
9492 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9493 (cutu_reader::cutu_reader): Update.
9494 (cutu_reader::keep): Rename from ~cutu_reader.
9495 (process_psymtab_comp_unit, build_type_psymtabs_1)
9496 (process_skeletonless_type_unit, load_partial_comp_unit)
9497 (load_full_comp_unit, dwarf2_read_addr_index)
9498 (read_signatured_type): Update.
9499
9500 2020-02-08 Tom Tromey <tom@tromey.com>
9501
9502 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9503 "want_partial_unit" parameter.
9504 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9505 Inline check for DW_TAG_partial_unit.
9506 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9507
9508 2020-02-08 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9511 read.c.
9512 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9513 read.c.
9514
9515 2020-02-08 Tom Tromey <tom@tromey.com>
9516
9517 * dwarf2/read.c (read_address): Move to comp-unit.c.
9518 (dwarf2_rnglists_process, dwarf2_ranges_process)
9519 (read_attribute_value, dwarf_decode_lines_1)
9520 (var_decode_location, decode_locdesc): Update.
9521 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9522 read.c. Remove "cu" parameter.
9523 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9524 method.
9525
9526 2020-02-08 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9529 (read_indirect_line_string): Update.
9530 * dwarf2/comp-unit.c (read_offset): Remove.
9531 (read_comp_unit_head): Update.
9532 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9533 method.
9534 (read_offset): Don't declare.
9535
9536 2020-02-08 Tom Tromey <tom@tromey.com>
9537
9538 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9539 * dwarf2/read.c (struct comp_unit_head): Move to
9540 dwarf2/comp-unit.h.
9541 (enum class rcuh_kind): Move to comp-unit.h.
9542 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9543 (read_comp_unit_head, error_check_comp_unit_head)
9544 (read_and_check_comp_unit_head): Move to comp-unit.c.
9545 (read_offset, dwarf_unit_type_name): Likewise.
9546 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9547 (cutu_reader::cutu_reader, read_call_site_scope)
9548 (find_partial_die, follow_die_offset): Update.
9549 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9550
9551 2020-02-08 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2/read.c (read_offset_1): Move to leb.c.
9554 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9555 (dwarf_decode_macro_bytes): Update.
9556 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9557 * dwarf2/leb.h (read_offset): Declare.
9558
9559 2020-02-08 Tom Tromey <tom@tromey.com>
9560
9561 * dwarf2/read.c (dwarf2_section_size): Remove.
9562 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9563 Update.
9564 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9565
9566 2020-02-08 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2/read.c (read_initial_length): Move to leb.c.
9569 * dwarf2/leb.h (read_initial_length): Declare.
9570 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9571 handle_nonstd parameter.
9572 * dwarf2/frame.c (read_initial_length): Remove.
9573 (decode_frame_entry_1): Update.
9574
9575 2020-02-08 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/loc.c (dwarf2_find_location_expression)
9578 (dwarf_evaluate_loc_desc::get_tls_address)
9579 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9580 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9581 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9582 (dwarf2_compile_property_to_c)
9583 (dwarf2_loc_desc_get_symbol_read_needs)
9584 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9585 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9586 (loclist_describe_location, loclist_tracepoint_var_ref)
9587 (loclist_generate_c_location): Update.
9588 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9589 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9590 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9591 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9592 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9593 (dwarf2_per_cu_data::addr_size)
9594 (dwarf2_per_cu_data::ref_addr_size)
9595 (dwarf2_per_cu_data::text_offset)
9596 (dwarf2_per_cu_data::addr_type): Now methods.
9597 (per_cu_header_read_in): Make per_cu "const".
9598 (dwarf2_version): Remove.
9599 (dwarf2_per_cu_data::int_type): Now a method.
9600 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9601 (set_die_type, read_array_type, read_subrange_index_type)
9602 (read_tag_string_type, read_subrange_type): Update.
9603 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9604 offset_size, ref_addr_size, text_offset, addr_type, version,
9605 objfile, int_type, addr_sized_int_type>: Declare methods.
9606
9607 2020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9610 Move earlier.
9611
9612 2020-02-08 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/read.h (dwarf_line_debug): Declare.
9615 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9616 * dwarf2/read.c: Move line_header code to new files.
9617 (dwarf_line_debug): No longer static.
9618 * dwarf2/line-header.c: New file.
9619 * dwarf2/line-header.h: New file.
9620
9621 2020-02-08 Tom Tromey <tom@tromey.com>
9622
9623 * dwarf2/read.c (struct line_header) <file_full_name,
9624 file_file_name>: Return unique_xmalloc_ptr.
9625 (line_header::file_file_name): Update.
9626 (line_header::file_full_name): Update.
9627 (dw2_get_file_names_reader): Update.
9628 (macro_start_file): Update.
9629
9630 2020-02-08 Tom Tromey <tom@tromey.com>
9631
9632 * dwarf2/read.c (struct line_header) <file_full_name,
9633 file_file_name>: Declare methods.
9634 (dw2_get_file_names_reader): Update.
9635 (file_file_name): Now a method.
9636 (file_full_name): Likewise.
9637 (macro_start_file): Update.
9638
9639 2020-02-08 Tom Tromey <tom@tromey.com>
9640
9641 * dwarf2/read.c (dwarf_always_disassemble)
9642 (show_dwarf_always_disassemble): Move to loc.c.
9643 (_initialize_dwarf2_read): Move "always-disassemble" registration
9644 to loc.c.
9645 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9646 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9647 static.
9648 (show_dwarf_always_disassemble): Move from read.c.
9649 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9650
9651 2020-02-08 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9654 (create_quick_file_names_table): Return htab_up.
9655 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9656 Update.
9657 * dwarf2/read.h (struct dwarf2_per_objfile)
9658 <quick_file_names_table>: Now htab_up.
9659
9660 2020-02-08 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9663
9664 2020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9667 Rewrite.
9668 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9669 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9670 (abbrev_table::abbrev_table): No longer inline.
9671 (ABBREV_HASH_SIZE): Remove.
9672 (abbrev_table::m_abbrevs): Now an htab_up.
9673
9674 2020-02-08 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9677 (cutu_reader): Update.
9678 (build_type_psymtabs_1): Update.
9679 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9680 (abbrev_table::alloc_abbrev): Update.
9681 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9682 (abbrev_table::read): New static method, renamed from
9683 abbrev_table_read_table.
9684 (abbrev_table::alloc_abbrev)
9685 (abbrev_table::add_abbrev): Now private.
9686 (abbrev_table::abbrev_table): Now private.
9687 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9688
9689 2020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9692 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9693 htab_up.
9694
9695 2020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9698 htab_up.
9699 (lookup_dwo_unit_in_dwp): Update.
9700 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9701 on obstack.
9702
9703 2020-02-08 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9706 obstack.
9707
9708 2020-02-08 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9711 line_header_hash.
9712 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9713 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9714 Change type to htab_up.
9715
9716 2020-02-08 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9719 htab_up. Don't allocate on obstack.
9720 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9721 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9722 Change type to htab_up.
9723
9724 2020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9727 Change type to htab_up.
9728 * dwarf2/read.c (create_signatured_type_table_from_index)
9729 (create_signatured_type_table_from_debug_names)
9730 (create_all_type_units, add_type_unit)
9731 (lookup_dwo_signatured_type, lookup_signatured_type)
9732 (process_skeletonless_type_unit): Update.
9733 (create_debug_type_hash_table, create_debug_types_hash_table):
9734 Change type of types_htab.
9735 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9736 htab_up. Don't allocate on obstack.
9737 (create_cus_hash_table): Change type of cus_htab parameter.
9738 (struct dwo_file) <cus, tus>: Now htab_up.
9739 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9740 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9741 (queue_and_load_all_dwo_tus): Update.
9742 * dwarf2/index-write.c (write_gdbindex): Update.
9743 (write_debug_names): Update.
9744
9745 2020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9748 dwarf2/read.c. Remove "next" member. Add constructor ntad
9749 destructor.
9750 (struct dwarf2_per_objfile) <queue>: New member.
9751 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9752 dwarf2/read.h.
9753 (dwarf2_queue, dwarf2_queue_tail): Remove.
9754 (class dwarf2_queue_guard): Add parameter to constructor. Use
9755 DISABLE_COPY_AND_ASSIGN.
9756 <m_per_objfile>: New member.
9757 <~dwarf2_queue_guard>: Rewrite.
9758 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9759 Update.
9760 (~dwarf2_queue_item): New.
9761
9762 2020-02-08 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/read.c (struct die_info) <has_children>: New member.
9765 (dw2_get_file_names_reader): Remove has_children.
9766 (dw2_get_file_names): Update.
9767 (read_cutu_die_from_dwo): Remove has_children.
9768 (cutu_reader::init_tu_and_read_dwo_dies)
9769 (cutu_reader::cutu_reader): Update.
9770 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9771 Remove has_children.
9772 (build_type_psymtabs_1, process_skeletonless_type_unit)
9773 (load_partial_comp_unit, load_full_comp_unit): Update.
9774 (create_dwo_cu_reader): Remove has_children.
9775 (create_cus_hash_table, read_die_and_children): Update.
9776 (read_full_die_1,read_full_die): Remove has_children.
9777 (read_signatured_type): Update.
9778 (class cutu_reader) <has_children>: Remove.
9779
9780 2020-02-08 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/expr.c: Rename from dwarf2expr.c.
9783 * dwarf2/expr.h: Rename from dwarf2expr.h.
9784 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9785 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9786 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9787 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9788 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9789 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9790 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9791 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9792 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9793 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9794 * dwarf2/loc.c: Rename from dwarf2loc.c.
9795 * dwarf2/loc.h: Rename from dwarf2loc.h.
9796 * dwarf2/read.c: Rename from dwarf2read.c.
9797 * dwarf2/read.h: Rename from dwarf2read.h.
9798 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9799 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9800 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9801 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9802 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9803 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9804 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9805 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9806 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9807 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9808 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9809 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9810 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9811 Update.
9812 * Makefile.in (COMMON_SFILES): Update.
9813 (HFILES_NO_SRCDIR): Update.
9814
9815 2020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9818 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9819
9820 2020-02-08 Tom Tromey <tom@tromey.com>
9821
9822 * dwarf2read.h (struct die_info): Don't declare.
9823
9824 2020-02-08 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2read.h (die_info_ptr): Remove typedef.
9827
9828 2020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2read.c (read_call_site_scope)
9831 (handle_data_member_location, dwarf2_add_member_fn)
9832 (mark_common_block_symbol_computed, read_common_block)
9833 (attr_to_dynamic_prop, partial_die_info::read)
9834 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9835 (dwarf2_symbol_mark_computed, set_die_type): Update.
9836 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9837 method.
9838 (attr_form_is_block): Don't declare.
9839 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9840
9841 2020-02-08 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2read.c (dwarf2_find_base_address, )
9844 (read_call_site_scope, rust_containing_type)
9845 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9846 (handle_data_member_location, dwarf2_add_member_fn)
9847 (get_alignment, read_structure_type, process_structure_scope)
9848 (mark_common_block_symbol_computed, read_common_block)
9849 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9850 (partial_die_info::read, read_attribute_value, new_symbol)
9851 (lookup_die_type, dwarf2_get_ref_die_offset)
9852 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9853 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9854 (dwarf2_symbol_mark_computed): Update.
9855 * dwarf2/attribute.h (struct attribute) <value_as_address,
9856 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9857 methods.
9858 (value_as_address, attr_form_is_section_offset)
9859 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9860 * dwarf2/attribute.c (attribute::value_as_address)
9861 (attribute::form_is_section_offset, attribute::form_is_constant)
9862 (attribute::form_is_ref): Now methods.
9863
9864 2020-02-08 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2read.c (struct attribute, DW_STRING)
9867 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9868 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9869 (attr_form_is_block, attr_form_is_section_offset)
9870 (attr_form_is_constant, attr_form_is_ref): Move.
9871 * dwarf2/attribute.h: New file.
9872 * dwarf2/attribute.c: New file, from dwarf2read.c.
9873 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9874
9875 2020-02-08 Tom Tromey <tom@tromey.com>
9876
9877 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9878 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9879 Move.
9880 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9881 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9882 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9883 abbrev.c.
9884 * dwarf2/abbrev.h: New file.
9885 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9886 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9887
9888 2020-02-08 Tom Tromey <tom@tromey.com>
9889
9890 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9891 (dwarf2_section_size, dwarf2_get_section_info)
9892 (create_signatured_type_table_from_debug_names)
9893 (create_addrmap_from_aranges, read_debug_names_from_section)
9894 (get_gdb_index_contents_from_section, read_comp_unit_head)
9895 (error_check_comp_unit_head, read_abbrev_offset)
9896 (create_debug_type_hash_table, init_cu_die_reader)
9897 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9898 (read_comp_units_from_section, create_cus_hash_table)
9899 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9900 (create_dwp_v2_section, dwarf2_rnglists_process)
9901 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9902 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9903 (read_indirect_string_from_dwz, read_addr_index_1)
9904 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9905 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9906 (fill_in_loclist_baton): Update.
9907 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9908 get_containing_section, get_bfd_owner, get_bfd_section,
9909 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9910 (dwarf2_read_section, get_section_name, get_section_file_name)
9911 (get_containing_section, get_section_bfd_owner)
9912 (get_section_bfd_section, get_section_name, get_section_file_name)
9913 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9914 declare.
9915 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9916 (dwarf2_section_info::get_bfd_owner)
9917 (dwarf2_section_info::get_bfd_section)
9918 (dwarf2_section_info::get_name)
9919 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9920 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9921 (dwarf2_section_info::read): Now methods.
9922 * dwarf-index-write.c (class debug_names): Update.
9923
9924 2020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9927 Move to dwarf2/section.h.
9928 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9929 (get_section_bfd_section, get_section_name)
9930 (get_section_file_name, get_section_id, get_section_flags)
9931 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9932 dwarf2/section.c.
9933 * dwarf2/section.h: New file.
9934 * dwarf2/section.c: New file, from dwarf2read.c.
9935 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9936
9937 2020-02-08 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9940 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9941 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9942 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9943 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9944 * dwarf2/leb.h: New file, from dwarf2read.c.
9945 * dwarf2/leb.c: New file, from dwarf2read.c.
9946 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9947 Remove.
9948 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9949 (COMMON_SFILES): Add dwarf2/leb.c.
9950
9951 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9952
9953 GDB 9.1 released.
9954
9955 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9956
9957 PR gdb/25190:
9958 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9959 * gdb/remote.c (remote_console_output): Update.
9960 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9961 (ui_file_puts): ...this.
9962 * gdb/ui-file.h (ui_file_puts): Add declaration.
9963 * gdb/utils.c (emit_style_escape): Update.
9964 (flush_wrap_buffer): Update.
9965 (fputs_maybe_filtered): Update.
9966 (fputs_unfiltered): Add function.
9967
9968 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9969
9970 * gdb/event-loop.c (gdb_wait_for_event): Update.
9971 * gdb/printcmd.c (printf_command): Update.
9972 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9973 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9974 (gdb_os_flush_stderr): Update.
9975 * gdb/remote.c (remote_console_output): Update.
9976 * gdb/ui-file.c (gdb_flush): Rename to...
9977 (ui_file_flush): ...this.
9978 (stderr_file::write): Update.
9979 (stderr_file::puts): Update.
9980 * gdb/ui-file.h (gdb_flush): Rename to...
9981 (ui_file_flush): ...this.
9982 * gdb/utils.c (gdb_flush): Add function.
9983 * gdb/utils.h (gdb_flush): Add declaration.
9984
9985 2020-02-07 Tom Tromey <tromey@adacore.com>
9986
9987 PR breakpoints/24915:
9988 * source.c (find_and_open_source): Do not check basenames_may_differ.
9989
9990 2020-02-07 Tom Tromey <tom@tromey.com>
9991
9992 * README: Update gdbserver documentation.
9993 * gdbserver: Move to top level.
9994 * configure.tgt (build_gdbserver): Remove.
9995 * configure.ac: Remove --enable-gdbserver.
9996 * configure: Rebuild.
9997 * Makefile.in (distclean): Don't mention gdbserver.
9998
9999 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10000
10001 * source-cache.c (source_cache::ensure): Surround
10002 get_plain_source_lines with a try/catch.
10003 (source_cache::get_line_charpos): Get rid of try/catch
10004 and only check for the return value of "ensure".
10005 * tui/tui-source.c (tui_source_window::set_contents):
10006 Simplify "nlines" calculation.
10007
10008 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10009
10010 * MAINTAINERS (Write After Approval): Add myself.
10011
10012 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10013
10014 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10015 function call.
10016
10017 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10018
10019 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10020
10021 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10022
10023 * nat/riscv-linux-tdesc.h: New file.
10024 * nat/riscv-linux-tdesc.c: New file, taking code from...
10025 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10026 ... here.
10027 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10028 NATDEPFILES.
10029
10030 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10031
10032 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10033 we don't set the fake simulator ptid to the null_ptid.
10034
10035 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10038 * gdbthread.h (class thread_info) <resumed>: Likewise.
10039 * infrun.c (resume_1): Likewise.
10040 (proceed): Likewise.
10041 (infrun_thread_stop_requested): Likewise.
10042 (stop_all_threads): Likewise.
10043 (handle_inferior_event): Likewise.
10044 (restart_threads): Likewise.
10045 (finish_step_over): Likewise.
10046 (keep_going_stepped_thread): Likewise.
10047 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10048 (linux_handle_extended_wait): Likewise.
10049 * record-btrace.c (get_thread_current_frame_id): Likewise.
10050 * record-full.c (record_full_wait_1): Likewise.
10051 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10052 * target.c (target_resume): Likewise.
10053 * thread.c (set_running_thread): Likewise.
10054
10055 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10056
10057 * f-valprint.c (f77_print_array_1): Changed datatype of index
10058 variable to LONGEST from int to enable it to contain bound
10059 values correctly.
10060
10061 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10062
10063 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10064 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10065 offsets according to FLEN determined.
10066 (riscv_linux_nat_target::read_description): Determine FLEN
10067 dynamically.
10068 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10069 according to FLEN determined.
10070 (riscv_linux_nat_target::store_registers): Likewise.
10071
10072 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10073
10074 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10075 when reg->group is empty and reggroup is not.
10076
10077 2020-01-31 Tom Tromey <tromey@adacore.com>
10078
10079 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10080 Call beneath target's mourn_inferior after unpushing.
10081
10082 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10083
10084 PR tui/9765
10085 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10086 have enough lines to fill the screen, still return the lowest
10087 address we found.
10088
10089 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10090
10091 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10092 '-', '<', and '>' commands.
10093
10094 2020-01-29 Pedro Alves <palves@redhat.com>
10095 Sergio Durigan Junior <sergiodj@redhat.com>
10096
10097 * infcmd.c (construct_inferior_arguments): Assert that
10098 'argc' is greater than 0.
10099
10100 2020-01-29 Luis Machado <luis.machado@linaro.org>
10101
10102 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10103 (BRK_INSN_MASK): Define to 0xd4200000.
10104 (aarch64_program_breakpoint_here_p): New function.
10105 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10106 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10107 breakpoint.c.
10108 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10109 breakpoint.h
10110 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10111 call gdbarch_program_breakpoint_here_p.
10112 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10113 default_program_breakpoint_here_p, changed return type to bool and
10114 simplified.
10115 * breakpoint.h (program_breakpoint_here): Moved prototype to
10116 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10117 return type to bool.
10118 * gdbarch.c: Regenerate.
10119 * gdbarch.h: Regenerate.
10120 * gdbarch.sh (program_breakpoint_here_p): New method.
10121 * infrun.c (handle_signal_stop): Call
10122 gdbarch_program_breakpoint_here_p.
10123
10124 2020-01-26 Tom Tromey <tom@tromey.com>
10125
10126 * ctfread.c (struct ctf_fp_info): Reindent.
10127 (_initialize_ctfread): Remove.
10128
10129 2020-01-26 Tom Tromey <tom@tromey.com>
10130
10131 * psymtab.c (partial_map_expand_apply)
10132 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10133 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10134 (psym_print_stats, psym_expand_symtabs_for_function)
10135 (psym_map_symbol_filenames, psym_map_matching_symbols)
10136 (psym_expand_symtabs_matching)
10137 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10138 (maintenance_check_psymtabs): Use new methods.
10139 * psympriv.h (struct partial_symtab) <readin_p,
10140 get_compunit_symtab>: New methods.
10141 <readin, compunit_symtab>: Remove members.
10142 (struct standard_psymtab): New.
10143 (struct legacy_psymtab): Derive from standard_psymtab.
10144 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10145 standard_psymtab.
10146 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10147
10148 2020-01-26 Tom Tromey <tom@tromey.com>
10149
10150 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10151 read_dependencies. Add assert.
10152 * psymtab.c (partial_symtab::read_dependencies): New method.
10153 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10154 method.
10155 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10156 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10157 read_dependencies.
10158 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10159 Add assert.
10160
10161 2020-01-26 Tom Tromey <tom@tromey.com>
10162
10163 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10164 Call expand_psymtab.
10165 (xcoff_read_symtab): Call expand_psymtab.
10166 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10167 legacy_expand_psymtab.
10168 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10169 method.
10170 (struct legacy_psymtab) <expand_psymtab>: Implement.
10171 <legacy_expand_psymtab>: New member.
10172 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10173 (parse_partial_symbols): Set legacy_expand_psymtab.
10174 (psymtab_to_symtab_1): Change argument order. Call
10175 expand_psymtab.
10176 (new_psymtab): Set legacy_expand_psymtab.
10177 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10178 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10179 expand_psymtab.
10180 (dwarf2_psymtab::expand_psymtab): Rename from
10181 psymtab_to_symtab_1. Call expand_psymtab.
10182 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10183 (dbx_end_psymtab): Likewise.
10184 (dbx_psymtab_to_symtab_1): Change argument order. Call
10185 expand_psymtab.
10186 (dbx_read_symtab): Call expand_psymtab.
10187 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10188 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10189 (ctf_psymtab::read_symtab): Call expand_psymtab.
10190
10191 2020-01-26 Tom Tromey <tom@tromey.com>
10192
10193 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10194 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10195 messages.
10196 * mdebugread.c (mdebug_read_symtab): Remove prints.
10197 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10198 assert.
10199 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10200
10201 2020-01-26 Tom Tromey <tom@tromey.com>
10202
10203 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10204 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10205 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10206 legacy_symtab.
10207 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10208 * psymtab.c (psymtab_to_symtab): Call method.
10209 (dump_psymtab): Update.
10210 * psympriv.h (struct partial_symtab): Add virtual destructor.
10211 <read_symtab>: New method.
10212 (struct legacy_symtab): New.
10213 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10214 (struct pst_map) <pst>: Now a legacy_psymtab.
10215 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10216 (new_psymtab): Use legacy_psymtab.
10217 * dwarf2read.h (struct dwarf2_psymtab): New.
10218 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10219 * dwarf2read.c (dwarf2_create_include_psymtab)
10220 (dwarf2_build_include_psymtabs, create_type_unit_group)
10221 (create_partial_symtab, process_psymtab_comp_unit_reader)
10222 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10223 (set_partial_user): Use dwarf2_psymtab.
10224 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10225 (psymtab_to_symtab_1, process_full_comp_unit)
10226 (process_full_type_unit, dwarf2_ranges_read)
10227 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10228 (dwarf_decode_lines): Use dwarf2_psymtab.
10229 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10230 (add_address_entry_worker, write_one_signatured_type)
10231 (recursively_count_psymbols, recursively_write_psymbols)
10232 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10233 (write_debug_names): Likewise.
10234 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10235 <pst>: Now a legacy_psymtab.
10236 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10237 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10238 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10239 * ctfread.c (struct ctf_psymtab): New.
10240 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10241 ctf_psymtab.
10242 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10243 (create_partial_symtab): Return a ctf_psymtab.
10244 (scan_partial_symbols): Update.
10245
10246 2020-01-26 Tom Tromey <tom@tromey.com>
10247
10248 * xcoffread.c (xcoff_start_psymtab): Use new.
10249 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10250 renamed from start_psymtab_common.
10251 * psympriv.h (struct partial_symtab): Add new constructor.
10252 (start_psymtab_common): Don't declare.
10253 * mdebugread.c (parse_partial_symbols): Use new.
10254 * dwarf2read.c (create_partial_symtab): Use new.
10255 * dbxread.c (start_psymtab): Use new.
10256 * ctfread.c (create_partial_symtab): Use new.
10257
10258 2020-01-26 Tom Tromey <tom@tromey.com>
10259
10260 * xcoffread.c (xcoff_end_psymtab): Use new.
10261 * psymtab.c (start_psymtab_common): Use new.
10262 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10263 Update.
10264 * psympriv.h (struct partial_symtab): Add parameters to
10265 constructor. Don't inline.
10266 (allocate_psymtab): Don't declare.
10267 * mdebugread.c (new_psymtab): Use new.
10268 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10269 * dbxread.c (dbx_end_psymtab): Use new.
10270
10271 2020-01-26 Tom Tromey <tom@tromey.com>
10272
10273 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10274 allocate_psymtab. Update documentation.
10275 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10276 allocate_psymtab. Do not use new.
10277 (allocate_psymtab): Use new. Update.
10278
10279 2020-01-26 Tom Tromey <tom@tromey.com>
10280
10281 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10282 * psymtab.c (psym_print_stats): Update.
10283 * psympriv.h (struct partial_symtab) <readin,
10284 psymtabs_addrmap_supported, anonymous>: Now bool.
10285 * mdebugread.c (psymtab_to_symtab_1): Update.
10286 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10287 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10288 (process_full_comp_unit, process_full_type_unit): Update.
10289 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10290 * ctfread.c (psymtab_to_symtab): Update.
10291
10292 2020-01-26 Tom Tromey <tom@tromey.com>
10293
10294 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10295 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10296 * psymtab.c (psymtab_storage): Delete psymtabs.
10297 (psymtab_storage::allocate_psymtab): Use new.
10298 (psymtab_storage::discard_psymtab): Use delete.
10299 * psympriv.h (struct partial_symtab): Add constructor and
10300 initializers.
10301
10302 2020-01-26 Tom Tromey <tom@tromey.com>
10303
10304 * machoread.c: Do not include psympriv.h.
10305
10306 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10307
10308 * NEWS: Mention the new option and the set/show commands.
10309
10310 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10311
10312 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10313 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10314 (validate_exec_file): New variables, enums, functions.
10315 (exec_file_locate_attach, print_section_info): Style the filenames.
10316 (_initialize_exec): Install show_exec_file_mismatch_command and
10317 set_exec_file_mismatch_command.
10318 * gdbcore.h (validate_exec_file): Declare.
10319 * infcmd.c (attach_command): Call validate_exec_file.
10320 * remote.c ( remote_target::remote_add_inferior): Likewise.
10321
10322 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * frame.c (find_frame_sal): Move call to get_next_frame into more
10325 inner scope.
10326 * inline-frame.c (inilne_state) <inline_state>: Update argument
10327 types.
10328 (inilne_state) <skipped_symbol>: Rename to...
10329 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10330 (skip_inline_frames): Build vector of skipped symbols and use this
10331 to reate the inline_state.
10332 (inline_skipped_symbol): Add a comment and some assertions, fetch
10333 skipped symbol from the list.
10334
10335 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * buildsym.c (lte_is_less_than): Delete.
10338 (buildsym_compunit::end_symtab_with_blockvector): Create local
10339 lambda function to sort line table entries, and use
10340 std::stable_sort instead of std::sort.
10341 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10342 markers when looking for a previous line.
10343
10344 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10345
10346 * dwarf2read.c (lnp_state_machine::record_line): Include
10347 end_sequence parameter in debug print out. Record the line if we
10348 are at an end_sequence marker even if it's not the start of a
10349 statement.
10350 * symmisc.c (maintenance_print_one_line_table): Print end of
10351 sequence markers with 'END' not '0'.
10352
10353 2020-01-24 Pedro Alves <palves@redhat.com>
10354
10355 PR gdb/25410
10356 * thread.c (scoped_restore_current_thread::restore): Use
10357 switch_to_inferior_no_thread.
10358 * exec.c: Include "progspace-and-thread.h".
10359 (add_target_sections, remove_target_sections):
10360 scoped_restore_current_pspace_and_thread instead of
10361 scoped_restore_current_thread.
10362 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10363 and aspace to the inferior before calling clone_program_space.
10364 Remove stale comment.
10365
10366 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10367
10368 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10369 (arm_netbsd_nat_target::fetch_registers): ...this.
10370 (arm_nbsd_nat_target::store_registers): Rename to...
10371 (arm_netbsd_nat_target::store_registers): ...this.
10372
10373 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10374
10375 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10376 register_t.
10377
10378 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10379
10380 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10381 Update comment.
10382 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10383 Likewise.
10384 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10385 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10386 the correct replacement (iterate_over_regset_sections).
10387 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10388 Update comment.
10389
10390 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10391
10392 PR gdb/23718
10393 * gdb/python/python.c (execute_gdb_command): Call
10394 async_enable_stdin in catch block.
10395
10396 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10399 SWITCH_THRU_ALL_UIS.
10400
10401 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10402
10403 PR tui/9765
10404 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10405 comment, add extra parameter, and update to store previous symbol
10406 when appropriate.
10407 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10408 add extra parameter.
10409 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10410 remove unneeded parameter, add try/catch around gdb_print_insn,
10411 rewrite to add items to asm_lines vector.
10412 (tui_find_backward_disassembly_start_address): New function.
10413 (tui_find_disassembly_address): Updated throughout.
10414 (tui_disasm_window::set_contents): Update for changes to
10415 tui_disassemble.
10416 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10417 number of lines to scroll.
10418
10419 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10420
10421 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10422 (SECT_OFF_DATA): Likewise.
10423 (SECT_OFF_RODATA): Likewise.
10424 (SECT_OFF_TEXT): Likewise.
10425 (SECT_OFF_BSS): Likewise.
10426 (struct objfile) <text_section_offset, data_section_offset>: New
10427 methods.
10428 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10429 objfile::text_section_offset.
10430 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10431 * coffread.c (coff_symtab_read): Likewise.
10432 (enter_linenos): Likewise.
10433 (process_coff_symbol): Likewise.
10434 * ctfread.c (get_objfile_text_range): Likewise.
10435 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10436 Use objfile::data_section_offset.
10437 * dwarf2-frame.c (execute_cfa_program): Use
10438 objfile::text_section_offset.
10439 (dwarf2_frame_find_fde): Likewise.
10440 * dwarf2read.c (create_addrmap_from_index): Likewise.
10441 (create_addrmap_from_aranges): Likewise.
10442 (dw2_find_pc_sect_compunit_symtab): Likewise.
10443 (process_psymtab_comp_unit_reader): Likewise.
10444 (add_partial_symbol): Likewise.
10445 (add_partial_subprogram): Likewise.
10446 (process_full_comp_unit): Likewise.
10447 (read_file_scope): Likewise.
10448 (read_func_scope): Likewise.
10449 (read_lexical_block_scope): Likewise.
10450 (read_call_site_scope): Likewise.
10451 (dwarf2_rnglists_process): Likewise.
10452 (dwarf2_ranges_process): Likewise.
10453 (dwarf2_ranges_read): Likewise.
10454 (dwarf_decode_lines_1): Likewise.
10455 (new_symbol): Likewise.
10456 (dwarf2_fetch_die_loc_sect_off): Likewise.
10457 (dwarf2_per_cu_text_offset): Likewise.
10458 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10459 * hppa-tdep.c (read_unwind_info): Likewise.
10460 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10461 * psympriv.h (struct partial_symtab): Likewise.
10462 * psymtab.c (find_pc_sect_psymtab): Likewise.
10463 * solib-svr4.c (enable_break): Likewise.
10464 * stap-probe.c (relocate_address): Use
10465 objfile::data_section_offset.
10466 * xcoffread.c (enter_line_range): Use
10467 objfile::text_section_offset.
10468 (read_xcoff_symtab): Likewise.
10469
10470 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10471
10472 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10473 declaration to narrower scopes.
10474
10475 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * darwin-nat.h (struct darwin_exception_msg, enum
10478 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10479 Move up.
10480 (class darwin_nat_target) <wait_1, check_new_threads,
10481 decode_exception_message, decode_message, stop_inferior,
10482 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10483 * darwin-nat.c (darwin_check_new_threads): Rename to...
10484 (darwin_nat_target::check_new_threads): ... this.
10485 (darwin_suspend_inferior_it): Remove.
10486 (darwin_decode_exception_message): Rename to...
10487 (darwin_nat_target::decode_exception_message): ... this.
10488 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10489 (darwin_decode_message): Rename to...
10490 (darwin_nat_target::decode_message): ... this.
10491 (cancel_breakpoint): Rename to...
10492 (darwin_nat_target::cancel_breakpoint): ... this.
10493 (darwin_wait): Rename to...
10494 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10495 instead of iterate_over_inferiors.
10496 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10497 (darwin_stop_inferior): Rename to...
10498 (darwin_nat_target::stop_inferior): ... this.
10499 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10500 (darwin_init_thread_list): Rename to...
10501 (darwin_nat_target::init_thread_list): ... this.
10502 (darwin_ptrace_him): Rename to...
10503 (darwin_nat_target::ptrace_him): ... this.
10504 (darwin_nat_target::create_inferior): Pass lambda function to
10505 fork_inferior.
10506 (darwin_nat_target::detach): Call stop_inferior instead of
10507 darwin_stop_inferior.
10508 * fork-inferior.h (fork_inferior): Change init_trace_fun
10509 parameter to gdb::function_view.
10510 * fork-inferior.c (fork_inferior): Likewise.
10511
10512 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10513
10514 * i386-cygwin-tdep.c (core_process_module_section): Update.
10515 * windows-nat.c (struct lm_info_windows): Add text_offset.
10516 (windows_xfer_shared_libraries): Update.
10517 * windows-tdep.c (windows_xfer_shared_library):
10518 Add text_offset_cached argument.
10519 * windows-tdep.h (windows_xfer_shared_library): Update.
10520
10521 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10524
10525 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10526
10527 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10528 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10529 replace with range-based for.
10530 (gdbsim_interrupt_inferior): Remove.
10531 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10532 with a range-based for. Inline code from
10533 gdbsim_interrupt_inferior.
10534
10535 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10536
10537 * infrun.c (proceed): Fix indentation.
10538
10539 2020-01-21 Tom Tromey <tromey@adacore.com>
10540
10541 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10542 * python/python.c (python_extension_ops): Update.
10543 (gdbpy_colorize): New function.
10544 * python/lib/gdb/__init__.py (colorize): New function.
10545 * extension.h (ext_lang_colorize): Declare.
10546 * extension.c (ext_lang_colorize): New function.
10547 * extension-priv.h (struct extension_language_ops) <colorize>: New
10548 member.
10549 * cli/cli-style.c (_initialize_cli_style): Update help text.
10550
10551 2020-01-21 Luis Machado <luis.machado@linaro.org>
10552
10553 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10554 <cond>: Change type to bool.
10555 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10556 (aarch64_displaced_step_cb): Likewise.
10557 (aarch64_displaced_step_tb): Likewise.
10558
10559 2020-01-21 Luis Machado <luis.machado@linaro.org>
10560
10561 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10562 output.
10563
10564 2020-01-21 Luis Machado <luis.machado@linaro.org>
10565
10566 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10567 <pc_adjust>: Adjust the documentation.
10568 (aarch64_displaced_step_fixup): Check if PC really moved before
10569 adjusting it.
10570
10571 2020-01-19 Tom Tromey <tom@tromey.com>
10572
10573 * disasm.c (~gdb_disassembler): New destructor.
10574 (gdb_buffered_insn_length): Call disassemble_free_target.
10575 * disasm.h (class gdb_disassembler): Declare destructor. Use
10576 DISABLE_COPY_AND_ASSIGN.
10577
10578 2020-01-19 Tom Tromey <tom@tromey.com>
10579
10580 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10581 (die_reader_func_ftype): Remove.
10582 (cutu_reader): New class.
10583 (dw2_get_file_names_reader): Remove "data" parameter.
10584 (dw2_get_file_names): Use cutu_reader.
10585 (create_debug_type_hash_table): Update.
10586 (read_cutu_die_from_dwo): Update comment.
10587 (lookup_dwo_unit): Add dwo_name parameter.
10588 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10589 die_reader_func_ftype and data parameters.
10590 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10591 Remove die_reader_func_ftype and data parameters.
10592 (~cutu_reader): New; from init_cutu_and_read_dies.
10593 (cutu_reader::cutu_reader): Rename from
10594 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10595 and data parameters.
10596 (init_cutu_and_read_dies_simple): Remove.
10597 (struct process_psymtab_comp_unit_data): Remove.
10598 (process_psymtab_comp_unit_reader): Remove data parameter; add
10599 want_partial_unit and pretend_language parameters.
10600 (process_psymtab_comp_unit): Use cutu_reader.
10601 (build_type_psymtabs_reader): Remove data parameter.
10602 (build_type_psymtabs_1): Use cutu_reader.
10603 (process_skeletonless_type_unit): Likewise.
10604 (load_partial_comp_unit_reader): Remove.
10605 (load_partial_comp_unit): Use cutu_reader.
10606 (load_full_comp_unit_reader): Remove.
10607 (load_full_comp_unit): Use cutu_reader.
10608 (struct create_dwo_cu_data): Remove.
10609 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10610 dwo_unit parameters.
10611 (create_cus_hash_table): Use cutu_reader.
10612 (struct dwarf2_read_addr_index_data): Remove.
10613 (dwarf2_read_addr_index_reader): Remove.
10614 (dwarf2_read_addr_index): Use cutu_reader.
10615 (read_signatured_type_reader): Remove.
10616 (read_signatured_type): Use cutu_reader.
10617
10618 2020-01-19 Tom Tromey <tom@tromey.com>
10619
10620 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10621 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10622 (tui_wrefresh): Declare.
10623 * tui/tui-wingeneral.c (suppress_output): New global.
10624 (tui_suppress_output, ~tui_suppress_output): New constructor and
10625 destructor.
10626 (tui_wrefresh): New function.
10627 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10628 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10629 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10630 method.
10631 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10632 tui_wrefresh.
10633 (tui_data_window::no_refresh): New method.
10634 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10635 (tui_reg_command): Use tui_suppress_output
10636 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10637 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10638 method.
10639 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10640
10641 2020-01-19 Tom Tromey <tom@tromey.com>
10642
10643 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10644 Handle case where symtab is null.
10645
10646 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10647
10648 * linux-fork.c (one_fork_p): Simplify.
10649
10650 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10651
10652 * top.c (struct qt_args): Remove.
10653 (kill_or_detach): Change return type to void, replace `void *`
10654 parameter with a proper one.
10655 (print_inferior_quit_action): Likewise.
10656 (quit_confirm): Use range-based for loop to iterate over inferiors.
10657 (quit_force): Likewise.
10658
10659 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10660
10661 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10662 `void *` parameter with proper parameters.
10663 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10664 (print_one_inferior): Change return type to void, replace `void *`
10665 parameter with proper parameters.
10666 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10667 inferiors.
10668 (get_other_inferior): Remove.
10669 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10670 inferiors.
10671
10672 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * mi/mi-interp.c (report_initial_inferior): Remove.
10675 (mi_interp::init): Use range-based for to iterate over inferiors.
10676
10677 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10678
10679 * python/py-inferior.c (build_inferior_list): Remove.
10680 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10681
10682 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10683
10684 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10685 (btrace_stitch_trace): Likewise.
10686 * charset.c (intermediate_encoding): Likewise (vaild).
10687 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10688 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10689 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10690
10691 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10692
10693 * windows-tdep.c (windows_get_tlb_type):
10694 Add rtl_user_process_parameters type.
10695
10696 2020-01-16 Pedro Alves <palves@redhat.com>
10697 Norbert Lange <nolange79@gmail.com>
10698
10699 PR build/24805
10700 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10701 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10702 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10703 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10704 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10705 (ps_plog): Redeclare exported functions with default visibility.
10706
10707 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10708
10709 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10710 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10711
10712 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10713
10714 * infcmd.c (post_create_inferior): Use get_thread_regcache
10715 instead of get_current_regcache.
10716
10717 2020-01-14 Tom Tromey <tom@tromey.com>
10718
10719 PR symtab/12535:
10720 * python/python.c (gdbpy_decode_line): Treat empty string the same
10721 as no argument.
10722
10723 2020-01-14 Tom Tromey <tom@tromey.com>
10724
10725 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10726
10727 2020-01-14 Tom Tromey <tom@tromey.com>
10728
10729 * nat/linux-btrace.c: Don't include <config.h>.
10730 * nat/linux-ptrace.c: Don't include <config.h>.
10731 * nat/x86-linux-dregs.c: Don't include <config.h>.
10732
10733 2020-01-14 Tom Tromey <tom@tromey.com>
10734
10735 * configure: Rebuild.
10736 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10737
10738 2020-01-14 Tom Tromey <tom@tromey.com>
10739
10740 * nat/x86-linux-dregs.c: Include configh.h.
10741 * nat/linux-ptrace.c: Include configh.h.
10742 * nat/linux-btrace.c: Include configh.h.
10743 * defs.h: Include config.h, bfd.h.
10744 * configure.ac: Don't source common.host.
10745 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10746 * configure: Rebuild.
10747 * acinclude.m4: Update path.
10748 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10749 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10750 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10751 (CLIBS): Add LIBSUPPORT.
10752 (CDEPS): Likewise.
10753 (COMMON_SFILES): Remove gdbsupport files.
10754 (HFILES_NO_SRCDIR): Likewise.
10755 (stamp-version): Update path to create-version.sh.
10756 (ALLDEPFILES): Remove gdbsupport files.
10757
10758 2020-01-14 Tom Tromey <tom@tromey.com>
10759
10760 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10761 USE_WIN32API when needed.
10762 * configure.ac (USE_WIN32API): Don't define.
10763 (WIN32LIBS): Use WIN32APILIBS.
10764 * configure: Rebuild.
10765
10766 2020-01-14 Tom Tromey <tom@tromey.com>
10767
10768 * configure: Rebuild.
10769 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10770
10771 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10772
10773 * skip.c (skip_function_command): Make skip w/o arguments use the
10774 name of the inlined function if pc is inside any inlined function.
10775
10776 2020-01-14 Luis Machado <luis.machado@linaro.org>
10777
10778 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10779 * infrun.c (resume_1): Likewise.
10780 (handle_inferior_event): Remove stale comment.
10781 * linux-nat.c (linux_nat_target::resume): Update comments.
10782 (save_stop_reason): Likewise.
10783 (linux_nat_filter_event): Likewise.
10784 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10785
10786 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * elfread.c (record_minimal_symbol): Set section index to 0 for
10789 non-allocatable sections.
10790
10791
10792 2020-01-13 Ali Tamur <tamur@google.com>
10793
10794 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10795 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10796 to gdb::optional. Update comments.
10797 (dwo_file): Update comments.
10798 (read_attribute): Update API to take an additional out parameter,
10799 need_reprocess. This is used to mark attributes that need other
10800 attributes (e.g. str_offsets_base) for correct computation which may not
10801 have been read yet.
10802 (read_attribute_reprocess): New function declaration.
10803 (read_addr_index): Likewise.
10804 (read_dwo_str_index): Likewise.
10805 (read_stub_str_index): Likewise.
10806 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10807 (lookup_addr_base): New function definition.
10808 (lookup_ranges_base): Likewise.
10809 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10810 lookup_ranges_base.
10811 (init_cutu_and_read_dies): Update comments.
10812 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10813 unit. This is used to inherit parent's str_offsets_base and addr_base.
10814 Update comments.
10815 (init_cutu_and_read_dies_simple): Reflect API changes.
10816 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10817 (create_cus_hash_table): Change API to take parent compile unit.
10818 Reflect API changes.
10819 (open_and_init_dwo_file): Reflect API changes.
10820 (dwarf2_get_pc_bounds): Update comments.
10821 (dwarf2_record_block_ranges): Likewise.
10822 (read_full_die_1): Change implementation to reprocess attributes that
10823 need str_offsets_base and addr_base.
10824 (partial_die_info::read): Likewise.
10825 (read_attribute_reprocess): New function definition.
10826 (read_attribute_value): Change API to take an additional out parameter,
10827 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10828 when a non-dwo compile unit has index based attributes.
10829 (read_attribute): Reflect API changes.
10830 (read_addr_index_1): Reflect API changes. Update comments.
10831 (dwarf2_read_addr_index_data): Reflect API changes.
10832 (dwarf2_read_addr_index): Likewise.
10833 (read_str_index): Change API and implementation. This becomes a helper
10834 to be used by the new string index related methods. Update error
10835 message and comments.
10836 (read_dwo_str_index): New function definition.
10837 (read_stub_str_index): Likewise.
10838 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10839 * symfile.h (dwarf2_debug_sections): Likewise.
10840 * xcoffread.c (dwarf2_debug_sections): Likewise.
10841
10842 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10845 core_reg_sect type to gdb_byte *.
10846 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10847 * cris-tdep.c (fetch_core_registers): Likewise.
10848 * corelow.c (core_target::get_core_register_section): Change
10849 type of `contents` to gdb::byte_vector.
10850
10851 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10852
10853 * tui/tui-wingeneral.c (box_win): Position the title in the center
10854 of the border.
10855
10856 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10857
10858 * corelow.c (core_target::get_core_register_section): Use
10859 std::vector instead of alloca.
10860
10861 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * warning.m4: Add -Wmissing-declarations to build_warnings.
10864 * configure: Re-generate.
10865
10866 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * python/python.c (init__gdb_module): Add declaration.
10869
10870 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10873 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10874 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10875 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10876 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10877 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10878 * ada-exp.y (_initialize_ada_exp): Add declaration.
10879 * ada-lang.c (_initialize_ada_language): Add declaration.
10880 * ada-tasks.c (_initialize_tasks): Add declaration.
10881 * agent.c (_initialize_agent): Add declaration.
10882 * aix-thread.c (_initialize_aix_thread): Add declaration.
10883 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10884 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10885 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10886 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10887 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10888 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10889 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10890 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10891 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10892 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10893 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10894 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10895 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10896 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10897 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10898 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10899 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10900 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10901 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10902 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10903 * annotate.c (_initialize_annotate): Add declaration.
10904 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10905 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10906 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10907 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10908 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10909 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10910 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10911 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10912 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10913 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10914 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10915 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10916 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10917 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10918 * auto-load.c (_initialize_auto_load): Add declaration.
10919 * auxv.c (_initialize_auxv): Add declaration.
10920 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10921 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10922 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10923 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10924 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10925 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10926 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10927 * breakpoint.c (_initialize_breakpoint): Add declaration.
10928 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10929 * btrace.c (_initialize_btrace): Add declaration.
10930 * charset.c (_initialize_charset): Add declaration.
10931 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10932 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10933 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10934 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10935 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10936 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10937 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10938 * coffread.c (_initialize_coffread): Add declaration.
10939 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10940 * compile/compile.c (_initialize_compile): Add declaration.
10941 * complaints.c (_initialize_complaints): Add declaration.
10942 * completer.c (_initialize_completer): Add declaration.
10943 * copying.c (_initialize_copying): Add declaration.
10944 * corefile.c (_initialize_core): Add declaration.
10945 * corelow.c (_initialize_corelow): Add declaration.
10946 * cp-abi.c (_initialize_cp_abi): Add declaration.
10947 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10948 * cp-support.c (_initialize_cp_support): Add declaration.
10949 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10950 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10951 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10952 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10953 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10954 * ctfread.c (_initialize_ctfread): Add declaration.
10955 * d-lang.c (_initialize_d_language): Add declaration.
10956 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10957 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10958 * dbxread.c (_initialize_dbxread): Add declaration.
10959 * dcache.c (_initialize_dcache): Add declaration.
10960 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10961 * disasm.c (_initialize_disasm): Add declaration.
10962 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10963 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10964 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10965 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10966 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10967 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10968 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10969 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10970 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10971 * elfread.c (_initialize_elfread): Add declaration.
10972 * exec.c (_initialize_exec): Add declaration.
10973 * extension.c (_initialize_extension): Add declaration.
10974 * f-lang.c (_initialize_f_language): Add declaration.
10975 * f-valprint.c (_initialize_f_valprint): Add declaration.
10976 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10977 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10978 * filesystem.c (_initialize_filesystem): Add declaration.
10979 * findcmd.c (_initialize_mem_search): Add declaration.
10980 * findvar.c (_initialize_findvar): Add declaration.
10981 * fork-child.c (_initialize_fork_child): Add declaration.
10982 * frame-base.c (_initialize_frame_base): Add declaration.
10983 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10984 * frame.c (_initialize_frame): Add declaration.
10985 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10986 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10987 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10988 * gcore.c (_initialize_gcore): Add declaration.
10989 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10990 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10991 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10992 * gdbarch.c (_initialize_gdbarch): Add declaration.
10993 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10994 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10995 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10996 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10997 * go-lang.c (_initialize_go_language): Add declaration.
10998 * go32-nat.c (_initialize_go32_nat): Add declaration.
10999 * guile/guile.c (_initialize_guile): Add declaration.
11000 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11001 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11002 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11003 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11004 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11005 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11006 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11007 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11008 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11009 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11010 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11011 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11012 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11013 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11014 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11015 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11016 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11017 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11018 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11019 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11020 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11021 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11022 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11023 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11024 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11025 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11026 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11027 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11028 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11029 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11030 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11031 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11032 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11033 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11034 * infcall.c (_initialize_infcall): Add declaration.
11035 * infcmd.c (_initialize_infcmd): Add declaration.
11036 * inflow.c (_initialize_inflow): Add declaration.
11037 * infrun.c (_initialize_infrun): Add declaration.
11038 * interps.c (_initialize_interpreter): Add declaration.
11039 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11040 * jit.c (_initialize_jit): Add declaration.
11041 * language.c (_initialize_language): Add declaration.
11042 * linux-fork.c (_initialize_linux_fork): Add declaration.
11043 * linux-nat.c (_initialize_linux_nat): Add declaration.
11044 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11045 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11046 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11047 * m2-lang.c (_initialize_m2_language): Add declaration.
11048 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11049 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11050 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11051 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11052 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11053 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11054 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11055 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11056 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11057 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11058 * machoread.c (_initialize_machoread): Add declaration.
11059 * macrocmd.c (_initialize_macrocmd): Add declaration.
11060 * macroscope.c (_initialize_macroscope): Add declaration.
11061 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11062 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11063 * maint.c (_initialize_maint_cmds): Add declaration.
11064 * mdebugread.c (_initialize_mdebugread): Add declaration.
11065 * memattr.c (_initialize_mem): Add declaration.
11066 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11067 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11068 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11069 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11070 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11071 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11072 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11073 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11074 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11075 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11076 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11077 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11078 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11079 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11080 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11081 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11082 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11083 * mipsread.c (_initialize_mipsread): Add declaration.
11084 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11085 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11086 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11087 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11088 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11089 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11090 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11091 * nto-procfs.c (_initialize_procfs): Add declaration.
11092 * objc-lang.c (_initialize_objc_language): Add declaration.
11093 * observable.c (_initialize_observer): Add declaration.
11094 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11095 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11096 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11097 * osabi.c (_initialize_gdb_osabi): Add declaration.
11098 * osdata.c (_initialize_osdata): Add declaration.
11099 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11100 * parse.c (_initialize_parse): Add declaration.
11101 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11102 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11103 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11104 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11105 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11106 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11107 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11108 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11109 * printcmd.c (_initialize_printcmd): Add declaration.
11110 * probe.c (_initialize_probe): Add declaration.
11111 * proc-api.c (_initialize_proc_api): Add declaration.
11112 * proc-events.c (_initialize_proc_events): Add declaration.
11113 * proc-service.c (_initialize_proc_service): Add declaration.
11114 * procfs.c (_initialize_procfs): Add declaration.
11115 * producer.c (_initialize_producer): Add declaration.
11116 * psymtab.c (_initialize_psymtab): Add declaration.
11117 * python/python.c (_initialize_python): Add declaration.
11118 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11119 * record-btrace.c (_initialize_record_btrace): Add declaration.
11120 * record-full.c (_initialize_record_full): Add declaration.
11121 * record.c (_initialize_record): Add declaration.
11122 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11123 * regcache.c (_initialize_regcache): Add declaration.
11124 * reggroups.c (_initialize_reggroup): Add declaration.
11125 * remote-notif.c (_initialize_notif): Add declaration.
11126 * remote-sim.c (_initialize_remote_sim): Add declaration.
11127 * remote.c (_initialize_remote): Add declaration.
11128 * reverse.c (_initialize_reverse): Add declaration.
11129 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11130 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11131 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11132 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11133 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11134 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11135 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11136 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11137 Add declaration.
11138 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11139 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11140 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11141 * rust-exp.y (_initialize_rust_exp): Add declaration.
11142 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11143 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11144 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11145 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11146 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11147 * score-tdep.c (_initialize_score_tdep): Add declaration.
11148 * ser-go32.c (_initialize_ser_dos): Add declaration.
11149 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11150 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11151 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11152 * ser-uds.c (_initialize_ser_socket): Add declaration.
11153 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11154 * serial.c (_initialize_serial): Add declaration.
11155 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11156 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11157 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11158 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11159 * skip.c (_initialize_step_skip): Add declaration.
11160 * sol-thread.c (_initialize_sol_thread): Add declaration.
11161 * solib-aix.c (_initialize_solib_aix): Add declaration.
11162 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11163 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11164 * solib-frv.c (_initialize_frv_solib): Add declaration.
11165 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11166 * solib-target.c (_initialize_solib_target): Add declaration.
11167 * solib.c (_initialize_solib): Add declaration.
11168 * source-cache.c (_initialize_source_cache): Add declaration.
11169 * source.c (_initialize_source): Add declaration.
11170 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11171 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11172 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11173 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11174 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11175 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11176 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11177 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11178 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11179 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11180 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11181 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11182 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11183 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11184 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11185 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11186 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11187 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11188 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11189 * stabsread.c (_initialize_stabsread): Add declaration.
11190 * stack.c (_initialize_stack): Add declaration.
11191 * stap-probe.c (_initialize_stap_probe): Add declaration.
11192 * std-regs.c (_initialize_frame_reg): Add declaration.
11193 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11194 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11195 * symfile.c (_initialize_symfile): Add declaration.
11196 * symmisc.c (_initialize_symmisc): Add declaration.
11197 * symtab.c (_initialize_symtab): Add declaration.
11198 * target.c (_initialize_target): Add declaration.
11199 * target-connection.c (_initialize_target_connection): Add
11200 declaration.
11201 * target-dcache.c (_initialize_target_dcache): Add declaration.
11202 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11203 * thread.c (_initialize_thread): Add declaration.
11204 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11205 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11206 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11207 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11208 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11209 * tracectf.c (_initialize_ctf): Add declaration.
11210 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11211 * tracefile.c (_initialize_tracefile): Add declaration.
11212 * tracepoint.c (_initialize_tracepoint): Add declaration.
11213 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11214 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11215 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11216 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11217 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11218 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11219 * tui/tui.c (_initialize_tui): Add declaration.
11220 * typeprint.c (_initialize_typeprint): Add declaration.
11221 * ui-style.c (_initialize_ui_style): Add declaration.
11222 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11223 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11224 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11225 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11226 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11227 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11228 * unittests/filtered_iterator-selftests.c
11229 (_initialize_filtered_iterator_selftests): Add declaration.
11230 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11231 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11232 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11233 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11234 * unittests/main-thread-selftests.c
11235 (_initialize_main_thread_selftests): Add declaration.
11236 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11237 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11238 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11239 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11240 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11241 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11242 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11243 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11244 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11245 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11246 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11247 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11248 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11249 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11250 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11251 declaration.
11252 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11253 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11254 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11255 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11256 * user-regs.c (_initialize_user_regs): Add declaration.
11257 * utils.c (_initialize_utils): Add declaration.
11258 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11259 * valops.c (_initialize_valops): Add declaration.
11260 * valprint.c (_initialize_valprint): Add declaration.
11261 * value.c (_initialize_values): Add declaration.
11262 * varobj.c (_initialize_varobj): Add declaration.
11263 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11264 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11265 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11266 * windows-nat.c (_initialize_windows_nat): Add declaration.
11267 (_initialize_check_for_gdb_ini): Add declaration.
11268 (_initialize_loadable): Add declaration.
11269 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11270 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11271 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11272 * xcoffread.c (_initialize_xcoffread): Add declaration.
11273 * xml-support.c (_initialize_xml_support): Add declaration.
11274 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11275 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11276 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11277 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11278
11279 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11280
11281 * regformats/regdat.sh: Generate declaration for init function.
11282
11283 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11284
11285 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11286 up.
11287 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11288 close_one_inferior>: New methods.
11289 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11290 pass down target to find_inferior_pid.
11291 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11292 Pass down target to find_inferior_ptid.
11293 (gdbsim_target::create_inferior): Pass down target to
11294 add_thread_silent.
11295 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11296 target down to find_inferior_ptid and switch_to_thread.
11297 (gdbsim_target::close): Update to call close_one_inferior.
11298 (struct resume_data): Remove.
11299 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11300 directly, rather than through a void pointer.
11301 (gdbsim_target::resume): Update to call resume_one_inferior.
11302
11303 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11304
11305 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11306
11307 2020-01-12 Pedro Alves <palves@redhat.com>
11308
11309 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11310 directly for the current inferior instead of
11311 discard_all_inferiors.
11312 (discard_all_inferiors): Delete.
11313
11314 2020-01-11 Tom Tromey <tom@tromey.com>
11315
11316 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11317 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11318 deprecated_safe_get_selected_frame.
11319
11320 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11321
11322 * inferior.c (print_inferior): Switch inferior before printing it.
11323
11324 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11325 Pedro Alves <palves@redhat.com>
11326
11327 * progspace-and-thread.c (switch_to_program_space_and_thread):
11328 Assert there's an inferior for PSPACE. Use
11329 switch_to_inferior_no_thread to switch the inferior too.
11330 * progspace.c (program_space::~program_space): Call
11331 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11332 (program_space::free_all_objfiles): Don't call clear_symtab_users
11333 here.
11334 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11335
11336 2020-01-10 Pedro Alves <palves@redhat.com>
11337
11338 * NEWS: Mention multi-target debugging, "info connections", and
11339 "add-inferior -no-connection".
11340
11341 2020-01-10 Pedro Alves <palves@redhat.com>
11342
11343 * infrun.c: Include "target-connection.h".
11344 (check_multi_target_resumption): New.
11345 (proceed): Call it.
11346 * target-connection.c (make_target_connection_string): Make
11347 extern.
11348 * target-connection.h (make_target_connection_string): Declare.
11349
11350 2020-01-10 Pedro Alves <palves@redhat.com>
11351
11352 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11353 * inferior.c (uiout_field_connection): New function.
11354 (print_inferior): Add new "connection-id" column.
11355 (add_inferior_command): Show connection number/string of added
11356 inferior.
11357 * process-stratum-target.h
11358 (process_stratum_target::connection_string): New virtual method.
11359 (process_stratum_target::connection_number): New field.
11360 * remote.c (remote_target::connection_string): New override.
11361 * target-connection.c: New file.
11362 * target-connection.h: New file.
11363 * target.c (decref_target): Remove process_stratum targets from
11364 the connection list.
11365 (target_stack::push): Add process_stratum targets to the
11366 connection list.
11367
11368 2020-01-10 Pedro Alves <palves@redhat.com>
11369
11370 Revert:
11371 2016-04-12 Pedro Alves <palves@redhat.com>
11372 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11373 Remove references to name.
11374 * serial.h (struct serial) <name>: Delete.
11375
11376 2020-01-10 Pedro Alves <palves@redhat.com>
11377
11378 * gdbarch-selftests.c (register_to_value_test): Remove "target
11379 already pushed" check.
11380
11381 2020-01-10 Pedro Alves <palves@redhat.com>
11382 John Baldwin <jhb@FreeBSD.org>
11383
11384 * aarch64-linux-nat.c
11385 (aarch64_linux_nat_target::thread_architecture): Adjust.
11386 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11387 (task_command_1): Likewise.
11388 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11389 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11390 (aix_thread_target::store_registers)
11391 (aix_thread_target::thread_alive): Adjust.
11392 * amd64-fbsd-tdep.c: Include "inferior.h".
11393 (amd64fbsd_get_thread_local_address): Pass down target.
11394 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11395 thread's gdbarch instead of target_gdbarch.
11396 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11397 get_last_target_status.
11398 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11399 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11400 inferiors.
11401 (update_inserted_breakpoint_locations): Skip if inferiors with no
11402 execution.
11403 (update_global_location_list): When handling moribund locations,
11404 find representative inferior for location's pspace, and use thread
11405 count of its process_stratum target.
11406 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11407 * bsd-uthread.c (bsd_uthread_target::wait): Use
11408 as_process_stratum_target and adjust thread_change_ptid and
11409 add_thread calls.
11410 (bsd_uthread_target::update_thread_list): Use
11411 as_process_stratum_target and adjust find_thread_ptid,
11412 thread_change_ptid and add_thread calls.
11413 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11414 find_thread_ptid call.
11415 * corelow.c (add_to_thread_list): Adjust add_thread call.
11416 (core_target_open): Adjust add_thread_silent and thread_count
11417 calls.
11418 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11419 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11420 * event-top.c (async_disconnect): Pop targets from all inferiors.
11421 * exec.c (add_target_sections): Push exec target on all inferiors
11422 sharing the program space.
11423 (remove_target_sections): Remove the exec target from all
11424 inferiors sharing the program space.
11425 (exec_on_vfork): New.
11426 * exec.h (exec_on_vfork): Declare.
11427 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11428 Pass it down.
11429 (fbsd_nat_target::update_thread_list): Adjust.
11430 (fbsd_nat_target::resume): Adjust.
11431 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11432 down.
11433 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11434 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11435 get_thread_arch_regcache call.
11436 * fork-child.c (gdb_startup_inferior): Pass target down to
11437 startup_inferior and set_executing.
11438 * gdbthread.h (struct process_stratum_target): Forward declare.
11439 (add_thread, add_thread_silent, add_thread_with_info)
11440 (in_thread_list): Add process_stratum_target parameter.
11441 (find_thread_ptid(inferior*, ptid_t)): New overload.
11442 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11443 parameter.
11444 (all_threads()): Delete overload.
11445 (all_threads, all_non_exited_threads): Add process_stratum_target
11446 parameter.
11447 (all_threads_safe): Use brace initialization.
11448 (thread_count): Add process_stratum_target parameter.
11449 (set_resumed, set_running, set_stop_requested, set_executing)
11450 (threads_are_executing, finish_thread_state): Add
11451 process_stratum_target parameter.
11452 (switch_to_thread): Use is_current_thread.
11453 * i386-fbsd-tdep.c: Include "inferior.h".
11454 (i386fbsd_get_thread_local_address): Pass down target.
11455 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11456 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11457 have_inferiors check.
11458 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11459 (inf_ptrace_target::attach): Adjust.
11460 * infcall.c (run_inferior_call): Adjust.
11461 * infcmd.c (run_command_1): Pass target to
11462 scoped_finish_thread_state.
11463 (proceed_thread_callback): Skip inferiors with no execution.
11464 (continue_command): Rename 'all_threads' local to avoid hiding
11465 'all_threads' function. Adjust get_last_target_status call.
11466 (prepare_one_step): Adjust set_running call.
11467 (signal_command): Use user_visible_resume_target. Compare thread
11468 pointers instead of inferior_ptid.
11469 (info_program_command): Adjust to pass down target.
11470 (attach_command): Mark target's 'thread_executing' flag.
11471 (stop_current_target_threads_ns): New, factored out from ...
11472 (interrupt_target_1): ... this. Switch inferior before making
11473 target calls.
11474 * inferior-iter.h
11475 (struct all_inferiors_iterator, struct all_inferiors_range)
11476 (struct all_inferiors_safe_range)
11477 (struct all_non_exited_inferiors_range): Filter on
11478 process_stratum_target too. Remove explicit.
11479 * inferior.c (inferior::inferior): Push dummy target on target
11480 stack.
11481 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11482 Add process_stratum_target parameter, and pass it down.
11483 (have_live_inferiors): Adjust.
11484 (switch_to_inferior_and_push_target): New.
11485 (add_inferior_command, clone_inferior_command): Handle
11486 "-no-connection" parameter. Use
11487 switch_to_inferior_and_push_target.
11488 (_initialize_inferior): Mention "-no-connection" option in
11489 the help of "add-inferior" and "clone-inferior" commands.
11490 * inferior.h: Include "process-stratum-target.h".
11491 (interrupt_target_1): Use bool.
11492 (struct inferior) <push_target, unpush_target, target_is_pushed,
11493 find_target_beneath, top_target, process_target, target_at,
11494 m_stack>: New.
11495 (discard_all_inferiors): Delete.
11496 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11497 (all_inferiors, all_non_exited_inferiors): Add
11498 process_stratum_target parameter.
11499 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11500 (target_last_proc_target): New global.
11501 (follow_fork_inferior): Push target on new inferior. Pass target
11502 to add_thread_silent. Call exec_on_vfork. Handle target's
11503 reference count.
11504 (follow_fork): Adjust get_last_target_status call. Also consider
11505 target.
11506 (follow_exec): Push target on new inferior.
11507 (struct execution_control_state) <target>: New field.
11508 (user_visible_resume_target): New.
11509 (do_target_resume): Call target_async.
11510 (resume_1): Set target's threads_executing flag. Consider resume
11511 target.
11512 (commit_resume_all_targets): New.
11513 (proceed): Also consider resume target. Skip threads of inferiors
11514 with no execution. Commit resumtion in all targets.
11515 (start_remote): Pass current inferior to wait_for_inferior.
11516 (infrun_thread_stop_requested): Consider target as well. Pass
11517 thread_info pointer to clear_inline_frame_state instead of ptid.
11518 (infrun_thread_thread_exit): Consider target as well.
11519 (random_pending_event_thread): New inferior parameter. Use it.
11520 (do_target_wait): Rename to ...
11521 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11522 down.
11523 (threads_are_resumed_pending_p, do_target_wait): New.
11524 (prepare_for_detach): Adjust calls.
11525 (wait_for_inferior): New inferior parameter. Handle it. Use
11526 do_target_wait_1 instead of do_target_wait.
11527 (fetch_inferior_event): Adjust. Switch to representative
11528 inferior. Pass target down.
11529 (set_last_target_status): Add process_stratum_target parameter.
11530 Save target in global.
11531 (get_last_target_status): Add process_stratum_target parameter and
11532 handle it.
11533 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11534 (context_switch): Check inferior_ptid == null_ptid before calling
11535 inferior_thread().
11536 (get_inferior_stop_soon): Pass down target.
11537 (wait_one): Rename to ...
11538 (poll_one_curr_target): ... this.
11539 (struct wait_one_event): New.
11540 (wait_one): New.
11541 (stop_all_threads): Adjust.
11542 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11543 event's target.
11544 (switch_back_to_stepped_thread): Also consider target.
11545 (print_stop_event): Update.
11546 (normal_stop): Update. Also consider the resume target.
11547 * infrun.h (wait_for_inferior): Remove declaration.
11548 (user_visible_resume_target): New declaration.
11549 (get_last_target_status, set_last_target_status): New
11550 process_stratum_target parameter.
11551 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11552 process_stratum_target parameter, and use it.
11553 (clear_inline_frame_state (thread_info*)): New.
11554 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11555 process_stratum_target parameter.
11556 (clear_inline_frame_state (thread_info*)): Declare.
11557 * linux-fork.c (delete_checkpoint_command): Pass target down to
11558 find_thread_ptid.
11559 (checkpoint_command): Adjust.
11560 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11561 instead of just tweaking inferior_ptid.
11562 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11563 (exit_lwp): Pass target down to find_thread_ptid.
11564 (attach_proc_task_lwp_callback): Pass target down to
11565 add_thread/set_running/set_executing.
11566 (linux_nat_target::attach): Pass target down to
11567 thread_change_ptid.
11568 (get_detach_signal): Pass target down to find_thread_ptid.
11569 Consider last target status's target.
11570 (linux_resume_one_lwp_throw, resume_lwp)
11571 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11572 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11573 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11574 (linux_nat_target::async_wait_fd): New.
11575 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11576 target down.
11577 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11578 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11579 * linux-thread-db.c (struct thread_db_info::process_target): New
11580 field.
11581 (add_thread_db_info): Save target.
11582 (get_thread_db_info): New process_stratum_target parameter. Also
11583 match target.
11584 (delete_thread_db_info): New process_stratum_target parameter.
11585 Also match target.
11586 (thread_from_lwp): Adjust to pass down target.
11587 (thread_db_notice_clone): Pass down target.
11588 (check_thread_db_callback): Pass down target.
11589 (try_thread_db_load_1): Always push the thread_db target.
11590 (try_thread_db_load, record_thread): Pass target down.
11591 (thread_db_target::detach): Pass target down. Always unpush the
11592 thread_db target.
11593 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11594 target down. Always unpush the thread_db target.
11595 (find_new_threads_callback, thread_db_find_new_threads_2)
11596 (thread_db_target::update_thread_list): Pass target down.
11597 (thread_db_target::pid_to_str): Pass current inferior down.
11598 (thread_db_target::get_thread_local_address): Pass target down.
11599 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11600 target down.
11601 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11602 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11603 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11604 (procfs_init_inferior): Rename to ...
11605 (procfs_target::procfs_init_inferior): ... this and adjust.
11606 (procfs_target::create_inferior, procfs_notice_thread)
11607 (procfs_do_thread_registers): Adjust.
11608 * ppc-fbsd-tdep.c: Include "inferior.h".
11609 (ppcfbsd_get_thread_local_address): Pass down target.
11610 * proc-service.c (ps_xfer_memory): Switch current inferior and
11611 program space as well.
11612 (get_ps_regcache): Pass target down.
11613 * process-stratum-target.c
11614 (process_stratum_target::thread_address_space)
11615 (process_stratum_target::thread_architecture): Pass target down.
11616 * process-stratum-target.h
11617 (process_stratum_target::threads_executing): New field.
11618 (as_process_stratum_target): New.
11619 * ravenscar-thread.c
11620 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11621 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11622 down.
11623 * record-btrace.c (record_btrace_target::info_record): Adjust.
11624 (record_btrace_target::record_method)
11625 (record_btrace_target::record_is_replaying)
11626 (record_btrace_target::fetch_registers)
11627 (get_thread_current_frame_id, record_btrace_target::resume)
11628 (record_btrace_target::wait, record_btrace_target::stop): Pass
11629 target down.
11630 * record-full.c (record_full_wait_1): Switch to event thread.
11631 Pass target down.
11632 * regcache.c (regcache::regcache)
11633 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11634 process_stratum_target parameter and handle it.
11635 (current_thread_target): New global.
11636 (get_thread_regcache): Add process_stratum_target parameter and
11637 handle it. Switch inferior before calling target method.
11638 (get_thread_regcache): Pass target down.
11639 (get_thread_regcache_for_ptid): Pass target down.
11640 (registers_changed_ptid): Add process_stratum_target parameter and
11641 handle it.
11642 (registers_changed_thread, registers_changed): Pass target down.
11643 (test_get_thread_arch_aspace_regcache): New.
11644 (current_regcache_test): Define a couple local test_target_ops
11645 instances and use them for testing.
11646 (readwrite_regcache): Pass process_stratum_target parameter.
11647 (cooked_read_test, cooked_write_test): Pass mock_target down.
11648 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11649 (get_thread_arch_aspace_regcache): Add process_stratum_target
11650 parameter.
11651 (regcache::target): New method.
11652 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11653 (regcache::registers_changed_ptid): Add process_stratum_target
11654 parameter.
11655 (regcache::m_target): New field.
11656 (registers_changed_ptid): Add process_stratum_target parameter.
11657 * remote.c (remote_state::supports_vCont_probed): New field.
11658 (remote_target::async_wait_fd): New method.
11659 (remote_unpush_and_throw): Add remote_target parameter.
11660 (get_current_remote_target): Adjust.
11661 (remote_target::remote_add_inferior): Push target.
11662 (remote_target::remote_add_thread)
11663 (remote_target::remote_notice_new_inferior)
11664 (get_remote_thread_info): Pass target down.
11665 (remote_target::update_thread_list): Skip threads of inferiors
11666 bound to other targets. (remote_target::close): Don't discard
11667 inferiors. (remote_target::add_current_inferior_and_thread)
11668 (remote_target::process_initial_stop_replies)
11669 (remote_target::start_remote)
11670 (remote_target::remote_serial_quit_handler): Pass down target.
11671 (remote_target::remote_unpush_target): New remote_target
11672 parameter. Unpush the target from all inferiors.
11673 (remote_target::remote_unpush_and_throw): New remote_target
11674 parameter. Pass it down.
11675 (remote_target::open_1): Check whether the current inferior has
11676 execution instead of checking whether any inferior is live. Pass
11677 target down.
11678 (remote_target::remote_detach_1): Pass down target. Use
11679 remote_unpush_target.
11680 (extended_remote_target::attach): Pass down target.
11681 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11682 (remote_target::append_resumption): Pass down target.
11683 (remote_target::append_pending_thread_resumptions)
11684 (remote_target::remote_resume_with_hc, remote_target::resume)
11685 (remote_target::commit_resume): Pass down target.
11686 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11687 (remote_target::interrupt_query)
11688 (remote_target::remove_new_fork_children)
11689 (remote_target::check_pending_events_prevent_wildcard_vcont)
11690 (remote_target::remote_parse_stop_reply)
11691 (remote_target::process_stop_reply): Pass down target.
11692 (first_remote_resumed_thread): New remote_target parameter. Pass
11693 it down.
11694 (remote_target::wait_as): Pass down target.
11695 (unpush_and_perror): New remote_target parameter. Pass it down.
11696 (remote_target::readchar, remote_target::remote_serial_write)
11697 (remote_target::getpkt_or_notif_sane_1)
11698 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11699 down target.
11700 (remote_target::mourn_inferior): Pass down target. Use
11701 remote_unpush_target.
11702 (remote_target::core_of_thread)
11703 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11704 (remote_target::pid_to_exec_file)
11705 (remote_target::thread_handle_to_thread_info): Pass down target.
11706 (remote_target::async_wait_fd): New.
11707 * riscv-fbsd-tdep.c: Include "inferior.h".
11708 (riscv_fbsd_get_thread_local_address): Pass down target.
11709 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11710 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11711 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11712 Adjust.
11713 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11714 * solib-svr4.c (enable_break): Pass down target.
11715 * spu-multiarch.c (parse_spufs_run): Pass down target.
11716 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11717 * target-delegates.c: Regenerate.
11718 * target.c (g_target_stack): Delete.
11719 (current_top_target): Return the current inferior's top target.
11720 (target_has_execution_1): Refer to the passed-in inferior's top
11721 target.
11722 (target_supports_terminal_ours): Check whether the initial
11723 inferior was already created.
11724 (decref_target): New.
11725 (target_stack::push): Incref/decref the target.
11726 (push_target, push_target, unpush_target): Adjust.
11727 (target_stack::unpush): Defref target.
11728 (target_is_pushed): Return bool. Adjust to refer to the current
11729 inferior's target stack.
11730 (dispose_inferior): Delete, and inline parts ...
11731 (target_preopen): ... here. Only dispose of the current inferior.
11732 (target_detach): Hold strong target reference while detaching.
11733 Pass target down.
11734 (target_thread_name): Add assertion.
11735 (target_resume): Pass down target.
11736 (target_ops::beneath, find_target_at): Adjust to refer to the
11737 current inferior's target stack.
11738 (get_dummy_target): New.
11739 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11740 has a thread running.
11741 (initialize_targets): Rename to ...
11742 (_initialize_target): ... this.
11743 * target.h: Include "gdbsupport/refcounted-object.h".
11744 (struct target_ops): Inherit refcounted_object.
11745 (target_ops::shortname, target_ops::longname): Make const.
11746 (target_ops::async_wait_fd): New method.
11747 (decref_target): Declare.
11748 (struct target_ops_ref_policy): New.
11749 (target_ops_ref): New typedef.
11750 (get_dummy_target): Declare function.
11751 (target_is_pushed): Return bool.
11752 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11753 (all_matching_threads_iterator::all_matching_threads_iterator):
11754 Handle filter target.
11755 * thread-iter.h (struct all_matching_threads_iterator, struct
11756 all_matching_threads_range, class all_non_exited_threads_range):
11757 Filter by target too. Remove explicit.
11758 * thread.c (threads_executing): Delete.
11759 (inferior_thread): Pass down current inferior.
11760 (clear_thread_inferior_resources): Pass down thread pointer
11761 instead of ptid_t.
11762 (add_thread_silent, add_thread_with_info, add_thread): Add
11763 process_stratum_target parameter. Use it for thread and inferior
11764 searches.
11765 (is_current_thread): New.
11766 (thread_info::deletable): Use it.
11767 (find_thread_ptid, thread_count, in_thread_list)
11768 (thread_change_ptid, set_resumed, set_running): New
11769 process_stratum_target parameter. Pass it down.
11770 (set_executing): New process_stratum_target parameter. Pass it
11771 down. Adjust reference to 'threads_executing'.
11772 (threads_are_executing): New process_stratum_target parameter.
11773 Adjust reference to 'threads_executing'.
11774 (set_stop_requested, finish_thread_state): New
11775 process_stratum_target parameter. Pass it down.
11776 (switch_to_thread): Also match inferior.
11777 (switch_to_thread): New process_stratum_target parameter. Pass it
11778 down.
11779 (update_threads_executing): Reimplement.
11780 * top.c (quit_force): Pop targets from all inferior.
11781 (gdb_init): Don't call initialize_targets.
11782 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11783 Declare.
11784 (windows_add_thread, windows_delete_thread): Adjust.
11785 (get_windows_debug_event): Rename to ...
11786 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11787 * tracefile-tfile.c (tfile_target_open): Pass down target.
11788 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11789 Forward declare.
11790 (switch_to_thread): Add process_stratum_target parameter.
11791 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11792 parameter. Use it.
11793 (mi_on_resume): Pass target down.
11794 * nat/fork-inferior.c (startup_inferior): Add
11795 process_stratum_target parameter. Pass it down.
11796 * nat/fork-inferior.h (startup_inferior): Add
11797 process_stratum_target parameter.
11798 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11799
11800 2020-01-10 Pedro Alves <palves@redhat.com>
11801
11802 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11803 directly. Instead find the first thread in the thread list and
11804 use switch_to_thread.
11805
11806 2020-01-10 Pedro Alves <palves@redhat.com>
11807
11808 * remote.c (remote_target::remote_add_inferior): Don't bind a
11809 process to the current inferior if the current inferior is already
11810 bound to a process.
11811
11812 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11813 Pedro Alves <palves@redhat.com>
11814
11815 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11816 If no process is specified, return null_ptid instead of
11817 inferior_ptid.
11818 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11819 TARGET_WAITKIND_SIGNALLED with no pid.
11820
11821 2020-01-10 Pedro Alves <palves@redhat.com>
11822
11823 * remote.c (first_remote_resumed_thread): New.
11824 (remote_target::wait_as): Use it as default event_ptid instead of
11825 inferior_ptid.
11826
11827 2020-01-10 Pedro Alves <palves@redhat.com>
11828
11829 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11830
11831 2020-01-10 Pedro Alves <palves@redhat.com>
11832
11833 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11834 not -1.
11835
11836 2020-01-10 Pedro Alves <palves@redhat.com>
11837
11838 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11839 ptid to get_last_target_status.
11840 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11841 ptid to get_last_target_status.
11842 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11843 get_last_target_status.
11844 (info_program_command): Don't pass a target_waitstatus to
11845 get_last_target_status.
11846 * infrun.c (init_wait_for_inferior): Use
11847 nullify_last_target_wait_ptid.
11848 (get_last_target_status): Handle nullptr arguments.
11849 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11850 (print_stop_event): Don't pass a ptid to get_last_target_status.
11851 (normal_stop): Don't pass a ptid to get_last_target_status.
11852 * infrun.h (get_last_target_status, set_last_target_status): Move
11853 comments here and update.
11854 (nullify_last_target_wait_ptid): Declare.
11855 * linux-fork.c (fork_load_infrun_state): Remove local extern
11856 declaration of nullify_last_target_wait_ptid.
11857 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11858 to get_last_target_status.
11859
11860 2020-01-10 Pedro Alves <palves@redhat.com>
11861
11862 * gdbthread.h (scoped_restore_current_thread)
11863 <dont_restore, restore, m_dont_restore>: Declare.
11864 * thread.c (thread_alive): Add assertion. Return bool.
11865 (switch_to_thread_if_alive): New.
11866 (prune_threads): Switch inferior/thread.
11867 (print_thread_info_1): Switch thread before calling target methods.
11868 (scoped_restore_current_thread::restore): New, factored out from
11869 ...
11870 (scoped_restore_current_thread::~scoped_restore_current_thread):
11871 ... this.
11872 (scoped_restore_current_thread::scoped_restore_current_thread):
11873 Add assertion.
11874 (thread_apply_all_command, thread_select): Use
11875 switch_to_thread_if_alive.
11876 * infrun.c (proceed, restart_threads, handle_signal_stop)
11877 (switch_back_to_stepped_thread): Switch current thread before
11878 calling target methods.
11879
11880 2020-01-10 Pedro Alves <palves@redhat.com>
11881
11882 * inferior.c (switch_to_inferior_no_thread): New function,
11883 factored out from ...
11884 (inferior_command): ... here.
11885 * inferior.h (switch_to_inferior_no_thread): Declare.
11886 * mi/mi-main.c (run_one_inferior): Use
11887 switch_to_inferior_no_thread.
11888
11889 2020-01-10 Pedro Alves <palves@redhat.com>
11890
11891 * infcmd.c (kill_command): Remove dead code.
11892
11893 2020-01-10 Pedro Alves <palves@redhat.com>
11894
11895 * remote.c (remote_target::mourn_inferior): No longer check
11896 whether the target is running.
11897
11898 2020-01-10 Pedro Alves <palves@redhat.com>
11899
11900 * corelow.c (core_target::has_execution): Change parameter type to
11901 inferior pointer.
11902 * inferior.c (number_of_live_inferiors): Use
11903 inferior::has_execution instead of target_has_execution_1.
11904 * inferior.h (inferior::has_execution): New.
11905 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11906 inferior::has_execution instead of target_has_execution_1.
11907 * process-stratum-target.c
11908 (process_stratum_target::has_execution): Change parameter type to
11909 inferior pointer. Check the inferior's PID instead of
11910 inferior_ptid.
11911 * process-stratum-target.h
11912 (process_stratum_target::has_execution): Change parameter type to
11913 inferior pointer.
11914 * record-full.c (record_full_core_target::has_execution): Change
11915 parameter type to inferior pointer.
11916 * target.c (target_has_execution_1): Change parameter type to
11917 inferior pointer.
11918 (target_has_execution_current): Adjust.
11919 * target.h (target_ops::has_execution): Change parameter type to
11920 inferior pointer.
11921 (target_has_execution_1): Change parameter type to inferior
11922 pointer. Change return type to bool.
11923 * tracefile.h (tracefile_target::has_execution): Change parameter
11924 type to inferior pointer.
11925
11926 2020-01-10 Pedro Alves <palves@redhat.com>
11927
11928 * exceptions.c (print_flush): Remove current_top_target() check.
11929
11930 2020-01-10 Pedro Alves <palves@redhat.com>
11931
11932 * remote.c (show_remote_exec_file): Show the current inferior's
11933 exec-file instead of the command variable's value.
11934
11935 2020-01-10 Pedro Alves <palves@redhat.com>
11936
11937 * record-full.c (record_full_resume_ptid): New global.
11938 (record_full_target::resume): Set it.
11939 (record_full_wait_1): Use record_full_resume_ptid instead of
11940 inferior_ptid.
11941
11942 2020-01-10 Pedro Alves <palves@redhat.com>
11943
11944 * gdbthread.h (scoped_restore_current_thread)
11945 <dont_restore, restore, m_dont_restore>: Declare.
11946 * thread.c (thread_alive): Add assertion. Return bool.
11947 (switch_to_thread_if_alive): New.
11948 (prune_threads): Switch inferior/thread.
11949 (print_thread_info_1): Switch thread before calling target methods.
11950 (scoped_restore_current_thread::restore): New, factored out from
11951 ...
11952 (scoped_restore_current_thread::~scoped_restore_current_thread):
11953 ... this.
11954 (scoped_restore_current_thread::scoped_restore_current_thread):
11955 Add assertion.
11956 (thread_apply_all_command, thread_select): Use
11957 switch_to_thread_if_alive.
11958
11959 2020-01-10 George Barrett <bob@bob131.so>
11960
11961 * stap-probe.c (stap_modify_semaphore): Don't check for null
11962 semaphores.
11963 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11964 for null semaphores.
11965
11966 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11969 all source windows, and maintain horizontal scroll status while
11970 doing so.
11971
11972 2020-01-09 Tom Tromey <tom@tromey.com>
11973
11974 PR tui/18932:
11975 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11976 update_source_window, not print_source_lines.
11977
11978 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11979
11980 * tui/tui.c (tui_enable): Register tui hooks after calling
11981 tui_display_main.
11982
11983 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11984
11985 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11986
11987 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11988
11989 * thread.c (print_thread_info_1): Fix indentation.
11990
11991 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11992
11993 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11994 unique_xmalloc_ptr outside the if to always free the demangled name.
11995
11996 2020-01-08 Tom Tromey <tromey@adacore.com>
11997
11998 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11999 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12000 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12001 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12002 Remove.
12003 (section_offsets): New typedef.
12004 * symtab.c (fixup_section, get_msymbol_address): Update.
12005 * symmisc.c (dump_msymbols): Update.
12006 * symfile.h (relative_addr_info_to_section_offsets)
12007 (symfile_map_offsets_to_segments): Update.
12008 * symfile.c (build_section_addr_info_from_objfile)
12009 (init_objfile_sect_indices): Update.
12010 (struct place_section_arg): Change type of "offsets".
12011 (place_section): Update.
12012 (relative_addr_info_to_section_offsets): Change type of
12013 "section_offsets". Remove "num_sections" parameter.
12014 (default_symfile_offsets, syms_from_objfile_1)
12015 (set_objfile_default_section_offset): Update.
12016 (reread_symbols): No need to preserve section offsets by hand.
12017 (symfile_map_offsets_to_segments): Change type of "offsets".
12018 * stap-probe.c (relocate_address): Update.
12019 * stabsread.h (process_one_symbol): Update.
12020 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12021 (solib_target_relocate_section_addresses): Update.
12022 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12023 Update.
12024 * solib-frv.c (frv_relocate_main_executable): Update.
12025 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12026 * solib-aix.c (solib_aix_get_section_offsets): Change return
12027 type.
12028 (solib_aix_solib_create_inferior_hook): Update.
12029 * remote.c (remote_target::get_offsets): Update.
12030 * psymtab.c (find_pc_sect_psymtab): Update.
12031 * psympriv.h (struct partial_symbol) <address, text_low,
12032 text_high>: Update.
12033 * objfiles.h (obj_section_offset): Update.
12034 (struct objfile) <section_offsets>: Change type.
12035 <num_sections>: Remove.
12036 (objfile_relocate): Update.
12037 * objfiles.c (entry_point_address_query): Update
12038 (relocate_one_symbol): Change type of "section_offsets".
12039 (objfile_relocate1, objfile_relocate1): Change type of
12040 "new_offsets".
12041 (objfile_rebase1): Update.
12042 * mipsread.c (mipscoff_symfile_read): Update.
12043 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12044 parameter.
12045 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12046 (parse_external, psymtab_to_symtab_1): Update.
12047 * machoread.c (macho_symfile_offsets): Update.
12048 * ia64-tdep.c (ia64_find_unwind_table): Update.
12049 * hppa-tdep.c (read_unwind_info): Update.
12050 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12051 * dwarf2read.c (create_addrmap_from_index)
12052 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12053 (process_psymtab_comp_unit_reader, add_partial_symbol)
12054 (add_partial_subprogram, process_full_comp_unit)
12055 (read_file_scope, read_func_scope, read_lexical_block_scope)
12056 (read_call_site_scope, dwarf2_rnglists_process)
12057 (dwarf2_ranges_process, dwarf2_ranges_read)
12058 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12059 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12060 Update.
12061 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12062 Update.
12063 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12064 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12065 (process_one_symbol): Change type of "section_offsets".
12066 * ctfread.c (get_objfile_text_range): Update.
12067 * coffread.c (coff_symtab_read, enter_linenos)
12068 (process_coff_symbol): Update.
12069 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12070 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12071
12072 2020-01-08 Tom Tromey <tromey@adacore.com>
12073
12074 * dwarf2read.c (parse_macro_definition): Use std::string.
12075 (parse_macro_definition): Likewise.
12076
12077 2020-01-08 Tom Tromey <tromey@adacore.com>
12078
12079 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12080 (ATTR_ALLOC_CHUNK): Remove.
12081
12082 2020-01-08 Tom Tromey <tromey@adacore.com>
12083
12084 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12085
12086 2020-01-08 Tom Tromey <tromey@adacore.com>
12087
12088 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12089 (dwarf2_compute_name, open_dwo_file): Likewise.
12090 (process_enumeration_scope): Use std::vector.
12091 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12092 (partial_die_info::fixup, dwarf2_start_subfile)
12093 (guess_full_die_structure_name, dwarf2_name): Likewise.
12094 (determine_prefix): Update.
12095 (guess_full_die_structure_name): Make return type const.
12096 (partial_die_full_name): Return unique_xmalloc_ptr.
12097 (DW_FIELD_ALLOC_CHUNK): Remove.
12098
12099 2020-01-07 Tom Tromey <tromey@adacore.com>
12100
12101 PR build/24937:
12102 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12103
12104 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12105
12106 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12107
12108 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12109
12110 * stack.c (print_frame_info): Move disassemble_next_line code
12111 inside source_print block.
12112
12113 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12114
12115 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12116 gdb/signals.h, as we are now using native signal symbols.
12117
12118 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12119
12120 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12121 overflow by an early check of content vs threshold.
12122 * tui/tui-source.c (tui_source_window::line_is_displayed):
12123 Likewise.
12124
12125 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12126
12127 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12128
12129 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12130
12131 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12132 export table if no section contains it's RVA.
12133
12134 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12135
12136 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12137
12138 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12139
12140 * source.c (print_source_lines_base): Set last_line_listed.
12141
12142 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12143
12144 * tui/tui-disasm.c: Remove trailing spaces.
12145
12146 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12147 Pedro Alves <palves@redhat.com>
12148
12149 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12150 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12151 (windows_gdb_signal_to_target): New function, uses the above
12152 enumeration to convert GDB internal signal codes to equivalent
12153 Windows codes.
12154 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12155 * windows-nat.c: Include "gdb_wait.h".
12156 (get_windows_debug_event): Extract the fatal exception from the
12157 exit status and convert to the equivalent Posix signal number.
12158 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12159 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12160 * gdbsupport/gdb_wait.c: New file, implements
12161 windows_status_to_termsig.
12162 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12163 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12164
12165 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12166
12167 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12168 show_layout.
12169
12170 2020-01-05 Luis Machado <luis.machado@linaro.org>
12171
12172 * aarch64-linux-nat.c
12173 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12174 and bfd_mach_aarch64.
12175
12176 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12177
12178 * ui-file.c (stdio_file::can_emit_style_escape)
12179 (tee_file::can_emit_style_escape): Ensure style is used also on
12180 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12181 to gdb_stdout.
12182 * main.c (set_gdb_data_directory): Use file style to output the
12183 warning that the given pathname is not a directory.
12184 * top.c (show_history_filename, gdb_safe_append_history)
12185 (show_gdb_datadir): Use file style.
12186
12187 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12188
12189 * solib-target.c (struct lm_info_target):
12190 Change offsets to be a unique_xmalloc_ptr.
12191 (solib_target_relocate_section_addresses): Update.
12192
12193 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12194
12195 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12196
12197 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12198
12199 * MAINTAINERS (Write After Approval): Add myself.
12200
12201 2020-01-02 Luis Machado <luis.machado@linaro.org>
12202
12203 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12204 Cell BE architecture.
12205 * target.h (struct target_ops) <thread_architecture>: Likewise.
12206
12207 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12208
12209 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12210
12211 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12212
12213 * MAINTAINERS (Write After Approval): Add myself.
12214
12215 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12216
12217 * gdbarch.sh: Update copyright year range of generated files.
12218
12219 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12220
12221 Update copyright year range in all GDB files.
12222
12223 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12224
12225 * copyright.py: Convert to Python 3.
12226
12227 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12228
12229 * copyright.py: Adapt after move of gnulib directory from gdb
12230 directory to toplevel directory.
12231
12232 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12233
12234 * copyright.py (main): Exit if run from the wrong directory.
12235
12236 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12237
12238 * top.c (print_gdb_version): Change copyright year to 2020.
12239
12240 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12241
12242 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12243
12244 For older changes see ChangeLog-2019.
12245 \f
12246 Local Variables:
12247 mode: change-log
12248 left-margin: 8
12249 fill-column: 74
12250 version-control: never
12251 coding: utf-8
12252 End: