ada-lex.l: Ignore register diagnostic also for g++ defaulting to ISO C++17
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-21 Mark Wielaard <mark@klomp.org>
2
3 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4
5 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6
7 * frame.c (enum class frame_id_status): New.
8 (struct frame_info) <this_id::p>: Change type to frame_id_status.
9 (fprintf_frame): Update.
10 (compute_frame_id): Set frame id status to "computing" on entry.
11 Set it back to "not_computed" on failure and to "computed" on
12 success.
13 (get_frame_id): Assert the frame id is not being computed.
14 (create_sentinel_frame): Use frame_id_status::COMPUTED.
15 (create_new_frame): Likewise.
16 (frame_cleanup_after_sniffer): Update assert.
17
18 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * regcache.c (pid_ptid_regcache_map): New type.
21 (target_ptid_regcache_map): Remove.
22 (target_pid_ptid_regcache_map): New type.
23 (regcaches): Change type to target_pid_ptid_regcache_map.
24 (get_thread_arch_aspace_regcache): Update.
25 (regcache_thread_ptid_changed): Update, handle pid-like ptid
26 case.
27 (regcaches_size): Update.
28 (regcache_count): Update.
29 (registers_changed_ptid_target_pid_test): New.
30 (_initialize_regcache): Register new test.
31
32 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * regcache.c (regcache_count): New.
35 (struct regcache_test_data): New.
36 (regcache_test_data_up): New.
37 (populate_regcaches_for_test): New.
38 (regcaches_test): Remove.
39 (get_thread_arch_aspace_regcache_test): New.
40 (registers_changed_ptid_all_test): New.
41 (registers_changed_ptid_target_test): New.
42 (registers_changed_ptid_target_ptid_test): New.
43 (regcache_thread_ptid_changed): Remove regcache_count lambda.
44 (_initialize_regcache): Register new tests.
45
46 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
49 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
50 gdbarch and aspace parameter. Use current inferior's aspace.
51 Validate regcache's arch value.
52 (regcaches_test): Update.
53
54 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * regcache.c (regcaches_test): Call registers_changed.
57
58 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
59
60 * infrun.c (process_event_stop_test): Fix typo "breapoint".
61
62 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
63
64 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
65 to find the end of prologue for flang compiled binaries.
66 * arm-tdep.c (arm_skip_prologue): Likewise.
67 * i386-tdep.c (i386_skip_prologue): Likewise.
68 * producer.c (producer_is_llvm): New function.
69 (producer_parsing_tests): Added new tests for clang/flang.
70 * producer.h (producer_is_llvm): New declaration.
71
72 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
73
74 * linux-nat.c (linux_nat_debug_printf): New function.
75 (linux_nat_debug_printf_1): New macro. Use throughout the file.
76
77 2020-08-18 Aaron Merey <amerey@redhat.com>
78
79 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
80 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
81 (CLIBS): Add DEBUGINFOD_LIBS.
82
83 2020-08-17 Sergei Trofimovich <siarheit@google.com>
84
85 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
86 'gdbarch_num_regs'.
87
88 2020-08-17 Tom Tromey <tromey@adacore.com>
89
90 * ada-varobj.c (ada_varobj_decode_var): Handle case where
91 ada_get_decoded_value returns NULL.
92
93 2020-08-17 Tom Tromey <tromey@adacore.com>
94
95 * python/py-inferior.c (infpy_search_memory): Use
96 gdb_py_object_from_ulongest.
97 * python/py-infevents.c (create_inferior_call_event_object)
98 (create_memory_changed_event_object): Use
99 gdb_py_object_from_ulongest.
100 * python/py-linetable.c (ltpy_entry_get_pc): Use
101 gdb_py_object_from_ulongest.
102
103 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * loc.c (class symbol_needs_eval_context): Fix indentation.
106
107 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
110 bool.
111
112 2020-08-17 Tom de Vries <tdevries@suse.de>
113
114 PR gdb/26393
115 * gdbtypes.c (dump_dynamic_prop): New function.
116 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
117
118 2020-08-15 Tom de Vries <tdevries@suse.de>
119
120 PR backtrace/26390
121 * stack.c (print_frame_args): Temporarily set the selected
122 frame to FRAME while printing the frame's arguments.
123
124 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
125
126 PR breakpoints/26385
127 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
128 Always clear watchpoint with PTRACE_SET_DEBUGREG.
129
130 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
131
132 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
133 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
134 and >= to check return value instead of == -1 and != -1.
135
136 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * utils.h (class gdb_argv) <as_array_view>: New method.
139 * utils.c (gdb_argv_as_array_view_test): New.
140 (_initialize_utils): Register selftest.
141 * maint.c (maintenance_selftest): Use the new method.
142
143 2020-08-13 Kamil Rytarowski <n54@gmx.com>
144
145 * target.h (supports_dumpcore, dumpcore): New
146 function declarations.
147 * target.c (supports_dumpcore, dumpcore): New
148 functions.
149 * target-delegates.c: Rebuild.
150 * gcore.c (gcore_command): Use target_supports_dumpcore ()
151 and target_dumpcore ().
152
153 2020-08-13 Aaron Merey <amerey@redhat.com>
154
155 * debuginfod-support.c: Replace global variables with user_data.
156
157 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * maint.c (maintenance_selftest): Split args and pass array_view
160 to run_tests.
161
162 2020-08-12 Luis Machado <luis.machado@linaro.org>
163
164 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
165 type's length.
166 Use %s and pulongest to print the length.
167
168 2020-08-12 Pedro Alves <palves@redhat.com>
169
170 * NEWS: Move "Multi-target debugging support" item to the
171 "Changes since GDB 9" section.
172
173 2020-08-12 Pedro Alves <palves@redhat.com>
174
175 PR gdb/26336
176 * progspace.c (program_space::remove_objfile): Invalidate the
177 frame cache.
178
179 2020-08-11 Tom de Vries <tdevries@suse.de>
180
181 * MAINTAINERS: Mark ms1 as deleted.
182
183 2020-08-10 Luis Machado <luis.machado@linaro.org>
184
185 PR gdb/26310
186
187 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
188 act accordingly.
189 (aarch64_analyze_prologue_test): Add more unit tests to exercise
190 movz/str/stur/stp skipping behavior.
191
192 2020-08-10 Luis Machado <luis.machado@linaro.org>
193
194 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
195 struct user_sve_header instead of struct sve_context.
196
197 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * read.h (dwarf2_fetch_die_loc_sect_off,
200 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
201 `void *` parameter with function_view.
202 * read.c (dwarf2_fetch_die_loc_sect_off,
203 dwarf2_fetch_die_loc_cu_off): Likewise.
204 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
205 (per_cu_dwarf_call): Adjust.
206 (get_frame_address_in_block_wrapper): Remove.
207 (indirect_synthetic_pointer): Adjust.
208 (get_ax_pc): Remove.
209 (dwarf2_compile_expr_to_ax): Adjust.
210
211 2020-08-08 Tom de Vries <tdevries@suse.de>
212
213 PR build/26344
214 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
215 constructor.
216 * regcache.c (get_thread_arch_aspace_regcache): Same.
217
218 2020-08-07 Tom Tromey <tromey@adacore.com>
219
220 * ravenscar-thread.c
221 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
222 New method.
223 (ravenscar_thread_target::wait): Check
224 runtime_initialized.
225 (ravenscar_thread_target::prepare_to_store)
226 (ravenscar_thread_target::stopped_by_sw_breakpoint)
227 (ravenscar_thread_target::stopped_by_hw_breakpoint)
228 (ravenscar_thread_target::stopped_by_watchpoint)
229 (ravenscar_thread_target::stopped_data_address)
230 (ravenscar_thread_target::core_of_thread): Use
231 scoped_restore_current_thread and
232 set_base_thread_from_ravenscar_task.
233
234 2020-08-07 Tom Tromey <tromey@adacore.com>
235
236 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
237
238 2020-08-07 Tom Tromey <tromey@adacore.com>
239
240 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
241 update_inferior_ptid before update_thread_list.
242 (temporarily_change_regcache_ptid): New class.
243 (ravenscar_thread_target::fetch_registers)
244 (ravenscar_thread_target::store_registers)
245 (ravenscar_thread_target::prepare_to_store): Use base thread when
246 forwarding operation.
247
248 2020-08-07 Tom Tromey <tromey@adacore.com>
249
250 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
251 "is_pid" case.
252
253 2020-08-07 Tom Tromey <tromey@adacore.com>
254
255 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
256 New methods.
257 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
258 first.
259 (ravenscar_thread_target::add_thread): Rename from
260 ravenscar_add_thread.
261 (ravenscar_thread_target::update_thread_list): Use a lambda.
262 (ravenscar_thread_target::xfer_partial): New method.
263
264 2020-08-07 Tom Tromey <tromey@adacore.com>
265
266 * ada-lang.h (ada_task_list_iterator_ftype): Now a
267 gdb::function_view.
268 (iterate_over_live_ada_tasks): Change type of argument.
269 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
270 of argument.
271
272 2020-08-07 Tom Tromey <tromey@adacore.com>
273
274 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
275 Remove.
276 (ravenscar_thread_target::extra_thread_info): Remove.
277 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
278 defer to target beneath for non-Ravenscar threads.
279
280 2020-08-07 Tom Tromey <tromey@adacore.com>
281
282 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
283 get_base_thread_from_ravenscar_task>: Now methods.
284 <m_cpu_map>: New member.
285 (ravenscar_thread_target::get_thread_base_cpu): Rename from
286 ravenscar_get_thread_base_cpu. Check m_cpu_map.
287 (ravenscar_thread_target::task_is_currently_active): Update.
288 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
289 Now a method.
290 (ravenscar_thread_target::add_active_thread): Put initial thread
291 into the m_cpu_map.
292
293 2020-08-07 Tom Tromey <tromey@adacore.com>
294
295 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
296 event_ptid.
297
298 2020-08-07 Tom Tromey <tromey@adacore.com>
299
300 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
301 runtime_initialized.
302
303 2020-08-07 Tom Tromey <tromey@adacore.com>
304
305 * ravenscar-thread.c (ravenscar_thread_target): Don't call
306 add_active_thread.
307 (ravenscar_thread_target::add_active_thread): Now public.
308 (ravenscar_inferior_created): Call add_active_thread after pushing
309 the target.
310
311 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * regcache.c (ptid_regcache_map): New type.
314 (target_ptid_regcache_map): New type.
315 (regcaches): Change type to target_ptid_regcache_map.
316 (get_thread_arch_aspace_regcache): Update to regcaches' new
317 type.
318 (regcache_thread_ptid_changed): Likewise.
319 (registers_changed_ptid): Likewise.
320 (regcaches_size): Likewise.
321 (regcaches_test): Update.
322 (regcache_thread_ptid_changed): Update.
323 * regcache.h (regcache_up): New type.
324 * gdbsupport/ptid.h (hash_ptid): New struct.
325
326 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
327
328 * observable.h (thread_ptid_changed): Add parameter
329 `process_stratum_target *`.
330 * infrun.c (infrun_thread_ptid_changed): Add parameter
331 `process_stratum_target *` and use it.
332 (selftests): New namespace.
333 (infrun_thread_ptid_changed): New function.
334 (_initialize_infrun): Register selftest.
335 * regcache.c (regcache_thread_ptid_changed): Add parameter
336 `process_stratum_target *` and use it.
337 (regcache_thread_ptid_changed): New function.
338 (_initialize_regcache): Register selftest.
339 * thread.c (thread_change_ptid): Pass target to
340 thread_ptid_changed observable.
341
342 2020-08-06 Caroline Tice <cmtice@google.com>
343
344 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
345 (struct dwp_sections): Update field comments. Add loclists and
346 rnglists fields.
347 (struct virtual_v2_dwo_sections): Rename struct to
348 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
349 size & offset fields for loclists and rnglists.
350 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
351 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
352 skipping dummy type units.
353 (create_dwp_hash_table): Update the large comment above the function to
354 discuss Version 5 DWP files as well, with references. Update all the
355 version checks in the function to check for version 5 as well. Add new
356 section at the end to create dwp hash table for version 5.
357 (create_dwp_v2_section): Rename function to
358 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
359 Add V5 to error message text.
360 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
361 into calls to create_dwp_v2_or_v5_section.
362 (create_dwo_unit_in_dwp_v5): New function.
363 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
364 check for version2; add else clause to handle version 5.
365 (open_and_init_dwo_file): Add code to check dwarf version & only call
366 create_debug_types_hash_table (with sections.types) if version is not 5;
367 else call create_debug_type_hash_table, with sections.info.
368 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
369 version 5.
370 (dwarf2_locate_v5_dwp_sections): New function.
371 (open_and_init_dwp_file): Add else-if clause for version 5 to call
372 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
373
374 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
375
376 * regcache.h (class regcache): Remove friend
377 registers_changed_ptid.
378 <regcache_thread_ptid_changed>: Remove.
379 <regcaches>: Remove.
380 * regcache.c (regcache::regcaches): Rename to...
381 (regcaches): ... this. Make static.
382 (get_thread_arch_aspace_regcache): Update.
383 (regcache::regcache_thread_ptid_changed): Rename to...
384 (regcache_thread_ptid_changed): ... this. Update.
385 (class regcache_access): Remove.
386 (regcaches_test): Update.
387 (_initialize_regcache): Update.
388 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
389 <forward_list>.
390
391 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
392
393 * regcache.h (class regcache) <current_regcache>: Rename to...
394 <regcaches>: ... this. Move doc here.
395 * regcache.c (regcache::current_regcache) Rename to...
396 (regcache::regcaches): ... this. Move doc to header.
397 (get_thread_arch_aspace_regcache): Update.
398 (regcache::regcache_thread_ptid_changed): Update.
399 (registers_changed_ptid): Update.
400 (class regcache_access) <current_regcache_size>: Rename to...
401 <regcaches_size>: ... this.
402 (current_regcache_test): Rename to...
403 (regcaches_test): ... this.
404 (_initialize_regcache): Update.
405
406 2020-08-06 Victor Collod <vcollod@nvidia.com>
407
408 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
409
410 2020-08-05 Kevin Buettner <kevinb@redhat.com>
411
412 * corelow.c (core_target::build_file_mappings): Don't output
413 null pathname in warning.
414
415 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
418 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
419 gdb.dwarf2/dw2-single-line-discriminators.exp,
420 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
421
422 2020-08-05 Tom Tromey <tromey@adacore.com>
423
424 PR rust/26197:
425 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
426 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
427 Fix off-by-one and type size errors in ordinary case.
428
429 2020-08-05 Tom de Vries <tdevries@suse.de>
430
431 * gdbtypes.c (type_not_allocated, type_not_associated): Use
432 "prop->const_val () == 0" instead of "prop->const_val () != 0".
433
434 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
435
436 * frame.h (frame_id_p): Return bool.
437 (frame_id_artificial_p): Return bool.
438 (frame_id_eq): Return bool.
439 (has_stack_frames): Return bool.
440 (get_selected_frame): Fix typo in comment.
441 (get_frame_pc_if_available): Return bool.
442 (get_frame_address_in_block_if_available): Return bool.
443 (get_frame_func_if_available): Return bool.
444 (read_frame_register_unsigned): Return bool.
445 (get_frame_register_bytes): Return bool.
446 (safe_frame_unwind_memory): Return bool.
447 (deprecated_frame_register_read): Return bool.
448 (frame_unwinder_is): Return bool.
449 * frame.c (struct frame_info) <prev_arch::p>: Change type to
450 bool.
451 <this_id::p>: Likewise.
452 <prev_p>: Likewise.
453 (frame_stash_add): Return bool.
454 (get_frame_id): Use bool.
455 (frame_id_build_special) Use bool.
456 (frame_id_build_unavailable_stack): Use bool.
457 (frame_id_build): Use bool.
458 (frame_id_p): Return bool, use true/false instead of 1/0.
459 (frame_id_artificial_p): Likewise.
460 (frame_id_eq): Likewise.
461 (frame_id_inner): Likewise.
462 (get_frame_func_if_available): Likewise.
463 (read_frame_register_unsigned): Likewise.
464 (deprecated_frame_register_read): Likewise.
465 (get_frame_register_bytes): Likewise.
466 (has_stack_frames): Likewise.
467 (inside_main_func): Likewise.
468 (inside_entry_func): Likewise.
469 (get_frame_pc_if_available): Likewise.
470 (get_frame_address_in_block_if_available): Likewise.
471 (frame_unwinder_is): Likewise.
472 (safe_frame_unwind_memory): Likewise.
473 (frame_unwind_arch): Likewise.
474
475 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
476
477 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
478 type to cached_copy_status.
479 (fprintf_frame): Adjust.
480 (get_frame_func_if_available): Adjust.
481 (frame_cleanup_after_sniffer): Adjust.
482
483 2020-08-04 Mark Wielaard <mark@klomp.org>
484
485 * MAINTAINERS (Write After Approval): Update email address.
486
487 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
490 dynamic_prop::const_val.
491
492 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
495 dynamic_prop::kind.
496
497 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
500
501 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
502
503 * configure.tgt: Set gdb_sim for bpf-*-* targets.
504
505 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
506 Jose E. Marchesi <jose.marchesi@oracle.com>
507
508 * configure.tgt: Add entry for bpf-*-*.
509 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
510 (ALLDEPFILES): Add bpf-tdep.c.
511 * bpf-tdep.c: New file.
512 * MAINTAINERS: Add bpf target and maintainer.
513 * NEWS: Mention the support for the new target.
514
515 2020-08-04 Tom de Vries <tdevries@suse.de>
516
517 PR symtab/23270
518 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
519 Error.
520
521 2020-08-03 John Baldwin <jhb@FreeBSD.org>
522
523 * syscalls/freebsd.xml: Regenerate.
524
525 2020-08-03 John Baldwin <jhb@FreeBSD.org>
526
527 * syscalls/update-freebsd.sh: Fix usage and year range.
528
529 2020-08-03 Tom de Vries <tdevries@suse.de>
530
531 PR symtab/26333
532 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
533 DW_LNE_lo_user/DW_LNE_hi_user range.
534
535 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
536
537 PR ada/26318
538 * ada-lang.c (ada_modulus): Return 0 if property is not of const
539 kind.
540
541 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542
543 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
544
545 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
546
547 * breakpoint.c (set_breakpoint_condition): Update the condition
548 expressions after checking that the input condition string parses
549 successfully and does not contain junk at the end.
550
551 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 * breakpoint.c (set_breakpoint_condition): Update the
554 condition string after parsing the new condition successfully.
555
556 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
557
558 * proc-api.c (_STRUCTURED_PROC): Don't define.
559 * proc-events.c: Likewise.
560 * proc-flags.c: Likewise.
561 * proc-why.c: Likewise.
562 * procfs.c: Likewise.
563
564 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
565 * configure, config.in: Regenerate.
566
567 2020-07-30 Tom de Vries <tdevries@suse.de>
568
569 PR build/26320
570 * ui-style.h (struct ui_file_style::color): Wrap m_value and
571 m_red/m_green/m_blue in a union.
572
573 2020-07-29 Tom de Vries <tdevries@suse.de>
574
575 PR tdep/26280
576 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
577
578 2020-07-28 Tom Tromey <tromey@adacore.com>
579
580 PR symtab/26270:
581 * symtab.h (find_pc_partial_function_sym): Declare.
582 * cli/cli-cmds.c (disassemble_command): Use
583 find_pc_partial_function_sym. Check asm_demangle.
584 * blockframe.c (cache_pc_function_sym): New global.
585 (cache_pc_function_name): Remove.
586 (clear_pc_function_cache): Update.
587 (find_pc_partial_function_sym): New function, from
588 find_pc_partial_function.
589 (find_pc_partial_function): Rewrite using
590 find_pc_partial_function_sym.
591
592 2020-07-28 Tom Tromey <tromey@adacore.com>
593
594 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
595 help. Add usage.
596
597 2020-07-28 Tom Tromey <tromey@adacore.com>
598
599 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
600 <DW_OP_GNU_variable_value>: Cast to address type.
601
602 2020-07-28 Kamil Rytarowski <n54@gmx.com>
603
604 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
605 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
606 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
607 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
608 (nbsd_get_siginfo_type): New.
609 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
610 (_initialize_nbsd_tdep): New.
611
612 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
613
614 PR binutils/26301
615 * configure: Regenerated.
616
617 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
618
619 PR binutils/26301
620 * configure: Regenerated.
621
622 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * python/py-frame.c: Remove 'user-regs.h' include.
625 (frapy_read_register): Rewrite to make use of
626 gdbpy_parse_register_id.
627 * python/py-registers.c (gdbpy_parse_register_id): New function,
628 moved here from python/py-unwind.c. Updated the return type, and
629 also accepts register descriptor objects.
630 * python/py-unwind.c: Remove 'user-regs.h' include.
631 (pyuw_parse_register_id): Moved to python/py-registers.c.
632 (unwind_infopy_add_saved_register): Update to use
633 gdbpy_parse_register_id.
634 (pending_framepy_read_register): Likewise.
635 * python/python-internal.h (gdbpy_parse_register_id): Declare.
636
637 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * python/py-registers.c: Add 'user-regs.h' include.
640 (register_descriptor_iter_find): New function.
641 (register_descriptor_iterator_object_methods): New static global
642 methods array.
643 (register_descriptor_iterator_object_type): Add pointer to methods
644 array.
645
646 2020-07-27 John Baldwin <jhb@FreeBSD.org>
647
648 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
649 for all architectures on FreeBSD 11.3 and later.
650
651 2020-07-27 Tom Tromey <tromey@adacore.com>
652
653 * gcore.h (load_corefile): Don't declare.
654
655 2020-07-27 Tom de Vries <tdevries@suse.de>
656
657 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
658 * config.in: Regenerate.
659 * configure: Regenerate.
660
661 2020-07-26 Eli Zaretskii <eliz@gnu.org>
662
663 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
664 ws2tcpip.h. When checking whether socklen_t type is defined, use
665 ws2tcpip.h if it is available and sys/socket.h isn't.
666 * configure: Regenerate.
667 * config.in: Regenerate.
668
669 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 PR fortran/23051
672 PR fortran/26139
673 * valops.c (value_ind): Pass address to
674 readjust_indirect_value_type.
675 * value.c (readjust_indirect_value_type): Make parameter
676 non-const, and add extra address parameter. Resolve original type
677 before using it.
678 * value.h (readjust_indirect_value_type): Update function
679 signature and comment.
680
681 2020-07-25 Tom de Vries <tdevries@suse.de>
682
683 PR symtab/26243
684 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
685 entries.
686
687 2020-07-24 Aaron Merey <amerey@redhat.com>
688
689 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
690 * configure: Rebuild.
691
692 2020-07-23 Kevin Buettner <kevinb@redhat.com>
693
694 PR corefiles/26294
695 * corelow.c (_initialize_corelow): Add period to help text
696 for "maintenance print core-file-backed-mappings".
697
698 2020-07-23 Pedro Alves <pedro@palves.net>
699
700 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
701 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
702 meanwhile.
703 * frame.c (frame_cache_generation, get_frame_cache_generation):
704 New.
705 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
706 (get_prev_frame_if_no_cycle): On exception, don't touch
707 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
708 * frame.h (get_frame_cache_generation): Declare.
709
710 2020-07-23 Tom de Vries <tdevries@suse.de>
711
712 PR tui/26282
713 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
714 New default constructor.
715
716 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
719 exclude non-statement entries.
720
721 2020-07-22 Kevin Buettner <kevinb@redhat.com>
722
723 * NEWS (New commands): Mention new command
724 "maintenance print core-file-backed-mappings".
725
726 2020-07-22 Kevin Buettner <kevinb@redhat.com>
727
728 * corelow.c (gdbcmd.h): Include.
729 (core_target::info_proc_mappings): New method.
730 (get_current_core_target): New function.
731 (maintenance_print_core_file_backed_mappings): New function.
732 (_initialize_corelow): Add core-file-backed-mappings to
733 "maint print" commands.
734
735 2020-07-22 Kevin Buettner <kevinb@redhat.com>
736
737 * linux-tdep.c (dump_note_entry_p): New function.
738 (linux_dump_mapping_p_ftype): New typedef.
739 (linux_find_memory_regions_full): Add new parameter,
740 should_dump_mapping_p.
741 (linux_find_memory_regions): Adjust call to
742 linux_find_memory_regions_full.
743 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
744 call to linux_find_memory_regions_full.
745
746 2020-07-22 Kevin Buettner <kevinb@redhat.com>
747
748 * corelow.c (solist.h, unordered_map): Include.
749 (class core_target): Add field m_core_file_mappings and
750 method build_file_mappings.
751 (core_target::core_target): Call build_file_mappings.
752 (core_target::~core_target): Free memory associated with
753 m_core_file_mappings.
754 (core_target::build_file_mappings): New method.
755 (core_target::xfer_partial): Use m_core_file_mappings
756 for memory transfers.
757 * linux-tdep.c (linux_read_core_file_mappings): New
758 function.
759 (linux_core_info_proc_mappings): Rewrite to use
760 linux_read_core_file_mappings.
761 (linux_init_abi): Register linux_read_core_file_mappings.
762
763 2020-07-22 Kevin Buettner <kevinb@redhat.com>
764
765 * arch-utils.c (default_read_core_file_mappings): New function.
766 * arch-utils.c (default_read_core_file_mappings): Declare.
767 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
768 * gdbarch.h, gdbarch.c: Regenerate.
769
770 2020-07-22 Kevin Buettner <kevinb@redhat.com>
771
772 PR corefiles/25631
773 * corelow.c (core_target:xfer_partial): Revise
774 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
775 case after first checking the stratum beneath the core
776 target.
777 (has_all_memory): Return true.
778 * target.c (raw_memory_xfer_partial): Revise comment
779 regarding use of has_all_memory.
780
781 2020-07-22 Kevin Buettner <kevinb@redhat.com>
782
783 * exec.h (section_table_xfer_memory): Revise declaration,
784 replacing section name parameter with an optional callback
785 predicate.
786 * exec.c (section_table_xfer_memory): Likewise.
787 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
788 of section_table_xfer_memory.
789
790 2020-07-22 Tom Tromey <tromey@adacore.com>
791
792 * mi/mi-cmd-stack.c (list_args_or_locals): Use
793 lookup_symbol_search_name.
794
795 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * python/py-registers.c (gdbpy_register_object_data_init): Remove
798 redundant local variable.
799 (gdbpy_get_register_descriptor): Extract descriptor vector as a
800 reference, not pointer, update code accordingly.
801
802 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
803 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
804
805 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
806 * jit.c (jit_breakpoint_re_set_internal): Use the
807 `skip_jit_symbol_lookup` field.
808
809 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
810 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811
812 * jit.c (jit_read_descriptor): Define the descriptor address once,
813 use twice.
814 (jit_breakpoint_deleted): Move the declaration of the loop variable
815 `iter` into the loop header.
816 (jit_breakpoint_re_set_internal): Move the declaration of the local
817 variable `objf_data` to the first point of definition.
818 (jit_event_handler): Move the declaration of local variables
819 `code_entry`, `entry_addr`, and `objf` to their first point of use.
820 Rename `objf` to `jited`.
821
822 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
825 Remove.
826 * jit.c (get_jiter_objfile_data): Update.
827
828 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
829 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * jit.c (struct jit_program_space_data): Remove.
832 (jit_program_space_key): Remove.
833 (jiter_objfile_data::~jiter_objfile_data): Remove program space
834 stuff.
835 (get_jit_program_space_data): Remove.
836 (jit_breakpoint_deleted): Iterate on all of the program space's
837 objfiles.
838 (jit_inferior_init): Likewise.
839 (jit_breakpoint_re_set_internal): Likewise. Also change return
840 type to void.
841 (jit_breakpoint_re_set): Pass current_program_space to
842 jit_breakpoint_re_set_internal.
843
844 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * jit.h (struct jiter_objfile_data) <cached_code_address,
847 jit_breakpoint>: Move to here from ...
848 * jit.c (jit_program_space_data): ... here.
849 (jiter_objfile_data::~jiter_objfile_data): Update.
850 (jit_breakpoint_deleted): Update.
851 (jit_breakpoint_re_set_internal): Update.
852
853 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
854
855 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
856 checks.
857 (jit_read_descriptor): Remove NULL check.
858 (jit_event_handler): Add an assertion.
859
860 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * jit.h (struct jit_objfile_data): Split into...
863 (struct jiter_objfile_data): ... this ...
864 (struct jited_objfile_data): ... and this.
865 * objfiles.h (struct objfile) <jit_data>: Remove.
866 <jiter_data, jited_data>: New fields.
867 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
868 (jiter_objfile_data::~jiter_objfile_data): ... this.
869 (get_jit_objfile_data): Rename to ...
870 (get_jiter_objfile_data): ... this.
871 (add_objfile_entry): Update.
872 (jit_read_descriptor): Use get_jiter_objfile_data.
873 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
874 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
875 (jit_inferior_exit_hook): Use objfile's jited_data field.
876
877 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * jit.h: Forward-declare `struct minimal_symbol`.
880 (struct jit_objfile_data): Migrate to here from jit.c; also add a
881 constructor, destructor, and an objfile* field.
882 * jit.c (jit_objfile_data): Remove.
883 (struct jit_objfile_data): Migrate from here to jit.h.
884 (jit_objfile_data::~jit_objfile_data): New destructor
885 implementation with code moved from free_objfile_data.
886 (free_objfile_data): Delete.
887 (get_jit_objfile_data): Update to use the jit_data field of objfile.
888 (jit_find_objf_with_entry_addr): Ditto.
889 (jit_inferior_exit_hook): Ditto.
890 (_initialize_jit): Remove the call to
891 register_objfile_data_with_cleanup.
892 * objfiles.h (struct objfile) <jit_data>: New field.
893
894 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895
896 * jit.h: Forward-declare `struct objfile`.
897 (jit_event_handler): Add a second parameter, the JITer objfile.
898 * jit.c (jit_read_descriptor): Change the signature to take the
899 JITer objfile as an argument instead of the jit_program_space_data.
900 (jit_inferior_init): Update the call to jit_read_descriptor.
901 (jit_event_handler): Use the new JITer objfile argument when calling
902 jit_read_descriptor.
903 * breakpoint.c (handle_jit_event): Update the call to
904 jit_event_handler to pass the JITer objfile.
905
906 2020-07-21 John Baldwin <jhb@FreeBSD.org>
907
908 * gdbarch.c: Regenerate.
909 * gdbarch.h: Regenerate.
910 * gdbarch.sh (handle_segmentation_fault): Remove method.
911 * infrun.c (handle_segmentation_fault): Remove.
912 (print_signal_received_reason): Remove call to
913 handle_segmentation_fault.
914
915 2020-07-21 John Baldwin <jhb@FreeBSD.org>
916
917 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
918 Rename to sparc64_linux_report_signal_info and add siggnal
919 argument.
920 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
921 instead of sparc64_linux_handle_segmentation_fault.
922
923 2020-07-21 John Baldwin <jhb@FreeBSD.org>
924
925 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
926 i386_linux_report_signal_info instead of
927 i386_linux_handle_segmentation_fault.
928 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
929 to i386_linux_report_signal_info and add siggnal argument.
930 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
931 of i386_linux_handle_segmentation_fault.
932 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
933 to i386_linux_report_signal_info and add siggnal argument.
934
935 2020-07-21 John Baldwin <jhb@FreeBSD.org>
936
937 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
938 hook if present.
939
940 2020-07-21 John Baldwin <jhb@FreeBSD.org>
941
942 * gdbarch.c: Regenerate.
943 * gdbarch.h: Regenerate.
944 * gdbarch.sh (report_signal_info): New method.
945 * infrun.c (print_signal_received_reason): Invoke gdbarch
946 report_signal_info hook if present.
947
948 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
949
950 * python/py-registers.c : Add 'unordered_map' include.
951 (gdbpy_new_reggroup): Renamed to...
952 (gdbpy_get_reggroup): ...this. Update to only create register
953 group descriptors when needed.
954 (gdbpy_reggroup_iter_next): Update.
955
956 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * python/py-registers.c (gdbpy_register_object_data): New static
959 global.
960 (gdbpy_register_object_data_init): New function.
961 (gdbpy_new_register_descriptor): Renamed to...
962 (gdbpy_get_register_descriptor): ...this, and update to reuse
963 existing register descriptors where possible.
964 (gdbpy_register_descriptor_iter_next): Update.
965 (gdbpy_initialize_registers): Register new gdbarch data.
966
967 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
968
969 * linux-nat.c (stopped_pids): Make static.
970
971 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
972
973 PR ada/26235
974 * gdbtypes.c (ada_discrete_type_low_bound,
975 ada_discrete_type_high_bound): Handle undefined bounds.
976
977 2020-07-21 Kamil Rytarowski <n54@gmx.com>
978
979 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
980 declaration.
981 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
982 function.
983
984 2020-07-20 John Baldwin <jhb@FreeBSD.org>
985
986 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
987 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
988 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
989 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
990 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
991 method.
992
993 2020-07-20 Ludovic Courtès <ludo@gnu.org>
994
995 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
996 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
997 which are deprecated in Guile 3.0.
998 * configure.ac (try_guile_versions): Add "guile-3.0".
999 * configure (try_guile_versions): Regenerate.
1000 * NEWS: Update entry.
1001
1002 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1003 Doug Evans <dje@google.com>
1004
1005 PR gdb/21104
1006 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1007 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1008 USING_GUILE_BEFORE_2_2.
1009 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1010 Change type to 'scm_t_port_type *'.
1011 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1012 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1013 parameter and honor it. Update callers.
1014 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1015 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1016 functions.
1017 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1018 USING_GUILE_BEFORE_2_2.
1019 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1020 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1021 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1022 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1023 and 'SCM_PORT_TYPE'.
1024 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1025 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1026 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1027 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1028 [!USING_GUILE_BEFORE_2_2]: New functions.
1029 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1030 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1031 'gdbscm_memory_port_read'.
1032 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1033 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1034 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1035 function.
1036 (ioscm_init_memory_port): Remove.
1037 (ioscm_init_memory_port_stream): New function
1038 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1039 function.
1040 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1041 Return scm_from_uint (0).
1042 (gdbscm_set_memory_port_read_buffer_size_x)
1043 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1044 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1045 Return scm_from_uint (0).
1046 (gdbscm_set_memory_port_write_buffer_size_x)
1047 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1048 * configure.ac (try_guile_versions): Add "guile-2.2".
1049 * configure: Regenerate.
1050 * NEWS: Add entry.
1051
1052 2020-07-18 Tom Tromey <tom@tromey.com>
1053
1054 * linux-nat.c (linux_multi_process): Remove.
1055 (linux_nat_target::supports_multi_process): Return true.
1056
1057 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1060 (riscv_lookup_target_description): Return pointer out of
1061 unique_ptr.
1062 * target-descriptions.c (allocate_target_description): Add
1063 comment.
1064 (target_desc_deleter::operator()): Likewise.
1065 * target-descriptions.h (struct target_desc_deleter): Moved to
1066 gdbsupport/tdesc.h.
1067 (target_desc_up): Likewise.
1068
1069 2020-07-17 Tom Tromey <tromey@adacore.com>
1070
1071 * linux-nat.c (linux_nat_target::supports_non_stop)
1072 (linux_nat_target::always_non_stop_p): Use "true".
1073 (linux_nat_target::supports_disable_randomization): Use "true" and
1074 "false".
1075
1076 2020-07-16 Caroline Tice <cmtice@google.com>
1077
1078 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1079 (RNGLIST_HEADER_SIZE64): New constant definition.
1080 (struct dwop_section_names): Add rnglists_dwo.
1081 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1082 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1083 (struct dwo_sections): Add rnglists field.
1084 (read_attribut_reprocess): Add tag parameter.
1085 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1086 (cu_debug_rnglists_section): New function (decl & definition).
1087 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1088 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1089 die whose range is being checked; get rnglist section from
1090 cu_debug_rnglists_section, to get from either objfile or dwo file as
1091 appropriate. Add cases for DW_RLE_base_addressx,
1092 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1093 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1094 test inside if-condition and updating complaint message.
1095 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1096 dwarf2_rnglists_process.
1097 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1098 dwarf2_ranges_process.
1099 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1100 need_ranges_base and update comment appropriately. Also pass die tag
1101 to dwarf2_ranges_read.
1102 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1103 need_ranges_base and update comment appropriately. Also pass die tag
1104 to dwarf2_ranges_process.
1105 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1106 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1107 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1108 need_ranges_base and update comment appropriately. Also pass die tag
1109 to read_attribute_reprocess and dwarf2_ranges_read.
1110 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1111 and update function comment appropriately.
1112 (read_loclist_index): Call read_loclists_rnglists_header instead of
1113 read_loclist_header.
1114 (read_rnglist_index): New function.
1115 (read_attribute_reprocess): Add tag parameter. Add code for
1116 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1117 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1118
1119 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1122 being resolved.
1123
1124 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * arch-utils.c (show_architecture): Update formatting of messages.
1127
1128 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * gdbtypes.h (struct type) <bounds>: Handle array and string
1131 types.
1132 * ada-lang.c (assign_aggregate): Use type::bounds on
1133 array/string type.
1134 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1135 * c-varobj.c (c_number_of_children): Likewise.
1136 (c_describe_child): Likewise.
1137 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1138 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1139 (f_type_print_base): Likewise.
1140 * f-valprint.c (f77_array_offset_tbl): Likewise.
1141 (f77_get_upperbound): Likewise.
1142 (f77_print_array_1): Likewise.
1143 * guile/scm-type.c (gdbscm_type_range): Likewise.
1144 * m2-typeprint.c (m2_array): Likewise.
1145 (m2_is_long_set_of_type): Likewise.
1146 * m2-valprint.c (get_long_set_bounds): Likewise.
1147 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1148 * python/py-type.c (typy_range): Likewise.
1149 * rust-lang.c (rust_internal_print_type): Likewise.
1150 * type-stack.c (type_stack::follow_types): Likewise.
1151 * valarith.c (value_subscripted_rvalue): Likewise.
1152 * valops.c (value_cast): Likewise.
1153
1154 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1157 callers to use the equivalent accessor methods.
1158
1159 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1162 (struct type) <bit_stride>: New method.
1163 (TYPE_BIT_STRIDE): Remove.
1164 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1165
1166 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1167
1168 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1169 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1170 callers to use the equivalent accessor methods instead.
1171
1172 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1173
1174 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1175 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1176 callers to use the equivalent accessor methods instead.
1177
1178 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1179
1180 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1181 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1182 to use dynamic_prop::kind.
1183
1184 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1185
1186 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1187 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1188 to get the bound property's kind and check against
1189 PROP_UNDEFINED.
1190
1191 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1194 all callers to use type::range_bounds followed by
1195 dynamic_prop::{low,high}.
1196
1197 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1200 const_val, set_const_val, baton, set_locexpr, set_loclist,
1201 set_addr_offset, variant_parts, set_variant_parts,
1202 original_type, set_original_type>: New methods.
1203 <kind>: Rename to...
1204 <m_kind>: ... this. Update all users to use the new methods
1205 instead.
1206 <data>: Rename to...
1207 <m_data>: ... this. Update all users to use the new methods
1208 instead.
1209
1210 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * gdbtypes.c (get_discrete_bounds): Return failure if
1213 the range type's bounds are not both defined and constant
1214 values.
1215 (get_array_bounds): Update comment. Remove undefined bound check.
1216
1217 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1220 the type::bounds method directly.
1221
1222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1225 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1226 are used to set the range type's bounds to use set_bounds.
1227
1228 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1229
1230 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1231
1232 2020-07-10 Pedro Alves <pedro@palves.net>
1233
1234 * gdbthread.h (inferior_ref): Define.
1235 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1236 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1237 * thread.c
1238 (scoped_restore_current_thread::restore):
1239 Adjust to gdb::ref_ptr.
1240 (scoped_restore_current_thread::~scoped_restore_current_thread):
1241 Remove manual decref handling.
1242 (scoped_restore_current_thread::scoped_restore_current_thread):
1243 Adjust to use
1244 inferior_ref::new_reference/thread_info_ref::new_reference.
1245 Incref the thread before calling get_frame_id instead of after.
1246 Let TARGET_CLOSE_ERROR propagate.
1247
1248 2020-07-10 Pedro Alves <pedro@palves.net>
1249
1250 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1251 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1252 NOT_AVAILABLE_ERROR.
1253 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1254 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1255
1256 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1257 Pedro Alves <pedro@palves.net>
1258
1259 PR gdb/26199
1260 * infrun.c (threads_are_resumed_pending_p): Delete.
1261 (do_target_wait): Remove threads_are_executing and
1262 threads_are_resumed_pending_p checks from the inferior_matches
1263 lambda. Update comments.
1264
1265 2020-07-10 Pedro Alves <pedro@palves.net>
1266
1267 PR gdb/26199
1268 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1269 executing threads.
1270
1271 2020-07-10 Pedro Alves <pedro@palves.net>
1272
1273 PR gdb/26199
1274 * infrun.c (handle_no_resumed): Handle multiple targets.
1275
1276 2020-07-10 Pedro Alves <pedro@palves.net>
1277
1278 PR gdb/26199
1279 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1280 target_is_async_p.
1281
1282 2020-07-10 Pedro Alves <pedro@palves.net>
1283
1284 PR gdb/26199
1285 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1286 threads, not all threads.
1287
1288 2020-07-10 Pedro Alves <pedro@palves.net>
1289
1290 PR gdb/26199
1291 * remote.c (remote_target::open_1): Pass remote target pointer as
1292 data to create_async_event_handler.
1293 (remote_async_inferior_event_handler): Mark async event handler
1294 before returning if the remote target still has either pending
1295 events or unacknowledged notifications.
1296
1297 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1298
1299 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1300 declaration.
1301 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1302 function.
1303
1304 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1305
1306 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1307 inferior_ptid.
1308
1309 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1310
1311 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1312 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1313 AT_FREEBSD_PS_STRINGS.
1314
1315 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1316
1317 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1318 of debugfile path on Windows.
1319
1320 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1321
1322 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1323 argument to 'data'.
1324
1325 2020-07-08 Tom Tromey <tromey@adacore.com>
1326
1327 * ada-lang.c (ada_exception_message_1): Use read_memory.
1328
1329 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 PR python/22748
1332 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1333 special handling for inline frames.
1334 * findvar.c (value_of_register_lazy): Skip inline frames when
1335 creating lazy register values.
1336 * frame.c (frame_id_computed_p): Delete definition.
1337 * frame.h (frame_id_computed_p): Delete declaration.
1338
1339 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * NEWS: Mention additions to Python API.
1342 * python/py-arch.c (archpy_register_groups): New function.
1343 (arch_object_methods): Add 'register_groups' method.
1344 * python/py-registers.c (reggroup_iterator_object): New struct.
1345 (reggroup_object): New struct.
1346 (gdbpy_new_reggroup): New function.
1347 (gdbpy_reggroup_to_string): New function.
1348 (gdbpy_reggroup_name): New function.
1349 (gdbpy_reggroup_iter): New function.
1350 (gdbpy_reggroup_iter_next): New function.
1351 (gdbpy_new_reggroup_iterator): New function
1352 (gdbpy_initialize_registers): Register new types.
1353 (reggroup_iterator_object_type): Define new Python type.
1354 (gdbpy_reggroup_getset): New static global.
1355 (reggroup_object_type): Define new Python type.
1356 * python/python-internal.h
1357
1358 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1361 * python/py-arch.c (archpy_registers): New function.
1362 (arch_object_methods): Add 'registers' method.
1363 * python/py-registers.c: New file.
1364 * python/python-internal.h
1365 (gdbpy_new_register_descriptor_iterator): Declare.
1366 (gdbpy_initialize_registers): Declare.
1367 * python/python.c (do_start_initialization): Call
1368 gdbpy_initialize_registers.
1369 * NEWS: Mention additions to the Python API.
1370
1371 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * NEWS: Mention new Python API method.
1374 * python/py-unwind.c (pending_framepy_architecture): New function.
1375 (pending_frame_object_methods): Add architecture method.
1376
1377 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1378
1379 * gdbarch.c: Regenerate.
1380 * gdbarch.h: Regenerate.
1381 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1382 (gdbarch_data): Use internal_error for the case where
1383 deprecated_set_gdbarch_data was originally needed.
1384 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1385 and use passed in obstack.
1386 (libunwind_frame_set_descr): Should no longer get back NULL from
1387 gdbarch_data.
1388 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1389 type.
1390 * user-regs.c (user_regs_init): Update parameters, and use passed
1391 in obstack.
1392 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1393 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1394
1395 2020-07-06 Tom de Vries <tdevries@suse.de>
1396
1397 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1398 End-Of-Sequence in lte_is_less_than.
1399 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1400 "gdb: Don't reorder line table entries too much when sorting".
1401
1402 2020-07-06 Tom de Vries <tdevries@suse.de>
1403
1404 PR tui/26205
1405 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1406
1407 2020-07-05 Tom de Vries <tdevries@suse.de>
1408
1409 PR build/26187
1410 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1411 std::uncaught_exceptions instead of deprecated
1412 std::uncaught_exception.
1413
1414 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * macroexp.h (macro_stringify): Return
1417 gdb::unique_xmalloc_ptr<char>.
1418 * macroexp.c (macro_stringify): Likewise.
1419 * macrotab.c (fixup_definition): Update.
1420
1421 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1424 (lex_one_token): Update.
1425 * macroexp.c (struct macro_buffer) <release>: Return
1426 gdb::unique_xmalloc_ptr<char>.
1427 (macro_stringify): Update.
1428 (macro_expand): Update.
1429 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1430 * macroexp.h (macro_expand_next): Likewise.
1431
1432 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1433
1434 * macroexp.h (macro_lookup_ftype): Remove.
1435 (macro_expand, macro_expand_once, macro_expand_next): Remove
1436 lookup function parameters, add scope parameter.
1437 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1438 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1439 * macroscope.h (standard_macro_lookup): Change parameter type
1440 to macro_scope.
1441 * macroscope.c (standard_macro_lookup): Likewise.
1442 * c-exp.y (lex_one_token): Update.
1443 * macrocmd.c (macro_expand_command): Likewise.
1444 (macro_expand_once_command): Likewise.
1445
1446 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * inf-loop.c (inferior_event_handler): Remove client_data param.
1449 * inf-loop.h (inferior_event_handler): Likewise.
1450 * infcmd.c (step_1): Adjust.
1451 * infrun.c (proceed): Adjust.
1452 (fetch_inferior_event): Remove client_data param.
1453 (infrun_async_inferior_event_handler): Adjust.
1454 * infrun.h (fetch_inferior_event): Remove `void *` param.
1455 * linux-nat.c (handle_target_event): Adjust.
1456 * record-btrace.c (record_btrace_handle_async_inferior_event):
1457 Adjust.
1458 * record-full.c (record_full_async_inferior_event_handler):
1459 Adjust.
1460 * remote.c (remote_async_inferior_event_handler): Adjust.
1461
1462 2020-07-01 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1465 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1466
1467 2020-07-01 Tom Tromey <tom@tromey.com>
1468
1469 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1470 tui_gen_win_info.
1471 (tui_win_info::make_window): Merge with
1472 tui_gen_win_info::make_window.
1473 (tui_win_info::make_visible): Move from tui_gen_win_info.
1474 * tui/tui-win.c (tui_win_info::max_width): Move from
1475 tui_gen_win_info.
1476 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1477 type.
1478 <window_factory>: Likewise.
1479 * tui/tui-layout.c (tui_win_info::resize): Move from
1480 tui_gen_win_info.
1481 (make_standard_window): Change return type.
1482 (get_locator_window, tui_get_window_by_name): Likewise.
1483 (tui_layout_window::apply): Remove a cast.
1484 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1485 (struct tui_win_info): Merge with tui_gen_win_info.
1486 (struct tui_gen_win_info): Remove.
1487
1488 2020-07-01 Tom Tromey <tom@tromey.com>
1489
1490 * tui/tui-stack.h (struct tui_locator_window): Derive from
1491 tui_win_info.
1492 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1493 <can_box>: New method.
1494
1495 2020-07-01 Tom Tromey <tom@tromey.com>
1496
1497 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1498
1499 2020-07-01 Tom Tromey <tom@tromey.com>
1500
1501 * tui/tui-regs.c (tui_data_window::display_registers_from)
1502 (tui_data_window::display_registers_from)
1503 (tui_data_window::first_data_item_displayed)
1504 (tui_data_window::delete_data_content_windows): Update.
1505 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1506 Remove.
1507 (tui_data_window::check_register_values): Update.
1508 (tui_data_item_window::rerender): Add parameters. Update.
1509 (tui_data_item_window::refresh_window): Remove.
1510 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1511 virtual.
1512 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1513 tui_gen_win_info.
1514 <refresh_window, max_height, min_height>: Remove.
1515 <rerender>: Add parameters.
1516 <x, y, visible>: New members.
1517 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1518 <m_item_width>: New member.
1519
1520 2020-07-01 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-regs.c (tui_data_window::show_register_group)
1523 (tui_data_window::check_register_values): Update.
1524 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1525 from item_no.
1526
1527 2020-07-01 Tom Tromey <tom@tromey.com>
1528
1529 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1530 useless "if".
1531
1532 2020-07-01 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1535 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1536
1537 2020-07-01 Tom Tromey <tom@tromey.com>
1538
1539 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1540 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1541 (struct tui_line_or_address): Move from tui-data.h.
1542 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1543 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1544 (tui_cmd_window, tui_source_window_base, tui_source_window)
1545 (tui_disasm_window): Don't declare.
1546 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1547 to tui-winsource.h.
1548 (SINGLE_KEY): Move to tui-stack.c.
1549
1550 2020-07-01 Tom Tromey <tom@tromey.com>
1551
1552 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1553 std::string.
1554 * tui/tui-regs.c (class tab_expansion_file): New.
1555 (tab_expansion_file::write): New method.
1556 (tui_register_format): Change return type. Use
1557 tab_expansion_file.
1558 (tui_get_register, tui_data_window::display_registers_from)
1559 (tui_data_item_window::rerender): Update.
1560 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1561 * tui/tui-io.c (tui_expand_tabs): Remove.
1562
1563 2020-07-01 Tom Tromey <tom@tromey.com>
1564
1565 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1566
1567 2020-07-01 Fangrui Song <maskray@google.com>
1568
1569 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1570
1571 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1572
1573 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1574 forms for DW_AT_associated and DW_AT_allocated attributes,
1575 which is already checked in function attr_to_dynamic_prop.
1576
1577 2020-06-30 Tom Tromey <tromey@adacore.com>
1578
1579 * dwarf2/read.c (quirk_rust_enum): Correctly call
1580 alloc_rust_variant for default-less enum.
1581
1582 2020-06-30 Tom Tromey <tromey@adacore.com>
1583
1584 PR build/26183:
1585 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1586 gdb::to_string.
1587
1588 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1591 * gdbarch.h: Re-generate.
1592
1593 2020-06-28 Tom Tromey <tom@tromey.com>
1594
1595 * command.h (cmd_types): Remove.
1596 (cmd_type): Don't declare.
1597 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1598 typedef.
1599 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1600 * cli/cli-decode.c (cmd_type): Remove.
1601
1602 2020-06-27 Pedro Alves <palves@redhat.com>
1603
1604 * fork-child.c (prefork_hook): Adjust.
1605 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1606 Delete.
1607 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1608 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1609 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1610 Remove declarations.
1611 (struct inferior) <set_tty, tty>: New methods.
1612 (struct inferior) <terminal>: Rename to ...
1613 (struct inferior) <m_terminal>: ... this and make private.
1614 * main.c (captured_main_1): Adjust.
1615 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1616 (mi_cmd_inferior_tty_show): Adjust.
1617 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1618 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1619
1620 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1621
1622 * configure.ac: Add --enable-libctf: handle --disable-static
1623 properly.
1624 * acinclude.m4: sinclude ../config/enable.m4.
1625 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1626 (LIBCTF): Substitute in.
1627 (CTF_DEPS): New, likewise.
1628 (CLIBS): libctf needs symbols from libbfd: move earlier.
1629 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1630 flags.
1631 * ctfread.c: Surround in ENABLE_LIBCTF.
1632 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1633 * configure: Regenerate.
1634 * config.in: Likewise.
1635
1636 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1639
1640 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * inferior.h (struct inferior) <terminal>: Change type to
1643 gdb::unique_xmalloc_ptr<char>.
1644 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1645 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1646 field, adjust to unique pointer.
1647 (get_inferior_io_terminal): Adjust to unique pointer.
1648
1649 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1652 registers, not just the known core set of registers.
1653
1654 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1657 fflags, frm, and fcsr registers.
1658 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1659 restore groups.
1660 (riscv_tdesc_unknown_reg): New function.
1661 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1662 tdesc_use_registers.
1663 * riscv-tdep.h (struct gdbarch_tdep): Add
1664 unknown_csrs_first_regnum, unknown_csrs_count,
1665 duplicate_fflags_regnum, duplicate_frm_regnum, and
1666 duplicate_fcsr_regnum fields.
1667
1668 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1671 callback, use the callback (when not null) to help number unknown
1672 registers.
1673 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1674 (tdesc_use_registers): Add extra parameter to declaration.
1675
1676 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1679 in the file.
1680 (class riscv_pending_register_alias): Likewise.
1681 (riscv_register_feature::register_info): Change 'required_p' field
1682 to 'required', and change its type. Add 'check' member function.
1683 (riscv_register_feature::register_info::check): Define new member
1684 function.
1685 (riscv_xreg_feature): Change initialisation of 'required' field.
1686 (riscv_freg_feature): Likewise.
1687 (riscv_virtual_feature): Likewise.
1688 (riscv_csr_feature): Likewise.
1689 (riscv_check_tdesc_feature): Take extra parameter, the csr
1690 tdesc_feature, rewrite the function to use the new
1691 riscv_register_feature::register_info::check function.
1692 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1693
1694 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * features/Makefile: Remove all references to the deleted files
1697 below.
1698 * features/riscv/32bit-csr.c: Deleted.
1699 * features/riscv/32bit-csr.xml: Deleted.
1700 * features/riscv/64bit-csr.c: Deleted.
1701 * features/riscv/64bit-csr.xml: Deleted.
1702 * features/riscv/rebuild-csr-xml.sh: Deleted.
1703
1704 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1707 whitespace error for declaration of names member variable.
1708 (struct riscv_register_feature): Add new prefer_first_name member
1709 variable, and fix whitespace error in declaration of registers.
1710 (riscv_xreg_feature): Initialize prefer_first_name field.
1711 (riscv_freg_feature): Likewise.
1712 (riscv_virtual_feature): Likewise.
1713 (riscv_csr_feature): Likewise.
1714 (riscv_register_name): Expand on comments. Remove register name
1715 modifications for CSR and virtual registers.
1716
1717 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1718
1719 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1720 errors.
1721
1722 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1725 riscv-opc.h.
1726 (class riscv_pending_register_alias): New class.
1727 (riscv_check_tdesc_feature): Take vector of pending aliases and
1728 populate it as appropriate.
1729 (riscv_setup_register_aliases): Delete.
1730 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1731 to riscv_check_tdesc_feature in all cases. Use the vector to
1732 create the register aliases.
1733
1734 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1735
1736 * sol2-tdep.c (sol2_static_transform_name): Remove.
1737 (sol2_init_abi): Don't register it.
1738 * gdbarch.sh (static_transform_name): Remove.
1739 * gdbarch.c, gdbarch.h: Regenerate.
1740
1741 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1742 gdbarch_static_transform_name.
1743 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1744 * stabsread.c (define_symbol) <'X'>: Remove.
1745 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1746 handling.
1747 <'V'>: Likewise.
1748 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1749 <'S'>: Remove call to gdbarch_static_transform_name.
1750
1751 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752
1753 * procfs.c (procfs_pre_trace): New function.
1754 (procfs_target::create_inferior): Pass it to fork_inferior.
1755
1756 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1757
1758 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1759 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1760 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1761 sol2-tdep.o, sparc-sol2-tdep.o.
1762 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1763 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1764 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1765 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1766
1767 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1768
1769 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1770 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1771 Call sol2_init_abi.
1772 Remove calls to set_gdbarch_skip_solib_resolver,
1773 set_gdbarch_core_pid_to_str.
1774 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1775 (i386_sol2_static_transform_name): Remove.
1776 (i386_sol2_init_abi): Call sol2_init_abi.
1777 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1778 set_gdbarch_static_transform_name,
1779 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1780 Use sol2_sigtramp_p.
1781 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1782 (sol2_sigtramp_p): New function.
1783 (sol2_static_transform_name): New function.
1784 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1785 (sol2_init_abi): New function.
1786 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1787 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1788 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1789 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1790 (sparc_sol2_static_transform_name): Remove.
1791 (sparc32_sol2_init_abi): Call sol2_init_abi.
1792 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1793 set_gdbarch_static_transform_name,
1794 set_gdbarch_skip_solib_resolver,
1795 set_gdbarch_core_pid_to_str.
1796 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1797 (sparc_sol2_static_transform_name): Remove
1798 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1799 call sol2_sigtramp_p.
1800 (sparc64_sol2_init_abi): Call sol2_init_abi.
1801 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1802 set_gdbarch_static_transform_name,
1803 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1804
1805 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1806
1807 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1808 * exec.c (validate_exec_file): If from_tty, set both
1809 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1810 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1811 and from_tty, unconditionally ask a confirmation.
1812
1813 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * target-descriptions.c (tdesc_architecture_name): Protect against
1816 NULL pointer dereference.
1817 (maint_print_xml_tdesc_cmd): New function.
1818 (_initialize_target_descriptions): Register new 'maint print
1819 xml-tdesc' command and give it the filename completer.
1820 * NEWS: Mention new 'maint print xml-tdesc' command.
1821
1822 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1823
1824 * target-descriptions.c (class tdesc_compatible_info): New class.
1825 (struct target_desc): Change type of compatible vector.
1826 (tdesc_compatible_p): Update for change in type of
1827 target_desc::compatible.
1828 (tdesc_compatible_info_list): New function.
1829 (tdesc_compatible_info_arch_name): New function.
1830 (tdesc_add_compatible): Update for change in type of
1831 target_desc::compatible.
1832 (print_c_tdesc::visit_pre): Likewise.
1833
1834 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1837 whitespace to underscore.
1838 (maint_print_c_tdesc_cmd): Use fake filename for target
1839 descriptions that came from the target.
1840 (_initialize_target_descriptions): Add filename command completion
1841 for 'maint print c-tdesc'.
1842
1843 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1844
1845 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1846 lines.
1847
1848 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1851 lines.
1852 (dwarf2_find_location_expression): Likewise.
1853 (call_site_parameter_matches): Likewise.
1854 (dwarf2_compile_expr_to_ax): Likewise.
1855 (disassemble_dwarf_expression): Likewise.
1856 (loclist_describe_location): Likewise.
1857
1858 2020-06-23 Pedro Alves <palves@redhat.com>
1859
1860 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1861 progspace-and-thread.h. Include scoped-mock-context.h instead.
1862 (register_to_value_test): Use scoped_mock_context.
1863 * regcache.c: Include "scoped-mock-context.h".
1864 (cooked_read_test): Don't error out if a target is already pushed.
1865 Use scoped_mock_context. Adjust.
1866 * scoped-mock-context.h: New file.
1867
1868 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1871 initializer.
1872 (ada_language::is_string_type_p): New member function.
1873 * c-lang.c (c_language_data): Delete la_is_string_type_p
1874 initializer.
1875 (cplus_language_data): Likewise.
1876 (asm_language_data): Likewise.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 * f-lang.c (f_is_string_type_p): Delete function, implementation
1880 moved to f_language::is_string_type_p.
1881 (f_language_data): Delete la_is_string_type_p initializer.
1882 (f_language::is_string_type_p): New member function,
1883 implementation from f_is_string_type_p.
1884 * go-lang.c (go_is_string_type_p): Delete function, implementation
1885 moved to go_language::is_string_type_p.
1886 (go_language_data): Delete la_is_string_type_p initializer.
1887 (go_language::is_string_type_p): New member function,
1888 implementation from go_is_string_type_p.
1889 * language.c (language_defn::is_string_type_p): Define new member
1890 function.
1891 (default_is_string_type_p): Make static, add comment copied from
1892 header file.
1893 (unknown_language_data): Delete la_is_string_type_p initializer.
1894 (unknown_language::is_string_type_p): New member function.
1895 (auto_language_data): Delete la_is_string_type_p initializer.
1896 (auto_language::is_string_type_p): New member function.
1897 * language.h (language_data): Delete la_is_string_type_p field.
1898 (language_defn::is_string_type_p): Declare new function.
1899 (default_is_string_type_p): Delete desclaration, move comment to
1900 definition.
1901 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1902 moved to m2_language::is_string_type_p.
1903 (m2_language_data): Delete la_is_string_type_p initializer.
1904 (m2_language::is_string_type_p): New member function,
1905 implementation from m2_is_string_type_p.
1906 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1907 initializer.
1908 * opencl-lang.c (opencl_language_data): Likewise.
1909 * p-lang.c (pascal_is_string_type_p): Delete function,
1910 implementation moved to pascal_language::is_string_type_p.
1911 (pascal_language_data): Delete la_is_string_type_p initializer.
1912 (pascal_language::is_string_type_p): New member function,
1913 implementation from pascal_is_string_type_p.
1914 * rust-lang.c (rust_is_string_type_p): Delete function,
1915 implementation moved to rust_language::is_string_type_p.
1916 (rust_language_data): Delete la_is_string_type_p initializer.
1917 (rust_language::is_string_type_p): New member function,
1918 implementation from rust_is_string_type_p.
1919 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1920 is_string_type_p.
1921
1922 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * ada-lang.c (ada_language_data): Delete la_print_typedef
1925 initializer.
1926 (ada_language::print_typedef): New member function.
1927 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1928 (cplus_language_data): Likewise.
1929 (asm_language_data): Likewise.
1930 (minimal_language_data): Likewise.
1931 * d-lang.c (d_language_data): Likewise.
1932 * f-lang.c (f_language_data): Likewise.
1933 (f_language::print_typedef): New member function.
1934 * go-lang.c (go_language_data): Delete la_print_typedef
1935 initializer.
1936 * language.c (language_defn::print_typedef): Define member
1937 function.
1938 (unknown_language_data): Delete la_print_typedef initializer.
1939 (unknown_language::print_typedef): New member function.
1940 (auto_language_data): Delete la_print_typedef initializer.
1941 (auto_language::print_typedef): New member function.
1942 * language.h (language_data): Delete la_print_typedef field.
1943 (language_defn::print_typedef): Declare new member function.
1944 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1945 (default_print_typedef): Delete declaration.
1946 * m2-lang.c (m2_language_data): Delete la_print_typedef
1947 initializer.
1948 (m2_language::print_typedef): New member function.
1949 * objc-lang.c (objc_language_data): Delete la_print_typedef
1950 initializer.
1951 * opencl-lang.c (opencl_language_data): Likewise.
1952 * p-lang.c (pascal_language_data): Likewise.
1953 (pascal_language::print_typedef): New member function.
1954 * rust-lang.c (rust_print_typedef): Delete function,
1955 implementation moved to rust_language::print_typedef.
1956 (rust_language): Delete la_print_typedef initializer.
1957 (rust_language::print_typedef): New member function,
1958 implementation from rust_print_typedef.
1959 * typeprint.c (default_print_typedef): Delete.
1960
1961 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1964 (ada_language::printstr): New member function.
1965 * c-lang.c (c_language_data): Delete la_printstr initializer.
1966 (cplus_language_data): Likewise.
1967 (asm_language_data): Likewise.
1968 (minimal_language_data): Likewise.
1969 * d-lang.c (d_language_data): Likewise.
1970 * f-lang.c (f_printstr): Rename to f_language::printstr.
1971 (f_language_data): Delete la_printstr initializer.
1972 (f_language::printstr): New member function, implementation from
1973 f_printstr.
1974 * go-lang.c (go_language_data): Delete la_printstr initializer.
1975 * language.c (language_defn::printstr): Define new member
1976 function.
1977 (unk_lang_printstr): Delete.
1978 (unknown_language_data): Delete la_printstr initializer.
1979 (unknown_language::printstr): New member function.
1980 (auto_language_data): Delete la_printstr initializer.
1981 (auto_language::printstr): New member function.
1982 * language.h (language_data): Delete la_printstr field.
1983 (language_defn::printstr): Declare new member function.
1984 (LA_PRINT_STRING): Update call to printstr.
1985 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1986 (m2_language_data): Delete la_printstr initializer.
1987 (m2_language::printstr): New member function, implementation from
1988 m2_printstr.
1989 * objc-lang.c (objc_language_data): Delete la_printstr
1990 initializer.
1991 * opencl-lang.c (opencl_language_data): Likewise.
1992 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1993 (pascal_language_data): Delete la_printstr initializer.
1994 (pascal_language::printstr): New member function, implementation
1995 from pascal_printstr.
1996 * p-lang.h (pascal_printstr): Delete declaration.
1997 * rust-lang.c (rust_printstr): Update header comment.
1998 (rust_language_data): Delete la_printstr initializer.
1999 (rust_language::printstr): New member function.
2000
2001 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2004 (ada_language::printchar): New member function.
2005 * c-lang.c (c_language_data): Delete la_printchar initializer.
2006 (cplus_language_data): Likewise.
2007 (asm_language_data): Likewise.
2008 (minimal_language_data): Likewise.
2009 * d-lang.c (d_language_data): Likewise.
2010 * f-lang.c (f_printchar): Rename to f_language::printchar.
2011 (f_language_data): Delete la_printchar initializer.
2012 (f_language::printchar): New member function, implementation from
2013 f_printchar.
2014 * go-lang.c (go_language_data): Delete la_printchar initializer.
2015 * language.c (unk_lang_printchar): Delete.
2016 (language_defn::printchar): Define new member function.
2017 (unknown_language_data): Delete la_printchar initializer.
2018 (unknown_language::printchar): New member function.
2019 (auto_language_data): Delete la_printchar initializer.
2020 (auto_language::printchar): New member function.
2021 * language.h (language_data): Delete la_printchar field.
2022 (language_defn::printchar): Declare new member function.
2023 (LA_PRINT_CHAR): Update call to printchar.
2024 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2025 (m2_language::printchar): New member function.
2026 * objc-lang.c (objc_language_data): Delete la_printchar
2027 initializer.
2028 * opencl-lang.c (opencl_language_data): Likewise.
2029 * p-lang.c (pascal_language_data): Delete la_printchar
2030 initializer.
2031 (pascal_language::printchar): New member function.
2032 * rust-lang.c (rust_printchar): Rename to
2033 rust_language::printchar.
2034 (rust_language_data): Delete la_printchar initializer.
2035 (rust_language::printchar): New member function, implementation
2036 from rust_printchar.
2037
2038 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2041 (ada_language_data): Delete la_emitchar initializer.
2042 (ada_language::emitchar): New member function, implementation from
2043 emit_char.
2044 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2045 (cplus_language_data): Likewise.
2046 (asm_language_data): Likewise.
2047 (minimal_language_data): Likewise.
2048 * d-lang.c (d_language_data): Likewise.
2049 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2050 (f_language_data): Delete la_emitchar initializer.
2051 (f_language::emitchar): New member function, implementation from
2052 f_emit_char.
2053 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2054 * language.c (unk_lang_emit_char): Delete.
2055 (language_defn::emitchar): New member function definition.
2056 (unknown_language_data): Delete la_emitchar initializer.
2057 (unknown_language::emitchar): New member function.
2058 (auto_language_data): Delete la_emitchar initializer.
2059 (auto_language::emitchar): New member function.
2060 * language.h (language_data): Delete la_emitchar field.
2061 (language_defn::emitchar): New member field declaration.
2062 (LA_EMIT_CHAR): Update call to emitchar.
2063 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2064 (m2_language_data): Delete la_emitchar initializer.
2065 (m2_language::emitchar): New member function, implementation from
2066 m2_emit_char.
2067 * objc-lang.c (objc_language_data): Delete la_emitchar
2068 initializer.
2069 * opencl-lang.c (opencl_language_data): Likewise.
2070 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2071 (pascal_language_data): Delete la_emitchar initializer.
2072 (pascal_language::emitchar): New member function, implementation
2073 from pascal_emit_char.
2074 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2075 (rust_language_data): Delete la_emitchar initializer.
2076 (rust_language::emitchar): New member function, implementation
2077 from rust_emitchar.
2078
2079 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2082 (ada_language_data): Delete la_post_parser initializer.
2083 (ada_language::post_parser): New member function.
2084 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2085 (cplus_language_data): Likewise.
2086 (asm_language_data): Likewise.
2087 (minimal_language_data): Likewise.
2088 * d-lang.c (d_language_data): Likewise.
2089 * f-lang.c (f_language_data): Likewise.
2090 * go-lang.c (go_language_data): Likewise.
2091 * language.c (unknown_language_data): Likewise.
2092 (auto_language_data): Likewise.
2093 * language.h (language_data): Delete la_post_parser field.
2094 (language_defn::post_parser): New member function.
2095 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2096 * objc-lang.c (objc_language_data): Likewise.
2097 * opencl-lang.c (opencl_language_data): Likewise.
2098 * p-lang.c (pascal_language_data): Likewise.
2099 * parse.c (parse_exp_in_context): Update call to post_parser.
2100 (null_post_parser): Delete definition.
2101 * parser-defs.h (null_post_parser): Delete declaration.
2102 * rust-lang.c (rust_language_data): Delete la_post_parser
2103 initializer.
2104
2105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * ada-lang.c (parse): Rename to ada_language::parser.
2108 (ada_language_data): Delete la_parser initializer.
2109 (ada_language::parser): New member function, implementation from
2110 parse.
2111 * c-lang.c (c_language_data): Delete la_parser initializer.
2112 (cplus_language_data): Likewise.
2113 (asm_language_data): Likewise.
2114 (minimal_language_data): Likewise.
2115 * d-lang.c (d_language_data): Likewise.
2116 (d_language::parser): New member function.
2117 * f-lang.c (f_language_data): Delete la_parser initializer.
2118 (f_language::parser): New member function.
2119 * go-lang.c (go_language_data): Delete la_parser initializer.
2120 (go_language::parser): New member function.
2121 * language.c (unk_lang_parser): Delete.
2122 (language_defn::parser): Define new member function.
2123 (unknown_language_data): Delete la_parser initializer.
2124 (unknown_language::parser): New member function.
2125 (auto_language_data): Delete la_parser initializer.
2126 (auto_language::parser): New member function.
2127 * language.h (language_data): Delete la_parser field.
2128 (language_defn::parser): Declare new member function.
2129 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2130 (m2_language::parser): New member function.
2131 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2132 * opencl-lang.c (opencl_language_data): Likewise.
2133 * p-lang.c (pascal_language_data): Likewise.
2134 (pascal_language::parser): New member function.
2135 * parse.c (parse_exp_in_context): Update call to parser.
2136 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2137 (rust_language::parser): New member function.
2138
2139 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * top.c (print_gdb_configuration): Print --with-python-libdir
2142 configuration value.
2143
2144 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2145
2146 * NEWS: Mention change to the alias command.
2147
2148 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2149
2150 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2151 (alias_command_completer)
2152 (make_alias_options_def_group): New functions.
2153 (alias_opts, alias_option_defs): New struct and array.
2154 (alias_usage_error): Update usage.
2155 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2156 Use option framework.
2157 (_initialize_cli_cmds): Update alias command help.
2158 Update aliases command help.
2159 (show_user):
2160 Add NULL for new default_args lookup_cmd argument.
2161 (valid_command_p): Rename to validate_aliased_command.
2162 Add NULL for new default_args lookup_cmd argument. Verify that the
2163 aliased_command has no default args.
2164 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2165 (lookup_cmd_1, lookup_cmd): New argument default_args.
2166 (add_alias_cmd):
2167 Add NULL for new default_args lookup_cmd argument.
2168 (print_help_for_command): Show default args under the layout
2169 alias some_alias = some_aliased_cmd some_alias_default_arg.
2170 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2171 xfree default_args in destructor.
2172 * cli/cli-script.c (process_next_line, do_define_command):
2173 Add NULL for new default_args lookup_cmd argument.
2174 * command.h: Declare new default_args argument in lookup_cmd
2175 and lookup_cmd_1.
2176 * completer.c (complete_line_internal_1):
2177 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2178 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2179 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2180 Likewise.
2181 * infcmd.c (_initialize_infcmd): Likewise.
2182 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2183 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2184 * python/py-param.c (add_setshow_generic): Likewise.
2185 * remote.c (_initialize_remote): Likewise.
2186 * top.c (execute_command): Prepend default_args if command has some.
2187 (set_verbose):
2188 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2189 * tracepoint.c (validate_actionline, encode_actions_1):
2190 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2191
2192 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2193
2194 * jit.c (jit_read_descriptor): Use bool as the return type.
2195 (jit_breakpoint_re_set_internal): Use bool as the return type.
2196 Invert the return value logic; return true if the jit breakpoint
2197 has been successfully initialized.
2198 (jit_inferior_init): Update the call to
2199 jit_breakpoint_re_set_internal.
2200
2201 2020-06-22 Pedro Alves <palves@redhat.com>
2202
2203 PR gdb/25939
2204 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2205 Use the current inferior instead. Don't return
2206 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2207 wait again.
2208 * sol-thread.c (sol_thread_target::wait): Don't reference
2209 inferior_ptid.
2210 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2211 (sol_update_thread_list_callback): Use the current inferior's pid
2212 instead of inferior_ptid.
2213
2214 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2215
2216 * procfs.c: Cleanup many comments.
2217
2218 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2219 (AFTER_WATCHFLAG): Replace by value.
2220
2221 (MAIN_PROC_NAME_FORMAT): Inline ...
2222 (create_procinfo): ... here.
2223
2224 (procfs_debug_inferior): Remove SYS_exec handling.
2225 (syscall_is_exec): Likewise.
2226 (procfs_set_exec_trap): Likewise.
2227
2228 (syscall_is_lwp_exit): Inline in callers.
2229 (syscall_is_exit): Likewise.
2230 (syscall_is_exec): Likewise.
2231 (syscall_is_lwp_create): Likewise.
2232
2233 (invalidate_cache): Remove #if 0 code.
2234
2235 (make_signal_thread_runnable): Remove.
2236 (procfs_target::resume): Remove #if 0 code.
2237
2238 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2239
2240 PR gdb/25939
2241 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2242 call ...
2243 (procfs_target::create_inferior): ... here.
2244
2245 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2246
2247 * exec.c (validate_exec_file): Ensure the build-id is up to
2248 date by calling reopen_exec_file (that checks file timestamp
2249 to decide to re-read the file).
2250
2251 2020-06-18 Pedro Alves <palves@redhat.com>
2252
2253 PR gdb/25412
2254 * gdbthread.h (delete_thread, delete_thread_silent)
2255 (find_thread_ptid): Update comments.
2256 * thread.c (current_thread_): New global.
2257 (is_current_thread): Move higher, and reimplement.
2258 (inferior_thread): Reimplement.
2259 (set_thread_exited): Use bool. Add assertions.
2260 (add_thread_silent): Simplify thread-reuse handling by always
2261 calling delete_thread.
2262 (delete_thread): Remove intro comment.
2263 (find_thread_ptid): Skip exited threads.
2264 (switch_to_thread_no_regs): Write to current_thread_.
2265 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2266 INFERIOR_PTID. Clear current_thread_.
2267
2268 2020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * aix-thread.c (pd_update): Use switch_to_thread.
2271
2272 2020-06-18 Pedro Alves <palves@redhat.com>
2273
2274 * ravenscar-thread.c (ravenscar_thread_target): Update.
2275 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2276 (ravenscar_thread_target::add_active_thread): ... this. Don't
2277 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2278 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2279
2280 2020-06-18 Pedro Alves <palves@redhat.com>
2281
2282 * nat/windows-nat.c (current_windows_thread): Remove.
2283 * nat/windows-nat.h (current_windows_thread): Remove.
2284 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2285 Adjust.
2286 (display_selectors): Adjust to fetch the current
2287 windows_thread_info based on inferior_ptid.
2288 (fake_create_process): No longer write to current_windows_thread.
2289 (windows_nat_target::get_windows_debug_event):
2290 Don't set inferior_ptid or current_windows_thread.
2291 (windows_nat_target::wait): Adjust to not rely on
2292 current_windows_thread.
2293 (do_initial_windows_stuff): Now a method of windows_nat_target.
2294 Switch to the last_ptid thread.
2295 (windows_nat_target::attach): Adjust.
2296 (windows_nat_target::detach): Use switch_to_no_thread instead of
2297 writing to inferior_ptid directly.
2298 (windows_nat_target::create_inferior): Adjust.
2299
2300 2020-06-18 Pedro Alves <palves@redhat.com>
2301
2302 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2303
2304 2020-06-18 Pedro Alves <palves@redhat.com>
2305
2306 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2307 after creating it, instead of writing to inferior_ptid. Don't
2308 write to inferior_ptid.
2309
2310 2020-06-18 Pedro Alves <palves@redhat.com>
2311
2312 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2313
2314 2020-06-18 Pedro Alves <palves@redhat.com>
2315
2316 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2317 it, instead of writing to inferior_ptid.
2318
2319 2020-06-18 Pedro Alves <palves@redhat.com>
2320
2321 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2322 to inferior_ptid.
2323
2324 2020-06-18 Pedro Alves <palves@redhat.com>
2325
2326 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2327 instead of writing to inferior_ptid directly.
2328
2329 2020-06-18 Pedro Alves <palves@redhat.com>
2330
2331 * corelow.c (core_target::close): Use switch_to_no_thread instead
2332 of writing to inferior_ptid directly.
2333 (add_to_thread_list, core_target_open): Use switch_to_thread
2334 instead of writing to inferior_ptid directly.
2335
2336 2020-06-18 Pedro Alves <palves@redhat.com>
2337
2338 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2339 inferior_ptid.
2340 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2341 inferior_ptid.
2342 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2343 inferior_ptid directly.
2344 (darwin_nat_target::init_thread_list): Switch to thread, instead
2345 of writing to inferior_ptid.
2346 (darwin_nat_target::attach): Don't write to inferior_ptid.
2347 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2348
2349 2020-06-18 Pedro Alves <palves@redhat.com>
2350
2351 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2352 thread.
2353 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2354 Instead use switch_to_thread.
2355 (gnu_nat_target::detach): Use switch_to_no_thread
2356 instead of writing to inferior_ptid directly. Used passed-in
2357 inferior instead of looking up the inferior by pid.
2358
2359 2020-06-18 Pedro Alves <palves@redhat.com>
2360
2361 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2362 inferior_ptid.
2363
2364 2020-06-18 Pedro Alves <palves@redhat.com>
2365
2366 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2367 inferior_ptid.
2368 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2369 thread.
2370 (nto_procfs_target::detach): Avoid referencing
2371 inferior_ptid. Use switch_to_no_thread instead of writing to
2372 inferior_ptid directly.
2373 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2374 instead of writing to inferior_ptid directly.
2375 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2376 to thread.
2377
2378 2020-06-18 Pedro Alves <palves@redhat.com>
2379
2380 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2381 after creating it, instead of writing to inferior_ptid.
2382 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2383 to inferior_ptid directly.
2384 (gdbsim_target::wait): Don't write to inferior_ptid.
2385
2386 2020-06-18 Pedro Alves <palves@redhat.com>
2387
2388 * remote.c (remote_target::remote_notice_new_inferior): Use
2389 switch_to_thread instead of writing to inferior_ptid directly.
2390 (remote_target::add_current_inferior_and_thread): Use
2391 switch_to_no_thread instead of writing to inferior_ptid directly.
2392 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2393 and switch_to_thread instead of using set_current_inferior or
2394 writing to inferior_ptid directly.
2395
2396 2020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 * tracectf.c (ctf_target_open): Switch to added thread instead of
2399 writing to inferior_ptid directly.
2400 (ctf_target::close): Use switch_to_no_thread instead of writing to
2401 inferior_ptid directly.
2402
2403 2020-06-18 Pedro Alves <palves@redhat.com>
2404
2405 * tracefile-tfile.c (tfile_target_open): Don't write to
2406 inferior_ptid directly, instead switch to added thread.
2407 (tfile_target::close): Use switch_to_no_thread instead of writing
2408 to inferior_ptid directly.
2409
2410 2020-06-18 Pedro Alves <palves@redhat.com>
2411
2412 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2413 (procfs_target::detach): Use switch_to_no_thread
2414 instead of writing to inferior_ptid directly.
2415 (do_attach): Change return type to void. Switch to the added
2416 thread.
2417 (procfs_target::create_inferior): Switch to the added thread.
2418 (procfs_do_thread_registers): Don't write to inferior_ptid.
2419
2420 2020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2423 of writing to inferior_ptid.
2424 (scoped_restore_exited_inferior): Delete.
2425 (handle_vfork_child_exec_or_exit): Simplify using
2426 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2427 instead of writing to inferior_ptid.
2428 (THREAD_STOPPED_BY): Delete.
2429 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2430 (thread_stopped_by_hw_breakpoint): Delete.
2431 (save_waitstatus): Use
2432 scoped_restore_current_thread+switch_to_thread, and call
2433 target_stopped_by_watchpoint instead of
2434 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2435 instead of thread_stopped_by_sw_breakpoint, and
2436 target_stopped_by_hw_breakpoint instead of
2437 thread_stopped_by_hw_breakpoint.
2438 (handle_inferior_event)
2439 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2440 inferior_ptid directly, nor
2441 set_current_inferior/set_current_program_space. Use
2442 switch_to_thread / switch_to_inferior_no_thread instead.
2443
2444 2020-06-18 Pedro Alves <palves@redhat.com>
2445
2446 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2447 instead of writing to inferior_ptid.
2448
2449 2020-06-18 Pedro Alves <palves@redhat.com>
2450
2451 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2452 added thread.
2453 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2454 to the added thread.
2455 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2456 instead of writing to inferior_ptid.
2457
2458 2020-06-18 Pedro Alves <palves@redhat.com>
2459
2460 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2461 (register_to_value_test): Mock a program_space too. Heap-allocate
2462 the address space. Don't write to inferior_ptid. Use
2463 switch_to_thread instead.
2464
2465 2020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2468 Delete.
2469 (find_signalled_thread()): New, factored out from
2470 linux_make_corefile_notes and adjusted to handle exited threads.
2471 (linux_make_corefile_notes): Adjust to use the new
2472 find_signalled_thread.
2473
2474 2020-06-18 Pedro Alves <palves@redhat.com>
2475
2476 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2477 of saving/restoring inferior_ptid.
2478
2479 2020-06-17 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2482 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2483 declare.
2484 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2485
2486 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2489 of partial symtabs.
2490
2491 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * regformats/reg-arm.dat: Remove.
2494 * regformats/reg-bfin.dat: Remove.
2495 * regformats/reg-cris.dat: Remove.
2496 * regformats/reg-crisv32.dat: Remove.
2497 * regformats/reg-m32r.dat: Remove.
2498 * regformats/reg-tilegx.dat: Remove.
2499 * regformats/reg-tilegx32.dat: Remove.
2500
2501 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * features/Makefile (WHICH): Remove arm files.
2504 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2505 * regformats/arm/arm-with-neon.dat: Remove.
2506 * regformats/arm/arm-with-vfpv2.dat: Remove.
2507 * regformats/arm/arm-with-vfpv3.dat: Remove.
2508
2509 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * features/Makefile (XMLTOC): Remove rx.xml.
2512
2513 2020-06-17 Pedro Alves <palves@redhat.com>
2514
2515 * gdbthread.h (thread_control_state) <trap_expected> Update
2516 comments.
2517
2518 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2521 ada_language::lookup_symbol_nonlocal.
2522 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2523 (ada_language::lookup_symbol_nonlocal): New member function,
2524 implementation from ada_lookup_symbol_nonlocal.
2525 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2526 initializer.
2527 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2528 initializer.
2529 (cplus_language::lookup_symbol_nonlocal): New member function.
2530 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2531 (minimal_language_data) Likewise.
2532 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2533 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2534 initializer.
2535 (d_language::lookup_symbol_nonlocal): New member function.
2536 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2537 initializer.
2538 (f_language::lookup_symbol_nonlocal): New member function.
2539 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2540 initializer.
2541 * language.c (unknown_language_data): Likewise.
2542 (auto_language_data): Likewise.
2543 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2544 field.
2545 (language_defn::lookup_symbol_nonlocal): New member function.
2546 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2547 initializer.
2548 * objc-lang.c (objc_language_data): Likewise.
2549 * opencl-lang.c (opencl_language_data): Likewise.
2550 * p-lang.c (pascal_language_data): Likewise.
2551 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2552 rust_language::lookup_symbol_nonlocal.
2553 (rust_language_data): Delete la_lookup_symbol_nonlocal
2554 initializer.
2555 (rust_language::lookup_symbol_nonlocal): New member function,
2556 implementation from rust_lookup_symbol_nonlocal.
2557 * symtab.c (lookup_symbol_aux): Update call to
2558 lookup_symbol_nonlocal.
2559 (basic_lookup_symbol_nonlocal): Rename to...
2560 (language_defn::lookup_symbol_nonlocal): ...this, and update
2561 header comment. Remove language_defn parameter, and replace with
2562 uses of `this'.
2563 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2564
2565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2568 initializer.
2569 (ada_language::value_print_inner): New member function.
2570 * c-lang.c (c_language_data): Delete la_value_print_inner
2571 initializer.
2572 (cplus_language_data): Likewise.
2573 (asm_language_data): Likewise.
2574 (minimal_language_data): Likewise.
2575 * d-lang.c (d_language_data): Likewise.
2576 (d_language::value_print_inner): New member function.
2577 * f-lang.c (f_language_data): Delete la_value_print_inner
2578 initializer.
2579 (f_language::value_print_inner): New member function.
2580 * f-lang.h (f_value_print_innner): Rename to...
2581 (f_value_print_inner): ...this (note spelling of 'inner').
2582 * f-valprint.c (f_value_print_innner): Rename to...
2583 (f_value_print_inner): ...this (note spelling of 'inner').
2584 * go-lang.c (go_language_data): Delete la_value_print_inner
2585 initializer.
2586 (go_language::value_print_inner): New member function.
2587 * language.c (language_defn::value_print_inner): Define new member
2588 function.
2589 (unk_lang_value_print_inner): Delete.
2590 (unknown_language_data): Delete la_value_print_inner initializer.
2591 (unknown_language::value_print_inner): New member function.
2592 (auto_language_data): Delete la_value_print_inner initializer.
2593 (auto_language::value_print_inner): New member function.
2594 * language.h (language_data): Delete la_value_print_inner field.
2595 (language_defn::value_print_inner): Delcare new member function.
2596 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2597 initializer.
2598 (m2_language::value_print_inner): New member function.
2599 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2600 initializer.
2601 * opencl-lang.c (opencl_language_data): Likewise.
2602 * p-lang.c (pascal_language_data): Likewise.
2603 (pascal_language::value_print_inner): New member function.
2604 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2605 initializer.
2606 (rust_language::value_print_inner): New member function.
2607 * valprint.c (do_val_print): Update call to value_print_inner.
2608
2609 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * ada-lang.c (ada_language_data): Delete la_value_print
2612 initializer.
2613 (ada_language::value_print): New member function.
2614 * c-lang.c (c_language_data): Delete la_value_print initializer.
2615 (cplus_language_data): Likewise.
2616 (asm_language_data): Likewise.
2617 (minimal_language_data): Likewise.
2618 * d-lang.c (d_language_data): Likewise.
2619 * f-lang.c (f_language_data): Likewise.
2620 * go-lang.c (go_language_data): Likewise.
2621 * language.c (unk_lang_value_print): Delete.
2622 (language_defn::value_print): Define new member function.
2623 (unknown_language_data): Delete la_value_print initializer.
2624 (unknown_language::value_print): New member function.
2625 (auto_language_data): Delete la_value_print initializer.
2626 (auto_language::value_print): New member function.
2627 * language.h (language_data): Delete la_value_print field.
2628 (language_defn::value_print): Declare new member function.
2629 (LA_VALUE_PRINT): Update call to value_print.
2630 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2631 * objc-lang.c (objc_language_data): Likewise.
2632 * opencl-lang.c (opencl_language_data): Likewise.
2633 * p-lang.c (pascal_language_data): Likewise.
2634 (pascal_language::value_print): New member function.
2635 * rust-lang.c (rust_language_data): Delete la_value_print
2636 initializer.
2637
2638 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_watch_location_expression): Rename to
2641 ada_language::watch_location_expression.
2642 (ada_language_data): Delete la_watch_location_expression
2643 initializer.
2644 (ada_language::watch_location_expression): New member function,
2645 implementation from ada_watch_location_expression.
2646 * breakpoint.c (watch_command_1): Update call to
2647 watch_location_expression.
2648 * c-lang.c (c_watch_location_expression): Rename to
2649 language_defn::watch_location_expression.
2650 (c_language_data): Delete la_watch_location_expression
2651 initializer.
2652 (cplus_language_data): Likewise.
2653 (asm_language_data): Likewise.
2654 (minimal_language_data): Likewise.
2655 * c-lang.h (c_watch_location_expression): Delete declaration.
2656 * d-lang.c (d_language_data): Delete la_watch_location_expression
2657 initializer.
2658 * f-lang.c (f_language_data): Likewise.
2659 * go-lang.c (go_language_data): Likewise.
2660 * language.c (language_defn::watch_location_expression): Member
2661 function implementation from c_watch_location_expression.
2662 (unknown_language_data): Delete la_watch_location_expression
2663 initializer.
2664 (auto_language_data): Likewise.
2665 * language.h (language_data): Delete la_watch_location_expression
2666 field.
2667 (language_defn::watch_location_expression): Declare new member
2668 function.
2669 * m2-lang.c (m2_language_data): Delete
2670 la_watch_location_expression initializer.
2671 * objc-lang.c (objc_language_data): Likewise.
2672 * opencl-lang.c (opencl_language_data): Likewise.
2673 * p-lang.c (pascal_language_data): Likewise.
2674 * rust-lang.c (rust_watch_location_expression): Rename to
2675 rust_language::watch_location_expression.
2676 (rust_language_data): Delete la_watch_location_expression
2677 initializer.
2678 (rust_language::watch_location_expression): New member function,
2679 implementation from rust_watch_location_expression.
2680
2681 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2684 ada_language::collect_symbol_completion_matches.
2685 (ada_language_data): Delete la_collect_symbol_completion_matches
2686 initializer.
2687 (ada_language::collect_symbol_completion_matches): New member
2688 function, implementation from
2689 ada_collect_symbol_completion_matches.
2690 * c-lang.c (c_language_data): Delete
2691 la_collect_symbol_completion_matches initializer.
2692 (cplus_language_data): Likewise.
2693 (asm_language_data): Likewise.
2694 (minimal_language_data): Likewise.
2695 * d-lang.c (d_language_data): Likewise.
2696 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2697 f_language::collect_symbol_completion_matches.
2698 (f_language_data): Delete la_collect_symbol_completion_matches
2699 initializer.
2700 (f_language::collect_symbol_completion_matches) New member
2701 function, implementation from f_collect_symbol_completion_matches.
2702 * go-lang.c (go_language_data): Delete
2703 la_collect_symbol_completion_matches initializer.
2704 * language.c (unknown_language_data): Likewise.
2705 (auto_language_data): Likewise.
2706 * language.h (language_data): Delete
2707 la_collect_symbol_completion_matches field.
2708 (language_defn::collect_symbol_completion_matches): New member
2709 function.
2710 * m2-lang.c (m2_language_data): Delete
2711 la_collect_symbol_completion_matches initializer.
2712 * objc-lang.c (objc_language_data): Likewise.
2713 * opencl-lang.c (opencl_language_data): Likewise.
2714 * p-lang.c (pascal_language_data): Likewise.
2715 * rust-lang.c (rust_language_data): Likewise.
2716 * symtab.c (default_collect_symbol_completion_matches): Delete.
2717 (collect_symbol_completion_matches): Update call to
2718 collect_symbol_completion_matches.
2719 (collect_symbol_completion_matches_type): Likewise.
2720 * symtab.h (default_collect_symbol_completion_matches): Delete
2721 declaration.
2722
2723 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2726 (ada_language_data): Delete la_word_break_characters initializer.
2727 (ada_language::word_break_characters): New member function.
2728 * c-lang.c (c_language_data): Delete la_word_break_characters
2729 initializer.
2730 (cplus_language_data): Likewise.
2731 (asm_language_data): Likewise.
2732 (minimal_language_data): Likewise.
2733 * completer.c: Update global comment.
2734 (advance_to_expression_complete_word_point): Update call to
2735 word_break_characters.
2736 (complete_files_symbols): Likewise.
2737 (complete_line_internal_1): Likewise.
2738 (default_completer_handle_brkchars): Likewise.
2739 (skip_quoted_chars): Likewise.
2740 * d-lang.c (d_language_data): Delete la_word_break_characters
2741 initializer.
2742 * f-lang.c (f_word_break_characters): Delete.
2743 (f_language_data): Delete la_word_break_characters initializer.
2744 (f_language::word_break_characters): New member function.
2745 * go-lang.c (go_language_data): Delete la_word_break_characters
2746 initializer.
2747 * language.c (unknown_language_data): Likewise.
2748 (auto_language_data): Likewise.
2749 * language.h (default_word_break_characters): Move declaration to
2750 earlier in the file.
2751 (language_data): Delete la_word_break_characters field.
2752 (language_defn::word_break_characters): New member function.
2753 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2754 initializer.
2755 * objc-lang.c (objc_language_data): Likewise.
2756 * opencl-lang.c (opencl_language_data): Likewise.
2757 * p-lang.c (pascal_language_data): Likewise.
2758 * rust-lang.c (rust_language_data): Likewise.
2759
2760 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2763 (ada_language_data): Delete la_get_symbol_name_matcher
2764 initializer.
2765 (language_defn::get_symbol_name_matcher_inner): New member
2766 function.
2767 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2768 initializer.
2769 (cplus_language_data): Likewise.
2770 (cplus_language::get_symbol_name_matcher_inner): New member
2771 function.
2772 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2773 (minimal_language_data): Likewise.
2774 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2775 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2776 initializer.
2777 * dictionary.c (iter_match_first_hashed): Update call to
2778 get_symbol_name_matcher.
2779 (iter_match_next_hashed): Likewise.
2780 (iter_match_next_linear): Likewise.
2781 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2782 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2783 initializer.
2784 (f_language::get_symbol_name_matcher_inner): New member function.
2785 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2786 initializer.
2787 * language.c (default_symbol_name_matcher): Update header comment,
2788 make static.
2789 (language_defn::get_symbol_name_matcher): New definition.
2790 (language_defn::get_symbol_name_matcher_inner): Likewise.
2791 (get_symbol_name_matcher): Delete.
2792 (unknown_language_data): Delete la_get_symbol_name_matcher
2793 initializer.
2794 (auto_language_data): Likewise.
2795 * language.h (language_data): Delete la_get_symbol_name_matcher
2796 field.
2797 (language_defn::get_symbol_name_matcher): New member function.
2798 (language_defn::get_symbol_name_matcher_inner): Likewise.
2799 (default_symbol_name_matcher): Delete declaration.
2800 * linespec.c (find_methods): Update call to
2801 get_symbol_name_matcher.
2802 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2803 initializer.
2804 * minsyms.c (lookup_minimal_symbol): Update call to
2805 get_symbol_name_matcher.
2806 (iterate_over_minimal_symbols): Likewise.
2807 * objc-lang.c (objc_language_data): Delete
2808 la_get_symbol_name_matcher initializer.
2809 * opencl-lang.c (opencl_language_data): Likewise.
2810 * p-lang.c (pascal_language_data): Likewise.
2811 * psymtab.c (psymbol_name_matches): Update call to
2812 get_symbol_name_matcher.
2813 * rust-lang.c (rust_language_data): Delete
2814 la_get_symbol_name_matcher initializer.
2815 * symtab.c (symbol_matches_search_name): Update call to
2816 get_symbol_name_matcher.
2817 (compare_symbol_name): Likewise.
2818
2819 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * ada-lang.c (ada_language_data): Delete la_compute_program
2822 initializer.
2823 * c-lang.c (c_language_data): Likewise.
2824 (c_language::compute_program): New member function.
2825 (cplus_language_data): Delete la_compute_program initializer.
2826 (cplus_language::compute_program): New member function.
2827 (asm_language_data): Delete la_compute_program initializer.
2828 (minimal_language_data): Likewise.
2829 * c-lang.h (c_compute_program): Update comment.
2830 (cplus_compute_program): Likewise.
2831 * compile/compile-c-support.c (c_compute_program): Likewise.
2832 (cplus_compute_program): Likewise.
2833 * compile/compile.c (compile_to_object): Update call to
2834 la_compute_program.
2835 * d-lang.c (d_language_data): Delete la_compute_program
2836 initializer.
2837 * f-lang.c (f_language_data): Likewise.
2838 * go-lang.c (go_language_data): Likewise.
2839 * language.c (unknown_language_data): Likewise.
2840 (auto_language_data): Likewise.
2841 * language.h (language_data): Delete la_compute_program field.
2842 (language_defn::compute_program): New member function.
2843 * m2-lang.c (m2_language_data): Delete la_compute_program
2844 initializer.
2845 * objc-lang.c (objc_language_data): Likewise.
2846 * opencl-lang.c (opencl_language_data): Likewise.
2847 * p-lang.c (pascal_language_data): Likewise.
2848 * rust-lang.c (rust_language_data): Likewise.
2849
2850 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * ada-lang.c (ada_language_data) Delete
2853 la_class_name_from_physname initializer.
2854 * c-lang.c (c_language_data): Likewise.
2855 (cplus_language_data): Likewise.
2856 (cplus_language::class_name_from_physname): New member function.
2857 (asm_language_data): Delete la_class_name_from_physname
2858 initializer.
2859 (minimal_language_data): Likewise.
2860 * d-lang.c (d_language_data): Likewise.
2861 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2862 method on language_defn class.
2863 (guess_full_die_structure_name): Likewise.
2864 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2865 initializer.
2866 * go-lang.c (go_language_data): Likewise.
2867 * language.c (language_class_name_from_physname): Delete.
2868 (unk_lang_class_name): Delete.
2869 (unknown_language_data): Delete la_class_name_from_physname
2870 initializer.
2871 (auto_language_data): Likewise.
2872 * language.h (language_data): Delete la_class_name_from_physname
2873 field.
2874 (language_defn::class_name_from_physname): New function.
2875 (language_class_name_from_physname): Delete declaration.
2876 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2877 initializer.
2878 * objc-lang.c (objc_language_data): Likewise.
2879 * opencl-lang.c (opencl_language_data): Likewise.
2880 * p-lang.c (pascal_language_data): Likewise.
2881 * rust-lang.c (rust_language_data): Likewise.
2882
2883 2020-06-16 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-data.h (STATUS_NAME): New macro.
2886 * tui/tui-layout.c (tui_remove_some_windows)
2887 (initialize_known_windows, tui_register_window)
2888 (tui_layout_split::remove_windows, initialize_layouts)
2889 (tui_new_layout_command): Don't use hard-coded window names.
2890
2891 2020-06-16 Tom Tromey <tom@tromey.com>
2892
2893 PR tui/25348:
2894 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2895 tui_initialize_readline. Only run once. Call rl_initialize.
2896 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2897 tui_initialize_readline.
2898 * tui/tui-io.c (tui_setup_io): Call
2899 tui_ensure_readline_initialized.
2900 * tui/tui-interp.c (tui_interp::init): Update.
2901
2902 2020-06-16 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2905 Also preserve the status window.
2906
2907 2020-06-16 Tom Tromey <tom@tromey.com>
2908
2909 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2910 where m_window==nullptr.
2911
2912 2020-06-15 Tom Tromey <tromey@adacore.com>
2913
2914 * windows-nat.c (windows_nat::handle_output_debug_string):
2915 Update.
2916 (windows_nat::handle_ms_vc_exception): Update.
2917 * target.h (target_read_string): Change API.
2918 * target.c (target_read_string): Change API.
2919 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2920 Update.
2921 * solib-frv.c (frv_current_sos): Update.
2922 * solib-dsbt.c (dsbt_current_sos): Update.
2923 * solib-darwin.c (darwin_current_sos): Update.
2924 * linux-thread-db.c (inferior_has_bug): Update.
2925 * expprint.c (print_subexp_standard): Update.
2926 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2927 (ada_exception_message_1): Update.
2928
2929 2020-06-15 Tom Tromey <tromey@adacore.com>
2930
2931 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2932
2933 2020-06-15 Tom Tromey <tromey@adacore.com>
2934
2935 * valprint.c (read_string): Update comment.
2936 * target.c (MIN): Remove.
2937 (target_read_string): Rewrite.
2938
2939 2020-06-15 Tom Tromey <tromey@adacore.com>
2940
2941 * corefile.c (read_memory_string): Remove.
2942 * ada-valprint.c (ada_value_print_ptr): Update.
2943 * ada-lang.h (ada_tag_name): Change return type.
2944 * ada-lang.c (type_from_tag): Update.
2945 (ada_tag_name_from_tsd): Change return type. Use
2946 target_read_string.
2947 (ada_tag_name): Likewise.
2948 * gdbcore.h (read_memory_string): Don't declare.
2949
2950 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2951
2952 * symtab.c (rbreak_command): Ignore Windows drive colon.
2953
2954 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * NEWS: Mention removed GDBserver host support.
2957
2958 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2959
2960 * features/riscv/rebuild-csr-xml.sh: Updated.
2961
2962 2020-06-11 Tom Tromey <tom@tromey.com>
2963
2964 PR gdb/18318:
2965 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2966
2967 2020-06-09 Jonny Grant <jg@jguk.org>
2968 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * main.c (captured_main_1): Don't print new line after help.
2971 (print_gdb_help): add mailing list and IRC channel information
2972 to --help. Add new lines between items in the footer. Remove
2973 quotes around bug url.
2974
2975 2020-06-11 Keith Seitz <keiths@redhat.com>
2976
2977 PR gdb/21356
2978 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2979 Resolve typedefs for type length calculations.
2980
2981 2020-06-10 Tom de Vries <tdevries@suse.de>
2982
2983 PR ada/24713
2984 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2985 (write_psymbols): Enable .gdb_index for ada.
2986 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2987 ada.
2988
2989 2020-06-10 Tom de Vries <tdevries@suse.de>
2990
2991 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2992 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2993 namei" instead of "const char *name" argument.
2994 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2995 dw2_symtab_iter_init.
2996
2997 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3000 to use type::field and field::type instead.
3001
3002 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3005 to use field::type instead.
3006
3007 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3008
3009 * gdbtypes.h (struct field) <type, set_type>: New methods.
3010 Rename `type` field to...
3011 <m_type>: ... this. Change references throughout to use type or
3012 set_type methods.
3013 (FIELD_TYPE): Use field::type. Change call sites that modify
3014 the field's type to use field::set_type instead.
3015
3016 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3019 to use type::index_type instead.
3020
3021 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3024 methods.
3025 (TYPE_INDEX_TYPE): Use type::index_type.
3026 * gdbtypes.c (create_array_type_with_stride): Likewise.
3027
3028 2020-06-07 Tom Tromey <tom@tromey.com>
3029
3030 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3031 parameter.
3032 (generic_value_print): Update.
3033
3034 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 Revert commit 982a38f60b0.
3037 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3038
3039 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3042 avoid use after free.
3043
3044 2020-06-05 Tom de Vries <tdevries@suse.de>
3045
3046 * NEWS: Fix typos.
3047
3048 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3051 the per_bfd object.
3052 (dwarf2_read_debug_names): Likewise.
3053 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3054 object when re-using a per_bfd object with an index.
3055
3056 2020-06-03 Tom de Vries <tdevries@suse.de>
3057
3058 PR symtab/26046
3059 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3060 children for C++.
3061 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3062 DW_TAG_subprogram.
3063
3064 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * ada-lang.c (ada_language_data): Delete skip_trampoline
3067 initializer.
3068 * c-lang.c (c_language_data): Likewise.
3069 (cplus_language_data): Likewise.
3070 (cplus_language::skip_trampoline): New member function.
3071 (asm_language_data): Delete skip_trampoline initializer.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_language_data): Likewise.
3075 * go-lang.c (go_language_data): Likewise.
3076 * language.c (unk_lang_trampoline): Delete function.
3077 (skip_language_trampoline): Update.
3078 (unknown_language_data): Delete skip_trampoline initializer.
3079 (auto_language_data): Likewise.
3080 * language.h (language_data): Delete skip_trampoline field.
3081 (language_defn::skip_trampoline): New function.
3082 * m2-lang.c (m2_language_data): Delete skip_trampoline
3083 initializer.
3084 * objc-lang.c (objc_skip_trampoline): Delete function, move
3085 implementation to objc_language::skip_trampoline.
3086 (objc_language_data): Delete skip_trampoline initializer.
3087 (objc_language::skip_trampoline): New member function with
3088 implementation from objc_skip_trampoline.
3089 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3090 initializer.
3091 * p-lang.c (pascal_language_data): Likewise.
3092 * rust-lang.c (rust_language_data): Likewise.
3093
3094 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3097 (ada_language::demangle): New member function.
3098 * c-lang.c (c_language_data): Delete la_demangle initializer.
3099 (cplus_language_data): Delete la_demangle initializer.
3100 (cplus_language::demangle): New member function.
3101 (asm_language_data): Delete la_demangle initializer.
3102 (minimal_language_data): Delete la_demangle initializer.
3103 * d-lang.c (d_language_data): Delete la_demangle initializer.
3104 (d_language::demangle): New member function.
3105 * f-lang.c (f_language_data): Delete la_demangle initializer.
3106 (f_language::demangle): New member function.
3107 * go-lang.c (go_language_data): Delete la_demangle initializer.
3108 (go_language::demangle): New member function.
3109 * language.c (language_demangle): Update.
3110 (unk_lang_demangle): Delete.
3111 (unknown_language_data): Delete la_demangle initializer.
3112 (unknown_language::demangle): New member function.
3113 (auto_language_data): Delete la_demangle initializer.
3114 (auto_language::demangle): New member function.
3115 * language.h (language_data): Delete la_demangle field.
3116 (language_defn::demangle): New function.
3117 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3118 * objc-lang.c (objc_language_data): Delete la_demangle
3119 initializer.
3120 (objc_language::demangle): New member function.
3121 * opencl-lang.c (opencl_language_data): Delete la_demangle
3122 initializer.
3123 * p-lang.c (pascal_language_data): Likewise.
3124 * rust-lang.c (rust_language_data): Likewise.
3125 (rust_language::demangle): New member function.
3126
3127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * ada-lang.c (ada_language_data): Delete la_print_type
3130 initializer.
3131 (ada_language::print_type): New member function.
3132 * c-lang.c (c_language_data): Delete la_print_type initializer.
3133 (c_language::print_type): New member function.
3134 (cplus_language_data): Delete la_print_type initializer.
3135 (cplus_language::print_type): New member function.
3136 (asm_language_data): Delete la_print_type initializer.
3137 (asm_language::print_type): New member function.
3138 (minimal_language_data): Delete la_print_type initializer.
3139 (minimal_language::print_type): New member function.
3140 * d-lang.c (d_language_data): Delete la_print_type initializer.
3141 (d_language::print_type): New member function.
3142 * f-lang.c (f_language_data): Delete la_print_type initializer.
3143 (f_language::print_type): New member function.
3144 * go-lang.c (go_language_data): Delete la_print_type initializer.
3145 (go_language::print_type): New member function.
3146 * language.c (unk_lang_print_type): Delete.
3147 (unknown_language_data): Delete la_print_type initializer.
3148 (unknown_language::print_type): New member function.
3149 (auto_language_data): Delete la_print_type initializer.
3150 (auto_language::print_type): New member function.
3151 * language.h (language_data): Delete la_print_type field.
3152 (language_defn::print_type): New function.
3153 (LA_PRINT_TYPE): Update.
3154 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3155 (m2_language::print_type): New member function.
3156 * objc-lang.c (objc_language_data): Delete la_print_type
3157 initializer.
3158 (objc_language::print_type): New member function.
3159 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3160 to opencl_language::print_type.
3161 (opencl_language_data): Delete la_print_type initializer.
3162 (opencl_language::print_type): New member function, implementation
3163 from opencl_print_type.
3164 * p-lang.c (pascal_language_data): Delete la_print_type
3165 initializer.
3166 (pascal_language::print_type): New member function.
3167 * rust-lang.c (rust_print_type): Delete, implementation moved to
3168 rust_language::print_type.
3169 (rust_language_data): Delete la_print_type initializer.
3170 (rust_language::print_type): New member function, implementation
3171 from rust_print_type.
3172
3173 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3176 implementation moves to...
3177 (ada_language::sniff_from_mangled_name): ...here. Update return
3178 type.
3179 (ada_language_data): Delete la_sniff_from_mangled_name
3180 initializer.
3181 * c-lang.c (c_language_data): Likewise.
3182 (cplus_language_data): Likewise.
3183 (cplus_language::sniff_from_mangled_name): New member function,
3184 implementation taken from gdb_sniff_from_mangled_name.
3185 (asm_language_data): Delete la_sniff_from_mangled_name
3186 initializer.
3187 (minimal_language_data): Likewise.
3188 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3189 implementation moves to cplus_language::sniff_from_mangled_name.
3190 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3191 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3192 moves to...
3193 (d_language::sniff_from_mangled_name): ...here.
3194 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3195 * f-lang.c (f_language_data): Likewise.
3196 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3197 moves to...
3198 (go_language::sniff_from_mangled_name): ...here.
3199 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3200 * language.c (language_sniff_from_mangled_name): Delete.
3201 (unknown_language_data): Delete la_sniff_from_mangled_name
3202 initializer.
3203 (auto_language_data): Likewise.
3204 * language.h (language_data): Delete la_sniff_from_mangled_name
3205 field.
3206 (language_defn::sniff_from_mangled_name): New function.
3207 (language_sniff_from_mangled_name): Delete declaration.
3208 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3209 field.
3210 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3211 implementation moves to...
3212 (objc_language::sniff_from_mangled_name): ...here.
3213 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3214 * opencl-lang.c (opencl_language_data): Likewise.
3215 * p-lang.c (pascal_language_data): Likewise.
3216 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3217 implementation moves to...
3218 (rust_language::sniff_from_mangled_name): ...here.
3219 (rust_language_data): Delete la_sniff_from_mangled_name
3220 initializer.
3221 * symtab.c (symbol_find_demangled_name): Call
3222 sniff_from_mangled_name member function.
3223
3224 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3227 initializer.
3228 * c-lang.c (c_language_data): Likewise.
3229 (cplus_language_data): Likewise.
3230 (cplus_language::search_name_hash): New member function.
3231 (asm_language_data): Delete la_search_name_hash initializer.
3232 (minimal_language_data): Likewise.
3233 * d-lang.c (d_language_data): Likewise.
3234 * dictionary.c (default_search_name_hash): Rename to...
3235 (language_defn::search_name_hash): ...this.
3236 * f-lang.c (f_language_data): Likewise.
3237 (f_language::search_name_hash): New member function.
3238 * go-lang.c (go_language_data): Delete la_search_name_hash
3239 initializer.
3240 * language.c (unknown_language_data): Likewise.
3241 (auto_language_data): Likewise.
3242 * language.h (struct language_data): Delete la_search_name_hash
3243 field.
3244 (language_defn::search_name_hash): Declare new member function.
3245 (default_search_name_hash): Delete declaration.
3246 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3247 initializer.
3248 * objc-lang.c (objc_language_data): Likewise.
3249 * opencl-lang.c (opencl_language_data): Likewise.
3250 * p-lang.c (pascal_language_data): Likewise.
3251 * rust-lang.c (rust_language_data): Likewise.
3252 * symtab.c (search_name_hash): Update call.
3253
3254 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3257 initializer.
3258 * c-lang.c (class compile_instance): Declare.
3259 (c_language_data): Delete la_get_compile_instance initializer.
3260 (c_language::get_compile_instance): New member function.
3261 (cplus_language_data): Delete la_get_compile_instance initializer.
3262 (cplus_language::get_compile_instance): New member function.
3263 (asm_language_data): Delete la_get_compile_instance initializer.
3264 (minimal_language_data): Likewise.
3265 * c-lang.h (c_get_compile_context): Update comment.
3266 (cplus_get_compile_context): Update comment.
3267 * compile/compile.c (compile_to_object): Update calls, don't rely
3268 on function pointer being NULL.
3269 * d-lang.c (d_language_data): Delete la_get_compile_instance
3270 initializer.
3271 * f-lang.c (f_language_data): Likewise.
3272 * go-lang.c (go_language_data): Likewise.
3273 * language.c (unknown_language_data): Likewise.
3274 (auto_language_data): Likewise.
3275 * language.h (language_data): Delete la_get_compile_instance field.
3276 (language_defn::get_compile_instance): New member function.
3277 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3278 initializer.
3279 * objc-lang.c (objc_language_data): Likewise.
3280 * opencl-lang.c (opencl_language_data): Likewise.
3281 * p-lang.c (pascal_language_data): Likewise.
3282 * rust-lang.c (rust_language_data): Likewise.
3283
3284 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * ada-lang.c (ada_add_all_symbols): Update comment.
3287 (ada_iterate_over_symbols): Delete, move implementation to...
3288 (ada_language::iterate_over_symbols): ...here, a new member
3289 function, rewrite to use range based for loop.
3290 (ada_language_data): Delete la_iterate_over_symbols initializer.
3291 * c-lang.c (c_language_data): Likewise.
3292 (cplus_language_data): Likewise.
3293 (asm_language_data): Likewise.
3294 (minimal_language_data): Likewise.
3295 * d-lang.c (d_language_data): Likewise.
3296 * f-lang.c (f_language_data): Likewise.
3297 * go-lang.c (go_language_data): Likewise.
3298 * language.c (unknown_language_data): Likewise.
3299 (auto_language_data): Likewise.
3300 * language.h (language_data): Delete la_iterate_over_symbols field.
3301 (language_defn::iterate_over_symbols): New member function.
3302 (LA_ITERATE_OVER_SYMBOLS): Update.
3303 * linespec.c (iterate_over_all_matching_symtabs): Update.
3304 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3305 initializer.
3306 * objc-lang.c (objc_language_data): Likewise.
3307 * opencl-lang.c (opencl_language_data): Likewise.
3308 * p-lang.c (pascal_language_data): Likewise.
3309 * rust-lang.c (rust_language_data): Likewise.
3310
3311 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * ada-lang.c (ada_language_data): Delete
3314 la_lookup_transparent_type initializer.
3315 * c-lang.c (c_language_data): Likewise.
3316 (cplus_language_data): Likewise.
3317 (cplus_language::lookup_transparent_type): New member function.
3318 (asm_language_data): Delete la_lookup_transparent_type
3319 initializer.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 * go-lang.c (go_language_data): Likewise.
3324 * language.c (unknown_language_data): Likewise.
3325 (auto_language_data): Likewise.
3326 * language.h (struct language_data): Delete
3327 la_lookup_transparent_type field.
3328 (language_defn::lookup_transparent_type): New member function.
3329 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3330 initializer.
3331 * objc-lang.c (objc_language_data): Likewise.
3332 * opencl-lang.c (opencl_language_data): Likewise.
3333 * p-lang.c (pascal_language_data): Likewise.
3334 * rust-lang.c (rust_language_data): Likewise.
3335 * symtab.c (symbol_matches_domain): Update call.
3336
3337 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * ada-lang.c (ada_language_arch_info): Delete function, move
3340 implementation to...
3341 (ada_language::language_arch_info): ...here, a new member
3342 function.
3343 (ada_language_data): Delete la_language_arch_info.
3344 * c-lang.c (c_language_data): Likewise.
3345 (c_language::language_arch_info): New member function.
3346 (cplus_language_arch_info): Delete function, move
3347 implementation to...
3348 (cplus_language::language_arch_info): ...here, a new member
3349 function.
3350 (cplus_language_data): Delete la_language_arch_info.
3351 (asm_language_data): Likewise.
3352 (asm_language::language_arch_info): New member function.
3353 (minimal_language_data): Delete la_language_arch_info.
3354 (minimal_language::language_arch_info): New member function.
3355 * d-lang.c (d_language_arch_info): Delete function, move
3356 implementation to...
3357 (d_language::language_arch_info): ...here, a new member
3358 function.
3359 (d_language_data): Delete la_language_arch_info.
3360 * f-lang.c (f_language_arch_info): Delete function, move
3361 implementation to...
3362 (f_language::language_arch_info): ...here, a new member
3363 function.
3364 (f_language_data): Delete la_language_arch_info.
3365 * go-lang.c (go_language_arch_info): Delete function, move
3366 implementation to...
3367 (go_language::language_arch_info): ...here, a new member
3368 function.
3369 (go_language_data): Delete la_language_arch_info.
3370 * language.c (unknown_language_data): Likewise.
3371 (unknown_language::language_arch_info): New member function.
3372 (auto_language_data): Delete la_language_arch_info.
3373 (auto_language::language_arch_info): New member function.
3374 (language_gdbarch_post_init): Update call to
3375 la_language_arch_info.
3376 * language.h (language_data): Delete la_language_arch_info
3377 function pointer.
3378 (language_defn::language_arch_info): New function.
3379 * m2-lang.c (m2_language_arch_info): Delete function, move
3380 implementation to...
3381 (m2_language::language_arch_info): ...here, a new member
3382 function.
3383 (m2_language_data): Delete la_language_arch_info.
3384 * objc-lang.c (objc_language_arch_info): Delete function, move
3385 implementation to...
3386 (objc_language::language_arch_info): ...here, a new member
3387 function.
3388 (objc_language_data): Delete la_language_arch_info.
3389 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3390 implementation to...
3391 (opencl_language::language_arch_info): ...here, a new member
3392 function.
3393 (opencl_language_data): Delete la_language_arch_info.
3394 * p-lang.c (pascal_language_arch_info): Delete function, move
3395 implementation to...
3396 (pascal_language::language_arch_info): ...here, a new member
3397 function.
3398 (pascal_language_data): Delete la_language_arch_info.
3399 * rust-lang.c (rust_language_arch_info): Delete function, move
3400 implementation to...
3401 (rust_language::language_arch_info): ...here, a new member
3402 function.
3403 (rust_language_data): Delete la_language_arch_info.
3404
3405 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3408 initializer.
3409 * c-lang.c (c_language_data): Likewise.
3410 (cplus_language_data): Likewise.
3411 (cplus_language::pass_by_reference_info): New method.
3412 (asm_language_data): Delete la_pass_by_reference initializer.
3413 (minimal_language_data): Likewise.
3414 * cp-abi.c (cp_pass_by_reference): Remove use of
3415 default_pass_by_reference.
3416 * d-lang.c (d_language_data): Likewise.
3417 * f-lang.c (f_language_data): Likewise.
3418 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3419 default_pass_by_reference.
3420 * go-lang.c (go_language_data): Likewise.
3421 * language.c (language_pass_by_reference): Update.
3422 (default_pass_by_reference): Delete.
3423 (unknown_language_data): Delete la_pass_by_reference
3424 initializer.
3425 (auto_language_data): Likewise.
3426 * language.h (struct language_data): Delete la_pass_by_reference
3427 field.
3428 (language_defn::pass_by_reference_info): New member function.
3429 (default_pass_by_reference): Delete declaration.
3430 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3431 initializer.
3432 * objc-lang.c (objc_language_data): Likewise.
3433 * opencl-lang.c (opencl_language_data): Likewise.
3434 * p-lang.c (pascal_language_data): Likewise.
3435 * rust-lang.c (rust_language_data): Likewise.
3436
3437 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * ada-lang.c (ada_read_var_value): Delete function, move
3440 implementation to...
3441 (ada_language::read_var_value): ...here.
3442 (ada_language_data): Delete la_read_var_value initializer.
3443 * c-lang.c (c_language_data): Likewise.
3444 (cplus_language_data): Likewise.
3445 (minimal_language_data): Likewise.
3446 * d-lang.c (d_language_data): Likewise.
3447 * f-lang.c (f_language_data): Likewise.
3448 * findvar.c (default_read_var_value): Rename to...
3449 (language_defn::read_var_value): ...this.
3450 * findvar.c (read_var_value): Update header comment, and change to
3451 call member function instead of function pointer.
3452 * go-lang.c (go_language_data): Likewise.
3453 * language.c (unknown_language_data): Delete la_read_var_value
3454 initializer.
3455 (auto_language_data): Likewise.
3456 * language.h (struct language_data): Delete la_read_var_value
3457 field.
3458 (language_defn::read_var_value): New member function.
3459 (default_read_var_value): Delete declaration.
3460 * m2-lang.c (m2_language_data): Delete la_read_var_value
3461 initializer.
3462 * objc-lang.c (objc_language_data): Likewise.
3463 * opencl-lang.c (opencl_language_data): Likewise.
3464 * p-lang.c (pascal_language_data): Likewise.
3465 * rust-lang.c (rust_language_data): Likewise.
3466 * value.h (default_read_var_value): Delete declaration.
3467
3468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * ada-lang.c (ada_print_array_index): Delete function, move
3471 implementation to...
3472 (ada_language::print_array_index): ...here.
3473 (ada_language_data): Delete la_print_array_index initializer.
3474 * c-lang.c (c_language_data): Likewise.
3475 (cplus_language_data): Likewise.
3476 (minimal_language_data): Likewise.
3477 * d-lang.c (d_language_data): Likewise.
3478 * f-lang.c (f_language_data): Likewise.
3479 * go-lang.c (go_language_data): Likewise.
3480 * language.c (default_print_array_index): Delete function, move
3481 implementation to...
3482 (language_defn::print_array_index): ...here.
3483 (unknown_language_data): Delete la_print_array_index initializer.
3484 (auto_language_data): Likewise.
3485 * language.h (struct language_data): Delete la_print_array_index
3486 field.
3487 (language_defn::print_array_index): New member function.
3488 (LA_PRINT_ARRAY_INDEX): Update.
3489 (default_print_array_index): Delete declaration.
3490 * m2-lang.c (m2_language_data): Delete la_print_array_index
3491 initializer.
3492 * objc-lang.c (objc_language_data): Likewise.
3493 * opencl-lang.c (opencl_language_data): Likewise.
3494 * p-lang.c (pascal_language_data): Likewise.
3495 * rust-lang.c (rust_language_data): Likewise.
3496
3497 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * gdb/ada-lang.c (ada_language_defn): Convert to...
3500 (ada_language_data): ...this.
3501 (class ada_language): New class.
3502 (ada_language_defn): New static global.
3503 * gdb/c-lang.c (c_language_defn): Convert to...
3504 (c_language_data): ...this.
3505 (class c_language): New class.
3506 (c_language_defn): New static global.
3507 (cplus_language_defn): Convert to...
3508 (cplus_language_data): ...this.
3509 (class cplus_language): New class.
3510 (cplus_language_defn): New static global.
3511 (asm_language_defn): Convert to...
3512 (asm_language_data): ...this.
3513 (class asm_language): New class.
3514 (asm_language_defn): New static global.
3515 (minimal_language_defn): Convert to...
3516 (minimal_language_data): ...this.
3517 (class minimal_language): New class.
3518 (minimal_language_defn): New static global.
3519 * gdb/d-lang.c (d_language_defn): Convert to...
3520 (d_language_data): ...this.
3521 (class d_language): New class.
3522 (d_language_defn): New static global.
3523 * gdb/f-lang.c (f_language_defn): Convert to...
3524 (f_language_data): ...this.
3525 (class f_language): New class.
3526 (f_language_defn): New static global.
3527 * gdb/go-lang.c (go_language_defn): Convert to...
3528 (go_language_data): ...this.
3529 (class go_language): New class.
3530 (go_language_defn): New static global.
3531 * gdb/language.c (unknown_language_defn): Remove declaration.
3532 (current_language): Initialize to nullptr, real initialization is
3533 moved to _initialize_language.
3534 (languages): Delete global.
3535 (language_defn::languages): Define.
3536 (set_language_command): Use language_defn::languages.
3537 (set_language): Likewise.
3538 (range_error): Likewise.
3539 (language_enum): Likewise.
3540 (language_def): Likewise.
3541 (add_set_language_command): Use language_def::languages for the
3542 language list, and language_def to lookup language pointers.
3543 (skip_language_trampoline): Use language_defn::languages.
3544 (unknown_language_defn): Convert to...
3545 (unknown_language_data): ...this.
3546 (class unknown_language): New class.
3547 (unknown_language_defn): New static global.
3548 (auto_language_defn): Convert to...
3549 (auto_language_data): ...this.
3550 (class auto_language): New class.
3551 (auto_language_defn): New static global.
3552 (language_gdbarch_post_init): Use language_defn::languages.
3553 (_initialize_language): Initialize current_language.
3554 * gdb/language.h (struct language_defn): Rename to...
3555 (struct language_data): ...this.
3556 (struct language_defn): New.
3557 (auto_language_defn): Delete.
3558 (unknown_language_defn): Delete.
3559 (minimal_language_defn): Delete.
3560 (ada_language_defn): Delete.
3561 (asm_language_defn): Delete.
3562 (c_language_defn): Delete.
3563 (cplus_language_defn): Delete.
3564 (d_language_defn): Delete.
3565 (f_language_defn): Delete.
3566 (go_language_defn): Delete.
3567 (m2_language_defn): Delete.
3568 (objc_language_defn): Delete.
3569 (opencl_language_defn): Delete.
3570 (pascal_language_defn): Delete.
3571 (rust_language_defn): Delete.
3572 * gdb/m2-lang.c (m2_language_defn): Convert to...
3573 (m2_language_data): ...this.
3574 (class m2_language): New class.
3575 (m2_language_defn): New static global.
3576 * gdb/objc-lang.c (objc_language_defn): Convert to...
3577 (objc_language_data): ...this.
3578 (class objc_language): New class.
3579 (objc_language_defn): New static global.
3580 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3581 (opencl_language_data): ...this.
3582 (class opencl_language): New class.
3583 (opencl_language_defn): New static global.
3584 * gdb/p-lang.c (pascal_language_defn): Convert to...
3585 (pascal_language_data): ...this.
3586 (class pascal_language): New class.
3587 (pascal_language_defn): New static global.
3588 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3589 language pointer, update comment format.
3590 * gdb/rust-lang.c (rust_language_defn): Convert to...
3591 (rust_language_data): ...this.
3592 (class rust_language): New class.
3593 (rust_language_defn): New static global.
3594
3595 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3596
3597 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3598 member variable.
3599 <m_stmt_at_address>: New member variable.
3600 (lnp_state_machine::record_line): Don't record some lines, update
3601 tracking of is_stmt at the same address.
3602 (lnp_state_machine::lnp_state_machine): Initialise new member
3603 variables.
3604
3605 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3606
3607 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3608 "-include gnu-nat-mig.h".
3609 * gnu-nat-mig.h: New file.
3610 * gnu-nat.c: Include "gnu-nat-mig.h".
3611 (exc_server, msg_reply_server, notify_server,
3612 process_reply_server): Remove declarations.
3613
3614 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3615
3616 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3617 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3618 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3619 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3620 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3621 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3622 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3623 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3624 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3625 to gnu_nat_target class.
3626 * gnu-nat.c: Likewise.
3627 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3628 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3629 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3630 object.
3631 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3632 instead of `gnu_target'.
3633
3634 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3635
3636 * i386-gnu-tdep.c: Include "gdbcore.h"
3637 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3638 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3639 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3640 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3641 i386_gnu_sigcontext_addr): New functions
3642 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3643 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3644 tdep.
3645
3646 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3647
3648 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3649 before fork_inferior call. Avoid calling it if target_is_pushed returns
3650 true.
3651
3652 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3653
3654 * gnu-nat.h (gnu_target): New variable declaration.
3655 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3656 gnu_target.
3657 * gnu-nat.c (gnu_target): New variable.
3658 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3659 add_thread_silent, and add_thread calls.
3660 (gnu_nat_target::create_inferior): Pass gnu_target to
3661 add_thread_silent, thread_change_ptid call.
3662 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3663 call.
3664
3665 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3666
3667 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3668 (gnu_nat_target::find_memory_regions): Remove unused
3669 `old_address' variable.
3670
3671 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3672
3673 * gnu-nat.c: Include "gdbarch.h".
3674
3675 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3676
3677 * reply_mig_hack.awk (Error return): Cast function through
3678 void *, to bypass compiler function call check.
3679
3680 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3681
3682 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3683 $(srcdir)/reply_mig_hack.awk.
3684
3685 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3686
3687 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3688
3689 2020-05-30 Jonny Grant <jg@jguk.org>
3690
3691 * configure.ac (ACX_BUGURL): change bug URL to https.
3692
3693 2020-05-30 Pedro Alves <palves@redhat.com>
3694
3695 * cp-support.c (replace_typedefs_template): New.
3696 (replace_typedefs_qualified_name): Handle
3697 DEMANGLE_COMPONENT_TEMPLATE.
3698
3699 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3702 dwarf2/index-cache.h, dwarf2/index-write.c,
3703 dwarf2/index-write.h, dwarf2/line-header.c,
3704 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3705 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3706 variables and fields from `dwarf2_per_objfile` to just
3707 `per_objfile` throughout.
3708
3709 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3712 <push_dwarf_reg_entry_value>: Add comment.
3713
3714 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3715 Keith Seitz <keiths@redhat.com>
3716
3717 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3718 instead of PyEval_ReleaseLock.
3719 (class gdbpy_gil): Move to earlier in file.
3720 (finalize_python): Set gdb_python_initialized.
3721 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3722 when not initialized.
3723
3724 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3727 <push_dwarf_reg_entry_value>: Remove assert. Override
3728 per_objfile with caller_per_objfile.
3729
3730 2020-05-28 Tom de Vries <tdevries@suse.de>
3731
3732 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3733 PR gold/15646 workaround to symbol kind "type".
3734
3735 2020-05-27 Tom Tromey <tromey@adacore.com>
3736
3737 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3738
3739 2020-05-27 Tom Tromey <tromey@adacore.com>
3740
3741 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3742 Use htab_find_with_hash.
3743 <add_abbrev>: Remove "abbrev_number" parameter.
3744 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3745 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3746 (hash_abbrev): Add comment.
3747 (abbrev_table::lookup_abbrev): Move to header file.
3748 (abbrev_table::read): Update.
3749
3750 2020-05-27 Tom Tromey <tromey@adacore.com>
3751
3752 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3753 method.
3754 <canonical_name>: New member.
3755 <raw_name>: Rename from "name".
3756 (partial_die_info): Initialize canonical_name.
3757 (scan_partial_symbols): Check raw_name.
3758 (partial_die_parent_scope, partial_die_full_name)
3759 (add_partial_symbol, add_partial_subprogram)
3760 (add_partial_enumeration, load_partial_dies): Use "name" method.
3761 (partial_die_info::name): New method.
3762 (partial_die_info::read, guess_partial_die_structure_name)
3763 (partial_die_info::fixup): Update.
3764
3765 2020-05-27 Tom Tromey <tromey@adacore.com>
3766
3767 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3768 <get_ref_die_offset>: Inline.
3769 <get_ref_die_offset_complaint>: New method.
3770 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3771 (attribute::get_ref_die_offset_complaint): Rename from
3772 get_ref_die_offset. Just issue complaint.
3773
3774 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3775
3776 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3777
3778 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3779
3780 * exec.c (exec_file_attach): Use errno value of first openp failure.
3781
3782 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3783
3784 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3785 Don't close thread handle.
3786
3787 2020-05-27 Tom Tromey <tom@tromey.com>
3788 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3791 shared_ptr.
3792 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3793 member.
3794 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3795 dwarf2_per_bfd_objfile_data_key>: New globals.
3796 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3797 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3798 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3799 shared.
3800 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3801 short-circuit when sharing.
3802 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3803 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3804
3805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3808 to...
3809 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3810 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3811
3812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3813
3814 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3815 build_name_components, find_name_components_bounds>:
3816 Add per_objfile parameter.
3817 (struct mapped_index) <symbol_name_at>: Likewise.
3818 (struct mapped_debug_names): Remove constructor.
3819 <dwarf2_per_objfile>: Remove field.
3820 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3821 (mapped_index_base::find_name_components_bounds,
3822 mapped_index_base::build_name_components,
3823 dw2_expand_symtabs_matching_symbol): Likewise.
3824 (class mock_mapped_index) <symbol_name_at>: Likewise.
3825 (check_match): Likewise.
3826 (check_find_bounds_finds): Likewise.
3827 (test_mapped_index_find_name_component_bounds): Update.
3828 (CHECK_MATCH): Update.
3829 (dw2_expand_symtabs_matching): Update.
3830 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3831 per_objfile parameter.
3832 <find_vec_in_debug_names>: Likewise.
3833 <m_per_objfile>: New field.
3834 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3835 parameter.
3836 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3837 (dw2_debug_names_iterator::next): Update.
3838 (dw2_debug_names_lookup_symbol): Update.
3839 (dw2_debug_names_expand_symtabs_for_function): Update.
3840 (dw2_debug_names_map_matching_symbols): Update.
3841 (dw2_debug_names_expand_symtabs_matching): Update.
3842 (dwarf2_read_debug_names): Update.
3843
3844 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3847 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3848 move to dwarf2_per_objfile.
3849 <read_in_chain>: Remove.
3850 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3851 remove_all_cus, age_comp_units>: New methods.
3852 <m_dwarf2_cus>: New member.
3853 (struct dwarf2_per_cu_data) <cu>: Remove.
3854 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3855 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3856 moved to methods of dwarf2_per_objfile.
3857 (dwarf2_clear_marks): Remove.
3858 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3859 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3860 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3861 (dwarf2_per_objfile::remove_all_cus): New.
3862 (class free_cached_comp_units) <~free_cached_comp_units>:
3863 Update.
3864 (load_cu): Update.
3865 (dw2_do_instantiate_symtab): Adjust.
3866 (fill_in_sig_entry_from_dwo_entry): Adjust.
3867 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3868 (cutu_reader::cutu_reader): Likewise.
3869 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3870 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3871 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3872 and dwarf2_per_objfile::age_comp_units.
3873 (load_partial_comp_unit): Update.
3874 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3875 (process_queue): Likewise.
3876 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3877 backlink.
3878 (dwarf2_read_addr_index): Likewise.
3879 (follow_die_offset): Likewise.
3880 (dwarf2_fetch_die_loc_sect_off): Likewise.
3881 (dwarf2_fetch_constant_bytes): Likewise.
3882 (dwarf2_fetch_die_type_sect_off): Likewise.
3883 (follow_die_sig_1): Likewise.
3884 (load_full_type_unit): Likewise.
3885 (read_signatured_type): Likewise.
3886 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3887 (dwarf2_cu::~dwarf2_cu): Remove.
3888 (dwarf2_per_objfile::get_cu): New.
3889 (dwarf2_per_objfile::set_cu): New.
3890 (age_cached_comp_units): Rename to...
3891 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3892 to std::unordered_map.
3893 (free_one_cached_comp_unit): Rename to...
3894 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3895 to std::unordered_map.
3896 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3897 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3898 a dwarf2_per_objfile in data.
3899 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3900 (dwarf2_clear_marks): Remove.
3901
3902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3905 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3906 (init_tu_and_read_dwo_dies): Likewise.
3907 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3908 (cutu_reader::cutu_reader): Likewise.
3909 (load_partial_comp_unit): Likewise.
3910 (process_psymtab_comp_unit): Update.
3911 (build_type_psymtabs_1): Update.
3912 (process_skeletonless_type_unit): Update.
3913 (load_full_comp_unit): Update.
3914 (find_partial_die): Update.
3915 (dwarf2_read_addr_index): Update.
3916 (read_signatured_type): Update.
3917
3918 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3919
3920 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3921 m_header_read_in>: New fields.
3922 <get_header>: New method.
3923 * dwarf2/read.c (per_cu_header_read_in): Remove.
3924 (dwarf2_per_cu_data::get_header): New.
3925 (dwarf2_per_cu_data::addr_size): Update.
3926 (dwarf2_per_cu_data::offset_size): Update.
3927 (dwarf2_per_cu_data::ref_addr_size): Update.
3928
3929 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3932 (dw2_do_instantiate_symtab): Update.
3933 (queue_and_load_all_dwo_tus): Change parameter from
3934 dwarf2_per_cu_data to dwarf2_cu.
3935 (dwarf2_fetch_die_loc_sect_off): Update.
3936 (dwarf2_fetch_constant_bytes): Update.
3937 (dwarf2_fetch_die_type_sect_off): Update.
3938
3939 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3940
3941 * dwarf2/read.c (process_full_comp_unit,
3942 process_full_type_unit): Remove per_cu, per_objfile paramters.
3943 Add dwarf2_cu parameter.
3944 (process_queue): Update.
3945
3946 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * dwarf2/read.c (create_cu_from_index_list): Replace
3949 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3950 (create_cus_from_index_list): Likewise.
3951 (create_cus_from_index): Likewise.
3952 (create_signatured_type_table_from_index): Likewise.
3953 (create_cus_from_debug_names_list): Likewise.
3954 (create_cus_from_debug_names): Likewise.
3955 (dwarf2_read_gdb_index): Update.
3956 (dwarf2_read_debug_names): Update.
3957
3958 2020-05-27 Tom Tromey <tom@tromey.com>
3959 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * dwarf2/read.h (struct dwarf2_per_objfile)
3962 <get_type_for_signatured_type, set_type_for_signatured_type>:
3963 New methods.
3964 <m_type_map>: New member.
3965 (struct signatured_type) <type>: Remove.
3966 * dwarf2/read.c
3967 (dwarf2_per_objfile::get_type_for_signatured_type,
3968 dwarf2_per_objfile::set_type_for_signatured_type): New.
3969 (get_signatured_type): Use new methods.
3970
3971 2020-05-27 Tom Tromey <tom@tromey.com>
3972 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3975 (struct dwarf2_per_objfile) <type_units>: New member.
3976 <get_type_unit_group_unshareable>: New method.
3977 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3978 num_symtabs, symtabs>: Remove; move to
3979 type_unit_group_unshareable.
3980 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3981 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3982 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3983
3984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * dwarf2/read.h (struct dwarf2_per_cu_data):
3987 <dwarf2_per_objfile>: Remove.
3988 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3989 dwarf2_per_objfile.
3990 (create_signatured_type_table_from_index): Likewise.
3991 (create_signatured_type_table_from_debug_names): Likewise.
3992 (create_debug_type_hash_table): Likewise.
3993 (fill_in_sig_entry_from_dwo_entry): Likewise.
3994 (create_type_unit_group): Likewise.
3995 (read_comp_units_from_section): Likewise.
3996 (create_cus_hash_table): Likewise.
3997
3998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4001 dwarf2_per_cu_data::dwarf2_per_objfile.
4002 (compute_compunit_symtab_includes): Likewise.
4003 (dwarf2_cu::start_symtab): Likewise.
4004
4005 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4008 parameter.
4009 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4010 (read_namespace_alias): Update.
4011 (lookup_die_type): Update.
4012 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4013 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4014 Update.
4015 (disassemble_dwarf_expression): Update.
4016
4017 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * dwarf2/read.h (struct dwarf2_queue_item): Add
4020 dwarf2_per_objfile parameter, assign new parameter.
4021 <per_objfile>: New field.
4022 * dwarf2/read.c (free_one_cached_comp_unit): Add
4023 dwarf2_per_objfile parameter.
4024 (queue_comp_unit): Likewise.
4025 (dw2_do_instantiate_symtab): Update.
4026 (process_psymtab_comp_unit): Update.
4027 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4028 (process_imported_unit_die): Update.
4029 (queue_and_load_dwo_tu): Update.
4030 (follow_die_offset): Update.
4031 (follow_die_sig_1): Update.
4032
4033 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4036 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4037 (read_call_site_scope): Assign per_objfile.
4038 (dwarf2_per_cu_data::objfile): Remove.
4039 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4040 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4041 dwarf2_per_objfile parameter.
4042 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4043 dwarf2_per_objfile parameter.
4044 (dwarf_expr_reg_to_entry_parameter): Add output
4045 dwarf2_per_objfile parameter.
4046 (locexpr_get_frame_base): Update.
4047 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4048 <push_dwarf_reg_entry_value>: Update.
4049 <call_site_to_target_addr>: Update.
4050 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4051 parameter.
4052 (value_of_dwarf_reg_entry): Update.
4053 (rw_pieced_value): Update.
4054 (indirect_synthetic_pointer): Update.
4055 (dwarf2_evaluate_property): Update.
4056 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4057 parameter.
4058 (locexpr_read_variable): Update.
4059 (locexpr_get_symbol_read_needs): Update.
4060 (loclist_read_variable): Update.
4061
4062 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
4069 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4070 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4071 parameter.
4072 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4073 sect_variable_value): Add dwarf2_per_objfile parameter.
4074 (class dwarf_evaluate_loc_desc) <dwarf_call,
4075 dwarf_variable_value>: Update.
4076 (fetch_const_value_from_synthetic_pointer): Add
4077 dwarf2_per_objfile parameter.
4078 (fetch_const_value_from_synthetic_pointer): Update.
4079 (coerced_pieced_ref): Update.
4080 (class symbol_needs_eval_context) <dwarf_call,
4081 dwarf_variable_value>: Update.
4082 (dwarf2_compile_expr_to_ax): Update.
4083
4084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4087 parameter.
4088 (dwarf2_evaluate_loc_desc_full): Update.
4089
4090 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4093 parameter.
4094 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4095 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4096 dwarf2_per_objfile parameter.
4097 (decode_debug_loc_dwo_addresses): Likewise.
4098 (dwarf2_find_location_expression): Update.
4099 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4100 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4101 parameter.
4102 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4103 parameter.
4104 (locexpr_describe_location_1): Likewise.
4105 (locexpr_describe_location): Update.
4106
4107 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4110 Remove.
4111 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4112 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4113 (dwarf2_compile_property_to_c): Update.
4114 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4115 use text offset from objfile.
4116 (locexpr_tracepoint_var_ref): Update.
4117 (locexpr_generate_c_location): Update.
4118 (loclist_describe_location): Update.
4119 (loclist_tracepoint_var_ref): Update.
4120 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4121 dwarf2_per_objfile parameter.
4122 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4123 use text offset from objfile.
4124 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4125
4126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * dwarf2/expr.h (struct dwarf_expr_context)
4129 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4130 <offset>: Remove.
4131 <per_objfile>: New member.
4132 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4133 dwarf2_per_objfile parameter. Don't set offset, set
4134 per_objfile.
4135 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4136 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4137 a dwarf2_per_objfile object instead of an offset.
4138 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4139 constructor.
4140 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4141 to dwarf2_expr_executor constructor. Don't set offset.
4142 (dwarf2_fetch_cfa_info): Update.
4143 (struct dwarf2_frame_cache) <text_offset>: Remove.
4144 <per_objfile>: New field.
4145 (dwarf2_frame_cache): Update.
4146 (dwarf2_frame_prev_register): Update.
4147 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4148 <dwarf_evaluate_loc_desc>: Add constructor.
4149 (dwarf2_evaluate_loc_desc_full): Update.
4150 (dwarf2_locexpr_baton_eval): Update.
4151 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4152 Add constructor.
4153 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4154
4155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4158 addr_sized_int_type>: Move to dwarf2_cu.
4159 <int_type>: Move to dwarf2_per_objfile.
4160 (struct dwarf2_per_objfile) <int_type>: Move here.
4161 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4162 addr_sized_int_type>: Move here.
4163 (read_func_scope): Update.
4164 (read_array_type): Update.
4165 (read_tag_string_type): Update.
4166 (attr_to_dynamic_prop): Update.
4167 (dwarf2_per_cu_data::int_type): Rename to...
4168 (dwarf2_per_objfile::int_type): ... this.
4169 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4170 (dwarf2_cu::addr_sized_int_type): ... this.
4171 (read_subrange_type): Update.
4172 (dwarf2_per_cu_data::addr_type): Rename to...
4173 (dwarf2_cu::addr_type): ... this.
4174 (set_die_type): Update.
4175
4176 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4179 data through per_cu->cu.
4180
4181 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4184 dwarf2_per_cu_data parameter fo dwarf2_cu.
4185 (lookup_dwo_type_unit): Likewise.
4186 (read_cutu_die_from_dwo): Likewise.
4187 (lookup_dwo_unit): Likewise.
4188 (open_and_init_dwo_file): Likewise.
4189 (lookup_dwo_cutu): Likewise.
4190 (lookup_dwo_comp_unit): Likewise.
4191 (lookup_dwo_type_unit): Likewise.
4192 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4193 (cutu_reader::cutu_reader): Update.
4194
4195 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4198 parameter.
4199 (process_full_type_unit): Likewise.
4200 (process_queue): Update.
4201
4202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.c (recursively_compute_inclusions): Add
4205 dwarf2_per_objfile parameter.
4206 (compute_compunit_symtab_includes): Likewise.
4207 (process_cu_includes): Update.
4208
4209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4210
4211 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4212 parameter.
4213 (create_type_unit_group): Update.
4214 (process_psymtab_comp_unit_reader): Update.
4215 (build_type_psymtabs_reader): Update.
4216
4217 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4220 object through m_this_cu->cu.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4223
4224 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4225 the info parameter.
4226 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4227
4228 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4231 per_objfile parameter.
4232 (load_full_type_unit): Add per_objfile parameter.
4233 (read_signatured_type): Likewise.
4234 (load_full_comp_unit): Likewise.
4235 (load_cu): Likewise.
4236 (dw2_do_instantiate_symtab): Likewise.
4237 (dw2_get_file_names): Likewise.
4238 (dw2_map_symtabs_matching_filename): Update.
4239 (dw_expand_symtabs_matching_file_matcher): Update.
4240 (dw2_map_symbol_filenames): Update.
4241 (process_psymtab_comp_unit): Add per_objfile parameter.
4242 (build_type_psymtabs_1): Update.
4243 (process_skeletonless_type_unit): Update.
4244 (dwarf2_build_psymtabs_hard): Update.
4245 (load_partial_comp_unit): Add per_objfile parameter.
4246 (scan_partial_symbols): Update.
4247 (load_full_comp_unit): Add per_objfile parameter.
4248 (process_imported_unit_die): Update.
4249 (create_cus_hash_table): Update.
4250 (find_partial_die): Update.
4251 (dwarf2_read_addr_index): Update.
4252 (follow_die_offset): Update.
4253 (dwarf2_fetch_die_loc_sect_off): Update.
4254 (dwarf2_fetch_constant_bytes): Update.
4255 (dwarf2_fetch_die_type_sect_off): Update.
4256 (follow_die_sig_1): Update.
4257 (load_full_type_unit): Add per_objfile parameter.
4258 (read_signatured_type): Likewise.
4259
4260 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4263 of objfile_name.
4264
4265 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4266
4267 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4268 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4269 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4270 field.
4271 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4272 (create_cus_from_index): Update.
4273 (dwarf2_read_gdb_index): Update.
4274 (create_cus_from_debug_names): Update.
4275 (dwarf2_read_debug_names): Update.
4276 (get_abbrev_section_for_cu): Update.
4277 (create_all_comp_units): Update.
4278 (read_attribute_value): Update.
4279 (get_debug_line_section): Update.
4280 * dwarf2/index-cache.c (index_cache::store): Update.
4281 * dwarf2/index-write.c (save_gdb_index_command): Update.
4282 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4283
4284 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4285
4286 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4287 member.
4288 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4289 dwarf2_per_cu_data::per_bfd.
4290 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4291 (create_type_unit_group): Likewise.
4292 (queue_comp_unit): Remove reference to
4293 per_cu->dwarf2_per_objfile.
4294 (maybe_queue_comp_unit): Likewise.
4295 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4296 (create_cus_hash_table): Assign new field.
4297
4298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * dwarf2/read.c: Replace
4301 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4302 dwarf2_cu->per_objfile throughout.
4303
4304 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4307 parameter, don't use per_cu->dwarf2_per_objfile.
4308 (dw2_instantiate_symtab): Likewise.
4309 (dw2_find_last_source_symtab): Update.
4310 (dw2_map_expand_apply): Update.
4311 (dw2_lookup_symbol): Update.
4312 (dw2_expand_symtabs_for_function): Update.
4313 (dw2_expand_all_symtabs): Update.
4314 (dw2_expand_symtabs_with_fullname): Update.
4315 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4316 don't use per_cu->dwarf2_per_objfile.
4317 (dw2_expand_marked_cus): Update.
4318 (dw2_find_pc_sect_compunit_symtab): Update.
4319 (dw2_debug_names_lookup_symbol): Update.
4320 (dw2_debug_names_expand_symtabs_for_function): Update.
4321 (dw2_debug_names_map_matching_symbols): Update.
4322 (dwarf2_psymtab::expand_psymtab): Update.
4323
4324 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4327 <per_objfile>: New member.
4328 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4329 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4330 call to dwarf2_cu.
4331 (cutu_reader::cutu_reader): Update.
4332 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4333
4334 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4337 struct dwarf2_per_objfile.
4338 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4339 dwarf2_per_bfd.
4340 * dwarf2/read.c (set_die_type): Update.
4341 (get_die_type_at_offset): Update.
4342
4343 2020-05-27 Tom Tromey <tom@tromey.com>
4344 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4347 method.
4348 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4349 get_symtab, set_symtab>: New methods.
4350 <m_symtabs>: New field.
4351 (struct dwarf2_psymtab): Derive from partial_symtab.
4352 <readin_p, get_compunit_symtab>: Declare methods.
4353 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4354 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4355 New methods.
4356 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4357 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4358 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4359 (dw2_symtab_iter_next, dw2_print_stats)
4360 (dw2_expand_symtabs_with_fullname)
4361 (dw2_expand_symtabs_matching_one)
4362 (dw_expand_symtabs_matching_file_matcher)
4363 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4364 (dw2_debug_names_iterator::next)
4365 (dw2_debug_names_map_matching_symbols)
4366 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4367 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4368 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4369 New methods.
4370 (get_compunit_symtab, process_full_comp_unit)
4371 (process_full_type_unit): Update.
4372 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4373
4374 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4377 then introduce a new dwarf2_per_objfile type.
4378 <read_line_string>: Move to the new dwarf2_per_objfile type.
4379 <objfile>: Likewise.
4380 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4381 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4382 dwarf2_per_objfile->per_bfd.
4383 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4384 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4385 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4386 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4387 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4388 (dwarf2_per_objfile::locate_sections): Rename to...
4389 (dwarf2_per_bfd::locate_sections): ... this.
4390 (dwarf2_per_objfile::get_cutu): Rename to...
4391 (dwarf2_per_bfd::get_cutu): ... this.
4392 (dwarf2_per_objfile::get_cu): Rename to...
4393 (dwarf2_per_bfd::get_cu): ... this.
4394 (dwarf2_per_objfile::get_tu): Rename to...
4395 (dwarf2_per_bfd::get_tu): ... this.
4396 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4397 (dwarf2_per_bfd::allocate_per_cu): ... this.
4398 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4399 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4400 (get_gdb_index_contents_ftype): Change parameter from
4401 dwarf2_per_objfile to dwarf2_per_bfd.
4402 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4403 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4404
4405 2020-05-27 Tom Tromey <tom@tromey.com>
4406 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4409 (allocate_piece_closure): Set "per_objfile" member.
4410 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4411 (locexpr_describe_location, loclist_describe_location): Use new
4412 member.
4413 * dwarf2/read.c (read_call_site_scope)
4414 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4415 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4416 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4417 handle_data_member_location): Set per_objfile member.
4418 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4419 member.
4420 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4421
4422 2020-05-27 Tom Tromey <tom@tromey.com>
4423
4424 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4425 allocate_signatured_type>: Declare new methods.
4426 <m_num_psymtabs>: New member.
4427 (struct dwarf2_per_cu_data) <index>: New member.
4428 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4429 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4430 (create_cu_from_index_list): Use allocate_per_cu.
4431 (create_signatured_type_table_from_index)
4432 (create_signatured_type_table_from_debug_names)
4433 (create_debug_type_hash_table, add_type_unit)
4434 (read_comp_units_from_section): Use allocate_signatured_type.
4435
4436 2020-05-27 Tom Tromey <tom@tromey.com>
4437
4438 * psymtab.c (partial_map_expand_apply)
4439 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4440 (psym_lookup_global_symbol_language)
4441 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4442 (psym_print_stats, psym_expand_symtabs_for_function)
4443 (psym_map_symbol_filenames, psym_map_matching_symbols)
4444 (psym_expand_symtabs_matching)
4445 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4446 (maintenance_check_psymtabs): Update.
4447 * psympriv.h (struct partial_symtab) <readin_p,
4448 get_compunit_symtab>: Add objfile parameter.
4449 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4450 Likewise.
4451 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4452 get_compunit_symtab>: Likewise.
4453 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4454
4455 2020-05-27 Tom Tromey <tom@tromey.com>
4456
4457 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4458 member.
4459 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4460 (create_cu_from_index_list)
4461 (create_signatured_type_table_from_index)
4462 (create_signatured_type_table_from_debug_names)
4463 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4464 (dwarf2_create_include_psymtab)
4465 (create_debug_type_hash_table, add_type_unit)
4466 (create_type_unit_group, read_comp_units_from_section)
4467 (dwarf2_compute_name, create_cus_hash_table)
4468 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4469 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4470 obstack.
4471 (dw2_get_real_path): Likewise. Change argument to
4472 dwarf2_per_objfile.
4473
4474 2020-05-27 Luis Machado <luis.machado@linaro.org>
4475
4476 PR tdep/26000
4477 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4478 for ldrd (immediate).
4479
4480 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4481
4482 * command.h: Add comment giving the name of class_tui.
4483 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4484 create the fake command for the help for class_tui.
4485
4486 2020-05-26 Tom Tromey <tromey@adacore.com>
4487
4488 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4489 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4490 (val_atr): New function.
4491 (value_val_atr): Use it.
4492 * ada-valprint.c (print_optional_low_bound): Change low bound
4493 handling for enums.
4494 (val_print_packed_array_elements): Don't call discrete_position.
4495 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4496 discrete_position for enum types.
4497 * language.c (default_print_array_index): Change type.
4498 * language.h (struct language_defn) <la_print_array_index>: Add
4499 index_type parameter, change type of index_value.
4500 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4501 (default_print_array_index): Update.
4502 * valprint.c (maybe_print_array_index): Don't call
4503 value_from_longest. Update.
4504 (value_print_array_elements): Don't call discrete_position.
4505
4506 2020-05-26 Tom Tromey <tromey@adacore.com>
4507
4508 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4509 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4510
4511 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4512
4513 PR gdb/13519
4514 * avr-tdep.c (avr_integer_to_address): Return data or code
4515 address accordingly to the second 'type' argument of the
4516 function.
4517
4518 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4519
4520 * infcmd.c, inferior.h: (construct_inferior_arguments):
4521 Moved function from here to gdbsupport/common-inferior.{h,cc}
4522
4523 2020-05-23 Tom Tromey <tom@tromey.com>
4524
4525 Revert commit eca1f90c:
4526 * NEWS: Remove entry for completion styling.
4527 * completer.c (_rl_completion_prefix_display_length): Move
4528 declaration later.
4529 (gdb_fnprint): Revert.
4530 (gdb_display_match_list_1): Likewise.
4531 * cli/cli-style.c (completion_prefix_style)
4532 (completion_difference_style, completion_suffix_style): Remove.
4533 (_initialize_cli_style): Revert.
4534 * cli/cli-style.h (completion_prefix_style)
4535 (completion_difference_style, completion_suffix_style): Don't
4536 declare.
4537
4538 2020-05-24 Pedro Alves <palves@redhat.com>
4539
4540 * symtab.c (completion_list_add_name): Return boolean indication
4541 of whether the symbol matched.
4542 (completion_list_add_symbol): Don't try to remove C++ aliases if
4543 the symbol didn't match in the first place.
4544 * symtab.h (completion_list_add_name): Return bool.
4545
4546 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4547
4548 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4549 type::field.
4550
4551 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4552
4553 GDB 9.2 released.
4554
4555 2020-05-23 Tom Tromey <tom@tromey.com>
4556
4557 * NEWS: Add entry for completion styling.
4558 * completer.c (_rl_completion_prefix_display_length): Move
4559 declaration earlier.
4560 (gdb_fnprint): Use completion_style.
4561 (gdb_display_match_list_1): Likewise.
4562 * cli/cli-style.c (completion_prefix_style)
4563 (completion_difference_style, completion_suffix_style): New
4564 globals.
4565 (_initialize_cli_style): Register new globals.
4566 * cli/cli-style.h (completion_prefix_style)
4567 (completion_difference_style, completion_suffix_style): Declare.
4568
4569 2020-05-23 Pedro Alves <palves@redhat.com>
4570
4571 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4572 (parse_escape): Use ISDIGIT instead of isdigit.
4573 (puts_debug): Use gdb_isprint instead of isprint.
4574 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4575 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4576 ISSPACE instead of isspace.
4577 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4578 instead of isspace.
4579 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4580 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4581 instead of isxdigit and ISDIGIT instead of isdigit.
4582
4583 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbtypes.h (struct type) <field>: New method.
4586 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4587 or type::field.
4588
4589 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4592 (TYPE_FIELDS): Use type::fields. Change all call sites that
4593 modify the propery to use type::set_fields instead.
4594
4595 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4598 type::num_fields instead.
4599
4600 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4603 methods.
4604 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4605 that modify the number of fields to use type::set_num_fields
4606 instead.
4607
4608 2020-05-22 Tom Tromey <tromey@adacore.com>
4609
4610 * compile/compile-object-load.h (munmap_list_free): Don't
4611 declare.
4612
4613 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * annotate.c (annotate_source_line): Update return type, add call
4616 to update current symtab and line.
4617 * annotate.h (annotate_source_line): Update return type, and
4618 extend header comment.
4619 * source.c (info_line_command): Check annotation_level before
4620 calling annotate_source_line.
4621 * stack.c (print_frame_info): If calling annotate_source_line
4622 returns true, then don't print any other source line information.
4623
4624 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4627
4628 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * coffread.c (patch_type): Remove NULL check before xfree.
4631 * corefile.c (set_gnutarget): Likewise.
4632 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4633 * exec.c (build_section_table): Likewise.
4634 * remote.c (remote_target::pass_signals): Likewise.
4635 * utils.c (n_spaces): Likewise.
4636 * cli/cli-script.c (document_command): Likewise.
4637 * i386-windows-tdep.c (core_process_module_section): Likewise.
4638 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4639
4640 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * symfile.c (reread_symbols): Clear objfile's section_offsets
4643 vector and section indices, re-compute them by calling
4644 sym_offsets.
4645
4646 2020-05-20 Tom Tromey <tromey@adacore.com>
4647
4648 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4649 (desc_one_bound, desc_index_type): Compute field name.
4650
4651 2020-05-20 Tom de Vries <tdevries@suse.de>
4652
4653 PR symtab/25833
4654 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4655
4656 2020-05-20 Alan Modra <amodra@gmail.com>
4657
4658 PR 25993
4659 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4660 bfd_set_filename.
4661 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4662 passed to bfd_set_filename.
4663 * symfile-mem.c (add_vsyscall_page): Likewise for string
4664 passed to symbol_file_add_from_memory.
4665 (symbol_file_add_from_memory): Make name param a const char* and
4666 don't strdup.
4667
4668 2020-05-20 Alan Modra <amodra@gmail.com>
4669
4670 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4671 rather than accessing bfd->filename directly.
4672 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4673 and use bfd_section_name.
4674 * dwarf2/frame.c (decode_frame_entry): Likewise.
4675 * exec.c (exec_set_section_address): Likewise.
4676 * solib-aix.c (solib_aix_bfd_open): Likewise.
4677 * stap-probe.c (get_stap_base_address): Likewise.
4678 * symfile.c (reread_symbols): Likewise.
4679
4680 2020-05-19 Tom Tromey <tromey@adacore.com>
4681
4682 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4683
4684 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4687
4688 2020-05-19 Pedro Alves <palves@redhat.com>
4689
4690 * NEWS (set exec-file-mismatch): Adjust entry.
4691 * exec.c: Include "build-id.h".
4692 (validate_exec_file): Try to match build IDs instead of filenames.
4693 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4694 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4695 and pass down 'warn_if_slow'.
4696 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4697 gdb_bfd_open_closure to pass it down.
4698 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4699
4700 2020-05-19 Pedro Alves <palves@redhat.com>
4701
4702 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4703 * target.c (target_fileio_open_1): Rename to target_fileio_open
4704 and make extern. Use bool.
4705 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4706 (target_fileio_read_alloc_1): Adjust.
4707 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4708 (target_fileio_open_warn_if_slow): Delete declaration.
4709
4710 2020-05-19 Pedro Alves <palves@redhat.com>
4711
4712 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4713 Adjust all callers.
4714
4715 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4716
4717 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4718 whether disp is negative.
4719
4720 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * symfile.h (struct symfile_segment_data)
4723 <~symfile_segment_data>: Remove.
4724 <segment_info>: Change to std::vector.
4725 * symfile.c (default_symfile_segments): Update.
4726 * elfread.c (elf_symfile_segments): Update.
4727
4728 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4731 <segments>: New.
4732 <segment_bases, segment_sizes>: Remove.
4733 * symfile.c (default_symfile_segments): Update.
4734 * elfread.c (elf_symfile_segments): Update.
4735 * remote.c (remote_target::get_offsets): Update.
4736 * solib-target.c (solib_target_relocate_section_addresses):
4737 Update.
4738
4739 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * symfile.h (struct symfile_segment_data): Initialize fields.
4742 <~symfile_segment_data>: Add.
4743 (symfile_segment_data_up): New.
4744 (struct sym_fns) <sym_segments>: Return a
4745 symfile_segment_data_up.
4746 (default_symfile_segments): Return a symfile_segment_data_up.
4747 (free_symfile_segment_data): Remove.
4748 (get_symfile_segment_data): Return a symfile_segment_data_up.
4749 * symfile.c (default_symfile_segments): Likewise.
4750 (get_symfile_segment_data): Likewise.
4751 (free_symfile_segment_data): Remove.
4752 (symfile_find_segment_sections): Update.
4753 * elfread.c (elf_symfile_segments): Return a
4754 symfile_segment_data_up.
4755 * remote.c (remote_target::get_offsets): Update.
4756 * solib-target.c (solib_target_relocate_section_addresses):
4757 Update.
4758 * symfile-debug.c (debug_sym_segments): Return a
4759 symfile_segment_data_up.
4760
4761 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4762
4763 PR build/25981
4764 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4765 Hardcode register numbers.
4766
4767 PR build/25981
4768 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4769 procfs_find_LDT_entry): Remove.
4770 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4771 procfs_find_LDT_entry): Remove.
4772 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4773 Remove.
4774
4775 2020-05-17 Pedro Alves <palves@redhat.com>
4776 Andrew Burgess <andrew.burgess@embecosm.com>
4777 Keno Fischer <keno@juliacomputing.com>
4778
4779 PR gdb/25741
4780 * breakpoint.c (build_target_condition_list): Update comments.
4781 (build_target_command_list): Update comments and skip matching
4782 locations.
4783 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4784 a separate function. Simplify "set breakpoint auto-hw off"
4785 handling.
4786 (insert_breakpoints): Update comment.
4787 (tracepoint_locations_match): New parameter. For breakpoints,
4788 compare location types too, if the caller wants to.
4789 (handle_automatic_hardware_breakpoints): New functions.
4790 (bp_location_is_less_than): Also sort by location type and
4791 hardware breakpoint length.
4792 (update_global_location_list): Handle "set breakpoint auto-hw on"
4793 here.
4794 (update_breakpoint_locations): Ask breakpoint_locations_match to
4795 ignore location types.
4796
4797 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4800 type::name instead.
4801
4802 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * gdbtypes.h (struct type) <name, set_name>: New methods.
4805 (TYPE_CODE): Use type::name. Change all call sites used to set
4806 the name to use type::set_name instead.
4807
4808 2020-05-16 Tom Tromey <tom@tromey.com>
4809
4810 * top.c (quit_force): Update.
4811 * infrun.c (handle_no_resumed): Update.
4812 * top.h (all_uis): New function.
4813 (ALL_UIS): Remove.
4814
4815 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4816
4817 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4818
4819 2020-05-16 Pedro Alves <palves@redhat.com>
4820
4821 * ia64-linux-nat.c
4822 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4823 Declare method.
4824 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4825
4826 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4829 (sparc64_adi_info): Likewise.
4830
4831 2020-05-15 Tom Tromey <tom@tromey.com>
4832
4833 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4834 block_objfile.
4835 (lookup_objfile_from_block): Remove.
4836 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4837 (lookup_global_symbol): Use block_objfile.
4838 * symtab.h (lookup_objfile_from_block): Don't declare.
4839 * printcmd.c (clear_dangling_display_expressions): Use
4840 block_objfile.
4841 * parse.c (operator_check_standard): Use block_objfile.
4842
4843 2020-05-15 Tom Tromey <tom@tromey.com>
4844
4845 * language.c (language_alloc_type_symbol): Set
4846 SYMBOL_SECTION.
4847 * symtab.c (initialize_objfile_symbol): Remove.
4848 (allocate_symbol): Remove.
4849 (allocate_template_symbol): Remove.
4850 * dwarf2/read.c (fixup_go_packaging): Use "new".
4851 (new_symbol): Use "new".
4852 (read_variable): Don't call initialize_objfile_symbol. Use
4853 "new".
4854 (read_func_scope): Use "new".
4855 * xcoffread.c (process_xcoff_symbol): Don't call
4856 initialize_objfile_symbol.
4857 (SYMBOL_DUP): Remove.
4858 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4859 "new".
4860 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4861 (allocate_template_symbol): Don't declare.
4862 (struct symbol): Add copy constructor. Change defaults.
4863 * jit.c (finalize_symtab): Use "new".
4864 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4865 Use "new".
4866 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4867 (common_block_end): Use "new".
4868 * mdebugread.c (parse_symbol): Use "new".
4869 (new_symbol): Likewise.
4870
4871 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4872
4873 * NEWS: Mention changes to help and apropos.
4874
4875 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4876
4877 * command.h (enum command_class): Improve comments, document
4878 that class_alias is for user-defined aliases, give the class
4879 name for each class, remove unused class_xdb.
4880 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4881 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4882 by a precise class.
4883 * infcmd.c (_initialize_infcmd): Likewise.
4884 * reverse.c (_initialize_reverse): Likewise.
4885 * stack.c (_initialize_stack): Likewise.
4886 * symfile.c (_initialize_symfile): Likewise.
4887 * tracepoint.c (_initialize_tracepoint): Likewise.
4888
4889 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4890
4891 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4892 when their aliased command is traversed.
4893 (help_cmd): Add fput_command_names_styled call to
4894 output command name and aliases when command has an alias.
4895
4896 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4897
4898 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4899 * cli/cli-decode.c (help_cmd_list): Declare as static,
4900 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4901 a command together with the command.
4902 (fput_command_name_styled, fput_command_names_styled): New functions.
4903 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4904 fput_command_name_styled.
4905 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4906 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4907
4908 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4909
4910 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4911 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4912 * command.h (cmd_show_list): Likewise.
4913 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4914 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4915
4916 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4917
4918 * unittests/command-def-selftests.c (traverse_command_structure):
4919 Verify all commands of a list have the same prefix command and
4920 that only the top cmdlist commands have a null prefix.
4921
4922 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4923
4924 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4925 as prefix, not one of its aliases.
4926 (set_cmd_prefix): Remove.
4927 (do_add_cmd): Centralize the setting of the prefix of a command, when
4928 command is defined after its full chain of prefix commands.
4929 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4930 (add_setshow_cmd_full): Likewise.
4931 (update_prefix_field_of_prefixed_commands): New function.
4932 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4933 update_prefix_field_of_prefixed_commands.
4934 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4935 addresses of remote_set_cmdlist and remote_show_cmdlist given
4936 as argument, not the address of an argument.
4937 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4938 * gdb/remote.c (_initialize_remote): Likewise.
4939
4940 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4941
4942 * cli/cli-cmds.c (alias_command): Check for an existing alias
4943 using lookup_cmd_composition, as valid_command_p is too strict
4944 and forbids aliases that are the prefix of an existing alias
4945 or command.
4946 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4947 command is properly recognised as a valid command.
4948
4949 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4950
4951 * unittests/help-doc-selftests.c: Rename to
4952 unittests/command-def-selftests.c
4953 * unittests/command-def-selftests.c (help_doc_tests): Update some
4954 comments.
4955 (command_structure_tests, traverse_command_structure): New namespace
4956 and function.
4957 (command_structure_invariants_tests): New function.
4958 (_initialize_command_def_selftests) Renamed from
4959 _initialize_help_doc_selftests, register command_structure_invariants
4960 selftest.
4961
4962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4963
4964 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4965 an alias of 'show'.
4966
4967 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4968
4969 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4970 ada_is_fixed_point_type. Update all callers.
4971 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4972 all callers.
4973 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4974 Update all callers.
4975 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4976 print_fixed_point_type. Update all callers.
4977 * ada-valprint.c (ada_value_print_num): Replace call to
4978 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4979
4980 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4981
4982 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4983 processors.
4984 (cpu_supports_bts): Add CV_AMD case.
4985
4986 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4987 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * infrun.c (stop_all_threads): Collect multiple wait events at
4990 each pass.
4991
4992 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4993
4994 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4995 type::code instead.
4996
4997 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * gdbtypes.h (struct type) <code, set_code>: New methods.
5000 (TYPE_CODE): Use type::code. Change all call sites used to set
5001 the code to use type::set_code instead.
5002
5003 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5004 Tom de Vries <tdevries@suse.de>
5005 Pedro Alves <palves@redhat.com>
5006
5007 PR threads/25478
5008 * infrun.c (stop_all_threads): Do NOT ignore
5009 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5010 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5011 received.
5012 (handle_no_resumed): Remove code handling a live inferior with no
5013 threads.
5014 * remote.c (has_single_non_exited_thread): New.
5015 (remote_target::update_thread_list): Do not delete a thread if is
5016 the last thread of the process.
5017 * thread.c (thread_select): Call delete_exited_threads instead of
5018 prune_threads.
5019
5020 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5021
5022 * infrun.c (stop_all_threads): Enable/disable thread events of all
5023 targets. Move a debug message denoting the end of the function
5024 into the SCOPED_EXIT block.
5025
5026 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5027
5028 * process-stratum-target.h: Include <set>.
5029 (all_non_exited_process_targets, switch_to_target_no_thread): New
5030 function declarations.
5031 * process-stratum-target.c (all_non_exited_process_targets)
5032 (switch_to_target_no_thread): New function implementations.
5033
5034 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5035
5036 * infrun.c (handle_inferior_event): Extract out a piece of code
5037 into...
5038 (mark_non_executing_threads): ...this new function.
5039
5040 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5041
5042 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5043 use.
5044
5045 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5046
5047 * regcache.c (regcache_read_pc_protected): New function
5048 implementation that returns 0 if the PC cannot read via
5049 'regcache_read_pc'.
5050 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5051 instead of 'regcache_read_pc'.
5052 (keep_going_pass_signal): Ditto.
5053
5054 2020-05-13 Tom Tromey <tromey@adacore.com>
5055
5056 * ada-lang.c (align_value): Remove.
5057 (ada_template_to_fixed_record_type_1): Use align_up.
5058
5059 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5060
5061 * async-event.c: Update the copyright year.
5062 * async-event.h: Update the copyright year.
5063
5064 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * objfiles.h (is_addr_in_objfile,
5067 shared_objfile_contains_address_p): Return bool.
5068 * objfile.c (is_addr_in_objfile,
5069 shared_objfile_contains_address_p): Return bool.
5070
5071 2020-05-11 Tom Tromey <tromey@adacore.com>
5072
5073 * cli/cli-cmds.c (info_command): Restore.
5074 (_initialize_cli_cmds): Use add_prefix_command for "info".
5075 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5076
5077 2020-05-11 Tom Tromey <tromey@adacore.com>
5078
5079 * ada-lang.c (ada_value_primitive_field): Now public.
5080 * ada-lang.h (ada_value_primitive_field): Declare.
5081 * ada-valprint.c (print_field_values): Use
5082 ada_value_primitive_field for wrapper fields.
5083
5084 2020-05-11 Tom de Vries <tdevries@suse.de>
5085
5086 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5087 MODULE_DOMAIN.
5088
5089 2020-05-11 Tom de Vries <tdevries@suse.de>
5090
5091 PR symtab/25941
5092 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5093 with length 0, if not gdb-produced.
5094 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5095
5096 2020-05-09 Tom de Vries <tdevries@suse.de>
5097
5098 PR gdb/25955
5099 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5100 calculation.
5101
5102 2020-05-09 Tom Tromey <tom@tromey.com>
5103
5104 * top.c (server_command): Now bool.
5105 * top.h (server_command): Now bool.
5106
5107 2020-05-08 Tom Tromey <tromey@adacore.com>
5108
5109 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5110 already being processed.
5111
5112 2020-05-08 Tom Tromey <tom@tromey.com>
5113
5114 * printcmd.c (struct display) <next>: Remove.
5115 <display>: New constructor.
5116 <exp_string>: Now a std::string.
5117 <enabled_p>: Now a bool.
5118 (display_number): Move definition earlier.
5119 (displays): Rename from display_chain. Now a std::vector.
5120 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5121 (display_command): Update.
5122 (do_one_display, disable_display)
5123 (enable_disable_display_command, do_enable_disable_display):
5124 Update.
5125 (free_display): Remove.
5126 (clear_displays): Rewrite.
5127 (delete_display): Update.
5128 (map_display_numbers): Use function_view. Remove "data"
5129 parameter. Update.
5130 (do_delete_display): Remove.
5131 (undisplay_command): Update.
5132 (do_one_display, do_displays, disable_display)
5133 (info_display_command): Update.
5134 (do_enable_disable_display): Remove.
5135 (enable_disable_display_command)
5136 (clear_dangling_display_expressions): Update.
5137
5138 2020-05-08 Tom Tromey <tom@tromey.com>
5139
5140 * symtab.c (set_symbol_cache_size)
5141 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5142 (maintenance_print_symbol_cache_statistics): Update.
5143 * symmisc.c (print_symbol_bcache_statistics)
5144 (print_objfile_statistics, maintenance_print_objfiles)
5145 (maintenance_info_symtabs, maintenance_check_symtabs)
5146 (maintenance_expand_symtabs, maintenance_info_line_tables):
5147 Update.
5148 * symfile-debug.c (set_debug_symfile): Update.
5149 * source.c (forget_cached_source_info): Update.
5150 * python/python.c (gdbpy_progspaces): Update.
5151 * psymtab.c (maintenance_info_psymtabs): Update.
5152 * probe.c (parse_probes): Update.
5153 * linespec.c (iterate_over_all_matching_symtabs)
5154 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5155 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5156 * exec.c (exec_target::close): Update.
5157 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5158 * breakpoint.c (print_one_breakpoint_location)
5159 (create_longjmp_master_breakpoint)
5160 (create_std_terminate_master_breakpoint): Update.
5161 * progspace.c (program_spaces): Now a std::vector.
5162 (maybe_new_address_space): Update.
5163 (add_program_space): Remove.
5164 (program_space::program_space): Update.
5165 (remove_program_space): Update.
5166 (number_of_program_spaces): Remove.
5167 (print_program_space, update_address_spaces): Update.
5168 * progspace.h (program_spaces): Change type.
5169 (ALL_PSPACES): Remove.
5170 (number_of_program_spaces): Don't declare.
5171 (struct program_space) <next>: Remove.
5172
5173 2020-05-08 Tom Tromey <tom@tromey.com>
5174
5175 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5176 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5177 (enable_break): Update.
5178 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5179 (frv_fdpic_find_canonical_descriptor): Update.
5180 (frv_fetch_objfile_link_map): Update.
5181 * progspace.c (program_space::free_all_objfiles): Update.
5182 (program_space::solibs): New method.
5183 * progspace.h (struct program_space) <solibs>: New method.
5184 * solist.h (master_so_list): Don't declare.
5185 (ALL_SO_LIBS): Remove.
5186 * solib.h (so_list_head): Remove.
5187 (update_solib_list): Update comment.
5188 * solib.c (master_so_list): Remove.
5189 (solib_used, update_solib_list, solib_add)
5190 (info_sharedlibrary_command, clear_solib)
5191 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5192
5193 2020-05-08 Tom Tromey <tom@tromey.com>
5194
5195 * extension.c (extension_languages): Now a std::array.
5196 (ALL_EXTENSION_LANGUAGES): Remove.
5197 (get_ext_lang_defn, get_ext_lang_of_file)
5198 (eval_ext_lang_from_control_command): Update.
5199 (finish_ext_lang_initialization)
5200 (auto_load_ext_lang_scripts_for_objfile)
5201 (ext_lang_type_printers::ext_lang_type_printers)
5202 (apply_ext_lang_type_printers)
5203 (ext_lang_type_printers::~ext_lang_type_printers)
5204 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5205 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5206 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5207 (get_matching_xmethod_workers, ext_lang_colorize)
5208 (ext_lang_before_prompt): Update.
5209 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5210
5211 2020-05-08 Tom Tromey <tom@tromey.com>
5212
5213 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5214 overload.
5215 <swap_string, m_string>: Remove.
5216 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5217 Update.
5218 * stabsread.c (define_symbol, read_type): Update.
5219 * linespec.c (find_linespec_symbols): Update.
5220 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5221 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5222 * dbxread.c (read_dbx_symtab): Update.
5223 * cp-support.h (cp_canonicalize_string_full)
5224 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5225 Return unique_xmalloc_ptr.
5226 * cp-support.c (inspect_type): Update.
5227 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5228 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5229 Likewise.
5230 * c-typeprint.c (print_name_maybe_canonical): Update.
5231 * break-catch-throw.c (check_status_exception_catchpoint):
5232 Update.
5233
5234 2020-05-08 Tom de Vries <tdevries@suse.de>
5235
5236 * infrun.c (follow_fork): Copy current_line and current_symtab to
5237 child thread.
5238
5239 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * async-event.c (struct async_signal_handler, struct
5242 async_event_handler): Reformat, remove typedef.
5243
5244 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5245
5246 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5247 access thistype->main_type->dyn_prop_list directly.
5248
5249 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5252 (remove_dyn_prop): Remove. Update all users to use
5253 type::remove_dyn_prop.
5254 * gdbtypes.c (remove_dyn_prop): Rename to...
5255 (type::remove_dyn_prop): ... this.
5256
5257 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5258
5259 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5260 (add_dyn_prop): Remove. Update all users to use
5261 type::add_dyn_prop.
5262 * gdbtypes.c (add_dyn_prop): Rename to...
5263 (type::add_dyn_prop): ... this.
5264
5265 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5266
5267 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5268 (get_dyn_prop): Remove. Update all users to use
5269 type::dyn_prop.
5270 * gdbtypes.c (get_dyn_prop): Rename to...
5271 (type::dyn_prop): ... this.
5272
5273 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5276
5277 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5280 instruction, skip it if it's there.
5281
5282 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5283
5284 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5285
5286 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5289 * gdbtypes.c (recursive_dump_type): Remove use of
5290 TYPE_INCOMPLETE.
5291
5292 2020-05-03 Tom Tromey <tom@tromey.com>
5293
5294 * breakpoint.c (catch_command, tcatch_command): Remove.
5295 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5296 add_show_prefix_cmd.
5297 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5298 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5299 Remove.
5300 (add_internal_problem_command): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * mips-tdep.c (set_mipsfpu_command): Remove.
5303 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5304 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5305 (_initialize_index_cache): Use add_basic_prefix_cmd.
5306 * memattr.c (dummy_cmd): Remove.
5307 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5308 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5309 (_initialize_tui_win): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * cli/cli-logging.c (set_logging_command): Remove.
5312 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5313 add_show_prefix_cmd.
5314 (show_logging_command): Remove.
5315 * target.c (target_command): Remove.
5316 (add_target): Use add_basic_prefix_cmd.
5317
5318 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5319
5320 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5321
5322 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5323
5324 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5325 info_command.
5326
5327 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5328
5329 * nbsd-nat.c (nbsd_enable_proc_events)
5330 (nbsd_nat_target::post_startup_inferior): Add.
5331 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5332 (nbsd_nat_target::update_thread_list): Rewrite.
5333 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5334 "PTRACE_LWP_CREATE".
5335 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5336
5337 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5338
5339 * stack.c (_initialize_stack): Remove duplicated creation
5340 of "frame" command and "f" alias.
5341
5342 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5343
5344 PR gdb/18706
5345 * gdbtypes.c (check_typedef): Calculate size of array of
5346 stubbed type.
5347
5348 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5349
5350 PR gdb/15559
5351 * i386-tdep.c (i386_push_dummy_call): Call
5352 i386_thiscall_push_dummy_call.
5353 (i386_thiscall_push_dummy_call): New function.
5354 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5355 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5356 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5357
5358 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbarch.sh (do_read): Add shellcheck disable directive for
5361 warning SC2162.
5362
5363 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5366 "referenced but not assigned" warning.
5367
5368 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * gdbarch.sh: Remove code that sets fallbackdefault.
5371
5372 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * gdbarch.sh: Use shell operators && and || instead of
5375 -a and -o.
5376
5377 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * gdbarch.sh: Use $(...) instead of `...`.
5380
5381 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * gdbarch.sh: Use double quotes around variables.
5384
5385 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * gdbarch.sh: Use %s with printf, instead of variables in the
5388 format string.
5389
5390 2020-04-29 Tom Tromey <tromey@adacore.com>
5391
5392 PR ada/25875:
5393 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5394 type fields here.
5395 (read_enumeration_type): Call
5396 update_enumeration_type_from_children later. Update comments.
5397 (process_enumeration_scope): Don't create type fields.
5398
5399 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5400
5401 * nbsd-tdep.c: Include "xml-syscall.h".
5402 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5403
5404 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5405
5406 * nbsd-nat.c: Include "sys/wait.h".
5407 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5408 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5409 (nbsd_nat_target::remove_exec_catchpoint)
5410 (nbsd_nat_target::set_syscall_catchpoint): Add.
5411 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5412 (nbsd_nat_target::insert_exec_catchpoint)
5413 (nbsd_nat_target::remove_exec_catchpoint)
5414 (nbsd_nat_target::set_syscall_catchpoint): Add.
5415 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5416 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5417 `nbsd_get_syscall_number'.
5418
5419 2020-04-29 Tom Tromey <tom@tromey.com>
5420
5421 * stack.c (print_block_frame_labels): Remove.
5422
5423 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5424
5425 PR gdb/17320
5426 * ada-valprint.c (val_print_packed_array_elements): Move array
5427 end bracket to new line.
5428 (ada_val_print_string): Remove extra spaces before first array
5429 element.
5430 * c-valprint.c (c_value_print_array): Likewise.
5431 * m2-valprint.c (m2_print_array_contents): Likewise.
5432 (m2_value_print_inner): Likewise.
5433 * p-valprint.c (pascal_value_print_inner): Likewise.
5434 * valprint.c (generic_val_print_array): Likewise.
5435 (value_print_array_elements): Move first array element and array
5436 end bracket to new line.
5437
5438 2020-04-29 Tom de Vries <tdevries@suse.de>
5439
5440 PR symtab/25889
5441 * linespec.c (find_method): Fix ix calculation.
5442
5443 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5444
5445 * syscalls/update-netbsd.sh: New file.
5446 * syscalls/netbsd.xml: Regenerate.
5447 * data-directory/Makefile.in: Register `netbsd.xml' in
5448 `SYSCALLS_FILES'.
5449
5450 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * syscalls/update-freebsd.sh: Add double quotes.
5453
5454 2020-04-28 Tom Tromey <tom@tromey.com>
5455
5456 * NEWS: Update.
5457 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5458 (cmdpy_init): Allow class_tui.
5459
5460 2020-04-28 Mark Williams <mark@myosotissp.com>
5461
5462 PR gdb/24480
5463 * dwarf2read.c: Add missing assingments to list_in_scope when
5464 start_symtab was already called.
5465
5466 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5467
5468 PR gdb/25881
5469 * dwarf2/read.c (offset_map_type): Use
5470 gdb:hash_enum<sect_offset> as hash function.
5471
5472 2020-04-28 Tom de Vries <tdevries@suse.de>
5473
5474 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5475 with DW_AT_signature.
5476
5477 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * configure.ac: Remove check for fs_base/gs_base in
5480 user_regs_struct.
5481 * configure: Re-generate.
5482 * config.in: Re-generate.
5483 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5484 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5485 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5486
5487 2020-04-27 Luis Machado <luis.machado@linaro.org>
5488
5489 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5490 problematic inline frame unwinding situation.
5491 * frame.c (frame_id_computed_p): New function.
5492 * frame.h (frame_id_computed_p): New prototype.
5493
5494 2020-04-26 Tom Tromey <tom@tromey.com>
5495
5496 * command.h (enum command_class) <class_pseudo>: Remove.
5497
5498 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5499
5500 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5501 and whitespace.
5502
5503 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5504
5505 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5506 `PT_GET_PROCESS_STATE' block.
5507
5508 2020-04-24 Tom Tromey <tom@tromey.com>
5509
5510 * symtab.h (symbol_get_demangled_name): Don't declare.
5511 * symtab.c (symbol_get_demangled_name): Remove.
5512 (general_symbol_info::natural_name)
5513 (general_symbol_info::demangled_name): Update.
5514
5515 2020-04-24 Tom Tromey <tom@tromey.com>
5516
5517 PR rust/25025:
5518 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5519
5520 2020-04-24 Tom Tromey <tom@tromey.com>
5521
5522 PR symtab/12707:
5523 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5524 exists.
5525 (new_symbol): Likewise.
5526 * compile/compile-object-load.c (get_out_value_type): Use
5527 symbol_matches_search_name.
5528
5529 2020-04-24 Tom Tromey <tom@tromey.com>
5530
5531 * dwarf2/read.c (add_partial_symbol): Do not call
5532 compute_and_set_names.
5533
5534 2020-04-24 Tom Tromey <tom@tromey.com>
5535
5536 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5537 overload.
5538
5539 2020-04-24 Tom Tromey <tom@tromey.com>
5540
5541 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5542 (add_psymbol_to_list): New overload. Make old overload call new
5543 one.
5544 * psympriv.h (add_psymbol_to_list): New overload.
5545
5546 2020-04-24 Tom Tromey <tom@tromey.com>
5547
5548 * dwarf2/read.c (partial_die_info::read) <case
5549 DW_AT_linkage_name>: Use value_as_string.
5550 (dwarf2_string_attr): Use value_as_string.
5551 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5552 method.
5553 * dwarf2/attribute.c (attribute::value_as_string): New method.
5554
5555 2020-04-24 Tom Tromey <tom@tromey.com>
5556
5557 * symtab.c (general_symbol_info::natural_name)
5558 (general_symbol_info::demangled_name): Check for language_rust.
5559
5560 2020-04-24 Tom Tromey <tom@tromey.com>
5561
5562 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5563 (dwarf2_physname): ... from here.
5564 (partial_die_info::read): Add Rust "{" hack.
5565
5566 2020-04-24 Tom Tromey <tom@tromey.com>
5567
5568 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5569 method.
5570 (symbol_set_demangled_name): Don't declare.
5571 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5572 symbol_set_demangled_name.
5573 (general_symbol_info::set_language)
5574 (general_symbol_info::compute_and_set_names): Update.
5575 * minsyms.c (minimal_symbol_reader::install): Update.
5576 * dwarf2/read.c (new_symbol): Update.
5577
5578 2020-04-24 Tom Tromey <tromey@adacore.com>
5579
5580 PR python/23662:
5581 * python/py-type.c (convert_field): Handle
5582 FIELD_LOC_KIND_DWARF_BLOCK.
5583 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5584 (typy_get_dynamic): Nw function.
5585 (type_object_getset): Add "dynamic".
5586 * NEWS: Add entry.
5587
5588 2020-04-24 Tom Tromey <tromey@adacore.com>
5589
5590 * ada-typeprint.c (print_choices, print_variant_part)
5591 (print_record_field_types_dynamic): New functions.
5592 (print_record_field_types): Use print_record_field_types_dynamic.
5593
5594 2020-04-24 Tom Tromey <tromey@adacore.com>
5595
5596 * dwarf2/read.c (handle_data_member_location): New overload.
5597 (dwarf2_add_field): Use it.
5598 (decode_locdesc): Add "computed" parameter. Update comment.
5599 * gdbtypes.c (is_dynamic_type_internal): Also look for
5600 FIELD_LOC_KIND_DWARF_BLOCK.
5601 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5602 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5603 virtual base classes.
5604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5605 FIELD_LOC_KIND_DWARF_BLOCK.
5606
5607 2020-04-24 Tom Tromey <tromey@adacore.com>
5608
5609 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5610 * gdbtypes.c (is_dynamic_type_internal): Check
5611 TYPE_HAS_DYNAMIC_LENGTH.
5612 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5613 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5614 New macros.
5615 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5616 constant.
5617
5618 2020-04-24 Tom Tromey <tromey@adacore.com>
5619
5620 * dwarf2/read.c (struct variant_field): Rewrite.
5621 (struct variant_part_builder): New.
5622 (struct nextfield): Remove "variant" field. Add "offset".
5623 (struct field_info): Add "current_variant_part" and
5624 "variant_parts".
5625 (alloc_discriminant_info): Remove.
5626 (alloc_rust_variant): New function.
5627 (quirk_rust_enum): Update.
5628 (dwarf2_add_field): Set "offset" member. Don't handle
5629 DW_TAG_variant_part.
5630 (offset_map_type): New typedef.
5631 (convert_variant_range, create_one_variant)
5632 (create_one_variant_part, create_variant_parts)
5633 (add_variant_property): New functions.
5634 (dwarf2_attach_fields_to_type): Call add_variant_property.
5635 (read_structure_type): Don't handle DW_TAG_variant_part.
5636 (handle_variant_part, handle_variant): New functions.
5637 (handle_struct_member_die): Use them.
5638 (process_structure_scope): Don't handle variant parts.
5639 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5640 (struct discriminant_info): Remove.
5641 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5642 (struct main_type) <flag_discriminated_union>: Remove.
5643 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5644 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5645 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5646 Update.
5647 * valops.c (value_union_variant): Remove.
5648 * value.h (value_union_variant): Don't declare.
5649
5650 2020-04-24 Tom Tromey <tromey@adacore.com>
5651
5652 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5653 (ada_value_primitive_packed_val): Update.
5654 * ada-valprint.c (ada_value_print_1): Update.
5655 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5656 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5657 just an address. Use evaluate_for_locexpr_baton.
5658 (dwarf2_evaluate_property): Update.
5659 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5660 array_view.
5661 * findvar.c (default_read_var_value): Update.
5662 * gdbtypes.c (compute_variant_fields_inner)
5663 (resolve_dynamic_type_internal): Update.
5664 (resolve_dynamic_type): Change type of valaddr parameter.
5665 * gdbtypes.h (resolve_dynamic_type): Update.
5666 * valarith.c (value_subscripted_rvalue): Update.
5667 * value.c (value_from_contents_and_address): Update.
5668
5669 2020-04-24 Tom Tromey <tromey@adacore.com>
5670
5671 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5672 "push_initial_value" parameter.
5673 (dwarf2_evaluate_property): Likewise.
5674 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5675
5676 2020-04-24 Tom Tromey <tromey@adacore.com>
5677
5678 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5679 (variant::matches, compute_variant_fields_recurse)
5680 (compute_variant_fields_inner, compute_variant_fields): New
5681 functions.
5682 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5683 Use resolved_type after type is made.
5684 (operator==): Add new cases.
5685 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5686 (struct discriminant_range, struct variant, struct variant_part):
5687 New.
5688 (union dynamic_prop_data) <variant_parts, original_type>: New
5689 members.
5690 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5691 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5692 constants.
5693 * value.c (unpack_bits_as_long): Now public.
5694 * value.h (unpack_bits_as_long): Declare.
5695
5696 2020-04-24 Tom Tromey <tromey@adacore.com>
5697
5698 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5699 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5700
5701 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5702
5703 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5704
5705 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5706
5707 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5708 (remove_fork_catchpoint, post_startup_inferior)
5709 (post_attach): Move...
5710 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5711 (remove_fork_catchpoint, post_startup_inferior)
5712 (post_attach): ...here.
5713 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5714 (remove_fork_catchpoint, post_startup_inferior)
5715 (post_attach): Move...
5716 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5717 (remove_fork_catchpoint, post_startup_inferior)
5718 (post_attach): ...here.
5719
5720 2020-04-24 Tom Tromey <tromey@adacore.com>
5721
5722 * nat/windows-nat.h (struct windows_thread_info)
5723 <pc_adjusted>: New member.
5724 * windows-nat.c (windows_fetch_one_register): Check
5725 pc_adjusted.
5726 (windows_nat_target::get_windows_debug_event)
5727 (windows_nat_target::wait): Set pc_adjusted.
5728
5729 2020-04-24 Tom de Vries <tdevries@suse.de>
5730
5731 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5732 Run gdb-add-index inside temp dir.
5733
5734 2020-04-23 Tom Tromey <tromey@adacore.com>
5735
5736 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5737 in loop.
5738
5739 2020-04-23 Luis Machado <luis.machado@linaro.org>
5740
5741 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5742 get_frame_register instead of gdbarch_unwind_pc.
5743
5744 2020-04-23 Tom de Vries <tdevries@suse.de>
5745
5746 * symtab.c (lookup_global_symbol): Prefer def over decl.
5747
5748 2020-04-23 Tom de Vries <tdevries@suse.de>
5749
5750 PR symtab/25807
5751 * block.c (best_symbol, better_symbol): Promote to external.
5752 * block.h (best_symbol, better_symbol): Declare.
5753 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5754 decl.
5755
5756 2020-04-23 Tom Tromey <tromey@adacore.com>
5757
5758 PR ada/25837:
5759 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5760 "const char *", not a "const std::string &".
5761 <name_and_matcher::operator==>: Update.
5762 * unittests/lookup_name_info-selftests.c: Change type of
5763 "result".
5764
5765 2020-04-23 Tom Tromey <tom@tromey.com>
5766
5767 * inferior.h (iterate_over_inferiors): Don't declare.
5768 * inferior.c (iterate_over_inferiors): Remove.
5769 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5770 Remove.
5771 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5772 use iterate_over_inferiors.
5773 (darwin_resume_inferior_it)
5774 (struct resume_inferior_threads_param)
5775 (darwin_resume_inferior_threads_it): Remove.
5776 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5777
5778 2020-04-23 Tom de Vries <tdevries@suse.de>
5779
5780 * blockframe.c (find_pc_partial_function): Use
5781 find_pc_sect_compunit_symtab rather than
5782 objfile->sf->qf->find_pc_sect_compunit_symtab.
5783
5784 2020-04-22 Tom de Vries <tdevries@suse.de>
5785
5786 PR symtab/25764
5787 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5788 in psymtabs.
5789
5790 2020-04-22 Tom de Vries <tdevries@suse.de>
5791
5792 PR symtab/25801
5793 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5794 symtabs.
5795
5796 2020-04-22 Tom de Vries <tdevries@suse.de>
5797
5798 PR symtab/25700
5799 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5800 CU if already created.
5801
5802 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5803
5804 * infrun.c (displaced_step_fixup): Switch to the event_thread
5805 before calling displaced_step_restore, not after.
5806
5807 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5808
5809 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5810 its inferior is not recorded by us.
5811 (record_btrace_target_open): Replace call to
5812 all_non_exited_threads () with call to current_inferior
5813 ()->non_exited_threads ().
5814 (record_btrace_target::stop_recording): Likewise.
5815 (record_btrace_target::close): Likewise.
5816 (record_btrace_target::wait): Likewise.
5817 (record_btrace_target::record_stop_replaying): Likewise.
5818
5819 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5820
5821 * btrace.c (btrace_enable): Throw an error on double enables and
5822 when enabling recording fails.
5823 (btrace_disable): Throw an error if the thread is not recorded.
5824
5825 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5826
5827 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5828 request if we do not have a thread_info.
5829
5830 2020-04-21 Tom de Vries <tdevries@suse.de>
5831
5832 PR gdb/25471
5833 * thread.c
5834 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5835 exception in get_frame_id.
5836
5837 2020-04-20 Tom Tromey <tromey@adacore.com>
5838
5839 * python/python.c (struct gdbpy_event): Mark move constructor as
5840 noexcept.
5841 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5842 constructor as noexcept.
5843 * completer.h (struct completion_result): Mark move constructor as
5844 noexcept.
5845 * completer.c (completion_result::completion_result): Use
5846 initialization style. Don't call reset_match_list.
5847
5848 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5849
5850 * MAINTAINERS (Write After Approval): Add myself.
5851
5852 2020-04-18 Tom Tromey <tom@tromey.com>
5853
5854 * windows-tdep.c (init_w32_command_list)
5855 (w32_prefix_command_valid): Restore.
5856 (_initialize_windows_tdep): Call init_w32_command_list.
5857
5858 2020-04-18 Tom Tromey <tom@tromey.com>
5859
5860 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5861 * value.c (value_fn_field): Update.
5862 * valops.c (find_function_in_inferior)
5863 (value_allocate_space_in_inferior): Update.
5864 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5865 Update.
5866 * tui/tui-source.c (tui_source_window::set_contents): Update.
5867 * symtab.c (lookup_global_or_static_symbol)
5868 (find_function_start_sal_1, skip_prologue_sal)
5869 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5870 * symmisc.c (dump_msymbols, dump_symtab_1)
5871 (maintenance_print_one_line_table): Update.
5872 * symfile.c (init_entry_point_info, section_is_mapped)
5873 (list_overlays_command, simple_read_overlay_table)
5874 (simple_overlay_update_1): Update.
5875 * stap-probe.c (handle_stap_probe): Update.
5876 * stabsread.c (dbx_init_float_type, define_symbol)
5877 (read_one_struct_field, read_enum_type, read_range_type): Update.
5878 * source.c (info_line_command): Update.
5879 * python/python.c (gdbpy_source_objfile_script)
5880 (gdbpy_execute_objfile_script): Update.
5881 * python/py-type.c (save_objfile_types): Update.
5882 * python/py-objfile.c (py_free_objfile): Update.
5883 * python/py-inferior.c (python_new_objfile): Update.
5884 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5885 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5886 (maintenance_check_psymtabs): Update.
5887 * printcmd.c (info_address_command): Update.
5888 * objfiles.h (struct objfile) <arch>: New method, from
5889 get_objfile_arch.
5890 (get_objfile_arch): Don't declare.
5891 * objfiles.c (get_objfile_arch): Remove.
5892 (filter_overlapping_sections): Update.
5893 * minsyms.c (msymbol_is_function): Update.
5894 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5895 (output_nondebug_symbol): Update.
5896 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5897 (mdebug_expand_psymtab): Update.
5898 * machoread.c (macho_add_oso_symfile): Update.
5899 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5900 Update.
5901 * linux-fork.c (checkpoint_command): Update.
5902 * linespec.c (convert_linespec_to_sals): Update.
5903 * jit.c (finalize_symtab): Update.
5904 * infrun.c (insert_exception_resume_from_probe): Update.
5905 * ia64-tdep.c (ia64_find_unwind_table): Update.
5906 * hppa-tdep.c (internalize_unwinds): Update.
5907 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5908 Update.
5909 * gcore.c (call_target_sbrk): Update.
5910 * elfread.c (record_minimal_symbol, elf_symtab_read)
5911 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5912 (elf_gnu_ifunc_resolve_by_got): Update.
5913 * dwarf2/read.c (create_addrmap_from_index)
5914 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5915 (read_debug_names_from_section)
5916 (process_psymtab_comp_unit_reader, add_partial_symbol)
5917 (add_partial_subprogram, process_full_comp_unit)
5918 (read_file_scope, read_func_scope, read_lexical_block_scope)
5919 (read_call_site_scope, dwarf2_ranges_read)
5920 (dwarf2_record_block_ranges, dwarf2_add_field)
5921 (mark_common_block_symbol_computed, read_tag_pointer_type)
5922 (read_tag_string_type, dwarf2_init_float_type)
5923 (dwarf2_init_complex_target_type, read_base_type)
5924 (partial_die_info::read, partial_die_info::read)
5925 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5926 (dwarf2_fetch_die_loc_sect_off): Update.
5927 * dwarf2/loc.c (dwarf2_find_location_expression)
5928 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5929 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5930 (dwarf2_loc_desc_get_symbol_read_needs)
5931 (locexpr_describe_location_piece, locexpr_describe_location_1)
5932 (loclist_describe_location): Update.
5933 * dwarf2/index-write.c (write_debug_names): Update.
5934 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5935 * dtrace-probe.c (dtrace_process_dof): Update.
5936 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5937 (process_one_symbol): Update.
5938 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5939 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5940 (coff_read_enum_type): Update.
5941 * cli/cli-cmds.c (edit_command, list_command): Update.
5942 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5943 * breakpoint.c (create_overlay_event_breakpoint)
5944 (create_longjmp_master_breakpoint)
5945 (create_std_terminate_master_breakpoint)
5946 (create_exception_master_breakpoint, get_sal_arch): Update.
5947 * block.c (block_gdbarch): Update.
5948 * annotate.c (annotate_source_line): Update.
5949
5950 2020-04-17 Tom Tromey <tromey@adacore.com>
5951
5952 * auto-load.c (show_auto_load_cmd): Remove.
5953 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5954 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5955 (maintenance_print_arc_command): Remove.
5956 * tui/tui-win.c (tui_command): Remove.
5957 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5958 * tui/tui-layout.c (tui_layout_command): Remove.
5959 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5960 * python/python.c (user_set_python, user_show_python): Remove.
5961 (_initialize_python): Use add_basic_prefix_cmd,
5962 add_show_prefix_cmd.
5963 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5964 (install_gdb_commands): Use add_basic_prefix_cmd,
5965 add_show_prefix_cmd.
5966 (info_guile_command): Remove.
5967 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5968 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5969 add_show_prefix_cmd.
5970 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5971 Remove do_set and do_show parameters.
5972 * cli/cli-style.c (set_style, show_style): Remove.
5973 (_initialize_cli_style): Use add_basic_prefix_cmd,
5974 add_show_prefix_cmd.
5975 (cli_style_option::add_setshow_commands): Remove do_set and
5976 do_show parameters.
5977 (cli_style_option::add_setshow_commands): Use
5978 add_basic_prefix_cmd, add_show_prefix_cmd.
5979 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5980 (set_style_name): Remove.
5981 * cli/cli-dump.c (dump_command, append_command): Remove.
5982 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5983 (tekhex_dump_command, binary_dump_command)
5984 (binary_append_command): Remove.
5985 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5986 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5987 (init_w32_command_list): Remove; move into ...
5988 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5989 * valprint.c (set_print, show_print, set_print_raw)
5990 (show_print_raw): Remove.
5991 (_initialize_valprint): Use add_basic_prefix_cmd,
5992 add_show_prefix_cmd.
5993 * typeprint.c (set_print_type, show_print_type): Remove.
5994 (_initialize_typeprint): Use add_basic_prefix_cmd,
5995 add_show_prefix_cmd.
5996 * record.c (set_record_command, show_record_command): Remove.
5997 (_initialize_record): Use add_basic_prefix_cmd,
5998 add_show_prefix_cmd.
5999 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 (info_command, show_command, set_debug, show_debug): Remove.
6002 * top.h (set_history, show_history): Don't declare.
6003 * top.c (set_history, show_history): Remove.
6004 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6005 (unset_tdesc_cmd): Remove.
6006 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6007 add_show_prefix_cmd.
6008 * symtab.c (info_module_command): Remove.
6009 (_initialize_symtab): Use add_basic_prefix_cmd.
6010 * symfile.c (overlay_command): Remove.
6011 (_initialize_symfile): Use add_basic_prefix_cmd.
6012 * sparc64-tdep.c (info_adi_command): Remove.
6013 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6014 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6015 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6016 add_show_prefix_cmd.
6017 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6018 (_initialize_serial): Use add_basic_prefix_cmd,
6019 add_show_prefix_cmd.
6020 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6021 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6022 add_show_prefix_cmd.
6023 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6024 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6025 add_show_prefix_cmd.
6026 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6027 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6028 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6029 add_show_prefix_cmd.
6030 * remote.c (remote_command, set_remote_cmd): Remove.
6031 (_initialize_remote): Use add_basic_prefix_cmd.
6032 * record-full.c (set_record_full_command)
6033 (show_record_full_command): Remove.
6034 (_initialize_record_full): Use add_basic_prefix_cmd,
6035 add_show_prefix_cmd.
6036 * record-btrace.c (cmd_set_record_btrace)
6037 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6038 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6039 (cmd_show_record_btrace_pt): Remove.
6040 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6041 add_show_prefix_cmd.
6042 * ravenscar-thread.c (set_ravenscar_command)
6043 (show_ravenscar_command): Remove.
6044 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6045 add_show_prefix_cmd.
6046 * mips-tdep.c (show_mips_command, set_mips_command)
6047 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6048 add_show_prefix_cmd.
6049 * maint.c (maintenance_command, maintenance_info_command)
6050 (maintenance_check_command, maintenance_print_command)
6051 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6052 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6053 add_show_prefix_cmd.
6054 (show_per_command_cmd): Remove.
6055 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6056 Remove.
6057 (maintenance_show_test_settings_cmd): Remove.
6058 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6059 add_show_prefix_cmd.
6060 * maint-test-options.c (maintenance_test_options_command):
6061 Remove.
6062 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6063 * macrocmd.c (macro_command): Remove
6064 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6065 * language.c (set_check, show_check): Remove.
6066 (_initialize_language): Use add_basic_prefix_cmd,
6067 add_show_prefix_cmd.
6068 * infcmd.c (unset_command): Remove.
6069 (_initialize_infcmd): Use add_basic_prefix_cmd.
6070 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6071 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6072 add_show_prefix_cmd.
6073 * go32-nat.c (go32_info_dos_command): Remove.
6074 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6075 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6076 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6077 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6078 (_initialize_frame): Use add_basic_prefix_cmd,
6079 add_show_prefix_cmd.
6080 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6081 (_initialize_dcache): Use add_basic_prefix_cmd,
6082 add_show_prefix_cmd.
6083 * cp-support.c (maint_cplus_command): Remove.
6084 (_initialize_cp_support): Use add_basic_prefix_cmd.
6085 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6086 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6087 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6088 add_basic_prefix_cmd, add_show_prefix_cmd.
6089 * breakpoint.c (save_command): Remove.
6090 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6091 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6092 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6093 add_show_prefix_cmd.
6094 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6095 (set_ada_command, show_ada_command): Remove.
6096 (_initialize_ada_language): Use add_basic_prefix_cmd,
6097 add_show_prefix_cmd.
6098 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6099
6100 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6101
6102 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6103 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6104
6105 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6106
6107 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6108 warning messages.
6109
6110 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6113 import table is not at beginning of .idata section.
6114
6115 2020-04-16 Pedro Alves <palves@redhat.com>
6116
6117 * inferior.c (delete_inferior): Use delete operator directly
6118 instead of delete_program_space.
6119 * progspace.c (add_program_space): New, factored out from
6120 program_space::program_space.
6121 (remove_program_space): New, factored out from
6122 delete_program_space.
6123 (program_space::program_space): Remove intro comment. Rewrite.
6124 (program_space::~program_space): Remove intro comment. Call
6125 remove_program_space.
6126 (delete_program_space): Delete.
6127 * progspace.h (program_space::program_space): Make explicit. Move
6128 intro comment here, adjusted.
6129 (program_space::~program_space): Move intro comment here,
6130 adjusted.
6131 (delete_program_space): Remove.
6132
6133 2020-04-16 Tom Tromey <tromey@adacore.com>
6134
6135 * windows-nat.c (windows_nat::handle_access_violation): New
6136 function.
6137 * nat/windows-nat.h (handle_access_violation): Declare.
6138 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6139 windows-nat.c. Call handle_access_violation.
6140
6141 2020-04-16 Tom de Vries <tdevries@suse.de>
6142
6143 PR symtab/25791
6144 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6145 CUs without psymtab.
6146
6147 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6148
6149 * python/python.c (do_start_initialization): Don't call
6150 PyEval_InitThreads for Python 3.9 and beyond.
6151
6152 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6153
6154 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6155 thread functions.
6156 (obsd_nat_target::wait): Likewise.
6157
6158 2020-04-15 Tom Tromey <tromey@adacore.com>
6159
6160 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6161 (DEBUG_EXCEPT): Use debug_printf.
6162
6163 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6164
6165 * completer.c (class completion_tracker::completion_hash_entry)
6166 <hash_name>: New member function.
6167 (completion_tracker::discard_completions): New callback to hash a
6168 completion_hash_entry, pass this to htab_create_alloc.
6169
6170 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6171
6172 * windows-nat.c (windows_make_so): Warn rather than stopping with
6173 an error if realpath() fails.
6174
6175 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6176
6177 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6178 (nbsd_nat_target::info_proc): Add do_status.
6179
6180 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6181 Tom de Vries <tdevries@suse.de>
6182
6183 PR symtab/25718
6184 * psympriv.h (struct partial_symtab::read_symtab)
6185 (struct partial_symtab::expand_psymtab)
6186 (struct partial_symtab::read_dependencies): Update comments.
6187 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6188 read_symtab for includer.
6189 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6190 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6191 (struct dwarf2_include_psymtab::m_readin): Remove.
6192 (struct dwarf2_include_psymtab::includer): New member function.
6193 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6194
6195 2020-04-14 Tom de Vries <tdevries@suse.de>
6196
6197 PR symtab/25720
6198 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6199 with NULL symbol_matcher and lookup_name.
6200 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6201 and lookup_name.
6202 * dwarf2/read.c (dw2_expand_symtabs_matching)
6203 (dw2_debug_names_expand_symtabs_matching): Same.
6204 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6205 Make lookup_name a pointer. Update comment.
6206 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6207 lookup_name being a pointer.
6208 * symfile.c (expand_symtabs_matching): Same.
6209 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6210 * linespec.c (iterate_over_all_matching_symtabs): Same.
6211
6212 2020-04-13 Tom Tromey <tom@tromey.com>
6213
6214 * run-on-main-thread.c: Update include.
6215 * unittests/main-thread-selftests.c: Update include.
6216 * tui/tui-win.c: Update include.
6217 * tui/tui-io.c: Update include.
6218 * tui/tui-interp.c: Update include.
6219 * tui/tui-hooks.c: Update include.
6220 * top.h: Update include.
6221 * top.c: Update include.
6222 * ser-base.c: Update include.
6223 * remote.c: Update include.
6224 * remote-notif.c: Update include.
6225 * remote-fileio.c: Update include.
6226 * record-full.c: Update include.
6227 * record-btrace.c: Update include.
6228 * python/python.c: Update include.
6229 * posix-hdep.c: Update include.
6230 * mingw-hdep.c: Update include.
6231 * mi/mi-main.c: Update include.
6232 * mi/mi-interp.c: Update include.
6233 * main.c: Update include.
6234 * linux-nat.c: Update include.
6235 * interps.c: Update include.
6236 * infrun.c: Update include.
6237 * inf-loop.c: Update include.
6238 * event-top.c: Update include.
6239 * event-loop.c: Move to ../gdbsupport/.
6240 * event-loop.h: Move to ../gdbsupport/.
6241 * async-event.h: Update include.
6242 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6243
6244 2020-04-13 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-win.c: Include async-event.h.
6247 * remote.c: Include async-event.h.
6248 * remote-notif.c: Include async-event.h.
6249 * record-full.c: Include async-event.h.
6250 * record-btrace.c: Include async-event.h.
6251 * infrun.c: Include async-event.h.
6252 * event-top.c: Include async-event.h.
6253 * event-loop.h: Move some declarations to async-event.h.
6254 * event-loop.c: Don't include ser-event.h or top.h. Move some
6255 code to async-event.c.
6256 * async-event.h: New file.
6257 * async-event.c: New file.
6258 * Makefile.in (COMMON_SFILES): Add async-event.c.
6259 (HFILES_NO_SRCDIR): Add async-event.h.
6260
6261 2020-04-13 Tom Tromey <tom@tromey.com>
6262
6263 * utils.c (flush_streams): New function.
6264 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6265
6266 2020-04-13 Tom Tromey <tom@tromey.com>
6267
6268 * event-loop.c (handle_file_event): Use warning, not
6269 printf_unfiltered.
6270
6271 2020-04-13 Tom Tromey <tom@tromey.com>
6272
6273 * event-loop.c: Include <chrono>.
6274
6275 2020-04-13 Tom Tromey <tom@tromey.com>
6276
6277 * gdb_select.h: Move to ../gdbsupport/.
6278 * event-loop.c: Update include path.
6279 * top.c: Update include path.
6280 * ser-base.c: Update include path.
6281 * ui-file.c: Update include path.
6282 * ser-tcp.c: Update include path.
6283 * guile/scm-ports.c: Update include path.
6284 * posix-hdep.c: Update include path.
6285 * ser-unix.c: Update include path.
6286 * gdb_usleep.c: Update include path.
6287 * mingw-hdep.c: Update include path.
6288 * inflow.c: Update include path.
6289 * infrun.c: Update include path.
6290 * event-top.c: Update include path.
6291
6292 2020-04-13 Tom Tromey <tom@tromey.com>
6293
6294 * configure: Rebuild.
6295 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6296
6297 2020-04-13 Tom Tromey <tom@tromey.com>
6298
6299 * event-loop.h (start_event_loop): Don't declare.
6300 * event-loop.c (start_event_loop): Move...
6301 * main.c (start_event_loop): ...here. Now static.
6302
6303 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6304
6305 * MAINTAINERS: Update my email address.
6306
6307 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6308
6309 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6310 IP_ALL.
6311
6312 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6313
6314 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6315 (nbsd_nat_target::info_proc): Add do_cmdline.
6316
6317 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6318
6319 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6320 (nbsd_nat_target::info_proc): Add do_cwd.
6321
6322 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6323
6324 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6325
6326 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6327
6328 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6329 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6330 (nbsd_nat_target::info_proc): New functions.
6331 * nbsd-nat.c (kinfo_get_vmmap): New function.
6332 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6333 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6334 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6335 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6336 functions.
6337 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6338 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6339 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6340 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6341 (KINFO_VME_FLAG_GROWS_DOWN): New.
6342
6343 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6344
6345 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6346 bit shift.
6347
6348 2020-04-10 Tom Tromey <tromey@adacore.com>
6349
6350 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6351
6352 2020-04-10 Tom Tromey <tromey@adacore.com>
6353
6354 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6355 separate debug files.
6356
6357 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6358
6359 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6360 Move to...
6361 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6362 ... here.
6363 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6364 Check for STATUS_WX86_BREAKPOINT.
6365 (windows_nat_target::wait): Same.
6366
6367 2020-04-10 Tom de Vries <tdevries@suse.de>
6368
6369 PR cli/25808
6370 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6371
6372 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6373
6374 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6375 (Write After Approval): Remove Tom de Vries.
6376
6377 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6378
6379 revert partially:
6380 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6381
6382 * buildsym.c (record_line): Fix undefined behavior and preserve
6383 lines at eof.
6384
6385 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6386
6387 * auxv.h (svr4_auxv_parse): New.
6388 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6389 and generic_auxv_parse.
6390 (svr4_auxv_parse): Add.
6391 * obsd-tdep.c: Include "auxv.h".
6392 (obsd_auxv_parse): Remove.
6393 (obsd_init_abi): Remove comment.
6394 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6395 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6396 * nbsd-tdep.c: Include "auxv.h".
6397 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6398
6399 2020-04-08 Tom Tromey <tromey@adacore.com>
6400
6401 * nat/windows-nat.h (last_wait_event): Don't declare.
6402 (wait_for_debug_event): Update comment.
6403 * nat/windows-nat.c (last_wait_event): Now static.
6404
6405 2020-04-08 Tom Tromey <tromey@adacore.com>
6406
6407 * windows-nat.c (wait_for_debug_event): Move to
6408 nat/windows-nat.c.
6409 * nat/windows-nat.h (wait_for_debug_event): Declare.
6410 * nat/windows-nat.c (wait_for_debug_event): Move from
6411 windows-nat.c. No longer static.
6412
6413 2020-04-08 Tom Tromey <tromey@adacore.com>
6414
6415 * windows-nat.c (get_windows_debug_event): Use
6416 fetch_pending_stop.
6417 * nat/windows-nat.h (fetch_pending_stop): Declare.
6418 * nat/windows-nat.c (fetch_pending_stop): New function.
6419
6420 2020-04-08 Tom Tromey <tromey@adacore.com>
6421
6422 * windows-nat.c (windows_continue): Use matching_pending_stop and
6423 continue_last_debug_event.
6424 * nat/windows-nat.h (matching_pending_stop)
6425 (continue_last_debug_event): Declare.
6426 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6427 (matching_pending_stop, continue_last_debug_event): New
6428 functions.
6429
6430 2020-04-08 Tom Tromey <tromey@adacore.com>
6431
6432 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6433 (handle_exception_result): Move to nat/windows-nat.h.
6434 (DEBUG_EXCEPTION_SIMPLE): Remove.
6435 (windows_nat::handle_ms_vc_exception): New function.
6436 (handle_exception): Move to nat/windows-nat.c.
6437 (get_windows_debug_event): Update.
6438 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6439 nat/windows-nat.c.
6440 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6441 (handle_exception_result): Move from windows-nat.c.
6442 (handle_exception): Declare.
6443 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6444 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6445 windows-nat.c.
6446
6447 2020-04-08 Tom Tromey <tromey@adacore.com>
6448
6449 * windows-nat.c (exception_count, event_count): Remove.
6450 (handle_exception, get_windows_debug_event)
6451 (do_initial_windows_stuff): Update.
6452
6453 2020-04-08 Tom Tromey <tromey@adacore.com>
6454
6455 * windows-nat.c (windows_nat::handle_load_dll)
6456 (windows_nat::handle_unload_dll): Rename. No longer static.
6457 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6458 Declare.
6459
6460 2020-04-08 Tom Tromey <tromey@adacore.com>
6461
6462 * complaints.h (stop_whining): Declare at top-level.
6463 (complaint): Don't declare stop_whining.
6464
6465 2020-04-08 Tom Tromey <tromey@adacore.com>
6466
6467 * windows-nat.c (windows_nat::handle_output_debug_string):
6468 Rename. No longer static.
6469 * nat/windows-nat.h (handle_output_debug_string): Declare.
6470
6471 2020-04-08 Tom Tromey <tromey@adacore.com>
6472
6473 * windows-nat.c (current_process_handle, current_process_id)
6474 (main_thread_id, last_sig, current_event, last_wait_event)
6475 (current_windows_thread, desired_stop_thread_id, pending_stops)
6476 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6477 (display_selectors, fake_create_process)
6478 (get_windows_debug_event): Update.
6479 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6483 * nat/windows-nat.c (current_process_handle, current_process_id)
6484 (main_thread_id, last_sig, current_event, last_wait_event)
6485 (current_windows_thread, desired_stop_thread_id, pending_stops)
6486 (siginfo_er): New globals. Move from windows-nat.c.
6487
6488 2020-04-08 Tom Tromey <tromey@adacore.com>
6489
6490 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6491 (handle_load_dll): Update.
6492 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6493
6494 2020-04-08 Tom Tromey <tromey@adacore.com>
6495
6496 * windows-nat.c (enum thread_disposition_type): Move to
6497 nat/windows-nat.h.
6498 (windows_nat::thread_rec): Rename from thread_rec. No longer
6499 static.
6500 (windows_add_thread, windows_nat_target::fetch_registers)
6501 (windows_nat_target::store_registers, handle_exception)
6502 (windows_nat_target::resume, get_windows_debug_event)
6503 (windows_nat_target::get_tib_address)
6504 (windows_nat_target::thread_name)
6505 (windows_nat_target::thread_alive): Update.
6506 * nat/windows-nat.h (enum thread_disposition_type): Move from
6507 windows-nat.c.
6508 (thread_rec): Declare.
6509
6510 2020-04-08 Tom Tromey <tromey@adacore.com>
6511
6512 * windows-nat.c: Add "using namespace".
6513 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6514 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6515
6516 2020-04-08 Tom Tromey <tromey@adacore.com>
6517
6518 * nat/windows-nat.h (struct windows_thread_info): Declare
6519 destructor.
6520 * nat/windows-nat.c (~windows_thread_info): New.
6521
6522 2020-04-08 Tom Tromey <tromey@adacore.com>
6523
6524 PR gdb/22992
6525 * windows-nat.c (current_event): Update comment.
6526 (last_wait_event, desired_stop_thread_id): New globals.
6527 (struct pending_stop): New.
6528 (pending_stops): New global.
6529 (windows_nat_target) <stopped_by_sw_breakpoint>
6530 <supports_stopped_by_sw_breakpoint>: New methods.
6531 (windows_fetch_one_register): Add assertions. Adjust PC.
6532 (windows_continue): Handle pending stops. Suspend other threads
6533 when stepping. Use last_wait_event
6534 (wait_for_debug_event): New function.
6535 (get_windows_debug_event): Use wait_for_debug_event. Handle
6536 pending stops. Queue spurious stops.
6537 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6538 (windows_nat_target::kill): Use wait_for_debug_event.
6539 * nat/windows-nat.h (struct windows_thread_info)
6540 <stopped_at_software_breakpoint>: New field.
6541 * nat/windows-nat.c (windows_thread_info::resume): Clear
6542 stopped_at_software_breakpoint.
6543
6544 2020-04-08 Tom Tromey <tromey@adacore.com>
6545
6546 * windows-nat.c (enum thread_disposition_type): New.
6547 (thread_rec): Replace "get_context" parameter with "disposition";
6548 change type.
6549 (windows_add_thread, windows_nat_target::fetch_registers)
6550 (windows_nat_target::store_registers, handle_exception)
6551 (windows_nat_target::resume, get_windows_debug_event)
6552 (windows_nat_target::get_tib_address)
6553 (windows_nat_target::thread_name)
6554 (windows_nat_target::thread_alive): Update.
6555
6556 2020-04-08 Tom Tromey <tromey@adacore.com>
6557
6558 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6559 (windows_continue): Use windows_continue::resume.
6560 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6561 resume>: Declare new methods.
6562 * nat/windows-nat.c: New file.
6563 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6564
6565 2020-04-08 Tom Tromey <tromey@adacore.com>
6566
6567 * windows-nat.c (windows_add_thread, windows_delete_thread)
6568 (windows_nat_target::fetch_registers)
6569 (windows_nat_target::store_registers, fake_create_process)
6570 (windows_nat_target::resume, windows_nat_target::resume)
6571 (get_windows_debug_event, windows_nat_target::wait)
6572 (windows_nat_target::pid_to_str)
6573 (windows_nat_target::get_tib_address)
6574 (windows_nat_target::get_ada_task_ptid)
6575 (windows_nat_target::thread_name)
6576 (windows_nat_target::thread_alive): Use lwp, not tid.
6577
6578 2020-04-08 Tom Tromey <tromey@adacore.com>
6579
6580 * windows-nat.c (handle_exception)
6581 (windows_nat_target::thread_name): Update.
6582 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6583 <name>: Now unique_xmalloc_ptr.
6584
6585 2020-04-08 Tom Tromey <tromey@adacore.com>
6586
6587 * windows-nat.c (thread_rec)
6588 (windows_nat_target::fetch_registers): Update.
6589 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6590 Update comment.
6591 <debug_registers_changed, reload_context>: Now bool.
6592
6593 2020-04-08 Tom Tromey <tromey@adacore.com>
6594
6595 * windows-nat.c (windows_add_thread): Use new.
6596 (windows_init_thread_list, windows_delete_thread): Use delete.
6597 (get_windows_debug_event): Update.
6598 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6599 destructor, and initializers.
6600
6601 2020-04-08 Tom Tromey <tromey@adacore.com>
6602
6603 * windows-nat.c (struct windows_thread_info): Remove.
6604 * nat/windows-nat.h: New file.
6605
6606 2020-04-08 Tom Tromey <tromey@adacore.com>
6607
6608 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6609 (thread_rec, windows_add_thread, windows_delete_thread)
6610 (windows_continue): Update.
6611
6612 2020-04-08 Tom Tromey <tromey@adacore.com>
6613
6614 * windows-nat.c (struct windows_thread_info): Remove typedef.
6615 (thread_head): Remove.
6616 (thread_list): New global.
6617 (thread_rec, windows_add_thread, windows_init_thread_list)
6618 (windows_delete_thread, windows_continue): Update.
6619
6620 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * windows-tdep.h (windows_init_abi): Add comment.
6623 (cygwin_init_abi): New declaration.
6624 * windows-tdep.c: Split signal enumeration in two, one for
6625 Windows and one for Cygwin.
6626 (windows_gdb_signal_to_target): Only deal with signal of the
6627 Windows OS ABI.
6628 (cygwin_gdb_signal_to_target): New function.
6629 (windows_init_abi): Rename to windows_init_abi_common, don't set
6630 gdb_signal_to_target gdbarch method. Add new new function with
6631 this name.
6632 (cygwin_init_abi): New function.
6633 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6634 comment. Don't call windows_init_abi.
6635 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6636 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6637 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6638 i386_windows_init_abi_common, don't call windows_init_abi. Add
6639 a new function of this name.
6640 (i386_cygwin_init_abi): New function.
6641 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6642 OS ABI Cygwin.
6643
6644 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6645
6646 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6647 parameter.c.
6648 (dwarf2_read_gdb_index): Update.
6649
6650 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6651
6652 * nbsd-tdep.c: Include "objfiles.h".
6653 (nbsd_skip_solib_resolver): New.
6654 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6655
6656 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6657
6658 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6659 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6660 with DW_LLE_base_addressx are being emitted in DWARFv5.
6661 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6662 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6663 unsigned integer.
6664
6665 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6666
6667 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6668 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6669 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6670 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6671 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6672 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6673 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6674
6675
6676 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6677
6678 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6679 (read_loclist_index): New function definition.
6680 (lookup_loclist_base): New function definition.
6681 (read_loclist_header): New function definition.
6682 (dwarf2_cu): Add loclist_base and loclist_header field.
6683 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6684 (read_full_die_1): Read the value of DW_AT_loclists_base.
6685 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6686 (read_attribute_value): Handle DW_FORM_loclistx.
6687 (skip_one_die): Handle DW_FORM_loclistx.
6688 (loclist_header): New structure declaration.
6689 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6690
6691 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6692
6693 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6694 constructor. Remove `addr` parameter from other constructor and
6695 add `per_cu` parameter.
6696 * dwarf2/read.c (create_partial_symtab): Update.
6697
6698 2020-04-07 Tom de Vries <tdevries@suse.de>
6699
6700 PR symtab/25796
6701 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6702 (partial_die_info::fixup): Inherit has_const_value.
6703
6704 2020-04-07 Tom de Vries <tdevries@suse.de>
6705
6706 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6707 symbols without address.
6708
6709 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6710
6711 * nbsd-nat.h (struct thread_info): Add forward declaration.
6712 (nbsd_nat_target::thread_alive): Add.
6713 (nbsd_nat_target::thread_name): Likewise.
6714 (nbsd_nat_target::update_thread_list): Likewise.
6715 (update_thread_list::post_attach): Likewise.
6716 (post_attach::pid_to_str): Likewise.
6717 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6718 (nbsd_thread_lister): Add.
6719 (nbsd_nat_target::thread_alive): Likewise.
6720 (nbsd_nat_target::thread_name): Likewise.
6721 (nbsd_add_threads): Likewise.
6722 (update_thread_list::post_attach): Likewise.
6723 (nbsd_nat_target::update_thread_list): Likewise.
6724 (post_attach::pid_to_str): Likewise.
6725
6726 2020-04-06 Tom Tromey <tromey@adacore.com>
6727
6728 * ada-valprint.c (print_variant_part): Extract the variant field.
6729 (print_field_values): Use the field as the outer value when
6730 recursing.
6731
6732 2020-04-06 Tom Tromey <tromey@adacore.com>
6733
6734 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6735 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6736 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6737 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6738 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6739
6740 2020-04-06 Tom Tromey <tromey@adacore.com>
6741
6742 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6743 TYPE_CODE_ERROR.
6744
6745 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6746
6747 * nbsd-tdep.c: Include "gdbarch.h".
6748 Define enum with NetBSD signal numbers.
6749 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6750 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6751 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6752 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6753 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6754 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6755 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6756 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6757 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6758 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6759 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6760 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6761
6762 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6763
6764 PR gdb/25325
6765 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6766
6767 2020-04-03 Tom Tromey <tromey@adacore.com>
6768
6769 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6770 Read constant block.
6771
6772 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6775 (gdb_bfd_get_full_section_contents): New declaration.
6776 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6777 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6778 gdb_bfd_get_full_section_contents.
6779
6780 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6781
6782 * exec.c (build_section_table): Replace internal_error with
6783 gdb_assert.
6784 (section_table_xfer_memory_partial): Likewise.
6785 * mdebugread.c (parse_partial_symbols): Likewise.
6786 * psymtab.c (lookup_partial_symbol): Likewise.
6787 * utils.c (wrap_here): Likewise.
6788
6789 2020-04-02 Tom Tromey <tromey@adacore.com>
6790
6791 * f-lang.c (build_fortran_types): Use arch_type to initialize
6792 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6793
6794 2020-04-02 Tom Tromey <tromey@adacore.com>
6795
6796 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6797 of attributes.
6798
6799 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6800 Bernd Edlinger <bernd.edlinger@hotmail.de>
6801 Tom Tromey <tromey@adacore.com>
6802
6803 * buildsym.c (buildsym_compunit::record_line): Remove
6804 deduplication code.
6805
6806 2020-04-02 Tom de Vries <tdevries@suse.de>
6807
6808 PR ada/24671
6809 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6810
6811 2020-04-02 Tom de Vries <tdevries@suse.de>
6812
6813 * dwarf2/read.c (dwarf2_gdb_index_functions,
6814 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6815 NULL.
6816 * psymtab.c (psym_lookup_global_symbol_language): New function.
6817 (psym_functions): Init psym_lookup_global_symbol_language with
6818 psym_lookup_global_symbol_language.
6819 * symfile-debug.c (debug_sym_quick_functions): Init
6820 lookup_global_symbol_language with NULL.
6821 * symfile.c (set_initial_language): Remove fixme comment.
6822 * symfile.h (struct quick_symbol_functions): Add
6823 lookup_global_symbol_language.
6824 * symtab.c (find_quick_global_symbol_language): New function.
6825 (find_main_name): Use find_quick_global_symbol_language.
6826
6827 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6828
6829 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6830
6831 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6832
6833 * buildsym.c (record_line): Fix undefined behavior and preserve
6834 lines at eof.
6835
6836 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6837
6838 * buildsym.c (record_line): Fix the resizing condition.
6839
6840 2020-04-01 Tom Tromey <tom@tromey.com>
6841
6842 * value.h (value_literal_complex): Add comment.
6843 * valops.c (value_literal_complex): Refer to value.h.
6844
6845 2020-04-01 Tom Tromey <tom@tromey.com>
6846
6847 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6848 (scalar_type): New rule, from typebase.
6849 (typebase): Use scalar_type. Recognize complex types.
6850 (field_name): Handle FLOAT_KEYWORD.
6851 (ident_tokens): Add _Complex and __complex__.
6852
6853 2020-04-01 Tom Tromey <tom@tromey.com>
6854
6855 PR exp/25299:
6856 * valarith.c (promotion_type, complex_binop): New functions.
6857 (scalar_binop): Handle complex numbers. Use promotion_type.
6858 (value_pos, value_neg, value_complement): Handle complex numbers.
6859
6860 2020-04-01 Tom Tromey <tom@tromey.com>
6861
6862 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6863 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6864 (parse_number): Handle complex numbers.
6865
6866 2020-04-01 Tom Tromey <tom@tromey.com>
6867
6868 * c-valprint.c (c_decorations): Change complex suffix to "i".
6869
6870 2020-04-01 Tom Tromey <tom@tromey.com>
6871
6872 * valprint.c (generic_value_print_complex): Use accessors.
6873 * value.h (value_real_part, value_imaginary_part): Declare.
6874 * valops.c (value_real_part, value_imaginary_part): New
6875 functions.
6876 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6877
6878 2020-04-01 Tom Tromey <tom@tromey.com>
6879
6880 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6881 (read_range_type): Update.
6882 * mdebugread.c (basic_type): Update.
6883 * go-lang.c (build_go_types): Use init_complex_type.
6884 * gdbtypes.h (struct main_type) <complex_type>: New member.
6885 (init_complex_type): Update.
6886 (arch_complex_type): Don't declare.
6887 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6888 Make name if none given. Use alloc_type_copy. Look for cached
6889 complex type.
6890 (arch_complex_type): Remove.
6891 (gdbtypes_post_init): Use init_complex_type.
6892 * f-lang.c (build_fortran_types): Use init_complex_type.
6893 * dwarf2/read.c (read_base_type): Update.
6894 * d-lang.c (build_d_types): Use init_complex_type.
6895 * ctfread.c (read_base_type): Update.
6896
6897 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6898
6899 * infrun.c (stop_all_threads): Update assertion, plus when
6900 stopping threads, take into account that we might be trying
6901 to stop an all-stop target.
6902 (stop_waiting): Call 'stop_all_threads' if there exists a
6903 non-stop target.
6904
6905 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6906
6907 * target.h (exists_non_stop_target): New function declaration.
6908 * target.c (exists_non_stop_target): New function.
6909
6910 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6911
6912 PR gdb/24789
6913 * eval.c (is_integral_or_integral_reference): New function.
6914 (evaluate_subexp_standard): Allow integer references in
6915 pointer arithmetic.
6916
6917 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6918
6919 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6920 check for no ptid in the stop reply when the target is non-stop.
6921
6922 2020-04-01 Tom Tromey <tromey@adacore.com>
6923
6924 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6925 "name" parameter to rvalue reference. Initialize m_name_holder.
6926 <lookup_name_info>: New overloads.
6927 <name>: Return gdb::string_view.
6928 <c_str>: New method.
6929 <make_ignore_params>: Update.
6930 <search_name_hash>: Update.
6931 <language_lookup_name>: Return const char *.
6932 <m_name>: Change type.
6933 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6934 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6935 (lookup_name_info::match_any): Update.
6936 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6937 Update.
6938 * minsyms.c (linkage_name_str): Update.
6939 * language.c (default_symbol_name_matcher): Update.
6940 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6941 Update.
6942 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6943 (ada_lookup_name_info::ada_lookup_name_info): Update.
6944 (literal_symbol_name_matcher): Update.
6945
6946 2020-04-01 Tom Tromey <tromey@adacore.com>
6947
6948 * psymtab.c (psymtab_search_name): Remove function.
6949 (psym_lookup_symbol): Create search name and lookup name here.
6950 (lookup_partial_symbol): Remove "name" parameter; add
6951 lookup_name.
6952 (psym_expand_symtabs_for_function): Update.
6953
6954 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6955
6956 PR tui/25597:
6957 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6958
6959 2020-03-31 Tom Tromey <tromey@adacore.com>
6960
6961 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6962 memcpy.
6963
6964 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6965
6966 * features/riscv/32bit-csr.xml: Regenerated.
6967 * features/riscv/64bit-csr.xml: Regenerated.
6968
6969 2020-03-30 Tom Tromey <tromey@adacore.com>
6970
6971 * ada-valprint.c (print_variant_part): Update.
6972 * ada-lang.h (ada_which_variant_applies): Update.
6973 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6974 outer_valaddr parameters; replace with "outer" value parameter.
6975 (to_fixed_variant_branch_type): Update.
6976
6977 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6978
6979 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6980 <list>. Remove inclusion of observable.h.
6981 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6982 (struct arch_lwp_info): New struct.
6983 (class ppc_linux_dreg_interface): New class.
6984 (struct ppc_linux_process_info): New struct.
6985 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6986 <low_new_clone, low_forget_process, low_prepare_to_resume>
6987 <copy_thread_dreg_state, mark_thread_stale>
6988 <mark_debug_registers_changed, register_hw_breakpoint>
6989 <clear_hw_breakpoint, register_wp, clear_wp>
6990 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6991 <num_memory_accesses, get_trigger_type>
6992 <create_watchpoint_request, hwdebug_point_cmp>
6993 <init_arch_lwp_info, get_arch_lwp_info>
6994 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6995 methods.
6996 <struct ptid_hash>: New inner struct.
6997 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6998 members.
6999 (saved_dabr_value, hwdebug_info, max_slots_number)
7000 (struct hw_break_tuple, struct thread_points, ppc_threads)
7001 (have_ptrace_hwdebug_interface)
7002 (hwdebug_find_thread_points_by_tid)
7003 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7004 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7005 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7006 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7007 use m_dreg_interface.
7008 (hwdebug_point_cmp): Change to...
7009 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7010 reference arguments instead of pointers.
7011 (ppc_linux_nat_target::ranged_break_num_registers): Use
7012 m_dreg_interface.
7013 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7014 m_dreg_interface. Call register_hw_breakpoint.
7015 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7016 m_dreg_interface. Call clear_hw_breakpoint.
7017 (get_trigger_type): Change to...
7018 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7019 comment.
7020 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7021 use m_dreg_interface. Call register_hw_breakpoint.
7022 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7023 use m_dreg_interface. Call clear_hw_breakpoint.
7024 (can_use_watchpoint_cond_accel): Change to...
7025 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7026 method. Update comment, use m_dreg_interface and
7027 m_process_info.
7028 (calculate_dvc): Change to...
7029 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7030 m_dreg_interface.
7031 (num_memory_accesses): Change to...
7032 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7033 (check_condition): Change to...
7034 (ppc_linux_nat_target::check_condition): ...this method.
7035 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7036 comment, use m_dreg_interface.
7037 (create_watchpoint_request): Change to...
7038 (ppc_linux_nat_target::create_watchpoint_request): ...this
7039 method. Use m_dreg_interface.
7040 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7041 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7042 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7043 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7044 (ppc_linux_nat_target::low_forget_process)
7045 (ppc_linux_nat_target::low_new_fork)
7046 (ppc_linux_nat_target::low_new_clone)
7047 (ppc_linux_nat_target::low_delete_thread)
7048 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7049 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7050 only call mark_thread_stale.
7051 (ppc_linux_thread_exit): Remove.
7052 (ppc_linux_nat_target::stopped_data_address): Change to...
7053 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7054 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7055 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7056 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7057 comment. Call low_stopped_data_address.
7058 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7059 m_dreg_interface.
7060 (ppc_linux_nat_target::masked_watch_num_registers): Use
7061 m_dreg_interface.
7062 (ppc_linux_nat_target::copy_thread_dreg_state)
7063 (ppc_linux_nat_target::mark_thread_stale)
7064 (ppc_linux_nat_target::mark_debug_registers_changed)
7065 (ppc_linux_nat_target::register_hw_breakpoint)
7066 (ppc_linux_nat_target::clear_hw_breakpoint)
7067 (ppc_linux_nat_target::register_wp)
7068 (ppc_linux_nat_target::clear_wp)
7069 (ppc_linux_nat_target::init_arch_lwp_info)
7070 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7071 (_initialize_ppc_linux_nat): Remove observer callback.
7072
7073 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7074
7075 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7076 (ppc_linux_nat_target::auxv_parse)
7077 (ppc_linux_nat_target::read_description)
7078 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7079 Move up.
7080
7081 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7082
7083 * linux-nat.h (low_new_clone): New method.
7084 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7085
7086 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7087
7088 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7089 (dbx_expand_psymtab): ... this.
7090 (start_psymtab): Update.
7091 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7092 (mdebug_expand_psymtab): ... this.
7093 (parse_partial_symbols): Update.
7094 (new_psymtab): Update.
7095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7096 (xcoff_expand_psymtab): ... this.
7097 (xcoff_start_psymtab): Update.
7098
7099 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7100
7101 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7102 <expand_dependencies>: ... this.
7103 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7104 (partial_symtab::expand_dependencies): ... this.
7105 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7106 Update.
7107 (dwarf2_psymtab::expand_psymtab): Update.
7108 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7109 * mdebugread.c (psymtab_to_symtab_1): Update.
7110 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7111
7112 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7113
7114 * psympriv.h (discard_psymtab): Remove.
7115 * dbxread.c (dbx_end_psymtab): Update.
7116 * xcoffread.c (xcoff_end_psymtab): Update.
7117
7118 2020-03-28 Tom Tromey <tom@tromey.com>
7119
7120 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7121 comment.
7122
7123 2020-03-28 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7126
7127 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7128
7129 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7130
7131 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7132
7133 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7134
7135 2020-03-26 Tom Tromey <tom@tromey.com>
7136
7137 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7138 (mark_common_block_symbol_computed, read_tag_string_type)
7139 (attr_to_dynamic_prop, read_subrange_type): Update.
7140 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7141 to be methods on struct attribute.
7142 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7143 (read_call_site_scope, partial_die_info::read)
7144 (partial_die_info::read, lookup_die_type, follow_die_ref):
7145 Update.
7146 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7147 from dwarf2_get_ref_die_offset.
7148 (attribute::constant_value): New method, from
7149 dwarf2_get_attr_constant_value.
7150 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7151 Declare method.
7152 <constant_value>: New method.
7153
7154 2020-03-26 Tom Tromey <tom@tromey.com>
7155
7156 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7157 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7158 (dwarf_type_encoding_name): Move to stringify.c.
7159 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7160 * dwarf2/stringify.c: New file.
7161 * dwarf2/stringify.h: New file.
7162
7163 2020-03-26 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7166 Rewrite.
7167
7168 2020-03-26 Tom Tromey <tom@tromey.com>
7169
7170 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7171 methods.
7172 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7173 (lookup_ranges_base): Likewise.
7174 (read_cutu_die_from_dwo, read_full_die_1): Update.
7175
7176 2020-03-26 Tom Tromey <tom@tromey.com>
7177
7178 * dwarf2/read.c (read_import_statement, read_file_scope)
7179 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7180 (read_lexical_block_scope, read_call_site_scope)
7181 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7182 (handle_struct_member_die, process_structure_scope)
7183 (update_enumeration_type_from_children)
7184 (process_enumeration_scope, read_array_type, read_common_block)
7185 (read_namespace, read_module, read_subroutine_type): Update.
7186 (sibling_die): Remove.
7187
7188 2020-03-26 Tom Tromey <tom@tromey.com>
7189
7190 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7191 (build_type_psymtabs_reader, read_structure_type)
7192 (read_enumeration_type, read_full_die_1): Update.
7193 (dwarf2_attr_no_follow): Move to die.h.
7194 * dwarf2/die.h (struct die_info) <attr>: New method.
7195
7196 2020-03-26 Tom Tromey <tom@tromey.com>
7197
7198 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7199 <base_address>: Now an optional.
7200 (dwarf2_find_base_address, dwarf2_rnglists_process)
7201 (dwarf2_ranges_process, fill_in_loclist_baton)
7202 (dwarf2_symbol_mark_computed): Update.
7203
7204 2020-03-26 Tom Tromey <tom@tromey.com>
7205
7206 * dwarf2/read.c (struct die_info): Move to die.h.
7207 * dwarf2/die.h: New file.
7208
7209 2020-03-26 Tom Tromey <tom@tromey.com>
7210
7211 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7212 * dwarf2/read.c
7213 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7214 Move to line-header.c.
7215 (read_checked_initial_length_and_offset, read_formatted_entries):
7216 Likewise.
7217 (dwarf_decode_line_header): Split into two.
7218 * dwarf2/line-header.c
7219 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7220 Move from read.c.
7221 (read_checked_initial_length_and_offset, read_formatted_entries):
7222 Likewise.
7223 (dwarf_decode_line_header): New function, split from read.c.
7224
7225 2020-03-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7228 Declare method.
7229 * dwarf2/read.c (read_attribute_value): Update.
7230 (dwarf2_per_objfile::read_line_string): Rename from
7231 read_indirect_line_string.
7232 (read_formatted_entries): Update.
7233
7234 2020-03-26 Tom Tromey <tom@tromey.com>
7235
7236 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7237 variable.
7238
7239 2020-03-26 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7242 const.
7243 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7244 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7245 parameter const.
7246
7247 2020-03-26 Tom Tromey <tom@tromey.com>
7248
7249 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7250 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7251 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7252 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7253
7254 2020-03-26 Tom Tromey <tom@tromey.com>
7255
7256 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7257 file_names_size, file_full_name, file_file_name>: Use const.
7258 <file_name_at, file_names>: Add const overload.
7259 * dwarf2/line-header.c (line_header::file_file_name)
7260 (line_header::file_full_name): Update.
7261
7262 2020-03-26 Tom Tromey <tom@tromey.com>
7263
7264 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7265 (macro_start_file, consume_improper_spaces)
7266 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7267 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7268 (dwarf_decode_macros): Move to macro.c.
7269 * dwarf2/macro.c: New file.
7270 * dwarf2/macro.h: New file.
7271 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7272
7273 2020-03-26 Tom Tromey <tom@tromey.com>
7274
7275 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7276 method.
7277 * dwarf2/section.c: New method. From
7278 read_indirect_string_at_offset_from.
7279 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7280 (read_indirect_string_at_offset_from): Move to section.c.
7281 (read_indirect_string_at_offset): Rewrite.
7282 (read_indirect_line_string_at_offset): Remove.
7283 (read_indirect_string, read_indirect_line_string)
7284 (dwarf_decode_macro_bytes): Update.
7285
7286 2020-03-26 Tom Tromey <tom@tromey.com>
7287
7288 * dwarf2/section.h (struct dwarf2_section_info)
7289 <overload_complaint>: Declare.
7290 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7291 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7292 Rename from dwarf2_section_buffer_overflow_complaint.
7293 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7294 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7295
7296 2020-03-26 Tom Tromey <tom@tromey.com>
7297
7298 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7299 Declare.
7300 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7301 Move from read.c.
7302 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7303 to section.c.
7304
7305 2020-03-26 Tom Tromey <tom@tromey.com>
7306
7307 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7308
7309 2020-03-26 Tom Tromey <tom@tromey.com>
7310
7311 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7312 "builder".
7313 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7314 parameter.
7315 (dwarf_decode_macros): Update.
7316
7317 2020-03-26 Tom Tromey <tom@tromey.com>
7318
7319 * dwarf2/read.c (read_attribute_value): Update.
7320 (read_indirect_string_from_dwz): Move to dwz.c; change into
7321 method.
7322 (dwarf_decode_macro_bytes): Update.
7323 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7324 * dwarf2/dwz.c: New file.
7325 * Makefile.in (COMMON_SFILES): Add dwz.c.
7326
7327 2020-03-26 Tom Tromey <tom@tromey.com>
7328
7329 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7330 * dwarf2/read.c: Add include.
7331 * dwarf2/index-write.c: Add include.
7332 * dwarf2/index-cache.c: Add include.
7333 * dwarf2/dwz.h: New file.
7334
7335 2020-03-25 Tom Tromey <tom@tromey.com>
7336
7337 * compile/compile-object-load.c (get_out_value_type): Mention
7338 correct symbol name in error message.
7339
7340 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7341
7342 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7343
7344 2020-03-25 Tom de Vries <tdevries@suse.de>
7345
7346 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7347 * symmisc.c (dump_symtab_1): Print user and includes fields.
7348 (maintenance_info_symtabs): Same.
7349
7350 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7351
7352 PR gdb/25534
7353 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7354 (riscv_regcache_cooked_write): New function.
7355 (riscv_push_dummy_call): Use new function.
7356 (riscv_return_value): Likewise.
7357
7358 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7359
7360 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7361 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7362 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7363 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7364 * infrun.c (follow_fork): Likewise.
7365 (follow_fork_inferior): Likewise.
7366 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7367 * linux-nat.h (class linux_nat_target): Likewise.
7368 * remote.c (class remote_target) <follow_fork>: Likewise.
7369 (remote_target::follow_fork): Likewise.
7370 * target-delegates.c: Re-generate.
7371 * target.c (default_follow_fork): Likewise.
7372 (target_follow_fork): Likewise.
7373 * target.h (struct target_ops) <follow_fork>: Likewise.
7374 (target_follow_fork): Likewise.
7375
7376 2020-03-24 Tom de Vries <tdevries@suse.de>
7377
7378 * psymtab.c (maintenance_info_psymtabs): Print user field.
7379
7380 2020-03-20 Tom Tromey <tromey@adacore.com>
7381
7382 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7383 const.
7384 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7385 const.
7386
7387 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * ptrace.m4: Don't check for ptrace declaration.
7390 * config.in: Re-generate.
7391 * configure: Re-generate.
7392 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7393 not defined.
7394
7395 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7396
7397 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7398 `PTRACE_TYPE_RET'.
7399 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7400 * sparc-nat.c (gdb_ptrace): Likewise.
7401 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7402
7403 2020-03-20 Tom Tromey <tromey@adacore.com>
7404
7405 * c-exp.y (lex_one_token): Fix assert.
7406
7407 2020-03-20 Tom Tromey <tromey@adacore.com>
7408
7409 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7410 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7411 strncpy call.
7412
7413 2020-03-20 Tom Tromey <tromey@adacore.com>
7414
7415 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7416
7417 2020-03-20 Tom Tromey <tromey@adacore.com>
7418
7419 * ada-valprint.c (print_variant_part): Remove parameters; switch
7420 to value-based API.
7421 (print_field_values): Likewise.
7422 (ada_val_print_struct_union): Likewise.
7423 (ada_value_print_1): Update.
7424
7425 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7426
7427 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7428 nbsd_nat_target instead of inf_ptrace_target.
7429 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7430 nbsd_nat_target.
7431
7432 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7433
7434 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7435 it to the ptrace call.
7436 * (store_registers): Likewise.
7437
7438 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7439
7440 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7441 it to the ptrace call.
7442 * (store_registers): Likewise.
7443
7444 2020-03-19 Luis Machado <luis.machado@linaro.org>
7445
7446 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7447 valid, fetch vg value from ptrace.
7448
7449 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7450 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7451 * inf-ptrace.c: Likewise.
7452 * (gdb_ptrace): Add.
7453 * (inf_ptrace_target::resume): Update.
7454 * (inf_ptrace_target::xfer_partial): Likewise.
7455 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7456 * (inf_ptrace_peek_poke): Update.
7457
7458 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7459
7460 * x86-bsd-nat.c (gdb_ptrace): New.
7461 * (x86bsd_dr_set): Add new argument `ptid'.
7462 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7463 x86bsd_dr_set_addr): Update.
7464
7465 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7466
7467 * remote.c (remote_target::process_stop_reply): Handle events for
7468 all threads differently.
7469
7470 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7471
7472 * completer.c (completion_tracker::remove_completion): Define new
7473 function.
7474 * completer.h (completion_tracker::remove_completion): Declare new
7475 function.
7476 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7477 when adding a C++ function symbol.
7478
7479 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * completer.c (completion_tracker::completion_hash_entry): Define
7482 new class.
7483 (advance_to_filename_complete_word_point): Call
7484 recompute_lowest_common_denominator.
7485 (completion_tracker::completion_tracker): Call discard_completions
7486 to setup the hash table.
7487 (completion_tracker::discard_completions): Allow for being called
7488 from the constructor, pass new equal function, and element deleter
7489 when constructing the hash table. Initialise new class member
7490 variables.
7491 (completion_tracker::maybe_add_completion): Remove use of
7492 m_entries_vec, and store more information into m_entries_hash.
7493 (completion_tracker::recompute_lcd_visitor): New function, most
7494 content taken from...
7495 (completion_tracker::recompute_lowest_common_denominator):
7496 ...here, this now just visits each item in the hash calling the
7497 above visitor.
7498 (completion_tracker::build_completion_result): Remove use of
7499 m_entries_vec, call recompute_lowest_common_denominator.
7500 * completer.h (completion_tracker::have_completions): Remove use
7501 of m_entries_vec.
7502 (completion_tracker::completion_hash_entry): Declare new class.
7503 (completion_tracker::recompute_lowest_common_denominator): Change
7504 function signature.
7505 (completion_tracker::recompute_lcd_visitor): Declare new function.
7506 (completion_tracker::m_entries_vec): Delete.
7507 (completion_tracker::m_entries_hash): Initialize to NULL.
7508 (completion_tracker::m_lowest_common_denominator_valid): New
7509 member variable.
7510 (completion_tracker::m_lowest_common_denominator_max_length): New
7511 member variable.
7512
7513 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7514
7515 * regformats/regdef.h: Put reg in gdb namespace.
7516
7517 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7518
7519 * i386-bsd-nat.c (gdb_ptrace): New.
7520 * (i386bsd_fetch_inferior_registers,
7521 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7522 * (i386bsd_fetch_inferior_registers,
7523 i386bsd_store_inferior_registers) Use gdb_ptrace.
7524
7525 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7526
7527 * amd64-bsd-nat.c (gdb_ptrace): New.
7528 * (amd64bsd_fetch_inferior_registers,
7529 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7530 * (amd64bsd_fetch_inferior_registers,
7531 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7532
7533 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7534
7535 * user-regs.c (user_reg::read): Rename to...
7536 (user_reg::xread): ...this.
7537 * (append_user_reg): Rename argument `read' to `xread'.
7538 * (user_reg_add_builtin): Likewise.
7539 * (user_reg_add): Likewise.
7540 * (value_of_user_reg): Likewise.
7541
7542 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7543
7544 * sparc-nat.c (gdb_ptrace): New.
7545 * sparc-nat.c (sparc_fetch_inferior_registers)
7546 (sparc_store_inferior_registers) Remove obsolete comment.
7547 * sparc-nat.c (sparc_fetch_inferior_registers)
7548 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7549 * sparc-nat.c (sparc_fetch_inferior_registers)
7550 (sparc_store_inferior_registers) Use gdb_ptrace.
7551
7552 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7553
7554 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7555 it to the ptrace call.
7556 * sh-nbsd-nat.c (store_registers): Likewise.
7557
7558 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7559
7560 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7561 nbsd_nat_target instead of inf_ptrace_target.
7562 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7563 nbsd_nat_target.
7564
7565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7566
7567 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7568
7569 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7570
7571 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7572 <sys/sysctl.h>.
7573 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7574
7575 2020-03-17 Tom de Vries <tdevries@suse.de>
7576
7577 PR gdb/23710
7578 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7579 fields.
7580 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7581 fields.
7582 (process_imported_unit_die): Skip import of c++ CUs.
7583
7584 2020-03-16 Tom Tromey <tom@tromey.com>
7585
7586 * p-valprint.c (pascal_object_print_value): Initialize
7587 base_value.
7588
7589 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7590 Shahab Vahedi <shahab@synopsys.com>
7591
7592 * Makefile.in: Add arch/arc.o
7593 * configure.tgt: Likewise.
7594 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7595 (_initialize_arc_tdep): Don't initialize old target descriptions.
7596 (arc_read_description): New function to cache target descriptions.
7597 * arc-tdep.h (arc_read_description): Add proto type.
7598 * arch/arc.c: New file.
7599 * arch/arc.h: Likewise.
7600 * features/Makefile: Replace old target descriptions with new.
7601 * features/arc-arcompact.c: Remove.
7602 * features/arc-arcompact.xml: Likewise.
7603 * features/arc-v2.c: Likewise
7604 * features/arc-v2.xml: Likewise
7605 * features/arc/aux-arcompact.xml: New file.
7606 * features/arc/aux-v2.xml: Likewise.
7607 * features/arc/core-arcompact.xml: Likewise.
7608 * features/arc/core-v2.xml: Likewise.
7609 * features/arc/aux-arcompact.c: Generate.
7610 * features/arc/aux-v2.c: Likewise.
7611 * features/arc/core-arcompact.c: Likewise.
7612 * features/arc/core-v2.c: Likewise.
7613 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7614
7615 2020-03-16 Tom Tromey <tromey@adacore.com>
7616
7617 PR gdb/25663:
7618 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7619 putting value into bcache.
7620
7621 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7622
7623 PR gdb/21500
7624 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7625 to...
7626 (amd64_windows_init_abi_common): ... this. Don't set size of
7627 long type.
7628 (amd64_windows_init_abi): New function.
7629 (amd64_cygwin_init_abi): New function.
7630 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7631 the Cygwin OS ABI.
7632 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7633 comment.
7634
7635 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7638 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7639 (pe_import_directory_entry): New struct type.
7640 (is_linked_with_cygwin_dll): New function.
7641 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7642 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7643 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7644
7645 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7646
7647 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7648 i386_cygwin_core_osabi_sniffer.
7649
7650 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * i386-cygwin-tdep.c: Rename to...
7653 * i386-windows-tdep.c: ... this.
7654 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7655 i386-windows-tdep.c.
7656 * configure.tgt: Likewise.
7657
7658 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7661 * osabi.c (gdb_osabi_names): Add "Windows".
7662 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7663 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7664 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7665 i386_cygwin_osabi_sniffer.
7666 (_initialize_i386_cygwin_tdep): Register OS ABI
7667 GDB_OSABI_WINDOWS for i386.
7668 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7669 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7670 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7671 for x86-64.
7672 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7673 when the target matches '*-*-mingw*'.
7674
7675 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * defs.h (enum gdb_osabi): Move to...
7678 * osabi.h (enum gdb_osabi): ... here.
7679 * gdbarch.sh: Include osabi.h in gdbarch.h.
7680 * gdbarch.h: Re-generate.
7681
7682 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7685 function.
7686 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7687
7688 2020-03-14 Tom Tromey <tom@tromey.com>
7689
7690 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7691 for C++.
7692 (c_type_print_modifier): Likewise. Add "language" parameter.
7693 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7694 (c_type_print_base_1): Update.
7695 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7696 constants.
7697 * type-stack.c (type_stack::insert): Handle tp_atomic and
7698 tp_restrict.
7699 (type_stack::follow_type_instance_flags): Likewise.
7700 (type_stack::follow_types): Likewise. Merge type-following code.
7701 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7702 (space_identifier, cv_with_space_id)
7703 (const_or_volatile_or_space_identifier_noopt)
7704 (const_or_volatile_or_space_identifier): Remove.
7705 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7706 rules.
7707 (ptr_operator, typebase): Update.
7708 (enum token_flag) <FLAG_C>: New constant.
7709 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7710 "_Atomic".
7711 (lex_one_token): Handle FLAG_C.
7712
7713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7714
7715 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7716 it to the ptrace call.
7717 * m68k-bsd-nat.c (store_registers): Likewise.
7718
7719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7720
7721 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7722 gdb_byte *.
7723 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7724 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7725 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7726
7727 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7728
7729 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7730 nbsd_nat_target instead of inf_ptrace_target.
7731 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7732 nbsd_nat_target.
7733
7734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7735
7736 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7737 register_t.
7738
7739 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7740
7741 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7742 it to the ptrace call.
7743 * alpha-bsd-nat.c (store_registers): Likewise.
7744
7745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7746
7747 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7748 includes.
7749 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7750 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7751 fill_fpregset): Likewise.
7752
7753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7754
7755 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7756 nbsd_nat_target instead of inf_ptrace_target.
7757 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7758 nbsd_nat_target.
7759
7760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7761
7762 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7763 register_t.
7764
7765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7766
7767 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7768 it to the ptrace call.
7769 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7770 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7771 * arm-nbsd-nat.c (store_register): Likewise.
7772 * arm-nbsd-nat.c (store_regs): Likewise.
7773 * arm-nbsd-nat.c (store_fp_register): Likewise.
7774 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7775
7776 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7777
7778 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7779 nbsd_nat_target instead of inf_ptrace_target.
7780 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7781 nbsd_nat_target.
7782
7783 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7784
7785 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7786 it to the ptrace call.
7787 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7788
7789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7790
7791 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7792 it to the ptrace call.
7793 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7794
7795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7796
7797 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7798 gdb_byte *.
7799 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7800
7801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7802
7803 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7804 instead of inf_ptrace_target.
7805 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7806 nbsd_nat_target.
7807
7808 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7809
7810 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7811 register_t.
7812
7813 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7814
7815 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7816 register_t.
7817
7818 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7819
7820 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7821 register_t.
7822
7823 2020-03-13 Tom Tromey <tom@tromey.com>
7824
7825 * value.h (val_print): Don't declare.
7826 * valprint.h (val_print_array_elements)
7827 (val_print_scalar_formatted, generic_val_print): Don't declare.
7828 * valprint.c (generic_val_print_array): Take a struct value.
7829 (generic_val_print_ptr, generic_val_print_memberptr)
7830 (generic_val_print_bool, generic_val_print_int)
7831 (generic_val_print_char, generic_val_print_complex)
7832 (generic_val_print): Remove.
7833 (generic_value_print): Update.
7834 (do_val_print): Remove unused parameters. Don't call
7835 la_val_print.
7836 (val_print): Remove.
7837 (common_val_print): Update. Don't call value_check_printable.
7838 (val_print_scalar_formatted, val_print_array_elements): Remove.
7839 * rust-lang.c (rust_val_print): Remove.
7840 (rust_language_defn): Update.
7841 * p-valprint.c (pascal_val_print): Remove.
7842 (pascal_value_print_inner): Update.
7843 (pascal_object_print_val_fields, pascal_object_print_val):
7844 Remove.
7845 (pascal_object_print_static_field): Update.
7846 * p-lang.h (pascal_val_print): Don't declare.
7847 * p-lang.c (pascal_language_defn): Update.
7848 * opencl-lang.c (opencl_language_defn): Update.
7849 * objc-lang.c (objc_language_defn): Update.
7850 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7851 * m2-lang.h (m2_val_print): Don't declare.
7852 * m2-lang.c (m2_language_defn): Update.
7853 * language.h (struct language_defn) <la_val_print>: Remove.
7854 * language.c (unk_lang_value_print_inner): Rename. Change
7855 argument types.
7856 (unknown_language_defn, auto_language_defn): Update.
7857 * go-valprint.c (go_val_print): Remove.
7858 * go-lang.h (go_val_print): Don't declare.
7859 * go-lang.c (go_language_defn): Update.
7860 * f-valprint.c (f_val_print): Remove.
7861 * f-lang.h (f_value_print): Don't declare.
7862 * f-lang.c (f_language_defn): Update.
7863 * d-valprint.c (d_val_print): Remove.
7864 * d-lang.h (d_value_print): Don't declare.
7865 * d-lang.c (d_language_defn): Update.
7866 * cp-valprint.c (cp_print_value_fields)
7867 (cp_print_value_fields_rtti, cp_print_value): Remove.
7868 (cp_print_static_field): Update.
7869 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7870 (c_val_print_struct, c_val_print_union, c_val_print_int)
7871 (c_val_print_memberptr, c_val_print): Remove.
7872 * c-lang.h (c_val_print_array, cp_print_value_fields)
7873 (cp_print_value_fields_rtti): Don't declare.
7874 * c-lang.c (c_language_defn, cplus_language_defn)
7875 (asm_language_defn, minimal_language_defn): Update.
7876 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7877 (ada_val_print_enum): Take a struct value.
7878 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7879 (ada_val_print): Remove.
7880 (ada_value_print_1): Update.
7881 (printable_val_type): Remove.
7882 * ada-lang.h (ada_val_print): Don't declare.
7883 * ada-lang.c (ada_language_defn): Update.
7884
7885 2020-03-13 Tom Tromey <tom@tromey.com>
7886
7887 * valprint.c (do_val_print): Update.
7888 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7889 a struct value.
7890 (value_to_value_object_no_release): Declare.
7891 * python/py-value.c (value_to_value_object_no_release): New
7892 function.
7893 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7894 struct value.
7895 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7896 function.
7897 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7898 a struct value.
7899 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7900 Declare.
7901 (gdbscm_apply_val_pretty_printer): Take a struct value.
7902 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7903 value.
7904 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7905 value.
7906 * extension-priv.h (struct extension_language_ops)
7907 <apply_val_pretty_printer>: Take a struct value.
7908 * cp-valprint.c (cp_print_value): Create a struct value.
7909 (cp_print_value): Update.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * ada-valprint.c (print_field_values): Call common_val_print.
7914
7915 2020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * ada-valprint.c (val_print_packed_array_elements): Remove
7918 bitoffset and val parameters. Call common_val_print.
7919 (ada_val_print_string): Remove offset, address, and original_value
7920 parameters.
7921 (ada_val_print_array): Update.
7922 (ada_value_print_array): New function.
7923 (ada_value_print_1): Call it.
7924
7925 2020-03-13 Tom Tromey <tom@tromey.com>
7926
7927 * ada-valprint.c (ada_value_print): Use common_val_print.
7928
7929 2020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7932
7933 2020-03-13 Tom Tromey <tom@tromey.com>
7934
7935 * ada-valprint.c (ada_value_print_num): New function.
7936 (ada_value_print_1): Use it.
7937
7938 2020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7941
7942 2020-03-13 Tom Tromey <tom@tromey.com>
7943
7944 * ada-valprint.c (ada_value_print_ptr): New function.
7945 (ada_value_print_1): Use it.
7946
7947 2020-03-13 Tom Tromey <tom@tromey.com>
7948
7949 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7950 call common_val_print.
7951 (ada_val_print_1): Update.
7952 (ada_value_print_1): New function.
7953 (ada_value_print_inner): Rewrite.
7954
7955 2020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * cp-valprint.c (cp_print_value_fields): Update.
7958 (cp_print_value): New function.
7959
7960 2020-03-13 Tom Tromey <tom@tromey.com>
7961
7962 * m2-valprint.c (m2_value_print_inner): Use
7963 cp_print_value_fields.
7964 * cp-valprint.c (cp_print_value_fields): New function.
7965 * c-valprint.c (c_value_print_struct): New function.
7966 (c_value_print_inner): Use c_value_print_struct.
7967 * c-lang.h (cp_print_value_fields): Declare.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * c-valprint.c (c_value_print_array): New function.
7972 (c_value_print_inner): Use it.
7973
7974 2020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * c-valprint.c (c_value_print_memberptr): New function.
7977 (c_value_print_inner): Use it.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * c-valprint.c (c_value_print_int): New function.
7982 (c_value_print_inner): Use it.
7983
7984 2020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * c-valprint.c (c_value_print_ptr): New function.
7987 (c_value_print_inner): Use it.
7988
7989 2020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * c-valprint.c (c_value_print_inner): Rewrite.
7992
7993 2020-03-13 Tom Tromey <tom@tromey.com>
7994
7995 * valprint.c (generic_value_print_complex): New function.
7996 (generic_value_print): Use it.
7997
7998 2020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * valprint.c (generic_val_print_float): Don't call
8001 val_print_scalar_formatted.
8002 (generic_val_print, generic_value_print): Update.
8003
8004 2020-03-13 Tom Tromey <tom@tromey.com>
8005
8006 * valprint.c (generic_value_print_char): New function
8007 (generic_value_print): Use it.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * valprint.c (generic_value_print_int): New function.
8012 (generic_value_print): Use it.
8013
8014 2020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * valprint.c (generic_value_print_bool): New function.
8017 (generic_value_print): Use it.
8018
8019 2020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * valprint.c (generic_val_print_func): Simplify.
8022 (generic_val_print, generic_value_print): Update.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * valprint.c (generic_val_print_flags): Remove.
8027 (generic_val_print, generic_value_print): Update.
8028 (val_print_type_code_flags): Add original_value parameter.
8029
8030 2020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * valprint.c (generic_val_print): Update.
8033 (generic_value_print): Update.
8034 * valprint.c (generic_val_print_enum): Don't call
8035 val_print_scalar_formatted.
8036
8037 2020-03-13 Tom Tromey <tom@tromey.com>
8038
8039 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8040 * valprint.c (generic_value_print_ptr): New function.
8041
8042 2020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * valprint.c (generic_value_print): Rewrite.
8045
8046 2020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * p-valprint.c (pascal_object_print_value_fields)
8049 (pascal_object_print_value): New functions.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * p-valprint.c (pascal_value_print_inner): Rewrite.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * f-valprint.c (f_value_print_innner): Rewrite.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * m2-valprint.c (m2_print_unbounded_array): New overload.
8062 (m2_print_unbounded_array): Update.
8063 (m2_print_array_contents): Take a struct value.
8064 (m2_value_print_inner): Rewrite.
8065
8066 2020-03-13 Tom Tromey <tom@tromey.com>
8067
8068 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8069 (d_value_print_inner): New function.
8070 * d-lang.h (d_value_print_inner): Declare.
8071 * d-lang.c (d_language_defn): Use d_value_print_inner.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * go-valprint.c (go_value_print_inner): New function.
8076 * go-lang.h (go_value_print_inner): Declare.
8077 * go-lang.c (go_language_defn): Use go_value_print_inner.
8078
8079 2020-03-13 Tom Tromey <tom@tromey.com>
8080
8081 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8082 API.
8083 (rust_val_print): Rewrite.
8084 (rust_value_print_inner): New function, from rust_val_print.
8085 (rust_language_defn): Use rust_value_print_inner.
8086
8087 2020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * ada-valprint.c (ada_value_print_inner): New function.
8090 * ada-lang.h (ada_value_print_inner): Declare.
8091 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8092
8093 2020-03-13 Tom Tromey <tom@tromey.com>
8094
8095 * f-valprint.c (f_value_print_innner): New function.
8096 * f-lang.h (f_value_print_innner): Declare.
8097 * f-lang.c (f_language_defn): Use f_value_print_innner.
8098
8099 2020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * p-valprint.c (pascal_value_print_inner): New function.
8102 * p-lang.h (pascal_value_print_inner): Declare.
8103 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8104
8105 2020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * m2-valprint.c (m2_value_print_inner): New function.
8108 * m2-lang.h (m2_value_print_inner): Declare.
8109 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8110
8111 2020-03-13 Tom Tromey <tom@tromey.com>
8112
8113 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8114 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8115 * c-valprint.c (c_value_print_inner): New function.
8116 * c-lang.h (c_value_print_inner): Declare.
8117 * c-lang.c (c_language_defn, cplus_language_defn)
8118 (asm_language_defn, minimal_language_defn): Use
8119 c_value_print_inner.
8120
8121 2020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * p-valprint.c (pascal_object_print_value_fields): Now static.
8124 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * c-valprint.c (c_val_print_array): Simplify.
8129
8130 2020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * valprint.c (value_print_array_elements): New function.
8133 * valprint.h (value_print_array_elements): Declare.
8134
8135 2020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8138 * mips-tdep.c (mips_print_register): Use
8139 value_print_scalar_formatted.
8140
8141 2020-03-13 Tom Tromey <tom@tromey.com>
8142
8143 * valprint.h (value_print_scalar_formatted): Declare.
8144 * valprint.c (value_print_scalar_formatted): New function.
8145
8146 2020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * valprint.h (generic_value_print): Declare.
8149 * valprint.c (generic_value_print): New function.
8150
8151 2020-03-13 Tom Tromey <tom@tromey.com>
8152
8153 * valprint.c (do_val_print): Call la_value_print_inner, if
8154 available.
8155 * rust-lang.c (rust_language_defn): Update.
8156 * p-lang.c (pascal_language_defn): Update.
8157 * opencl-lang.c (opencl_language_defn): Update.
8158 * objc-lang.c (objc_language_defn): Update.
8159 * m2-lang.c (m2_language_defn): Update.
8160 * language.h (struct language_defn) <la_value_print_inner>: New
8161 member.
8162 * language.c (unknown_language_defn, auto_language_defn): Update.
8163 * go-lang.c (go_language_defn): Update.
8164 * f-lang.c (f_language_defn): Update.
8165 * d-lang.c (d_language_defn): Update.
8166 * c-lang.c (c_language_defn, cplus_language_defn)
8167 (asm_language_defn, minimal_language_defn): Update.
8168 * ada-lang.c (ada_language_defn): Update.
8169
8170 2020-03-13 Tom Tromey <tom@tromey.com>
8171
8172 * c-valprint.c (c_value_print): Use common_val_print.
8173
8174 2020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8177
8178 2020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * f-valprint.c (f77_print_array_1, f_val_print): Use
8181 common_val_print.
8182
8183 2020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * riscv-tdep.c (riscv_print_one_register_info): Use
8186 common_val_print.
8187
8188 2020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * mi/mi-main.c (output_register): Use common_val_print.
8191
8192 2020-03-13 Tom Tromey <tom@tromey.com>
8193
8194 * infcmd.c (default_print_one_register_info): Use
8195 common_val_print.
8196
8197 2020-03-13 Tom Tromey <tom@tromey.com>
8198
8199 * valprint.h (common_val_print_checked): Declare.
8200 * valprint.c (common_val_print_checked): New function.
8201 * stack.c (print_frame_arg): Use common_val_print_checked.
8202
8203 2020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * valprint.c (do_val_print): New function, from val_print.
8206 (val_print): Use do_val_print.
8207 (common_val_print): Use do_val_print.
8208
8209 2020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * valprint.c (value_print): Use scoped_value_mark.
8212
8213 2020-03-13 Tom de Vries <tdevries@suse.de>
8214
8215 PR symtab/25646
8216 * psymtab.c (partial_symtab::partial_symtab): Don't set
8217 globals_offset and statics_offset. Push element onto
8218 current_global_psymbols and current_static_psymbols stacks.
8219 (concat): New function.
8220 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8221 element from current_global_psymbols and current_static_psymbols
8222 stacks. Concat popped elements to global_psymbols and
8223 static_symbols.
8224 (add_psymbol_to_list): Use current_global_psymbols and
8225 current_static_psymbols stacks.
8226 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8227 current_static_psymbols fields.
8228
8229 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8230
8231 * corelow.c (sniff_core_bfd): Remove.
8232 (class core_target) <m_core_vec>: Remove.
8233 (core_target::core_target): Update.
8234 (core_file_fns): Remove.
8235 (deprecated_add_core_fns): Remove.
8236 (default_core_sniffer): Remove.
8237 (sniff_core_bfd): Remove.
8238 (default_check_format): Remove.
8239 (gdb_check_format): Remove.
8240 (core_target_open): Update.
8241 (core_target::get_core_register_section): Update.
8242 (get_core_registers_cb): Update.
8243 (core_target::fetch_registers): Update.
8244 * gdbcore.h (struct core_fns): Remove.
8245 (deprecated_add_core_fns): Remove.
8246 (default_core_sniffer): Remove.
8247 (default_check_format): Remove.
8248
8249 2020-03-12 Tom Tromey <tom@tromey.com>
8250
8251 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8252 CORE_ADDR.
8253 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8254
8255 2020-03-12 Tom Tromey <tom@tromey.com>
8256
8257 * remote.c (remote_target::download_tracepoint)
8258 (remote_target::enable_tracepoint)
8259 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8260 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8261 sprintf_vma.
8262
8263 2020-03-12 Tom Tromey <tom@tromey.com>
8264
8265 * symfile-mem.c: Update CORE_ADDR size assert.
8266
8267 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8268
8269 * selftest.m4: Move to gdbsupport/.
8270 * acinclude.m4: Update path to selftest.m4.
8271
8272 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8273
8274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8275 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8276 gdbarch-selfselftests.c and selftest-arch.c.
8277 (SUBDIR_UNITTESTS_OBS): Rename to...
8278 (SELFTESTS_OBS): ... this.
8279 (COMMON_SFILES): Remove disasm-selftests.c and
8280 gdbarch-selftests.c.
8281 * configure.ac: Don't add selftest-arch.{c,o} to
8282 CONFIG_{SRCS,OBS}.
8283 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8284 preprocessor conditions.
8285
8286 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8287
8288 * configure.ac: Don't source bfd/development.sh.
8289 * selftest.m4: Modify comment.
8290 * configure: Re-generate.
8291
8292 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8293
8294 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8295 not "true" or "false".
8296 * configure: Re-generate.
8297
8298 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8299
8300 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8301 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8302 renamed to arm_nbsd_supply_gregset.
8303 (fetch_register): Update to call arm_nbsd_supply_gregset.
8304 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8305 (arm_netbsd_nat_target::fetch_registers): Update.
8306 (fetch_elfcore_registers): Removed.
8307 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8308 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8309 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8310 not require NetBSD system headers.
8311 (arm_nbsd_regset): New struct.
8312 (arm_nbsd_iterate_over_regset_sections): New function.
8313 (arm_netbsd_init_abi_common): Updated to call
8314 set_gdbarch_iterate_over_regset_sections.
8315 * arm-nbsd-tdep.h: New file.
8316
8317 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8318
8319 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8320 recursion.
8321
8322 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8323
8324 * configure: Re-generate.
8325
8326 2020-03-11 Tom Tromey <tromey@adacore.com>
8327
8328 * ada-typeprint.c (print_choices): Fix comment.
8329
8330 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8333 previous item in the list, when the list has no items.
8334
8335 2020-03-11 Tom de Vries <tdevries@suse.de>
8336
8337 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8338 PROP_LOCLIST handling code.
8339
8340 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8341
8342 * buildsym-legacy.c (record_line): Pass extra parameter to
8343 record_line.
8344 * buildsym.c (buildsym_compunit::record_line): Take an extra
8345 parameter, reduce duplication in the line table, and record the
8346 is_stmt flag in the line table.
8347 * buildsym.h (buildsym_compunit::record_line): Add extra
8348 parameter.
8349 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8350 non-statement lines.
8351 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8352 this to the symtab builder.
8353 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8354 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8355 through to dwarf_record_line_1.
8356 * infrun.c (process_event_stop_test): When stepping, don't stop at
8357 a non-statement instruction, and only refresh the step info when
8358 we land in the middle of a line's range. Also add an extra
8359 comment.
8360 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8361 field.
8362 * record-btrace.c (btrace_find_line_range): Only record lines
8363 marked as is-statement.
8364 * stack.c (frame_show_address): Show the frame address if we are
8365 in a non-statement sal.
8366 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8367 (maintenance_print_one_line_table): Print a header for the is_stmt
8368 column, and include is_stmt information in the output.
8369 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8370 preference to non-statements.
8371 (find_pcs_for_symtab_line): Prefer is-statement entries.
8372 (find_line_common): Likewise.
8373 * symtab.h (struct linetable_entry): Add is_stmt field.
8374 (struct symtab_and_line): Likewise.
8375 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8376 arranging the line table.
8377
8378 2020-03-07 Tom de Vries <tdevries@suse.de>
8379
8380 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8381 DIE.
8382
8383 2020-03-07 Tom Tromey <tom@tromey.com>
8384
8385 * valops.c (value_literal_complex): Remove obsolete comment.
8386 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8387 comment.
8388
8389 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8390
8391 * infrun.h: Forward-declare thread_info.
8392 (set_step_info): Add thread_info parameter, add doc.
8393 * infrun.c (set_step_info): Add thread_info parameter, move doc
8394 to header.
8395 * infrun.c (process_event_stop_test): Pass thread to
8396 set_step_info call.
8397 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8398 set_step_info.
8399 (prepare_one_step): Add thread_info parameter, pass it to
8400 set_step_frame and prepare_one_step (recursive) call.
8401 (step_1): Pass thread to prepare_one_step call.
8402 (step_command_fsm::should_stop): Pass thread to
8403 prepare_one_step.
8404 (until_next_fsm): Pass thread to set_step_frame call.
8405 (finish_command): Pass thread to set_step_info call.
8406
8407 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8408
8409 * windows-tdep.c (windows_solib_create_inferior_hook):
8410 Check if inferior is running.
8411
8412 2020-03-06 Tom de Vries <tdevries@suse.de>
8413
8414 * NEWS: Fix "the the".
8415 * ctfread.c: Same.
8416
8417 2020-03-06 Tom de Vries <tdevries@suse.de>
8418
8419 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8420
8421 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * .dir-locals.el: Add a comment referencing the other copies of
8424 this file.
8425
8426 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8427
8428 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8429 psargs.
8430
8431 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8432
8433 * .gitattributes: New file.
8434
8435 2020-03-04 Tom Tromey <tom@tromey.com>
8436
8437 * symmisc.c (print_symbol_bcache_statistics)
8438 (print_objfile_statistics): Update.
8439 * symfile.c (allocate_symtab): Use intern.
8440 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8441 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8442 macro_cache>: Remove.
8443 <string_cache>: New member.
8444 (struct objfile) <intern>: New methods.
8445 * elfread.c (elf_symtab_read): Use intern.
8446 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8447 (dwarf2_compute_name, dwarf2_physname)
8448 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8449 names.
8450 (guess_partial_die_structure_name): Update.
8451 (partial_die_info::fixup): Intern name.
8452 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8453 name.
8454 (dwarf2_name): Intern name. Update.
8455 * buildsym.c (buildsym_compunit::get_macro_table): Use
8456 string_cache.
8457
8458 2020-03-04 Tom Tromey <tom@tromey.com>
8459
8460 * jit.c (bfd_open_from_target_memory): Make "target" const.
8461 * corefile.c (gnutarget): Now const.
8462 * gdbcore.h (gnutarget): Now const.
8463
8464 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8465
8466 * NEWS: Mention support for WOW64 processes.
8467 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8468 (amd64_windows_segment_register_p): Remove static.
8469 (_initialize_amd64_windows_nat): Update.
8470 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8471 * i386-windows-nat.c (context_offset): Update.
8472 (i386_mappings): Rename and remove static.
8473 (i386_windows_segment_register_p): Remove static.
8474 (_initialize_i386_windows_nat): Update.
8475 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8476 (STATUS_WX86_SINGLE_STEP): New macro.
8477 (EnumProcessModulesEx): New macro.
8478 (Wow64SuspendThread): New macro.
8479 (Wow64GetThreadContext): New macro.
8480 (Wow64SetThreadContext): New macro.
8481 (Wow64GetThreadSelectorEntry): New macro.
8482 (windows_set_context_register_offsets): Add static.
8483 (windows_set_segment_register_p): Likewise.
8484 (windows_add_thread): Adapt for WOW64 processes.
8485 (windows_fetch_one_register): Likewise.
8486 (windows_nat_target::fetch_registers): Likewise.
8487 (windows_store_one_register): Likewise.
8488 (display_selector): Likewise.
8489 (display_selectors): Likewise.
8490 (handle_exception): Likewise.
8491 (windows_continue): Likewise.
8492 (windows_nat_target::resume): Likewise.
8493 (windows_add_all_dlls): Likewise.
8494 (do_initial_windows_stuff): Likewise.
8495 (windows_nat_target::attach): Likewise.
8496 (windows_get_exec_module_filename): Likewise.
8497 (windows_nat_target::create_inferior): Likewise.
8498 (windows_xfer_siginfo): Likewise.
8499 (_initialize_loadable): Initialize Wow64SuspendThread,
8500 Wow64GetThreadContext, Wow64SetThreadContext,
8501 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8502 * windows-nat.h (windows_set_context_register_offsets):
8503 Remove declaration.
8504 (windows_set_segment_register_p): Likewise.
8505 (i386_windows_segment_register_p): Add declaration.
8506 (amd64_windows_segment_register_p): Likewise.
8507
8508 2020-03-04 Luis Machado <luis.machado@linaro.org>
8509
8510 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8511 in "info registers" for AArch64/ARM.
8512
8513 The change caused "info registers" to not print GPR's.
8514
8515 gdb/ChangeLog:
8516
8517 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8518
8519 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8520 when reg->group is empty and reggroup is not.
8521
8522 2020-03-03 Tom Tromey <tromey@adacore.com>
8523
8524 * dwarf2/frame.c (struct dwarf2_frame_cache)
8525 <checked_tailcall_bottom, entry_cfa_sp_offset,
8526 entry_cfa_sp_offset_p>: Remove members.
8527 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8528 (dwarf2_frame_prev_register): Don't call
8529 dwarf2_tailcall_sniffer_first.
8530 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8531 * frame-unwind.c (add_unwinder): New fuction.
8532 (frame_unwind_init): Use it. Add tailcall unwinder.
8533
8534 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8535 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8536
8537 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8538 value should be printed as true.
8539
8540 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8541
8542 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8543 (windows_init_abi): Set and use windows_so_ops.
8544
8545 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8546
8547 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8548 when verifying if dealing with a convenience variable.
8549
8550 2020-03-03 Luis Machado <luis.machado@linaro.org>
8551
8552 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8553
8554 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8555
8556 * infrun.c (gdbarch_supports_displaced_stepping): New.
8557 (use_displaced_stepping): Break up conditions in smaller pieces.
8558 Use gdbarch_supports_displaced_stepping.
8559 (displaced_step_prepare_throw): Use
8560 gdbarch_supports_displaced_stepping.
8561
8562 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * NEWS: Mention new behaviour of the history filename.
8565 * top.c (write_history_p): Add comment.
8566 (show_write_history_p): Add header comment, give a different
8567 message when history writing is on, but the history filename is
8568 empty.
8569 (history_filename): Add comment.
8570 (history_filename_empty): New function.
8571 (show_history_filename): Add header comment, give a different
8572 message when the filename is empty.
8573 (init_history): Compare history_filename against nullptr, and only
8574 read history if the filename is not empty.
8575 (set_history_filename): Add header comment, and only make
8576 non-empty filenames absolute.
8577 (init_main): Make the filename argument to 'set history filename'
8578 optional.
8579
8580 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8581
8582 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8583 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8584 (fetch_fp_register): Update.
8585 (fetch_fp_regs): Update.
8586 (store_fp_register): Update.
8587 (store_fp_regs): Update.
8588 (arm_netbsd_nat_target::read_description): New function.
8589 (fetch_elfcore_registers): Update.
8590
8591 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8594 general_thread if the stop reply is missing a thread-id.
8595 (remote_target::process_stop_reply): Use the first non-exited
8596 thread if the target didn't pass a thread-id.
8597 * infrun.c (do_target_wait): Move call to
8598 switch_to_inferior_no_thread to ....
8599 (do_target_wait_1): ... here.
8600
8601 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8602
8603 * debuginfod-support.c: Include defs.h first.
8604
8605 2020-02-28 Tom de Vries <tdevries@suse.de>
8606
8607 * symfile.c (set_initial_language): Use default language for lookup.
8608
8609 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8612 reader variable, pass `this` to read_cutu_die_from_dwo.
8613
8614 2020-02-27 Aaron Merey <amerey@redhat.com>
8615
8616 * source.c (open_source_file): Check for nullptr when computing
8617 srcpath.
8618
8619 2020-02-27 Tom Tromey <tromey@adacore.com>
8620
8621 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8622 member.
8623 (dwarf2_add_field): Don't update nfields.
8624 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8625
8626 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8627
8628 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8629 abs.
8630
8631 2020-02-26 Tom Tromey <tom@tromey.com>
8632
8633 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8634 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8635 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8636 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8637 per_cu_data.
8638
8639 2020-02-26 Tom Tromey <tom@tromey.com>
8640
8641 * dwarf2/index-write.c (psym_index_map): Change type.
8642 (add_address_entry_worker, write_one_signatured_type)
8643 (recursively_count_psymbols, recursively_write_psymbols)
8644 (class debug_names, psyms_seen_size, write_gdbindex)
8645 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8646
8647 2020-02-26 Aaron Merey <amerey@redhat.com>
8648
8649 * Makefile.in: Handle optional debuginfod support.
8650 * NEWS: Update.
8651 * README: Add --with-debuginfod summary.
8652 * config.in: Regenerate.
8653 * configure: Regenerate.
8654 * configure.ac: Handle optional debuginfod support.
8655 * debuginfod-support.c: debuginfod helper functions.
8656 * debuginfod-support.h: Ditto.
8657 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8658 summary.
8659 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8660 when a dwz file cannot be found.
8661 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8662 debuginfo file cannot be found.
8663 * source.c (open_source_file): Query debuginfod servers when a
8664 source file cannot be found.
8665 * top.c (print_gdb_configuration): Include
8666 --{with,without}-debuginfod in the output.
8667
8668 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8669
8670 * thread.c (thr_try_catch_cmd): Print thread name.
8671
8672 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8676 dwarf2_fetch_die_type_sect_off): Move to...
8677 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8678 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8679 dwarf2_fetch_die_type_sect_off): ... here.
8680 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8681 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8682 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8683
8684 2020-02-26 Tom de Vries <tdevries@suse.de>
8685
8686 PR gdb/25603
8687 * symfile.c (set_initial_language): Exit-early if
8688 language_mode == language_mode_manual.
8689
8690 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8691
8692 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8693 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8694 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8695
8696 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * gdbtypes.c (create_array_type_with_stride): Handle negative
8699 array strides.
8700 * valarith.c (value_subscripted_rvalue): Likewise.
8701
8702 2020-02-25 Luis Machado <luis.machado@linaro.org>
8703
8704 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8705
8706 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8707
8708 * loc.h (dwarf2_get_die_type): Move to...
8709 * read.h (dwarf2_get_die_type): ... here.
8710 * read.c (dwarf2_get_die_type): Move doc to header.
8711
8712 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8713
8714 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8715 'gnulib/Makefile.in' to the list.
8716
8717 2020-02-24 Tom Tromey <tom@tromey.com>
8718
8719 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8720 Remove.
8721 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8722 XOBNEWVEC.
8723
8724 2020-02-24 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8727 New method.
8728 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8729 (dw2_do_instantiate_symtab, dw2_get_file_names)
8730 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8731
8732 2020-02-24 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8735 make_scoped_restore.
8736 (dwarf2_psymtab::read_symtab): Don't clear
8737 reading_partial_symbols.
8738
8739 2020-02-24 Tom de Vries <tdevries@suse.de>
8740
8741 PR gdb/25592
8742 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8743
8744 2020-02-24 Tom de Vries <tdevries@suse.de>
8745
8746 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8747 commands layout next/prev/regs.
8748
8749 2020-02-22 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8752 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8753
8754 2020-02-22 Tom Tromey <tom@tromey.com>
8755
8756 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8757
8758 2020-02-22 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8761 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8762 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8763 * tui/tui.c (_initialize_tui): Add usage text.
8764
8765 2020-02-22 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-win.c (tui_set_focus_command)
8768 (tui_set_win_height_command): Use error_no_arg.
8769 (_initialize_tui_win): Update help text.
8770 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8771
8772 2020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8775 * tui/tui-disasm.h (struct tui_disasm_window)
8776 <display_start_addr>: Declare.
8777 * tui/tui-source.h (struct tui_source_window)
8778 <display_start_addr>: Declare.
8779 * tui/tui-winsource.h (struct tui_source_window_base)
8780 <show_source_line, display_start_addr>: New methods.
8781 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8782 Rename and move to protected section.
8783 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8784 (tui_source_window_base::do_erase_source_content): Update.
8785 (tui_source_window_base::show_source_line): Now a method.
8786 (tui_source_window_base::show_source_content)
8787 (tui_source_window_base::tui_source_window_base)
8788 (tui_source_window_base::rerender)
8789 (tui_source_window_base::refill)
8790 (tui_source_window_base::do_scroll_horizontal)
8791 (tui_source_window_base::set_is_exec_point_at)
8792 (tui_source_window_base::update_breakpoint_info)
8793 (tui_source_window_base::update_exec_info): Update.
8794 * tui/tui-source.c (tui_source_window::set_contents)
8795 (tui_source_window::showing_source_p)
8796 (tui_source_window::do_scroll_vertical)
8797 (tui_source_window::location_matches_p)
8798 (tui_source_window::line_is_displayed): Update.
8799 (tui_source_window::display_start_addr): New method.
8800 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8801 (tui_disasm_window::do_scroll_vertical)
8802 (tui_disasm_window::location_matches_p): Update.
8803 (tui_disasm_window::display_start_addr): New method.
8804
8805 2020-02-22 Tom Tromey <tom@tromey.com>
8806
8807 * NEWS: Add entry for gdb.register_window_type.
8808 * tui/tui-layout.h (window_factory): New typedef.
8809 (tui_register_window): Declare.
8810 * tui/tui-layout.c (saved_tui_windows): New global.
8811 (tui_apply_current_layout): Use it.
8812 (tui_register_window): New function.
8813 * python/python.c (do_start_initialization): Call
8814 gdbpy_initialize_tui.
8815 (python_GdbMethods): Add "register_window_type" function.
8816 * python/python-internal.h (gdbpy_register_tui_window)
8817 (gdbpy_initialize_tui): Declare.
8818 * python/py-tui.c: New file.
8819 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8824
8825 2020-02-22 Tom Tromey <tom@tromey.com>
8826
8827 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8828 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8829 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8830 (tui_set_win_focus_to): Move from tui-win.c.
8831
8832 2020-02-22 Tom Tromey <tom@tromey.com>
8833
8834 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8835 functions.
8836 (known_window_types): New global.
8837 (tui_get_window_by_name): Reimplement.
8838 (initialize_known_windows): New function.
8839 (validate_window_name): Rewrite.
8840 (_initialize_tui_layout): Call initialize_known_windows.
8841
8842 2020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8845 Remove constants.
8846 * tui/tui-winsource.h (struct tui_source_window_base)
8847 <tui_source_window_base>: Remove parameter.
8848 * tui/tui-winsource.c
8849 (tui_source_window_base::tui_source_window_base): Remove
8850 parameter.
8851 (tui_source_window_base::refill): Update.
8852 * tui/tui-stack.h (struct tui_locator_window)
8853 <tui_locator_window>: Update.
8854 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8855 Default the constructor.
8856 * tui/tui-regs.h (struct tui_data_item_window)
8857 <tui_data_item_window>: Default the constructor.
8858 (struct tui_data_window) <tui_data_window>: Likewise.
8859 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8860 Default the constructor.
8861 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8862 Default the constructor.
8863 <type>: Remove.
8864 (struct tui_win_info) <tui_win_info>: Default the constructor.
8865 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8866 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8867 Default the constructor.
8868
8869 2020-02-22 Tom Tromey <tom@tromey.com>
8870
8871 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8872 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8873 * tui/tui-win.c (tui_resize_all): Don't call
8874 tui_delete_invisible_windows.
8875 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8876 done.
8877 (tui_set_layout): Update.
8878 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8879 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8880 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8881
8882 2020-02-22 Tom Tromey <tom@tromey.com>
8883
8884 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8885 correctly.
8886
8887 2020-02-22 Tom Tromey <tom@tromey.com>
8888
8889 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8890
8891 2020-02-22 Tom Tromey <tom@tromey.com>
8892
8893 * tui/tui-winsource.h (struct tui_source_window_iterator)
8894 <inner_iterator>: New etytypedef.
8895 <tui_source_window_iterator>: Take "end" parameter.
8896 <tui_source_window_iterator>: Take iterator.
8897 <operator*, advance>: Update.
8898 <m_iter>: Change type.
8899 <m_end>: New field.
8900 (struct tui_source_windows) <begin, end>: Update.
8901 * tui/tui-layout.c (tui_windows): New global.
8902 (tui_apply_current_layout): Clear tui_windows.
8903 (tui_layout_window::apply): Update tui_windows.
8904 * tui/tui-data.h (tui_windows): Declare.
8905 (all_tui_windows): Now inline function.
8906 (class tui_window_iterator, struct all_tui_windows): Remove.
8907
8908 2020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 PR tui/17850:
8911 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8912 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8913 "height" argument.
8914 (class tui_layout_window) <get_sizes>: Likewise.
8915 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8916 argument.
8917 <get_sizes>: Add "height" argument.
8918 <m_vertical>: New field.
8919 * tui/tui-layout.c (tui_layout_split::clone): Update.
8920 (tui_layout_split::get_sizes): Add "height" argument.
8921 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8922 (tui_new_layout_command): Parse "-horizontal".
8923 (_initialize_tui_layout): Update help string.
8924 (tui_layout_split::specification): Add "-horizontal" when needed.
8925 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8926 argument.
8927 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8928 New methods.
8929
8930 2020-02-22 Tom Tromey <tom@tromey.com>
8931
8932 * tui/tui-layout.h (enum tui_adjust_result): New.
8933 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8934 (class tui_layout_window) <adjust_size>: Return
8935 tui_adjust_result. Rewrite.
8936 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8937 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8938
8939 2020-02-22 Tom Tromey <tom@tromey.com>
8940
8941 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8942 parameter and return types.
8943 (class tui_layout_base) <specification>: Add "depth".
8944 (class tui_layout_window) <specification>: Add "depth".
8945 (class tui_layout_split) <specification>: Add "depth".
8946 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8947 and return types.
8948 (tui_new_layout_command): Parse sub-layouts.
8949 (_initialize_tui_layout): Update help string.
8950 (tui_layout_window::specification): Add "depth".
8951 (add_layout_command): Update.
8952
8953 2020-02-22 Tom Tromey <tom@tromey.com>
8954
8955 * NEWS: Add "tui new-layout" item.
8956 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8957 Add new-layout command to help text.
8958 (validate_window_name): New function.
8959 (tui_new_layout_command): New function.
8960 (_initialize_tui_layout): Register "new-layout".
8961 (tui_layout_window::specification): New method.
8962 (tui_layout_window::specification): New method.
8963 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8964 method.
8965 (class tui_layout_window) <specification>: New method.
8966 (class tui_layout_split) <specification>: New method.
8967
8968 2020-02-22 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8971 * tui/tui-win.c (window_name_completer): Update comment.
8972 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8973 Declare method.
8974 (class tui_layout_window) <replace_window>: Likewise.
8975 (class tui_layout_split) <replace_window>: Likewise.
8976 (tui_set_layout): Don't declare.
8977 (tui_set_initial_layout): Declare function.
8978 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8979 (asm_regs_layout): New globals.
8980 (tui_current_layout, show_layout): Remove.
8981 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8982 (find_layout, tui_apply_layout): New function.
8983 (layout_completer): Remove.
8984 (tui_next_layout): Reimplement.
8985 (tui_next_layout_command): New function.
8986 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8987 (tui_regs_layout): Reimplement.
8988 (tui_regs_layout_command): New function.
8989 (extract_display_start_addr): Rewrite.
8990 (next_layout, prev_layout): Remove.
8991 (tui_layout_window::replace_window): New method.
8992 (tui_layout_split::replace_window): New method.
8993 (destroy_layout): New function.
8994 (layout_list): New global.
8995 (add_layout_command): New function.
8996 (initialize_layouts): Update.
8997 (tui_layout_command): New function.
8998 (_initialize_tui_layout): Install "layout" commands.
8999 * tui/tui-data.h (enum tui_layout_type): Remove.
9000 (tui_current_layout): Don't declare.
9001
9002 2020-02-22 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui-regs.c (tui_reg_layout): Remove.
9005 (tui_reg_command): Use tui_regs_layout.
9006 * tui/tui-layout.h (tui_reg_command): Declare.
9007 * tui/tui-layout.c (tui_reg_command): New function.
9008
9009 2020-02-22 Tom Tromey <tom@tromey.com>
9010
9011 * tui/tui.c (tui_rl_delete_other_windows): Call
9012 tui_remove_some_windows.
9013 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9014 Declare method.
9015 (class tui_layout_window) <remove_windows>: New method.
9016 (class tui_layout_split) <remove_windows>: Declare.
9017 (tui_remove_some_windows): Declare.
9018 * tui/tui-layout.c (tui_remove_some_windows): New function.
9019 (tui_layout_split::remove_windows): New method.
9020
9021 2020-02-22 Tom Tromey <tom@tromey.com>
9022
9023 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9024 * tui/tui-layout.h (tui_next_layout): Declare.
9025 * tui/tui-layout.c (tui_next_layout): New function.
9026
9027 2020-02-22 Tom Tromey <tom@tromey.com>
9028
9029 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9030 correct coordinates.
9031
9032 2020-02-22 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9035 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9036 DATA_WIN case.
9037
9038 2020-02-22 Tom Tromey <tom@tromey.com>
9039
9040 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9041 TUI_DISASM_WIN, not tui_win_list.
9042
9043 2020-02-22 Tom Tromey <tom@tromey.com>
9044
9045 * valprint.c (generic_val_print_enum_1)
9046 (val_print_type_code_flags): Style member names.
9047 * rust-lang.c (val_print_struct, rust_print_enum)
9048 (rust_print_struct_def, rust_internal_print_type): Style member
9049 names.
9050 * p-valprint.c (pascal_object_print_value_fields): Style member
9051 names. Only call fprintf_symbol_filtered for static members.
9052 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9053 * f-valprint.c (f_val_print): Style member names.
9054 * f-typeprint.c (f_type_print_base): Style member names.
9055 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9056 call fprintf_symbol_filtered for static members.
9057 (cp_print_class_member): Style member names.
9058 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9059 member names.
9060 * ada-valprint.c (ada_print_scalar): Style enum names.
9061 (ada_val_print_enum): Likewise.
9062 * ada-typeprint.c (print_enum_type): Style enum names.
9063
9064 2020-02-21 Tom Tromey <tom@tromey.com>
9065
9066 * psympriv.h (struct partial_symtab): Update comment.
9067
9068 2020-02-21 Tom Tromey <tromey@adacore.com>
9069
9070 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9071 type is CORE_ADDR.
9072
9073 2020-02-21 Tom de Vries <tdevries@suse.de>
9074
9075 PR gdb/25534
9076 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9077 if dependencies[i]->user != NULL.
9078
9079 2020-02-21 Ali Tamur <tamur@google.com>
9080
9081 * dwarf2/read.c (dwarf2_name): Add null check.
9082
9083 2020-02-20 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9086 ">=", in binary search.
9087 (dwarf2_find_containing_comp_unit): New overload.
9088 (run_test): New self-test.
9089 (_initialize_dwarf2_read): Register new test.
9090
9091 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9092
9093 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9094 * riscv-tdep.h: Likewise.
9095 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9096 rv32-only CSR.
9097 * features/riscv/64bit-csr.xml: Regenerated.
9098
9099 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9100 Tom Tromey <tom@tromey.com>
9101
9102 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9103 of 'fputc_unfiltered'.
9104 (putchar_unfiltered): Call 'fputc_unfiltered'.
9105 (fputc_unfiltered): Call 'fputs_unfiltered'.
9106
9107 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * config.in: Regenerate.
9110 * configure: Regenerate.
9111 * configure.ac: Add --with-python-libdir option.
9112 * main.c: Use WITH_PYTHON_LIBDIR.
9113
9114 2020-02-19 Tom Tromey <tom@tromey.com>
9115
9116 * symtab.c (general_symbol_info::compute_and_set_names): Use
9117 obstack_strndup. Simplify call to symbol_set_demangled_name.
9118
9119 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * dwarf2/read.c (allocate_signatured_type_table,
9122 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9123 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9124 Remove objfile parameter, update all callers.
9125
9126 2020-02-19 Doug Evans <dje@google.com>
9127
9128 PR rust/25535
9129 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9130 rust_enum_variant calculation.
9131
9132 2020-02-19 Tom Tromey <tromey@adacore.com>
9133
9134 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9135
9136 2020-02-19 Tom Tromey <tromey@adacore.com>
9137
9138 * ada-lang.c (cache_symbol): Use obstack_strdup.
9139
9140 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9141
9142 * configure: Regenerate.
9143
9144 2020-02-19 Tom Tromey <tromey@adacore.com>
9145
9146 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9147 NULL check.
9148
9149 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9150
9151 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9152
9153 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9154
9155 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9156 if GDBSERVER is not defined.
9157 (riscv_tdesc_cache): Likewise, also store const target_desc.
9158 (STATIC_IN_GDB): Define.
9159 (riscv_create_target_description): Update declaration with
9160 STATIC_IN_GDB.
9161 (riscv_lookup_target_description): New function, only define if
9162 GDBSERVER is not defined.
9163 * arch/riscv.h (riscv_create_target_description): Declare only
9164 when GDBSERVER is defined.
9165 (riscv_lookup_target_description): New declaration when GDBSERVER
9166 is not defined.
9167 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9168 (riscv_linux_read_features): ...this, and return
9169 riscv_gdbarch_features instead of target_desc.
9170 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9171 (riscv_linux_read_description): Rename to...
9172 (riscv_linux_read_features): ...this.
9173 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9174 Update to use riscv_gdbarch_features and
9175 riscv_lookup_target_description.
9176 * riscv-tdep.c (riscv_find_default_target_description): Use
9177 riscv_lookup_target_description instead of
9178 riscv_create_target_description.
9179
9180 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * valprint.c (generic_val_print_enum_1): When printing a flag
9183 enum with value 0 and there is no enumerator with value 0, print
9184 just "0" instead of "(unknown: 0x0)".
9185
9186 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9187
9188 * valprint.c (generic_val_print_enum_1): Print unknown part of
9189 flag enum in hex.
9190
9191 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9194 flag enums to contain duplicate enumerators.
9195 * valprint.c (generic_val_print_enum_1): Update comment.
9196
9197 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * dwarf2/read.c: Include "count-one-bits.h".
9200 (update_enumeration_type_from_children): If an enumerator has
9201 multiple bits set, don't treat the enumeration as a "flag enum".
9202 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9203 of flag enums have 0 or 1 bit set.
9204
9205 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9206
9207 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9208 conversion.
9209 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9210 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9211 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9212 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9213 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9214
9215 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9218
9219 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9222 displaced_step_closure_up.
9223 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9224 (struct displaced_step_closure_up):
9225 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9226 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9227 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9228 Likewise.
9229 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9230 * gdbarch.c, gdbarch.h: Re-generate.
9231 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9232 displaced_step_closure_up.
9233 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9234 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9235 * infrun.h (displaced_step_closure_up): New type alias.
9236 (struct displaced_step_inferior_state) <step_closure>: Change
9237 type to displaced_step_closure_up.
9238 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9239 displaced_step_closure_up.
9240 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9241
9242 2020-02-14 Tom Tromey <tom@tromey.com>
9243
9244 * minidebug.c (gnu_debug_key): New global.
9245 (find_separate_debug_file_in_section): Use it.
9246
9247 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9250 std::unique_ptr.
9251 * gdbarch.c: Re-generate.
9252 * gdbarch.h: Re-generate.
9253 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9254 change.
9255 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9256 type to std::unique_ptr.
9257 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9258 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9259 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9260 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9261 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9262 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9263 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9264 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9265 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9266
9267 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9268
9269 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9270 std::unique_ptr.
9271 (displaced_step_clear): Rename to...
9272 (displaced_step_reset): ... this. Just call displaced->reset ().
9273 (displaced_step_clear_cleanup): Rename to...
9274 (displaced_step_reset_cleanup): ... this.
9275 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9276 (displaced_step_fixup): Likewise.
9277 (resume_1): Likewise.
9278 (handle_inferior_event): Restore child's memory before calling
9279 displaced_step_fixup on the parent.
9280 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9281 to std::unique_ptr.
9282 <step_closure>: Change type to std::unique_ptr.
9283
9284 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * arm-tdep.c: Include count-one-bits.h.
9287 (cleanup_block_store_pc): Use count_one_bits.
9288 (cleanup_block_load_pc): Use count_one_bits.
9289 (arm_copy_block_xfer): Use count_one_bits.
9290 (thumb2_copy_block_xfer): Use count_one_bits.
9291 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9292 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9293 (thumb_get_next_pcs_raw): Use count_one_bits.
9294 (arm_get_next_pcs_raw): Use count_one_bits_l.
9295 * arch/arm.c (bitcount): Remove.
9296 * arch/arm.h (bitcount): Remove.
9297
9298 2020-02-14 Tom Tromey <tromey@adacore.com>
9299
9300 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9301 Update.
9302 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9303 * dwarf2/loc.c (call_site_find_chain_1): Return
9304 unique_xmalloc_ptr.
9305 (call_site_find_chain): Likewise.
9306
9307 2020-02-14 Richard Biener <rguenther@suse.de>
9308
9309 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9310 on expression with division operators.
9311
9312 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9313
9314 * MAINTAINERS (Write After Approval): Adding myself.
9315
9316 2020-02-12 Tom Tromey <tom@tromey.com>
9317
9318 * event-loop.c (event_data, gdb_event, event_handler_func):
9319 Remove.
9320
9321 2020-02-12 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9324 (dwarf2_frame_objfile_data): Add comment.
9325 (find_comp_unit, set_comp_unit): New functions.
9326 (dwarf2_frame_find_fde): Use find_comp_unit.
9327 (dwarf2_build_frame_info): Use set_comp_unit.
9328
9329 2020-02-12 Tom Tromey <tom@tromey.com>
9330
9331 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9332 (comp_unit): Don't initialize objfile.
9333 (execute_cfa_program): Add text_offset parameter.
9334 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9335 (dwarf2_frame_cache): Update.
9336 (dwarf2_build_frame_info): Don't set "objfile" member.
9337
9338 2020-02-12 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9341 (decode_frame_entry): Likewise.
9342 (dwarf2_build_frame_info): Update.
9343
9344 2020-02-12 Tom Tromey <tom@tromey.com>
9345
9346 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9347 (decode_frame_entry_1): Use the comp_unit obstack.
9348
9349 2020-02-12 Tom Tromey <tom@tromey.com>
9350
9351 * dwarf2/frame.c (struct comp_unit): Add initializers and
9352 constructor.
9353 (dwarf2_frame_objfile_data): Store a comp_unit.
9354 (dwarf2_frame_find_fde): Update.
9355 (dwarf2_build_frame_info): Use "new".
9356
9357 2020-02-12 Tom Tromey <tom@tromey.com>
9358
9359 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9360 (dwarf2_fde_table): Typedef for std::vector.
9361 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9362 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9363 (decode_frame_entry): Update.
9364 (dwarf2_build_frame_info): Use "new".
9365
9366 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9367
9368 * arm-tdep.c (arm_gdbarch_init): Update.
9369 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9370 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9371 have_neon, is_m>: Change to bool.
9372
9373 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9374
9375 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9376
9377 2020-02-12 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9380
9381 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9382
9383 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9384 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9385
9386 2020-02-11 Tom Tromey <tom@tromey.com>
9387
9388 * psymtab.h: Update comment.
9389
9390 2020-02-11 Tom Tromey <tom@tromey.com>
9391
9392 * gdb_obstack.h (struct auto_obstack): Use
9393 DISABLE_COPY_AND_ASSIGN.
9394
9395 2020-02-11 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2/frame.h (struct objfile): Don't forward declare.
9398
9399 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9400
9401 * cris-tdep.c (cris_supply_gregset): Change signature to match
9402 what struct regset expects.
9403 (cris_regset): New struct.
9404 (fetch_core_registers): Remove.
9405 (cris_iterate_over_regset_sections): New function.
9406 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9407 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9408
9409 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9410
9411 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9412 registers.
9413
9414 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9415
9416 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
9425
9426 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * acinclude: Update warning.m4 path.
9429 * warning.m4: Move to gdbsupport.
9430
9431 2020-02-11 Tom Tromey <tromey@adacore.com>
9432
9433 * remote.c (remote_console_output): Update.
9434 * printcmd.c (printf_command): Update.
9435 * event-loop.c (gdb_wait_for_event): Update.
9436 * linux-nat.c (sigchld_handler): Update.
9437 * remote-sim.c (gdb_os_write_stdout): Update.
9438 (gdb_os_flush_stdout): Update.
9439 (gdb_os_flush_stderr): Update.
9440 (gdb_os_write_stderr): Update.
9441 * exceptions.c (print_exception): Update.
9442 * remote-fileio.c (remote_fileio_func_read): Update.
9443 (remote_fileio_func_write): Update.
9444 * tui/tui.c (tui_enable): Update.
9445 * tui/tui-interp.c (tui_interp::init): Update.
9446 * utils.c (init_page_info): Update.
9447 (putchar_unfiltered, fputc_unfiltered): Update.
9448 (gdb_flush): Update.
9449 (emit_style_escape): Update.
9450 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9451 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9452 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9453 (stderr_file::write): Update.
9454 (stderr_file::puts): Update.
9455 * ui-file.h (ui_file_isatty, ui_file_write)
9456 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9457 (ui_file_puts): Don't declare.
9458
9459 2020-02-10 Tom de Vries <tdevries@suse.de>
9460
9461 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9462 sentinel to char *.
9463
9464 2020-02-09 Tom de Vries <tdevries@suse.de>
9465
9466 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9467 filename if it matches "<artificial>".
9468
9469 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9470
9471 * windows-tdep.c (struct enum_value_name): New struct.
9472 (create_enum): New function.
9473 (windows_get_siginfo_type): Create and use enum types.
9474
9475 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9476
9477 * NEWS: Mention $_siginfo support for Windows.
9478 * windows-nat.c (handle_exception): Set siginfo_er.
9479 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9480 (windows_xfer_siginfo): New function.
9481 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9482 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9483 (init_windows_gdbarch_data): New function.
9484 (get_windows_gdbarch_data): New function.
9485 (windows_get_siginfo_type): New function.
9486 (windows_init_abi): Register windows_get_siginfo_type.
9487 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9488
9489 2020-02-08 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9492 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9493 <keep>: Declare method.
9494 <m_keep>: Remove member.
9495 <~cutu_reader>: Remove.
9496 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9497 (cutu_reader::cutu_reader): Update.
9498 (cutu_reader::keep): Rename from ~cutu_reader.
9499 (process_psymtab_comp_unit, build_type_psymtabs_1)
9500 (process_skeletonless_type_unit, load_partial_comp_unit)
9501 (load_full_comp_unit, dwarf2_read_addr_index)
9502 (read_signatured_type): Update.
9503
9504 2020-02-08 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9507 "want_partial_unit" parameter.
9508 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9509 Inline check for DW_TAG_partial_unit.
9510 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9511
9512 2020-02-08 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9515 read.c.
9516 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9517 read.c.
9518
9519 2020-02-08 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/read.c (read_address): Move to comp-unit.c.
9522 (dwarf2_rnglists_process, dwarf2_ranges_process)
9523 (read_attribute_value, dwarf_decode_lines_1)
9524 (var_decode_location, decode_locdesc): Update.
9525 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9526 read.c. Remove "cu" parameter.
9527 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9528 method.
9529
9530 2020-02-08 Tom Tromey <tom@tromey.com>
9531
9532 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9533 (read_indirect_line_string): Update.
9534 * dwarf2/comp-unit.c (read_offset): Remove.
9535 (read_comp_unit_head): Update.
9536 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9537 method.
9538 (read_offset): Don't declare.
9539
9540 2020-02-08 Tom Tromey <tom@tromey.com>
9541
9542 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9543 * dwarf2/read.c (struct comp_unit_head): Move to
9544 dwarf2/comp-unit.h.
9545 (enum class rcuh_kind): Move to comp-unit.h.
9546 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9547 (read_comp_unit_head, error_check_comp_unit_head)
9548 (read_and_check_comp_unit_head): Move to comp-unit.c.
9549 (read_offset, dwarf_unit_type_name): Likewise.
9550 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9551 (cutu_reader::cutu_reader, read_call_site_scope)
9552 (find_partial_die, follow_die_offset): Update.
9553 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9554
9555 2020-02-08 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2/read.c (read_offset_1): Move to leb.c.
9558 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9559 (dwarf_decode_macro_bytes): Update.
9560 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9561 * dwarf2/leb.h (read_offset): Declare.
9562
9563 2020-02-08 Tom Tromey <tom@tromey.com>
9564
9565 * dwarf2/read.c (dwarf2_section_size): Remove.
9566 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9567 Update.
9568 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9569
9570 2020-02-08 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2/read.c (read_initial_length): Move to leb.c.
9573 * dwarf2/leb.h (read_initial_length): Declare.
9574 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9575 handle_nonstd parameter.
9576 * dwarf2/frame.c (read_initial_length): Remove.
9577 (decode_frame_entry_1): Update.
9578
9579 2020-02-08 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/loc.c (dwarf2_find_location_expression)
9582 (dwarf_evaluate_loc_desc::get_tls_address)
9583 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9584 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9585 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9586 (dwarf2_compile_property_to_c)
9587 (dwarf2_loc_desc_get_symbol_read_needs)
9588 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9589 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9590 (loclist_describe_location, loclist_tracepoint_var_ref)
9591 (loclist_generate_c_location): Update.
9592 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9593 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9594 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9595 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9596 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9597 (dwarf2_per_cu_data::addr_size)
9598 (dwarf2_per_cu_data::ref_addr_size)
9599 (dwarf2_per_cu_data::text_offset)
9600 (dwarf2_per_cu_data::addr_type): Now methods.
9601 (per_cu_header_read_in): Make per_cu "const".
9602 (dwarf2_version): Remove.
9603 (dwarf2_per_cu_data::int_type): Now a method.
9604 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9605 (set_die_type, read_array_type, read_subrange_index_type)
9606 (read_tag_string_type, read_subrange_type): Update.
9607 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9608 offset_size, ref_addr_size, text_offset, addr_type, version,
9609 objfile, int_type, addr_sized_int_type>: Declare methods.
9610
9611 2020-02-08 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9614 Move earlier.
9615
9616 2020-02-08 Tom Tromey <tom@tromey.com>
9617
9618 * dwarf2/read.h (dwarf_line_debug): Declare.
9619 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9620 * dwarf2/read.c: Move line_header code to new files.
9621 (dwarf_line_debug): No longer static.
9622 * dwarf2/line-header.c: New file.
9623 * dwarf2/line-header.h: New file.
9624
9625 2020-02-08 Tom Tromey <tom@tromey.com>
9626
9627 * dwarf2/read.c (struct line_header) <file_full_name,
9628 file_file_name>: Return unique_xmalloc_ptr.
9629 (line_header::file_file_name): Update.
9630 (line_header::file_full_name): Update.
9631 (dw2_get_file_names_reader): Update.
9632 (macro_start_file): Update.
9633
9634 2020-02-08 Tom Tromey <tom@tromey.com>
9635
9636 * dwarf2/read.c (struct line_header) <file_full_name,
9637 file_file_name>: Declare methods.
9638 (dw2_get_file_names_reader): Update.
9639 (file_file_name): Now a method.
9640 (file_full_name): Likewise.
9641 (macro_start_file): Update.
9642
9643 2020-02-08 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/read.c (dwarf_always_disassemble)
9646 (show_dwarf_always_disassemble): Move to loc.c.
9647 (_initialize_dwarf2_read): Move "always-disassemble" registration
9648 to loc.c.
9649 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9650 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9651 static.
9652 (show_dwarf_always_disassemble): Move from read.c.
9653 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9654
9655 2020-02-08 Tom Tromey <tom@tromey.com>
9656
9657 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9658 (create_quick_file_names_table): Return htab_up.
9659 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9660 Update.
9661 * dwarf2/read.h (struct dwarf2_per_objfile)
9662 <quick_file_names_table>: Now htab_up.
9663
9664 2020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9667
9668 2020-02-08 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9671 Rewrite.
9672 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9673 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9674 (abbrev_table::abbrev_table): No longer inline.
9675 (ABBREV_HASH_SIZE): Remove.
9676 (abbrev_table::m_abbrevs): Now an htab_up.
9677
9678 2020-02-08 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9681 (cutu_reader): Update.
9682 (build_type_psymtabs_1): Update.
9683 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9684 (abbrev_table::alloc_abbrev): Update.
9685 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9686 (abbrev_table::read): New static method, renamed from
9687 abbrev_table_read_table.
9688 (abbrev_table::alloc_abbrev)
9689 (abbrev_table::add_abbrev): Now private.
9690 (abbrev_table::abbrev_table): Now private.
9691 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9692
9693 2020-02-08 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9696 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9697 htab_up.
9698
9699 2020-02-08 Tom Tromey <tom@tromey.com>
9700
9701 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9702 htab_up.
9703 (lookup_dwo_unit_in_dwp): Update.
9704 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9705 on obstack.
9706
9707 2020-02-08 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9710 obstack.
9711
9712 2020-02-08 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9715 line_header_hash.
9716 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9717 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9718 Change type to htab_up.
9719
9720 2020-02-08 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9723 htab_up. Don't allocate on obstack.
9724 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9725 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9726 Change type to htab_up.
9727
9728 2020-02-08 Tom Tromey <tom@tromey.com>
9729
9730 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9731 Change type to htab_up.
9732 * dwarf2/read.c (create_signatured_type_table_from_index)
9733 (create_signatured_type_table_from_debug_names)
9734 (create_all_type_units, add_type_unit)
9735 (lookup_dwo_signatured_type, lookup_signatured_type)
9736 (process_skeletonless_type_unit): Update.
9737 (create_debug_type_hash_table, create_debug_types_hash_table):
9738 Change type of types_htab.
9739 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9740 htab_up. Don't allocate on obstack.
9741 (create_cus_hash_table): Change type of cus_htab parameter.
9742 (struct dwo_file) <cus, tus>: Now htab_up.
9743 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9744 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9745 (queue_and_load_all_dwo_tus): Update.
9746 * dwarf2/index-write.c (write_gdbindex): Update.
9747 (write_debug_names): Update.
9748
9749 2020-02-08 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9752 dwarf2/read.c. Remove "next" member. Add constructor ntad
9753 destructor.
9754 (struct dwarf2_per_objfile) <queue>: New member.
9755 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9756 dwarf2/read.h.
9757 (dwarf2_queue, dwarf2_queue_tail): Remove.
9758 (class dwarf2_queue_guard): Add parameter to constructor. Use
9759 DISABLE_COPY_AND_ASSIGN.
9760 <m_per_objfile>: New member.
9761 <~dwarf2_queue_guard>: Rewrite.
9762 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9763 Update.
9764 (~dwarf2_queue_item): New.
9765
9766 2020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.c (struct die_info) <has_children>: New member.
9769 (dw2_get_file_names_reader): Remove has_children.
9770 (dw2_get_file_names): Update.
9771 (read_cutu_die_from_dwo): Remove has_children.
9772 (cutu_reader::init_tu_and_read_dwo_dies)
9773 (cutu_reader::cutu_reader): Update.
9774 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9775 Remove has_children.
9776 (build_type_psymtabs_1, process_skeletonless_type_unit)
9777 (load_partial_comp_unit, load_full_comp_unit): Update.
9778 (create_dwo_cu_reader): Remove has_children.
9779 (create_cus_hash_table, read_die_and_children): Update.
9780 (read_full_die_1,read_full_die): Remove has_children.
9781 (read_signatured_type): Update.
9782 (class cutu_reader) <has_children>: Remove.
9783
9784 2020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/expr.c: Rename from dwarf2expr.c.
9787 * dwarf2/expr.h: Rename from dwarf2expr.h.
9788 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9789 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9790 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9791 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9792 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9793 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9794 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9795 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9796 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9797 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9798 * dwarf2/loc.c: Rename from dwarf2loc.c.
9799 * dwarf2/loc.h: Rename from dwarf2loc.h.
9800 * dwarf2/read.c: Rename from dwarf2read.c.
9801 * dwarf2/read.h: Rename from dwarf2read.h.
9802 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9803 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9804 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9805 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9806 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9807 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9808 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9809 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9810 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9811 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9812 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9813 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9814 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9815 Update.
9816 * Makefile.in (COMMON_SFILES): Update.
9817 (HFILES_NO_SRCDIR): Update.
9818
9819 2020-02-08 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9822 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9823
9824 2020-02-08 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2read.h (struct die_info): Don't declare.
9827
9828 2020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2read.h (die_info_ptr): Remove typedef.
9831
9832 2020-02-08 Tom Tromey <tom@tromey.com>
9833
9834 * dwarf2read.c (read_call_site_scope)
9835 (handle_data_member_location, dwarf2_add_member_fn)
9836 (mark_common_block_symbol_computed, read_common_block)
9837 (attr_to_dynamic_prop, partial_die_info::read)
9838 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9839 (dwarf2_symbol_mark_computed, set_die_type): Update.
9840 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9841 method.
9842 (attr_form_is_block): Don't declare.
9843 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9844
9845 2020-02-08 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2read.c (dwarf2_find_base_address, )
9848 (read_call_site_scope, rust_containing_type)
9849 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9850 (handle_data_member_location, dwarf2_add_member_fn)
9851 (get_alignment, read_structure_type, process_structure_scope)
9852 (mark_common_block_symbol_computed, read_common_block)
9853 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9854 (partial_die_info::read, read_attribute_value, new_symbol)
9855 (lookup_die_type, dwarf2_get_ref_die_offset)
9856 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9857 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9858 (dwarf2_symbol_mark_computed): Update.
9859 * dwarf2/attribute.h (struct attribute) <value_as_address,
9860 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9861 methods.
9862 (value_as_address, attr_form_is_section_offset)
9863 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9864 * dwarf2/attribute.c (attribute::value_as_address)
9865 (attribute::form_is_section_offset, attribute::form_is_constant)
9866 (attribute::form_is_ref): Now methods.
9867
9868 2020-02-08 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2read.c (struct attribute, DW_STRING)
9871 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9872 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9873 (attr_form_is_block, attr_form_is_section_offset)
9874 (attr_form_is_constant, attr_form_is_ref): Move.
9875 * dwarf2/attribute.h: New file.
9876 * dwarf2/attribute.c: New file, from dwarf2read.c.
9877 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9878
9879 2020-02-08 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9882 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9883 Move.
9884 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9885 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9886 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9887 abbrev.c.
9888 * dwarf2/abbrev.h: New file.
9889 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9890 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9891
9892 2020-02-08 Tom Tromey <tom@tromey.com>
9893
9894 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9895 (dwarf2_section_size, dwarf2_get_section_info)
9896 (create_signatured_type_table_from_debug_names)
9897 (create_addrmap_from_aranges, read_debug_names_from_section)
9898 (get_gdb_index_contents_from_section, read_comp_unit_head)
9899 (error_check_comp_unit_head, read_abbrev_offset)
9900 (create_debug_type_hash_table, init_cu_die_reader)
9901 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9902 (read_comp_units_from_section, create_cus_hash_table)
9903 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9904 (create_dwp_v2_section, dwarf2_rnglists_process)
9905 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9906 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9907 (read_indirect_string_from_dwz, read_addr_index_1)
9908 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9909 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9910 (fill_in_loclist_baton): Update.
9911 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9912 get_containing_section, get_bfd_owner, get_bfd_section,
9913 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9914 (dwarf2_read_section, get_section_name, get_section_file_name)
9915 (get_containing_section, get_section_bfd_owner)
9916 (get_section_bfd_section, get_section_name, get_section_file_name)
9917 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9918 declare.
9919 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9920 (dwarf2_section_info::get_bfd_owner)
9921 (dwarf2_section_info::get_bfd_section)
9922 (dwarf2_section_info::get_name)
9923 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9924 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9925 (dwarf2_section_info::read): Now methods.
9926 * dwarf-index-write.c (class debug_names): Update.
9927
9928 2020-02-08 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9931 Move to dwarf2/section.h.
9932 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9933 (get_section_bfd_section, get_section_name)
9934 (get_section_file_name, get_section_id, get_section_flags)
9935 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9936 dwarf2/section.c.
9937 * dwarf2/section.h: New file.
9938 * dwarf2/section.c: New file, from dwarf2read.c.
9939 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9940
9941 2020-02-08 Tom Tromey <tom@tromey.com>
9942
9943 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9944 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9945 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9946 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9947 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9948 * dwarf2/leb.h: New file, from dwarf2read.c.
9949 * dwarf2/leb.c: New file, from dwarf2read.c.
9950 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9951 Remove.
9952 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9953 (COMMON_SFILES): Add dwarf2/leb.c.
9954
9955 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9956
9957 GDB 9.1 released.
9958
9959 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9960
9961 PR gdb/25190:
9962 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9963 * gdb/remote.c (remote_console_output): Update.
9964 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9965 (ui_file_puts): ...this.
9966 * gdb/ui-file.h (ui_file_puts): Add declaration.
9967 * gdb/utils.c (emit_style_escape): Update.
9968 (flush_wrap_buffer): Update.
9969 (fputs_maybe_filtered): Update.
9970 (fputs_unfiltered): Add function.
9971
9972 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9973
9974 * gdb/event-loop.c (gdb_wait_for_event): Update.
9975 * gdb/printcmd.c (printf_command): Update.
9976 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9977 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9978 (gdb_os_flush_stderr): Update.
9979 * gdb/remote.c (remote_console_output): Update.
9980 * gdb/ui-file.c (gdb_flush): Rename to...
9981 (ui_file_flush): ...this.
9982 (stderr_file::write): Update.
9983 (stderr_file::puts): Update.
9984 * gdb/ui-file.h (gdb_flush): Rename to...
9985 (ui_file_flush): ...this.
9986 * gdb/utils.c (gdb_flush): Add function.
9987 * gdb/utils.h (gdb_flush): Add declaration.
9988
9989 2020-02-07 Tom Tromey <tromey@adacore.com>
9990
9991 PR breakpoints/24915:
9992 * source.c (find_and_open_source): Do not check basenames_may_differ.
9993
9994 2020-02-07 Tom Tromey <tom@tromey.com>
9995
9996 * README: Update gdbserver documentation.
9997 * gdbserver: Move to top level.
9998 * configure.tgt (build_gdbserver): Remove.
9999 * configure.ac: Remove --enable-gdbserver.
10000 * configure: Rebuild.
10001 * Makefile.in (distclean): Don't mention gdbserver.
10002
10003 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10004
10005 * source-cache.c (source_cache::ensure): Surround
10006 get_plain_source_lines with a try/catch.
10007 (source_cache::get_line_charpos): Get rid of try/catch
10008 and only check for the return value of "ensure".
10009 * tui/tui-source.c (tui_source_window::set_contents):
10010 Simplify "nlines" calculation.
10011
10012 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10013
10014 * MAINTAINERS (Write After Approval): Add myself.
10015
10016 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10017
10018 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10019 function call.
10020
10021 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10022
10023 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10024
10025 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10026
10027 * nat/riscv-linux-tdesc.h: New file.
10028 * nat/riscv-linux-tdesc.c: New file, taking code from...
10029 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10030 ... here.
10031 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10032 NATDEPFILES.
10033
10034 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10035
10036 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10037 we don't set the fake simulator ptid to the null_ptid.
10038
10039 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10042 * gdbthread.h (class thread_info) <resumed>: Likewise.
10043 * infrun.c (resume_1): Likewise.
10044 (proceed): Likewise.
10045 (infrun_thread_stop_requested): Likewise.
10046 (stop_all_threads): Likewise.
10047 (handle_inferior_event): Likewise.
10048 (restart_threads): Likewise.
10049 (finish_step_over): Likewise.
10050 (keep_going_stepped_thread): Likewise.
10051 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10052 (linux_handle_extended_wait): Likewise.
10053 * record-btrace.c (get_thread_current_frame_id): Likewise.
10054 * record-full.c (record_full_wait_1): Likewise.
10055 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10056 * target.c (target_resume): Likewise.
10057 * thread.c (set_running_thread): Likewise.
10058
10059 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10060
10061 * f-valprint.c (f77_print_array_1): Changed datatype of index
10062 variable to LONGEST from int to enable it to contain bound
10063 values correctly.
10064
10065 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10066
10067 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10068 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10069 offsets according to FLEN determined.
10070 (riscv_linux_nat_target::read_description): Determine FLEN
10071 dynamically.
10072 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10073 according to FLEN determined.
10074 (riscv_linux_nat_target::store_registers): Likewise.
10075
10076 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10077
10078 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10079 when reg->group is empty and reggroup is not.
10080
10081 2020-01-31 Tom Tromey <tromey@adacore.com>
10082
10083 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10084 Call beneath target's mourn_inferior after unpushing.
10085
10086 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10087
10088 PR tui/9765
10089 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10090 have enough lines to fill the screen, still return the lowest
10091 address we found.
10092
10093 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10094
10095 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10096 '-', '<', and '>' commands.
10097
10098 2020-01-29 Pedro Alves <palves@redhat.com>
10099 Sergio Durigan Junior <sergiodj@redhat.com>
10100
10101 * infcmd.c (construct_inferior_arguments): Assert that
10102 'argc' is greater than 0.
10103
10104 2020-01-29 Luis Machado <luis.machado@linaro.org>
10105
10106 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10107 (BRK_INSN_MASK): Define to 0xd4200000.
10108 (aarch64_program_breakpoint_here_p): New function.
10109 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10110 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10111 breakpoint.c.
10112 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10113 breakpoint.h
10114 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10115 call gdbarch_program_breakpoint_here_p.
10116 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10117 default_program_breakpoint_here_p, changed return type to bool and
10118 simplified.
10119 * breakpoint.h (program_breakpoint_here): Moved prototype to
10120 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10121 return type to bool.
10122 * gdbarch.c: Regenerate.
10123 * gdbarch.h: Regenerate.
10124 * gdbarch.sh (program_breakpoint_here_p): New method.
10125 * infrun.c (handle_signal_stop): Call
10126 gdbarch_program_breakpoint_here_p.
10127
10128 2020-01-26 Tom Tromey <tom@tromey.com>
10129
10130 * ctfread.c (struct ctf_fp_info): Reindent.
10131 (_initialize_ctfread): Remove.
10132
10133 2020-01-26 Tom Tromey <tom@tromey.com>
10134
10135 * psymtab.c (partial_map_expand_apply)
10136 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10137 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10138 (psym_print_stats, psym_expand_symtabs_for_function)
10139 (psym_map_symbol_filenames, psym_map_matching_symbols)
10140 (psym_expand_symtabs_matching)
10141 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10142 (maintenance_check_psymtabs): Use new methods.
10143 * psympriv.h (struct partial_symtab) <readin_p,
10144 get_compunit_symtab>: New methods.
10145 <readin, compunit_symtab>: Remove members.
10146 (struct standard_psymtab): New.
10147 (struct legacy_psymtab): Derive from standard_psymtab.
10148 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10149 standard_psymtab.
10150 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10151
10152 2020-01-26 Tom Tromey <tom@tromey.com>
10153
10154 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10155 read_dependencies. Add assert.
10156 * psymtab.c (partial_symtab::read_dependencies): New method.
10157 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10158 method.
10159 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10160 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10161 read_dependencies.
10162 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10163 Add assert.
10164
10165 2020-01-26 Tom Tromey <tom@tromey.com>
10166
10167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10168 Call expand_psymtab.
10169 (xcoff_read_symtab): Call expand_psymtab.
10170 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10171 legacy_expand_psymtab.
10172 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10173 method.
10174 (struct legacy_psymtab) <expand_psymtab>: Implement.
10175 <legacy_expand_psymtab>: New member.
10176 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10177 (parse_partial_symbols): Set legacy_expand_psymtab.
10178 (psymtab_to_symtab_1): Change argument order. Call
10179 expand_psymtab.
10180 (new_psymtab): Set legacy_expand_psymtab.
10181 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10182 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10183 expand_psymtab.
10184 (dwarf2_psymtab::expand_psymtab): Rename from
10185 psymtab_to_symtab_1. Call expand_psymtab.
10186 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10187 (dbx_end_psymtab): Likewise.
10188 (dbx_psymtab_to_symtab_1): Change argument order. Call
10189 expand_psymtab.
10190 (dbx_read_symtab): Call expand_psymtab.
10191 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10192 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10193 (ctf_psymtab::read_symtab): Call expand_psymtab.
10194
10195 2020-01-26 Tom Tromey <tom@tromey.com>
10196
10197 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10198 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10199 messages.
10200 * mdebugread.c (mdebug_read_symtab): Remove prints.
10201 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10202 assert.
10203 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10204
10205 2020-01-26 Tom Tromey <tom@tromey.com>
10206
10207 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10208 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10209 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10210 legacy_symtab.
10211 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10212 * psymtab.c (psymtab_to_symtab): Call method.
10213 (dump_psymtab): Update.
10214 * psympriv.h (struct partial_symtab): Add virtual destructor.
10215 <read_symtab>: New method.
10216 (struct legacy_symtab): New.
10217 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10218 (struct pst_map) <pst>: Now a legacy_psymtab.
10219 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10220 (new_psymtab): Use legacy_psymtab.
10221 * dwarf2read.h (struct dwarf2_psymtab): New.
10222 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10223 * dwarf2read.c (dwarf2_create_include_psymtab)
10224 (dwarf2_build_include_psymtabs, create_type_unit_group)
10225 (create_partial_symtab, process_psymtab_comp_unit_reader)
10226 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10227 (set_partial_user): Use dwarf2_psymtab.
10228 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10229 (psymtab_to_symtab_1, process_full_comp_unit)
10230 (process_full_type_unit, dwarf2_ranges_read)
10231 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10232 (dwarf_decode_lines): Use dwarf2_psymtab.
10233 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10234 (add_address_entry_worker, write_one_signatured_type)
10235 (recursively_count_psymbols, recursively_write_psymbols)
10236 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10237 (write_debug_names): Likewise.
10238 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10239 <pst>: Now a legacy_psymtab.
10240 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10241 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10242 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10243 * ctfread.c (struct ctf_psymtab): New.
10244 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10245 ctf_psymtab.
10246 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10247 (create_partial_symtab): Return a ctf_psymtab.
10248 (scan_partial_symbols): Update.
10249
10250 2020-01-26 Tom Tromey <tom@tromey.com>
10251
10252 * xcoffread.c (xcoff_start_psymtab): Use new.
10253 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10254 renamed from start_psymtab_common.
10255 * psympriv.h (struct partial_symtab): Add new constructor.
10256 (start_psymtab_common): Don't declare.
10257 * mdebugread.c (parse_partial_symbols): Use new.
10258 * dwarf2read.c (create_partial_symtab): Use new.
10259 * dbxread.c (start_psymtab): Use new.
10260 * ctfread.c (create_partial_symtab): Use new.
10261
10262 2020-01-26 Tom Tromey <tom@tromey.com>
10263
10264 * xcoffread.c (xcoff_end_psymtab): Use new.
10265 * psymtab.c (start_psymtab_common): Use new.
10266 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10267 Update.
10268 * psympriv.h (struct partial_symtab): Add parameters to
10269 constructor. Don't inline.
10270 (allocate_psymtab): Don't declare.
10271 * mdebugread.c (new_psymtab): Use new.
10272 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10273 * dbxread.c (dbx_end_psymtab): Use new.
10274
10275 2020-01-26 Tom Tromey <tom@tromey.com>
10276
10277 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10278 allocate_psymtab. Update documentation.
10279 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10280 allocate_psymtab. Do not use new.
10281 (allocate_psymtab): Use new. Update.
10282
10283 2020-01-26 Tom Tromey <tom@tromey.com>
10284
10285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10286 * psymtab.c (psym_print_stats): Update.
10287 * psympriv.h (struct partial_symtab) <readin,
10288 psymtabs_addrmap_supported, anonymous>: Now bool.
10289 * mdebugread.c (psymtab_to_symtab_1): Update.
10290 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10291 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10292 (process_full_comp_unit, process_full_type_unit): Update.
10293 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10294 * ctfread.c (psymtab_to_symtab): Update.
10295
10296 2020-01-26 Tom Tromey <tom@tromey.com>
10297
10298 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10299 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10300 * psymtab.c (psymtab_storage): Delete psymtabs.
10301 (psymtab_storage::allocate_psymtab): Use new.
10302 (psymtab_storage::discard_psymtab): Use delete.
10303 * psympriv.h (struct partial_symtab): Add constructor and
10304 initializers.
10305
10306 2020-01-26 Tom Tromey <tom@tromey.com>
10307
10308 * machoread.c: Do not include psympriv.h.
10309
10310 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10311
10312 * NEWS: Mention the new option and the set/show commands.
10313
10314 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10315
10316 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10317 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10318 (validate_exec_file): New variables, enums, functions.
10319 (exec_file_locate_attach, print_section_info): Style the filenames.
10320 (_initialize_exec): Install show_exec_file_mismatch_command and
10321 set_exec_file_mismatch_command.
10322 * gdbcore.h (validate_exec_file): Declare.
10323 * infcmd.c (attach_command): Call validate_exec_file.
10324 * remote.c ( remote_target::remote_add_inferior): Likewise.
10325
10326 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * frame.c (find_frame_sal): Move call to get_next_frame into more
10329 inner scope.
10330 * inline-frame.c (inilne_state) <inline_state>: Update argument
10331 types.
10332 (inilne_state) <skipped_symbol>: Rename to...
10333 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10334 (skip_inline_frames): Build vector of skipped symbols and use this
10335 to reate the inline_state.
10336 (inline_skipped_symbol): Add a comment and some assertions, fetch
10337 skipped symbol from the list.
10338
10339 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10340
10341 * buildsym.c (lte_is_less_than): Delete.
10342 (buildsym_compunit::end_symtab_with_blockvector): Create local
10343 lambda function to sort line table entries, and use
10344 std::stable_sort instead of std::sort.
10345 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10346 markers when looking for a previous line.
10347
10348 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10349
10350 * dwarf2read.c (lnp_state_machine::record_line): Include
10351 end_sequence parameter in debug print out. Record the line if we
10352 are at an end_sequence marker even if it's not the start of a
10353 statement.
10354 * symmisc.c (maintenance_print_one_line_table): Print end of
10355 sequence markers with 'END' not '0'.
10356
10357 2020-01-24 Pedro Alves <palves@redhat.com>
10358
10359 PR gdb/25410
10360 * thread.c (scoped_restore_current_thread::restore): Use
10361 switch_to_inferior_no_thread.
10362 * exec.c: Include "progspace-and-thread.h".
10363 (add_target_sections, remove_target_sections):
10364 scoped_restore_current_pspace_and_thread instead of
10365 scoped_restore_current_thread.
10366 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10367 and aspace to the inferior before calling clone_program_space.
10368 Remove stale comment.
10369
10370 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10371
10372 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10373 (arm_netbsd_nat_target::fetch_registers): ...this.
10374 (arm_nbsd_nat_target::store_registers): Rename to...
10375 (arm_netbsd_nat_target::store_registers): ...this.
10376
10377 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10378
10379 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10380 register_t.
10381
10382 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10383
10384 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10385 Update comment.
10386 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10387 Likewise.
10388 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10389 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10390 the correct replacement (iterate_over_regset_sections).
10391 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10392 Update comment.
10393
10394 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10395
10396 PR gdb/23718
10397 * gdb/python/python.c (execute_gdb_command): Call
10398 async_enable_stdin in catch block.
10399
10400 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10403 SWITCH_THRU_ALL_UIS.
10404
10405 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10406
10407 PR tui/9765
10408 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10409 comment, add extra parameter, and update to store previous symbol
10410 when appropriate.
10411 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10412 add extra parameter.
10413 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10414 remove unneeded parameter, add try/catch around gdb_print_insn,
10415 rewrite to add items to asm_lines vector.
10416 (tui_find_backward_disassembly_start_address): New function.
10417 (tui_find_disassembly_address): Updated throughout.
10418 (tui_disasm_window::set_contents): Update for changes to
10419 tui_disassemble.
10420 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10421 number of lines to scroll.
10422
10423 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10424
10425 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10426 (SECT_OFF_DATA): Likewise.
10427 (SECT_OFF_RODATA): Likewise.
10428 (SECT_OFF_TEXT): Likewise.
10429 (SECT_OFF_BSS): Likewise.
10430 (struct objfile) <text_section_offset, data_section_offset>: New
10431 methods.
10432 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10433 objfile::text_section_offset.
10434 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10435 * coffread.c (coff_symtab_read): Likewise.
10436 (enter_linenos): Likewise.
10437 (process_coff_symbol): Likewise.
10438 * ctfread.c (get_objfile_text_range): Likewise.
10439 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10440 Use objfile::data_section_offset.
10441 * dwarf2-frame.c (execute_cfa_program): Use
10442 objfile::text_section_offset.
10443 (dwarf2_frame_find_fde): Likewise.
10444 * dwarf2read.c (create_addrmap_from_index): Likewise.
10445 (create_addrmap_from_aranges): Likewise.
10446 (dw2_find_pc_sect_compunit_symtab): Likewise.
10447 (process_psymtab_comp_unit_reader): Likewise.
10448 (add_partial_symbol): Likewise.
10449 (add_partial_subprogram): Likewise.
10450 (process_full_comp_unit): Likewise.
10451 (read_file_scope): Likewise.
10452 (read_func_scope): Likewise.
10453 (read_lexical_block_scope): Likewise.
10454 (read_call_site_scope): Likewise.
10455 (dwarf2_rnglists_process): Likewise.
10456 (dwarf2_ranges_process): Likewise.
10457 (dwarf2_ranges_read): Likewise.
10458 (dwarf_decode_lines_1): Likewise.
10459 (new_symbol): Likewise.
10460 (dwarf2_fetch_die_loc_sect_off): Likewise.
10461 (dwarf2_per_cu_text_offset): Likewise.
10462 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10463 * hppa-tdep.c (read_unwind_info): Likewise.
10464 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10465 * psympriv.h (struct partial_symtab): Likewise.
10466 * psymtab.c (find_pc_sect_psymtab): Likewise.
10467 * solib-svr4.c (enable_break): Likewise.
10468 * stap-probe.c (relocate_address): Use
10469 objfile::data_section_offset.
10470 * xcoffread.c (enter_line_range): Use
10471 objfile::text_section_offset.
10472 (read_xcoff_symtab): Likewise.
10473
10474 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10477 declaration to narrower scopes.
10478
10479 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * darwin-nat.h (struct darwin_exception_msg, enum
10482 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10483 Move up.
10484 (class darwin_nat_target) <wait_1, check_new_threads,
10485 decode_exception_message, decode_message, stop_inferior,
10486 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10487 * darwin-nat.c (darwin_check_new_threads): Rename to...
10488 (darwin_nat_target::check_new_threads): ... this.
10489 (darwin_suspend_inferior_it): Remove.
10490 (darwin_decode_exception_message): Rename to...
10491 (darwin_nat_target::decode_exception_message): ... this.
10492 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10493 (darwin_decode_message): Rename to...
10494 (darwin_nat_target::decode_message): ... this.
10495 (cancel_breakpoint): Rename to...
10496 (darwin_nat_target::cancel_breakpoint): ... this.
10497 (darwin_wait): Rename to...
10498 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10499 instead of iterate_over_inferiors.
10500 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10501 (darwin_stop_inferior): Rename to...
10502 (darwin_nat_target::stop_inferior): ... this.
10503 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10504 (darwin_init_thread_list): Rename to...
10505 (darwin_nat_target::init_thread_list): ... this.
10506 (darwin_ptrace_him): Rename to...
10507 (darwin_nat_target::ptrace_him): ... this.
10508 (darwin_nat_target::create_inferior): Pass lambda function to
10509 fork_inferior.
10510 (darwin_nat_target::detach): Call stop_inferior instead of
10511 darwin_stop_inferior.
10512 * fork-inferior.h (fork_inferior): Change init_trace_fun
10513 parameter to gdb::function_view.
10514 * fork-inferior.c (fork_inferior): Likewise.
10515
10516 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10517
10518 * i386-cygwin-tdep.c (core_process_module_section): Update.
10519 * windows-nat.c (struct lm_info_windows): Add text_offset.
10520 (windows_xfer_shared_libraries): Update.
10521 * windows-tdep.c (windows_xfer_shared_library):
10522 Add text_offset_cached argument.
10523 * windows-tdep.h (windows_xfer_shared_library): Update.
10524
10525 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10526
10527 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10528
10529 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10530
10531 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10532 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10533 replace with range-based for.
10534 (gdbsim_interrupt_inferior): Remove.
10535 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10536 with a range-based for. Inline code from
10537 gdbsim_interrupt_inferior.
10538
10539 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * infrun.c (proceed): Fix indentation.
10542
10543 2020-01-21 Tom Tromey <tromey@adacore.com>
10544
10545 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10546 * python/python.c (python_extension_ops): Update.
10547 (gdbpy_colorize): New function.
10548 * python/lib/gdb/__init__.py (colorize): New function.
10549 * extension.h (ext_lang_colorize): Declare.
10550 * extension.c (ext_lang_colorize): New function.
10551 * extension-priv.h (struct extension_language_ops) <colorize>: New
10552 member.
10553 * cli/cli-style.c (_initialize_cli_style): Update help text.
10554
10555 2020-01-21 Luis Machado <luis.machado@linaro.org>
10556
10557 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10558 <cond>: Change type to bool.
10559 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10560 (aarch64_displaced_step_cb): Likewise.
10561 (aarch64_displaced_step_tb): Likewise.
10562
10563 2020-01-21 Luis Machado <luis.machado@linaro.org>
10564
10565 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10566 output.
10567
10568 2020-01-21 Luis Machado <luis.machado@linaro.org>
10569
10570 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10571 <pc_adjust>: Adjust the documentation.
10572 (aarch64_displaced_step_fixup): Check if PC really moved before
10573 adjusting it.
10574
10575 2020-01-19 Tom Tromey <tom@tromey.com>
10576
10577 * disasm.c (~gdb_disassembler): New destructor.
10578 (gdb_buffered_insn_length): Call disassemble_free_target.
10579 * disasm.h (class gdb_disassembler): Declare destructor. Use
10580 DISABLE_COPY_AND_ASSIGN.
10581
10582 2020-01-19 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10585 (die_reader_func_ftype): Remove.
10586 (cutu_reader): New class.
10587 (dw2_get_file_names_reader): Remove "data" parameter.
10588 (dw2_get_file_names): Use cutu_reader.
10589 (create_debug_type_hash_table): Update.
10590 (read_cutu_die_from_dwo): Update comment.
10591 (lookup_dwo_unit): Add dwo_name parameter.
10592 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10593 die_reader_func_ftype and data parameters.
10594 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10595 Remove die_reader_func_ftype and data parameters.
10596 (~cutu_reader): New; from init_cutu_and_read_dies.
10597 (cutu_reader::cutu_reader): Rename from
10598 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10599 and data parameters.
10600 (init_cutu_and_read_dies_simple): Remove.
10601 (struct process_psymtab_comp_unit_data): Remove.
10602 (process_psymtab_comp_unit_reader): Remove data parameter; add
10603 want_partial_unit and pretend_language parameters.
10604 (process_psymtab_comp_unit): Use cutu_reader.
10605 (build_type_psymtabs_reader): Remove data parameter.
10606 (build_type_psymtabs_1): Use cutu_reader.
10607 (process_skeletonless_type_unit): Likewise.
10608 (load_partial_comp_unit_reader): Remove.
10609 (load_partial_comp_unit): Use cutu_reader.
10610 (load_full_comp_unit_reader): Remove.
10611 (load_full_comp_unit): Use cutu_reader.
10612 (struct create_dwo_cu_data): Remove.
10613 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10614 dwo_unit parameters.
10615 (create_cus_hash_table): Use cutu_reader.
10616 (struct dwarf2_read_addr_index_data): Remove.
10617 (dwarf2_read_addr_index_reader): Remove.
10618 (dwarf2_read_addr_index): Use cutu_reader.
10619 (read_signatured_type_reader): Remove.
10620 (read_signatured_type): Use cutu_reader.
10621
10622 2020-01-19 Tom Tromey <tom@tromey.com>
10623
10624 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10625 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10626 (tui_wrefresh): Declare.
10627 * tui/tui-wingeneral.c (suppress_output): New global.
10628 (tui_suppress_output, ~tui_suppress_output): New constructor and
10629 destructor.
10630 (tui_wrefresh): New function.
10631 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10632 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10633 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10634 method.
10635 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10636 tui_wrefresh.
10637 (tui_data_window::no_refresh): New method.
10638 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10639 (tui_reg_command): Use tui_suppress_output
10640 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10641 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10642 method.
10643 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10644
10645 2020-01-19 Tom Tromey <tom@tromey.com>
10646
10647 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10648 Handle case where symtab is null.
10649
10650 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10651
10652 * linux-fork.c (one_fork_p): Simplify.
10653
10654 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10655
10656 * top.c (struct qt_args): Remove.
10657 (kill_or_detach): Change return type to void, replace `void *`
10658 parameter with a proper one.
10659 (print_inferior_quit_action): Likewise.
10660 (quit_confirm): Use range-based for loop to iterate over inferiors.
10661 (quit_force): Likewise.
10662
10663 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10666 `void *` parameter with proper parameters.
10667 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10668 (print_one_inferior): Change return type to void, replace `void *`
10669 parameter with proper parameters.
10670 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10671 inferiors.
10672 (get_other_inferior): Remove.
10673 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10674 inferiors.
10675
10676 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * mi/mi-interp.c (report_initial_inferior): Remove.
10679 (mi_interp::init): Use range-based for to iterate over inferiors.
10680
10681 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * python/py-inferior.c (build_inferior_list): Remove.
10684 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10685
10686 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10687
10688 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10689 (btrace_stitch_trace): Likewise.
10690 * charset.c (intermediate_encoding): Likewise (vaild).
10691 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10692 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10693 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10694
10695 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10696
10697 * windows-tdep.c (windows_get_tlb_type):
10698 Add rtl_user_process_parameters type.
10699
10700 2020-01-16 Pedro Alves <palves@redhat.com>
10701 Norbert Lange <nolange79@gmail.com>
10702
10703 PR build/24805
10704 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10705 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10706 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10707 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10708 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10709 (ps_plog): Redeclare exported functions with default visibility.
10710
10711 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10712
10713 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10714 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10715
10716 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10717
10718 * infcmd.c (post_create_inferior): Use get_thread_regcache
10719 instead of get_current_regcache.
10720
10721 2020-01-14 Tom Tromey <tom@tromey.com>
10722
10723 PR symtab/12535:
10724 * python/python.c (gdbpy_decode_line): Treat empty string the same
10725 as no argument.
10726
10727 2020-01-14 Tom Tromey <tom@tromey.com>
10728
10729 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10730
10731 2020-01-14 Tom Tromey <tom@tromey.com>
10732
10733 * nat/linux-btrace.c: Don't include <config.h>.
10734 * nat/linux-ptrace.c: Don't include <config.h>.
10735 * nat/x86-linux-dregs.c: Don't include <config.h>.
10736
10737 2020-01-14 Tom Tromey <tom@tromey.com>
10738
10739 * configure: Rebuild.
10740 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10741
10742 2020-01-14 Tom Tromey <tom@tromey.com>
10743
10744 * nat/x86-linux-dregs.c: Include configh.h.
10745 * nat/linux-ptrace.c: Include configh.h.
10746 * nat/linux-btrace.c: Include configh.h.
10747 * defs.h: Include config.h, bfd.h.
10748 * configure.ac: Don't source common.host.
10749 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10750 * configure: Rebuild.
10751 * acinclude.m4: Update path.
10752 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10753 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10754 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10755 (CLIBS): Add LIBSUPPORT.
10756 (CDEPS): Likewise.
10757 (COMMON_SFILES): Remove gdbsupport files.
10758 (HFILES_NO_SRCDIR): Likewise.
10759 (stamp-version): Update path to create-version.sh.
10760 (ALLDEPFILES): Remove gdbsupport files.
10761
10762 2020-01-14 Tom Tromey <tom@tromey.com>
10763
10764 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10765 USE_WIN32API when needed.
10766 * configure.ac (USE_WIN32API): Don't define.
10767 (WIN32LIBS): Use WIN32APILIBS.
10768 * configure: Rebuild.
10769
10770 2020-01-14 Tom Tromey <tom@tromey.com>
10771
10772 * configure: Rebuild.
10773 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10774
10775 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10776
10777 * skip.c (skip_function_command): Make skip w/o arguments use the
10778 name of the inlined function if pc is inside any inlined function.
10779
10780 2020-01-14 Luis Machado <luis.machado@linaro.org>
10781
10782 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10783 * infrun.c (resume_1): Likewise.
10784 (handle_inferior_event): Remove stale comment.
10785 * linux-nat.c (linux_nat_target::resume): Update comments.
10786 (save_stop_reason): Likewise.
10787 (linux_nat_filter_event): Likewise.
10788 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10789
10790 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10791
10792 * elfread.c (record_minimal_symbol): Set section index to 0 for
10793 non-allocatable sections.
10794
10795
10796 2020-01-13 Ali Tamur <tamur@google.com>
10797
10798 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10799 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10800 to gdb::optional. Update comments.
10801 (dwo_file): Update comments.
10802 (read_attribute): Update API to take an additional out parameter,
10803 need_reprocess. This is used to mark attributes that need other
10804 attributes (e.g. str_offsets_base) for correct computation which may not
10805 have been read yet.
10806 (read_attribute_reprocess): New function declaration.
10807 (read_addr_index): Likewise.
10808 (read_dwo_str_index): Likewise.
10809 (read_stub_str_index): Likewise.
10810 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10811 (lookup_addr_base): New function definition.
10812 (lookup_ranges_base): Likewise.
10813 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10814 lookup_ranges_base.
10815 (init_cutu_and_read_dies): Update comments.
10816 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10817 unit. This is used to inherit parent's str_offsets_base and addr_base.
10818 Update comments.
10819 (init_cutu_and_read_dies_simple): Reflect API changes.
10820 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10821 (create_cus_hash_table): Change API to take parent compile unit.
10822 Reflect API changes.
10823 (open_and_init_dwo_file): Reflect API changes.
10824 (dwarf2_get_pc_bounds): Update comments.
10825 (dwarf2_record_block_ranges): Likewise.
10826 (read_full_die_1): Change implementation to reprocess attributes that
10827 need str_offsets_base and addr_base.
10828 (partial_die_info::read): Likewise.
10829 (read_attribute_reprocess): New function definition.
10830 (read_attribute_value): Change API to take an additional out parameter,
10831 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10832 when a non-dwo compile unit has index based attributes.
10833 (read_attribute): Reflect API changes.
10834 (read_addr_index_1): Reflect API changes. Update comments.
10835 (dwarf2_read_addr_index_data): Reflect API changes.
10836 (dwarf2_read_addr_index): Likewise.
10837 (read_str_index): Change API and implementation. This becomes a helper
10838 to be used by the new string index related methods. Update error
10839 message and comments.
10840 (read_dwo_str_index): New function definition.
10841 (read_stub_str_index): Likewise.
10842 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10843 * symfile.h (dwarf2_debug_sections): Likewise.
10844 * xcoffread.c (dwarf2_debug_sections): Likewise.
10845
10846 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10847
10848 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10849 core_reg_sect type to gdb_byte *.
10850 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10851 * cris-tdep.c (fetch_core_registers): Likewise.
10852 * corelow.c (core_target::get_core_register_section): Change
10853 type of `contents` to gdb::byte_vector.
10854
10855 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10856
10857 * tui/tui-wingeneral.c (box_win): Position the title in the center
10858 of the border.
10859
10860 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * corelow.c (core_target::get_core_register_section): Use
10863 std::vector instead of alloca.
10864
10865 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10866
10867 * warning.m4: Add -Wmissing-declarations to build_warnings.
10868 * configure: Re-generate.
10869
10870 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * python/python.c (init__gdb_module): Add declaration.
10873
10874 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10877 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10878 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10879 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10880 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10881 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10882 * ada-exp.y (_initialize_ada_exp): Add declaration.
10883 * ada-lang.c (_initialize_ada_language): Add declaration.
10884 * ada-tasks.c (_initialize_tasks): Add declaration.
10885 * agent.c (_initialize_agent): Add declaration.
10886 * aix-thread.c (_initialize_aix_thread): Add declaration.
10887 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10888 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10889 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10890 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10891 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10892 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10893 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10894 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10895 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10896 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10897 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10898 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10899 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10900 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10901 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10902 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10903 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10904 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10905 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10906 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10907 * annotate.c (_initialize_annotate): Add declaration.
10908 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10909 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10910 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10911 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10912 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10913 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10914 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10915 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10916 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10917 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10918 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10919 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10920 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10921 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10922 * auto-load.c (_initialize_auto_load): Add declaration.
10923 * auxv.c (_initialize_auxv): Add declaration.
10924 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10925 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10926 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10927 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10928 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10929 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10930 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10931 * breakpoint.c (_initialize_breakpoint): Add declaration.
10932 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10933 * btrace.c (_initialize_btrace): Add declaration.
10934 * charset.c (_initialize_charset): Add declaration.
10935 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10936 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10937 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10938 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10939 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10940 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10941 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10942 * coffread.c (_initialize_coffread): Add declaration.
10943 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10944 * compile/compile.c (_initialize_compile): Add declaration.
10945 * complaints.c (_initialize_complaints): Add declaration.
10946 * completer.c (_initialize_completer): Add declaration.
10947 * copying.c (_initialize_copying): Add declaration.
10948 * corefile.c (_initialize_core): Add declaration.
10949 * corelow.c (_initialize_corelow): Add declaration.
10950 * cp-abi.c (_initialize_cp_abi): Add declaration.
10951 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10952 * cp-support.c (_initialize_cp_support): Add declaration.
10953 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10954 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10955 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10956 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10957 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10958 * ctfread.c (_initialize_ctfread): Add declaration.
10959 * d-lang.c (_initialize_d_language): Add declaration.
10960 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10961 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10962 * dbxread.c (_initialize_dbxread): Add declaration.
10963 * dcache.c (_initialize_dcache): Add declaration.
10964 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10965 * disasm.c (_initialize_disasm): Add declaration.
10966 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10967 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10968 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10969 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10970 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10971 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10972 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10973 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10974 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10975 * elfread.c (_initialize_elfread): Add declaration.
10976 * exec.c (_initialize_exec): Add declaration.
10977 * extension.c (_initialize_extension): Add declaration.
10978 * f-lang.c (_initialize_f_language): Add declaration.
10979 * f-valprint.c (_initialize_f_valprint): Add declaration.
10980 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10981 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10982 * filesystem.c (_initialize_filesystem): Add declaration.
10983 * findcmd.c (_initialize_mem_search): Add declaration.
10984 * findvar.c (_initialize_findvar): Add declaration.
10985 * fork-child.c (_initialize_fork_child): Add declaration.
10986 * frame-base.c (_initialize_frame_base): Add declaration.
10987 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10988 * frame.c (_initialize_frame): Add declaration.
10989 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10990 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10991 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10992 * gcore.c (_initialize_gcore): Add declaration.
10993 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10994 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10995 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10996 * gdbarch.c (_initialize_gdbarch): Add declaration.
10997 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10998 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10999 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11000 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11001 * go-lang.c (_initialize_go_language): Add declaration.
11002 * go32-nat.c (_initialize_go32_nat): Add declaration.
11003 * guile/guile.c (_initialize_guile): Add declaration.
11004 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11005 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11006 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11007 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11008 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11009 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11010 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11011 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11012 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11013 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11014 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11015 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11016 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11017 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11018 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11019 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11020 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11021 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11022 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11023 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11024 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11025 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11026 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11027 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11028 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11029 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11030 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11031 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11032 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11033 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11034 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11035 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11036 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11037 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11038 * infcall.c (_initialize_infcall): Add declaration.
11039 * infcmd.c (_initialize_infcmd): Add declaration.
11040 * inflow.c (_initialize_inflow): Add declaration.
11041 * infrun.c (_initialize_infrun): Add declaration.
11042 * interps.c (_initialize_interpreter): Add declaration.
11043 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11044 * jit.c (_initialize_jit): Add declaration.
11045 * language.c (_initialize_language): Add declaration.
11046 * linux-fork.c (_initialize_linux_fork): Add declaration.
11047 * linux-nat.c (_initialize_linux_nat): Add declaration.
11048 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11049 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11050 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11051 * m2-lang.c (_initialize_m2_language): Add declaration.
11052 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11053 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11054 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11055 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11056 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11057 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11058 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11059 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11060 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11061 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11062 * machoread.c (_initialize_machoread): Add declaration.
11063 * macrocmd.c (_initialize_macrocmd): Add declaration.
11064 * macroscope.c (_initialize_macroscope): Add declaration.
11065 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11066 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11067 * maint.c (_initialize_maint_cmds): Add declaration.
11068 * mdebugread.c (_initialize_mdebugread): Add declaration.
11069 * memattr.c (_initialize_mem): Add declaration.
11070 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11071 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11072 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11073 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11074 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11075 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11076 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11077 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11078 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11079 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11080 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11081 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11082 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11083 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11084 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11085 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11086 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11087 * mipsread.c (_initialize_mipsread): Add declaration.
11088 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11089 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11090 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11091 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11092 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11093 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11094 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11095 * nto-procfs.c (_initialize_procfs): Add declaration.
11096 * objc-lang.c (_initialize_objc_language): Add declaration.
11097 * observable.c (_initialize_observer): Add declaration.
11098 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11099 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11100 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11101 * osabi.c (_initialize_gdb_osabi): Add declaration.
11102 * osdata.c (_initialize_osdata): Add declaration.
11103 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11104 * parse.c (_initialize_parse): Add declaration.
11105 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11106 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11107 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11108 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11109 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11110 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11111 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11112 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11113 * printcmd.c (_initialize_printcmd): Add declaration.
11114 * probe.c (_initialize_probe): Add declaration.
11115 * proc-api.c (_initialize_proc_api): Add declaration.
11116 * proc-events.c (_initialize_proc_events): Add declaration.
11117 * proc-service.c (_initialize_proc_service): Add declaration.
11118 * procfs.c (_initialize_procfs): Add declaration.
11119 * producer.c (_initialize_producer): Add declaration.
11120 * psymtab.c (_initialize_psymtab): Add declaration.
11121 * python/python.c (_initialize_python): Add declaration.
11122 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11123 * record-btrace.c (_initialize_record_btrace): Add declaration.
11124 * record-full.c (_initialize_record_full): Add declaration.
11125 * record.c (_initialize_record): Add declaration.
11126 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11127 * regcache.c (_initialize_regcache): Add declaration.
11128 * reggroups.c (_initialize_reggroup): Add declaration.
11129 * remote-notif.c (_initialize_notif): Add declaration.
11130 * remote-sim.c (_initialize_remote_sim): Add declaration.
11131 * remote.c (_initialize_remote): Add declaration.
11132 * reverse.c (_initialize_reverse): Add declaration.
11133 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11134 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11135 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11136 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11137 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11138 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11139 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11140 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11141 Add declaration.
11142 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11143 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11144 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11145 * rust-exp.y (_initialize_rust_exp): Add declaration.
11146 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11147 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11148 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11149 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11150 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11151 * score-tdep.c (_initialize_score_tdep): Add declaration.
11152 * ser-go32.c (_initialize_ser_dos): Add declaration.
11153 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11154 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11155 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11156 * ser-uds.c (_initialize_ser_socket): Add declaration.
11157 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11158 * serial.c (_initialize_serial): Add declaration.
11159 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11160 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11161 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11162 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11163 * skip.c (_initialize_step_skip): Add declaration.
11164 * sol-thread.c (_initialize_sol_thread): Add declaration.
11165 * solib-aix.c (_initialize_solib_aix): Add declaration.
11166 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11167 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11168 * solib-frv.c (_initialize_frv_solib): Add declaration.
11169 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11170 * solib-target.c (_initialize_solib_target): Add declaration.
11171 * solib.c (_initialize_solib): Add declaration.
11172 * source-cache.c (_initialize_source_cache): Add declaration.
11173 * source.c (_initialize_source): Add declaration.
11174 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11175 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11176 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11177 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11178 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11179 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11180 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11181 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11182 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11183 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11185 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11186 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11187 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11188 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11189 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11190 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11191 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11192 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11193 * stabsread.c (_initialize_stabsread): Add declaration.
11194 * stack.c (_initialize_stack): Add declaration.
11195 * stap-probe.c (_initialize_stap_probe): Add declaration.
11196 * std-regs.c (_initialize_frame_reg): Add declaration.
11197 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11198 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11199 * symfile.c (_initialize_symfile): Add declaration.
11200 * symmisc.c (_initialize_symmisc): Add declaration.
11201 * symtab.c (_initialize_symtab): Add declaration.
11202 * target.c (_initialize_target): Add declaration.
11203 * target-connection.c (_initialize_target_connection): Add
11204 declaration.
11205 * target-dcache.c (_initialize_target_dcache): Add declaration.
11206 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11207 * thread.c (_initialize_thread): Add declaration.
11208 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11209 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11210 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11211 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11212 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11213 * tracectf.c (_initialize_ctf): Add declaration.
11214 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11215 * tracefile.c (_initialize_tracefile): Add declaration.
11216 * tracepoint.c (_initialize_tracepoint): Add declaration.
11217 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11218 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11219 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11220 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11221 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11222 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11223 * tui/tui.c (_initialize_tui): Add declaration.
11224 * typeprint.c (_initialize_typeprint): Add declaration.
11225 * ui-style.c (_initialize_ui_style): Add declaration.
11226 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11227 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11228 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11229 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11230 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11231 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11232 * unittests/filtered_iterator-selftests.c
11233 (_initialize_filtered_iterator_selftests): Add declaration.
11234 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11235 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11236 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11237 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11238 * unittests/main-thread-selftests.c
11239 (_initialize_main_thread_selftests): Add declaration.
11240 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11241 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11242 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11243 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11244 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11245 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11246 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11247 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11248 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11249 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11250 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11251 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11252 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11253 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11254 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11255 declaration.
11256 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11257 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11258 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11259 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11260 * user-regs.c (_initialize_user_regs): Add declaration.
11261 * utils.c (_initialize_utils): Add declaration.
11262 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11263 * valops.c (_initialize_valops): Add declaration.
11264 * valprint.c (_initialize_valprint): Add declaration.
11265 * value.c (_initialize_values): Add declaration.
11266 * varobj.c (_initialize_varobj): Add declaration.
11267 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11268 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11269 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11270 * windows-nat.c (_initialize_windows_nat): Add declaration.
11271 (_initialize_check_for_gdb_ini): Add declaration.
11272 (_initialize_loadable): Add declaration.
11273 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11274 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11275 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11276 * xcoffread.c (_initialize_xcoffread): Add declaration.
11277 * xml-support.c (_initialize_xml_support): Add declaration.
11278 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11279 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11280 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11281 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11282
11283 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11284
11285 * regformats/regdat.sh: Generate declaration for init function.
11286
11287 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11288
11289 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11290 up.
11291 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11292 close_one_inferior>: New methods.
11293 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11294 pass down target to find_inferior_pid.
11295 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11296 Pass down target to find_inferior_ptid.
11297 (gdbsim_target::create_inferior): Pass down target to
11298 add_thread_silent.
11299 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11300 target down to find_inferior_ptid and switch_to_thread.
11301 (gdbsim_target::close): Update to call close_one_inferior.
11302 (struct resume_data): Remove.
11303 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11304 directly, rather than through a void pointer.
11305 (gdbsim_target::resume): Update to call resume_one_inferior.
11306
11307 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11308
11309 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11310
11311 2020-01-12 Pedro Alves <palves@redhat.com>
11312
11313 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11314 directly for the current inferior instead of
11315 discard_all_inferiors.
11316 (discard_all_inferiors): Delete.
11317
11318 2020-01-11 Tom Tromey <tom@tromey.com>
11319
11320 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11321 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11322 deprecated_safe_get_selected_frame.
11323
11324 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11325
11326 * inferior.c (print_inferior): Switch inferior before printing it.
11327
11328 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11329 Pedro Alves <palves@redhat.com>
11330
11331 * progspace-and-thread.c (switch_to_program_space_and_thread):
11332 Assert there's an inferior for PSPACE. Use
11333 switch_to_inferior_no_thread to switch the inferior too.
11334 * progspace.c (program_space::~program_space): Call
11335 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11336 (program_space::free_all_objfiles): Don't call clear_symtab_users
11337 here.
11338 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11339
11340 2020-01-10 Pedro Alves <palves@redhat.com>
11341
11342 * NEWS: Mention multi-target debugging, "info connections", and
11343 "add-inferior -no-connection".
11344
11345 2020-01-10 Pedro Alves <palves@redhat.com>
11346
11347 * infrun.c: Include "target-connection.h".
11348 (check_multi_target_resumption): New.
11349 (proceed): Call it.
11350 * target-connection.c (make_target_connection_string): Make
11351 extern.
11352 * target-connection.h (make_target_connection_string): Declare.
11353
11354 2020-01-10 Pedro Alves <palves@redhat.com>
11355
11356 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11357 * inferior.c (uiout_field_connection): New function.
11358 (print_inferior): Add new "connection-id" column.
11359 (add_inferior_command): Show connection number/string of added
11360 inferior.
11361 * process-stratum-target.h
11362 (process_stratum_target::connection_string): New virtual method.
11363 (process_stratum_target::connection_number): New field.
11364 * remote.c (remote_target::connection_string): New override.
11365 * target-connection.c: New file.
11366 * target-connection.h: New file.
11367 * target.c (decref_target): Remove process_stratum targets from
11368 the connection list.
11369 (target_stack::push): Add process_stratum targets to the
11370 connection list.
11371
11372 2020-01-10 Pedro Alves <palves@redhat.com>
11373
11374 Revert:
11375 2016-04-12 Pedro Alves <palves@redhat.com>
11376 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11377 Remove references to name.
11378 * serial.h (struct serial) <name>: Delete.
11379
11380 2020-01-10 Pedro Alves <palves@redhat.com>
11381
11382 * gdbarch-selftests.c (register_to_value_test): Remove "target
11383 already pushed" check.
11384
11385 2020-01-10 Pedro Alves <palves@redhat.com>
11386 John Baldwin <jhb@FreeBSD.org>
11387
11388 * aarch64-linux-nat.c
11389 (aarch64_linux_nat_target::thread_architecture): Adjust.
11390 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11391 (task_command_1): Likewise.
11392 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11393 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11394 (aix_thread_target::store_registers)
11395 (aix_thread_target::thread_alive): Adjust.
11396 * amd64-fbsd-tdep.c: Include "inferior.h".
11397 (amd64fbsd_get_thread_local_address): Pass down target.
11398 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11399 thread's gdbarch instead of target_gdbarch.
11400 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11401 get_last_target_status.
11402 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11403 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11404 inferiors.
11405 (update_inserted_breakpoint_locations): Skip if inferiors with no
11406 execution.
11407 (update_global_location_list): When handling moribund locations,
11408 find representative inferior for location's pspace, and use thread
11409 count of its process_stratum target.
11410 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11411 * bsd-uthread.c (bsd_uthread_target::wait): Use
11412 as_process_stratum_target and adjust thread_change_ptid and
11413 add_thread calls.
11414 (bsd_uthread_target::update_thread_list): Use
11415 as_process_stratum_target and adjust find_thread_ptid,
11416 thread_change_ptid and add_thread calls.
11417 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11418 find_thread_ptid call.
11419 * corelow.c (add_to_thread_list): Adjust add_thread call.
11420 (core_target_open): Adjust add_thread_silent and thread_count
11421 calls.
11422 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11423 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11424 * event-top.c (async_disconnect): Pop targets from all inferiors.
11425 * exec.c (add_target_sections): Push exec target on all inferiors
11426 sharing the program space.
11427 (remove_target_sections): Remove the exec target from all
11428 inferiors sharing the program space.
11429 (exec_on_vfork): New.
11430 * exec.h (exec_on_vfork): Declare.
11431 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11432 Pass it down.
11433 (fbsd_nat_target::update_thread_list): Adjust.
11434 (fbsd_nat_target::resume): Adjust.
11435 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11436 down.
11437 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11438 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11439 get_thread_arch_regcache call.
11440 * fork-child.c (gdb_startup_inferior): Pass target down to
11441 startup_inferior and set_executing.
11442 * gdbthread.h (struct process_stratum_target): Forward declare.
11443 (add_thread, add_thread_silent, add_thread_with_info)
11444 (in_thread_list): Add process_stratum_target parameter.
11445 (find_thread_ptid(inferior*, ptid_t)): New overload.
11446 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11447 parameter.
11448 (all_threads()): Delete overload.
11449 (all_threads, all_non_exited_threads): Add process_stratum_target
11450 parameter.
11451 (all_threads_safe): Use brace initialization.
11452 (thread_count): Add process_stratum_target parameter.
11453 (set_resumed, set_running, set_stop_requested, set_executing)
11454 (threads_are_executing, finish_thread_state): Add
11455 process_stratum_target parameter.
11456 (switch_to_thread): Use is_current_thread.
11457 * i386-fbsd-tdep.c: Include "inferior.h".
11458 (i386fbsd_get_thread_local_address): Pass down target.
11459 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11460 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11461 have_inferiors check.
11462 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11463 (inf_ptrace_target::attach): Adjust.
11464 * infcall.c (run_inferior_call): Adjust.
11465 * infcmd.c (run_command_1): Pass target to
11466 scoped_finish_thread_state.
11467 (proceed_thread_callback): Skip inferiors with no execution.
11468 (continue_command): Rename 'all_threads' local to avoid hiding
11469 'all_threads' function. Adjust get_last_target_status call.
11470 (prepare_one_step): Adjust set_running call.
11471 (signal_command): Use user_visible_resume_target. Compare thread
11472 pointers instead of inferior_ptid.
11473 (info_program_command): Adjust to pass down target.
11474 (attach_command): Mark target's 'thread_executing' flag.
11475 (stop_current_target_threads_ns): New, factored out from ...
11476 (interrupt_target_1): ... this. Switch inferior before making
11477 target calls.
11478 * inferior-iter.h
11479 (struct all_inferiors_iterator, struct all_inferiors_range)
11480 (struct all_inferiors_safe_range)
11481 (struct all_non_exited_inferiors_range): Filter on
11482 process_stratum_target too. Remove explicit.
11483 * inferior.c (inferior::inferior): Push dummy target on target
11484 stack.
11485 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11486 Add process_stratum_target parameter, and pass it down.
11487 (have_live_inferiors): Adjust.
11488 (switch_to_inferior_and_push_target): New.
11489 (add_inferior_command, clone_inferior_command): Handle
11490 "-no-connection" parameter. Use
11491 switch_to_inferior_and_push_target.
11492 (_initialize_inferior): Mention "-no-connection" option in
11493 the help of "add-inferior" and "clone-inferior" commands.
11494 * inferior.h: Include "process-stratum-target.h".
11495 (interrupt_target_1): Use bool.
11496 (struct inferior) <push_target, unpush_target, target_is_pushed,
11497 find_target_beneath, top_target, process_target, target_at,
11498 m_stack>: New.
11499 (discard_all_inferiors): Delete.
11500 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11501 (all_inferiors, all_non_exited_inferiors): Add
11502 process_stratum_target parameter.
11503 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11504 (target_last_proc_target): New global.
11505 (follow_fork_inferior): Push target on new inferior. Pass target
11506 to add_thread_silent. Call exec_on_vfork. Handle target's
11507 reference count.
11508 (follow_fork): Adjust get_last_target_status call. Also consider
11509 target.
11510 (follow_exec): Push target on new inferior.
11511 (struct execution_control_state) <target>: New field.
11512 (user_visible_resume_target): New.
11513 (do_target_resume): Call target_async.
11514 (resume_1): Set target's threads_executing flag. Consider resume
11515 target.
11516 (commit_resume_all_targets): New.
11517 (proceed): Also consider resume target. Skip threads of inferiors
11518 with no execution. Commit resumtion in all targets.
11519 (start_remote): Pass current inferior to wait_for_inferior.
11520 (infrun_thread_stop_requested): Consider target as well. Pass
11521 thread_info pointer to clear_inline_frame_state instead of ptid.
11522 (infrun_thread_thread_exit): Consider target as well.
11523 (random_pending_event_thread): New inferior parameter. Use it.
11524 (do_target_wait): Rename to ...
11525 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11526 down.
11527 (threads_are_resumed_pending_p, do_target_wait): New.
11528 (prepare_for_detach): Adjust calls.
11529 (wait_for_inferior): New inferior parameter. Handle it. Use
11530 do_target_wait_1 instead of do_target_wait.
11531 (fetch_inferior_event): Adjust. Switch to representative
11532 inferior. Pass target down.
11533 (set_last_target_status): Add process_stratum_target parameter.
11534 Save target in global.
11535 (get_last_target_status): Add process_stratum_target parameter and
11536 handle it.
11537 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11538 (context_switch): Check inferior_ptid == null_ptid before calling
11539 inferior_thread().
11540 (get_inferior_stop_soon): Pass down target.
11541 (wait_one): Rename to ...
11542 (poll_one_curr_target): ... this.
11543 (struct wait_one_event): New.
11544 (wait_one): New.
11545 (stop_all_threads): Adjust.
11546 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11547 event's target.
11548 (switch_back_to_stepped_thread): Also consider target.
11549 (print_stop_event): Update.
11550 (normal_stop): Update. Also consider the resume target.
11551 * infrun.h (wait_for_inferior): Remove declaration.
11552 (user_visible_resume_target): New declaration.
11553 (get_last_target_status, set_last_target_status): New
11554 process_stratum_target parameter.
11555 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11556 process_stratum_target parameter, and use it.
11557 (clear_inline_frame_state (thread_info*)): New.
11558 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11559 process_stratum_target parameter.
11560 (clear_inline_frame_state (thread_info*)): Declare.
11561 * linux-fork.c (delete_checkpoint_command): Pass target down to
11562 find_thread_ptid.
11563 (checkpoint_command): Adjust.
11564 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11565 instead of just tweaking inferior_ptid.
11566 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11567 (exit_lwp): Pass target down to find_thread_ptid.
11568 (attach_proc_task_lwp_callback): Pass target down to
11569 add_thread/set_running/set_executing.
11570 (linux_nat_target::attach): Pass target down to
11571 thread_change_ptid.
11572 (get_detach_signal): Pass target down to find_thread_ptid.
11573 Consider last target status's target.
11574 (linux_resume_one_lwp_throw, resume_lwp)
11575 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11576 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11577 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11578 (linux_nat_target::async_wait_fd): New.
11579 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11580 target down.
11581 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11582 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11583 * linux-thread-db.c (struct thread_db_info::process_target): New
11584 field.
11585 (add_thread_db_info): Save target.
11586 (get_thread_db_info): New process_stratum_target parameter. Also
11587 match target.
11588 (delete_thread_db_info): New process_stratum_target parameter.
11589 Also match target.
11590 (thread_from_lwp): Adjust to pass down target.
11591 (thread_db_notice_clone): Pass down target.
11592 (check_thread_db_callback): Pass down target.
11593 (try_thread_db_load_1): Always push the thread_db target.
11594 (try_thread_db_load, record_thread): Pass target down.
11595 (thread_db_target::detach): Pass target down. Always unpush the
11596 thread_db target.
11597 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11598 target down. Always unpush the thread_db target.
11599 (find_new_threads_callback, thread_db_find_new_threads_2)
11600 (thread_db_target::update_thread_list): Pass target down.
11601 (thread_db_target::pid_to_str): Pass current inferior down.
11602 (thread_db_target::get_thread_local_address): Pass target down.
11603 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11604 target down.
11605 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11606 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11607 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11608 (procfs_init_inferior): Rename to ...
11609 (procfs_target::procfs_init_inferior): ... this and adjust.
11610 (procfs_target::create_inferior, procfs_notice_thread)
11611 (procfs_do_thread_registers): Adjust.
11612 * ppc-fbsd-tdep.c: Include "inferior.h".
11613 (ppcfbsd_get_thread_local_address): Pass down target.
11614 * proc-service.c (ps_xfer_memory): Switch current inferior and
11615 program space as well.
11616 (get_ps_regcache): Pass target down.
11617 * process-stratum-target.c
11618 (process_stratum_target::thread_address_space)
11619 (process_stratum_target::thread_architecture): Pass target down.
11620 * process-stratum-target.h
11621 (process_stratum_target::threads_executing): New field.
11622 (as_process_stratum_target): New.
11623 * ravenscar-thread.c
11624 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11625 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11626 down.
11627 * record-btrace.c (record_btrace_target::info_record): Adjust.
11628 (record_btrace_target::record_method)
11629 (record_btrace_target::record_is_replaying)
11630 (record_btrace_target::fetch_registers)
11631 (get_thread_current_frame_id, record_btrace_target::resume)
11632 (record_btrace_target::wait, record_btrace_target::stop): Pass
11633 target down.
11634 * record-full.c (record_full_wait_1): Switch to event thread.
11635 Pass target down.
11636 * regcache.c (regcache::regcache)
11637 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11638 process_stratum_target parameter and handle it.
11639 (current_thread_target): New global.
11640 (get_thread_regcache): Add process_stratum_target parameter and
11641 handle it. Switch inferior before calling target method.
11642 (get_thread_regcache): Pass target down.
11643 (get_thread_regcache_for_ptid): Pass target down.
11644 (registers_changed_ptid): Add process_stratum_target parameter and
11645 handle it.
11646 (registers_changed_thread, registers_changed): Pass target down.
11647 (test_get_thread_arch_aspace_regcache): New.
11648 (current_regcache_test): Define a couple local test_target_ops
11649 instances and use them for testing.
11650 (readwrite_regcache): Pass process_stratum_target parameter.
11651 (cooked_read_test, cooked_write_test): Pass mock_target down.
11652 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11653 (get_thread_arch_aspace_regcache): Add process_stratum_target
11654 parameter.
11655 (regcache::target): New method.
11656 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11657 (regcache::registers_changed_ptid): Add process_stratum_target
11658 parameter.
11659 (regcache::m_target): New field.
11660 (registers_changed_ptid): Add process_stratum_target parameter.
11661 * remote.c (remote_state::supports_vCont_probed): New field.
11662 (remote_target::async_wait_fd): New method.
11663 (remote_unpush_and_throw): Add remote_target parameter.
11664 (get_current_remote_target): Adjust.
11665 (remote_target::remote_add_inferior): Push target.
11666 (remote_target::remote_add_thread)
11667 (remote_target::remote_notice_new_inferior)
11668 (get_remote_thread_info): Pass target down.
11669 (remote_target::update_thread_list): Skip threads of inferiors
11670 bound to other targets. (remote_target::close): Don't discard
11671 inferiors. (remote_target::add_current_inferior_and_thread)
11672 (remote_target::process_initial_stop_replies)
11673 (remote_target::start_remote)
11674 (remote_target::remote_serial_quit_handler): Pass down target.
11675 (remote_target::remote_unpush_target): New remote_target
11676 parameter. Unpush the target from all inferiors.
11677 (remote_target::remote_unpush_and_throw): New remote_target
11678 parameter. Pass it down.
11679 (remote_target::open_1): Check whether the current inferior has
11680 execution instead of checking whether any inferior is live. Pass
11681 target down.
11682 (remote_target::remote_detach_1): Pass down target. Use
11683 remote_unpush_target.
11684 (extended_remote_target::attach): Pass down target.
11685 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11686 (remote_target::append_resumption): Pass down target.
11687 (remote_target::append_pending_thread_resumptions)
11688 (remote_target::remote_resume_with_hc, remote_target::resume)
11689 (remote_target::commit_resume): Pass down target.
11690 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11691 (remote_target::interrupt_query)
11692 (remote_target::remove_new_fork_children)
11693 (remote_target::check_pending_events_prevent_wildcard_vcont)
11694 (remote_target::remote_parse_stop_reply)
11695 (remote_target::process_stop_reply): Pass down target.
11696 (first_remote_resumed_thread): New remote_target parameter. Pass
11697 it down.
11698 (remote_target::wait_as): Pass down target.
11699 (unpush_and_perror): New remote_target parameter. Pass it down.
11700 (remote_target::readchar, remote_target::remote_serial_write)
11701 (remote_target::getpkt_or_notif_sane_1)
11702 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11703 down target.
11704 (remote_target::mourn_inferior): Pass down target. Use
11705 remote_unpush_target.
11706 (remote_target::core_of_thread)
11707 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11708 (remote_target::pid_to_exec_file)
11709 (remote_target::thread_handle_to_thread_info): Pass down target.
11710 (remote_target::async_wait_fd): New.
11711 * riscv-fbsd-tdep.c: Include "inferior.h".
11712 (riscv_fbsd_get_thread_local_address): Pass down target.
11713 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11714 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11715 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11716 Adjust.
11717 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11718 * solib-svr4.c (enable_break): Pass down target.
11719 * spu-multiarch.c (parse_spufs_run): Pass down target.
11720 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11721 * target-delegates.c: Regenerate.
11722 * target.c (g_target_stack): Delete.
11723 (current_top_target): Return the current inferior's top target.
11724 (target_has_execution_1): Refer to the passed-in inferior's top
11725 target.
11726 (target_supports_terminal_ours): Check whether the initial
11727 inferior was already created.
11728 (decref_target): New.
11729 (target_stack::push): Incref/decref the target.
11730 (push_target, push_target, unpush_target): Adjust.
11731 (target_stack::unpush): Defref target.
11732 (target_is_pushed): Return bool. Adjust to refer to the current
11733 inferior's target stack.
11734 (dispose_inferior): Delete, and inline parts ...
11735 (target_preopen): ... here. Only dispose of the current inferior.
11736 (target_detach): Hold strong target reference while detaching.
11737 Pass target down.
11738 (target_thread_name): Add assertion.
11739 (target_resume): Pass down target.
11740 (target_ops::beneath, find_target_at): Adjust to refer to the
11741 current inferior's target stack.
11742 (get_dummy_target): New.
11743 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11744 has a thread running.
11745 (initialize_targets): Rename to ...
11746 (_initialize_target): ... this.
11747 * target.h: Include "gdbsupport/refcounted-object.h".
11748 (struct target_ops): Inherit refcounted_object.
11749 (target_ops::shortname, target_ops::longname): Make const.
11750 (target_ops::async_wait_fd): New method.
11751 (decref_target): Declare.
11752 (struct target_ops_ref_policy): New.
11753 (target_ops_ref): New typedef.
11754 (get_dummy_target): Declare function.
11755 (target_is_pushed): Return bool.
11756 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11757 (all_matching_threads_iterator::all_matching_threads_iterator):
11758 Handle filter target.
11759 * thread-iter.h (struct all_matching_threads_iterator, struct
11760 all_matching_threads_range, class all_non_exited_threads_range):
11761 Filter by target too. Remove explicit.
11762 * thread.c (threads_executing): Delete.
11763 (inferior_thread): Pass down current inferior.
11764 (clear_thread_inferior_resources): Pass down thread pointer
11765 instead of ptid_t.
11766 (add_thread_silent, add_thread_with_info, add_thread): Add
11767 process_stratum_target parameter. Use it for thread and inferior
11768 searches.
11769 (is_current_thread): New.
11770 (thread_info::deletable): Use it.
11771 (find_thread_ptid, thread_count, in_thread_list)
11772 (thread_change_ptid, set_resumed, set_running): New
11773 process_stratum_target parameter. Pass it down.
11774 (set_executing): New process_stratum_target parameter. Pass it
11775 down. Adjust reference to 'threads_executing'.
11776 (threads_are_executing): New process_stratum_target parameter.
11777 Adjust reference to 'threads_executing'.
11778 (set_stop_requested, finish_thread_state): New
11779 process_stratum_target parameter. Pass it down.
11780 (switch_to_thread): Also match inferior.
11781 (switch_to_thread): New process_stratum_target parameter. Pass it
11782 down.
11783 (update_threads_executing): Reimplement.
11784 * top.c (quit_force): Pop targets from all inferior.
11785 (gdb_init): Don't call initialize_targets.
11786 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11787 Declare.
11788 (windows_add_thread, windows_delete_thread): Adjust.
11789 (get_windows_debug_event): Rename to ...
11790 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11791 * tracefile-tfile.c (tfile_target_open): Pass down target.
11792 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11793 Forward declare.
11794 (switch_to_thread): Add process_stratum_target parameter.
11795 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11796 parameter. Use it.
11797 (mi_on_resume): Pass target down.
11798 * nat/fork-inferior.c (startup_inferior): Add
11799 process_stratum_target parameter. Pass it down.
11800 * nat/fork-inferior.h (startup_inferior): Add
11801 process_stratum_target parameter.
11802 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11803
11804 2020-01-10 Pedro Alves <palves@redhat.com>
11805
11806 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11807 directly. Instead find the first thread in the thread list and
11808 use switch_to_thread.
11809
11810 2020-01-10 Pedro Alves <palves@redhat.com>
11811
11812 * remote.c (remote_target::remote_add_inferior): Don't bind a
11813 process to the current inferior if the current inferior is already
11814 bound to a process.
11815
11816 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11817 Pedro Alves <palves@redhat.com>
11818
11819 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11820 If no process is specified, return null_ptid instead of
11821 inferior_ptid.
11822 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11823 TARGET_WAITKIND_SIGNALLED with no pid.
11824
11825 2020-01-10 Pedro Alves <palves@redhat.com>
11826
11827 * remote.c (first_remote_resumed_thread): New.
11828 (remote_target::wait_as): Use it as default event_ptid instead of
11829 inferior_ptid.
11830
11831 2020-01-10 Pedro Alves <palves@redhat.com>
11832
11833 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11834
11835 2020-01-10 Pedro Alves <palves@redhat.com>
11836
11837 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11838 not -1.
11839
11840 2020-01-10 Pedro Alves <palves@redhat.com>
11841
11842 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11843 ptid to get_last_target_status.
11844 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11845 ptid to get_last_target_status.
11846 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11847 get_last_target_status.
11848 (info_program_command): Don't pass a target_waitstatus to
11849 get_last_target_status.
11850 * infrun.c (init_wait_for_inferior): Use
11851 nullify_last_target_wait_ptid.
11852 (get_last_target_status): Handle nullptr arguments.
11853 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11854 (print_stop_event): Don't pass a ptid to get_last_target_status.
11855 (normal_stop): Don't pass a ptid to get_last_target_status.
11856 * infrun.h (get_last_target_status, set_last_target_status): Move
11857 comments here and update.
11858 (nullify_last_target_wait_ptid): Declare.
11859 * linux-fork.c (fork_load_infrun_state): Remove local extern
11860 declaration of nullify_last_target_wait_ptid.
11861 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11862 to get_last_target_status.
11863
11864 2020-01-10 Pedro Alves <palves@redhat.com>
11865
11866 * gdbthread.h (scoped_restore_current_thread)
11867 <dont_restore, restore, m_dont_restore>: Declare.
11868 * thread.c (thread_alive): Add assertion. Return bool.
11869 (switch_to_thread_if_alive): New.
11870 (prune_threads): Switch inferior/thread.
11871 (print_thread_info_1): Switch thread before calling target methods.
11872 (scoped_restore_current_thread::restore): New, factored out from
11873 ...
11874 (scoped_restore_current_thread::~scoped_restore_current_thread):
11875 ... this.
11876 (scoped_restore_current_thread::scoped_restore_current_thread):
11877 Add assertion.
11878 (thread_apply_all_command, thread_select): Use
11879 switch_to_thread_if_alive.
11880 * infrun.c (proceed, restart_threads, handle_signal_stop)
11881 (switch_back_to_stepped_thread): Switch current thread before
11882 calling target methods.
11883
11884 2020-01-10 Pedro Alves <palves@redhat.com>
11885
11886 * inferior.c (switch_to_inferior_no_thread): New function,
11887 factored out from ...
11888 (inferior_command): ... here.
11889 * inferior.h (switch_to_inferior_no_thread): Declare.
11890 * mi/mi-main.c (run_one_inferior): Use
11891 switch_to_inferior_no_thread.
11892
11893 2020-01-10 Pedro Alves <palves@redhat.com>
11894
11895 * infcmd.c (kill_command): Remove dead code.
11896
11897 2020-01-10 Pedro Alves <palves@redhat.com>
11898
11899 * remote.c (remote_target::mourn_inferior): No longer check
11900 whether the target is running.
11901
11902 2020-01-10 Pedro Alves <palves@redhat.com>
11903
11904 * corelow.c (core_target::has_execution): Change parameter type to
11905 inferior pointer.
11906 * inferior.c (number_of_live_inferiors): Use
11907 inferior::has_execution instead of target_has_execution_1.
11908 * inferior.h (inferior::has_execution): New.
11909 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11910 inferior::has_execution instead of target_has_execution_1.
11911 * process-stratum-target.c
11912 (process_stratum_target::has_execution): Change parameter type to
11913 inferior pointer. Check the inferior's PID instead of
11914 inferior_ptid.
11915 * process-stratum-target.h
11916 (process_stratum_target::has_execution): Change parameter type to
11917 inferior pointer.
11918 * record-full.c (record_full_core_target::has_execution): Change
11919 parameter type to inferior pointer.
11920 * target.c (target_has_execution_1): Change parameter type to
11921 inferior pointer.
11922 (target_has_execution_current): Adjust.
11923 * target.h (target_ops::has_execution): Change parameter type to
11924 inferior pointer.
11925 (target_has_execution_1): Change parameter type to inferior
11926 pointer. Change return type to bool.
11927 * tracefile.h (tracefile_target::has_execution): Change parameter
11928 type to inferior pointer.
11929
11930 2020-01-10 Pedro Alves <palves@redhat.com>
11931
11932 * exceptions.c (print_flush): Remove current_top_target() check.
11933
11934 2020-01-10 Pedro Alves <palves@redhat.com>
11935
11936 * remote.c (show_remote_exec_file): Show the current inferior's
11937 exec-file instead of the command variable's value.
11938
11939 2020-01-10 Pedro Alves <palves@redhat.com>
11940
11941 * record-full.c (record_full_resume_ptid): New global.
11942 (record_full_target::resume): Set it.
11943 (record_full_wait_1): Use record_full_resume_ptid instead of
11944 inferior_ptid.
11945
11946 2020-01-10 Pedro Alves <palves@redhat.com>
11947
11948 * gdbthread.h (scoped_restore_current_thread)
11949 <dont_restore, restore, m_dont_restore>: Declare.
11950 * thread.c (thread_alive): Add assertion. Return bool.
11951 (switch_to_thread_if_alive): New.
11952 (prune_threads): Switch inferior/thread.
11953 (print_thread_info_1): Switch thread before calling target methods.
11954 (scoped_restore_current_thread::restore): New, factored out from
11955 ...
11956 (scoped_restore_current_thread::~scoped_restore_current_thread):
11957 ... this.
11958 (scoped_restore_current_thread::scoped_restore_current_thread):
11959 Add assertion.
11960 (thread_apply_all_command, thread_select): Use
11961 switch_to_thread_if_alive.
11962
11963 2020-01-10 George Barrett <bob@bob131.so>
11964
11965 * stap-probe.c (stap_modify_semaphore): Don't check for null
11966 semaphores.
11967 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11968 for null semaphores.
11969
11970 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11971
11972 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11973 all source windows, and maintain horizontal scroll status while
11974 doing so.
11975
11976 2020-01-09 Tom Tromey <tom@tromey.com>
11977
11978 PR tui/18932:
11979 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11980 update_source_window, not print_source_lines.
11981
11982 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11983
11984 * tui/tui.c (tui_enable): Register tui hooks after calling
11985 tui_display_main.
11986
11987 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11988
11989 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11990
11991 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11992
11993 * thread.c (print_thread_info_1): Fix indentation.
11994
11995 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11996
11997 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11998 unique_xmalloc_ptr outside the if to always free the demangled name.
11999
12000 2020-01-08 Tom Tromey <tromey@adacore.com>
12001
12002 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12003 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12004 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12005 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12006 Remove.
12007 (section_offsets): New typedef.
12008 * symtab.c (fixup_section, get_msymbol_address): Update.
12009 * symmisc.c (dump_msymbols): Update.
12010 * symfile.h (relative_addr_info_to_section_offsets)
12011 (symfile_map_offsets_to_segments): Update.
12012 * symfile.c (build_section_addr_info_from_objfile)
12013 (init_objfile_sect_indices): Update.
12014 (struct place_section_arg): Change type of "offsets".
12015 (place_section): Update.
12016 (relative_addr_info_to_section_offsets): Change type of
12017 "section_offsets". Remove "num_sections" parameter.
12018 (default_symfile_offsets, syms_from_objfile_1)
12019 (set_objfile_default_section_offset): Update.
12020 (reread_symbols): No need to preserve section offsets by hand.
12021 (symfile_map_offsets_to_segments): Change type of "offsets".
12022 * stap-probe.c (relocate_address): Update.
12023 * stabsread.h (process_one_symbol): Update.
12024 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12025 (solib_target_relocate_section_addresses): Update.
12026 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12027 Update.
12028 * solib-frv.c (frv_relocate_main_executable): Update.
12029 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12030 * solib-aix.c (solib_aix_get_section_offsets): Change return
12031 type.
12032 (solib_aix_solib_create_inferior_hook): Update.
12033 * remote.c (remote_target::get_offsets): Update.
12034 * psymtab.c (find_pc_sect_psymtab): Update.
12035 * psympriv.h (struct partial_symbol) <address, text_low,
12036 text_high>: Update.
12037 * objfiles.h (obj_section_offset): Update.
12038 (struct objfile) <section_offsets>: Change type.
12039 <num_sections>: Remove.
12040 (objfile_relocate): Update.
12041 * objfiles.c (entry_point_address_query): Update
12042 (relocate_one_symbol): Change type of "section_offsets".
12043 (objfile_relocate1, objfile_relocate1): Change type of
12044 "new_offsets".
12045 (objfile_rebase1): Update.
12046 * mipsread.c (mipscoff_symfile_read): Update.
12047 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12048 parameter.
12049 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12050 (parse_external, psymtab_to_symtab_1): Update.
12051 * machoread.c (macho_symfile_offsets): Update.
12052 * ia64-tdep.c (ia64_find_unwind_table): Update.
12053 * hppa-tdep.c (read_unwind_info): Update.
12054 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12055 * dwarf2read.c (create_addrmap_from_index)
12056 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12057 (process_psymtab_comp_unit_reader, add_partial_symbol)
12058 (add_partial_subprogram, process_full_comp_unit)
12059 (read_file_scope, read_func_scope, read_lexical_block_scope)
12060 (read_call_site_scope, dwarf2_rnglists_process)
12061 (dwarf2_ranges_process, dwarf2_ranges_read)
12062 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12063 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12064 Update.
12065 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12066 Update.
12067 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12068 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12069 (process_one_symbol): Change type of "section_offsets".
12070 * ctfread.c (get_objfile_text_range): Update.
12071 * coffread.c (coff_symtab_read, enter_linenos)
12072 (process_coff_symbol): Update.
12073 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12074 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12075
12076 2020-01-08 Tom Tromey <tromey@adacore.com>
12077
12078 * dwarf2read.c (parse_macro_definition): Use std::string.
12079 (parse_macro_definition): Likewise.
12080
12081 2020-01-08 Tom Tromey <tromey@adacore.com>
12082
12083 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12084 (ATTR_ALLOC_CHUNK): Remove.
12085
12086 2020-01-08 Tom Tromey <tromey@adacore.com>
12087
12088 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12089
12090 2020-01-08 Tom Tromey <tromey@adacore.com>
12091
12092 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12093 (dwarf2_compute_name, open_dwo_file): Likewise.
12094 (process_enumeration_scope): Use std::vector.
12095 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12096 (partial_die_info::fixup, dwarf2_start_subfile)
12097 (guess_full_die_structure_name, dwarf2_name): Likewise.
12098 (determine_prefix): Update.
12099 (guess_full_die_structure_name): Make return type const.
12100 (partial_die_full_name): Return unique_xmalloc_ptr.
12101 (DW_FIELD_ALLOC_CHUNK): Remove.
12102
12103 2020-01-07 Tom Tromey <tromey@adacore.com>
12104
12105 PR build/24937:
12106 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12107
12108 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12109
12110 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12111
12112 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12113
12114 * stack.c (print_frame_info): Move disassemble_next_line code
12115 inside source_print block.
12116
12117 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12118
12119 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12120 gdb/signals.h, as we are now using native signal symbols.
12121
12122 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12123
12124 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12125 overflow by an early check of content vs threshold.
12126 * tui/tui-source.c (tui_source_window::line_is_displayed):
12127 Likewise.
12128
12129 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12130
12131 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12132
12133 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12134
12135 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12136 export table if no section contains it's RVA.
12137
12138 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12139
12140 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12141
12142 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12143
12144 * source.c (print_source_lines_base): Set last_line_listed.
12145
12146 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12147
12148 * tui/tui-disasm.c: Remove trailing spaces.
12149
12150 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12151 Pedro Alves <palves@redhat.com>
12152
12153 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12154 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12155 (windows_gdb_signal_to_target): New function, uses the above
12156 enumeration to convert GDB internal signal codes to equivalent
12157 Windows codes.
12158 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12159 * windows-nat.c: Include "gdb_wait.h".
12160 (get_windows_debug_event): Extract the fatal exception from the
12161 exit status and convert to the equivalent Posix signal number.
12162 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12163 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12164 * gdbsupport/gdb_wait.c: New file, implements
12165 windows_status_to_termsig.
12166 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12167 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12168
12169 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12172 show_layout.
12173
12174 2020-01-05 Luis Machado <luis.machado@linaro.org>
12175
12176 * aarch64-linux-nat.c
12177 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12178 and bfd_mach_aarch64.
12179
12180 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12181
12182 * ui-file.c (stdio_file::can_emit_style_escape)
12183 (tee_file::can_emit_style_escape): Ensure style is used also on
12184 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12185 to gdb_stdout.
12186 * main.c (set_gdb_data_directory): Use file style to output the
12187 warning that the given pathname is not a directory.
12188 * top.c (show_history_filename, gdb_safe_append_history)
12189 (show_gdb_datadir): Use file style.
12190
12191 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12192
12193 * solib-target.c (struct lm_info_target):
12194 Change offsets to be a unique_xmalloc_ptr.
12195 (solib_target_relocate_section_addresses): Update.
12196
12197 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12198
12199 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12200
12201 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12202
12203 * MAINTAINERS (Write After Approval): Add myself.
12204
12205 2020-01-02 Luis Machado <luis.machado@linaro.org>
12206
12207 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12208 Cell BE architecture.
12209 * target.h (struct target_ops) <thread_architecture>: Likewise.
12210
12211 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12212
12213 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12214
12215 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12216
12217 * MAINTAINERS (Write After Approval): Add myself.
12218
12219 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12220
12221 * gdbarch.sh: Update copyright year range of generated files.
12222
12223 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12224
12225 Update copyright year range in all GDB files.
12226
12227 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12228
12229 * copyright.py: Convert to Python 3.
12230
12231 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12232
12233 * copyright.py: Adapt after move of gnulib directory from gdb
12234 directory to toplevel directory.
12235
12236 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12237
12238 * copyright.py (main): Exit if run from the wrong directory.
12239
12240 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12241
12242 * top.c (print_gdb_version): Change copyright year to 2020.
12243
12244 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12245
12246 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12247
12248 For older changes see ChangeLog-2019.
12249 \f
12250 Local Variables:
12251 mode: change-log
12252 left-margin: 8
12253 fill-column: 74
12254 version-control: never
12255 coding: utf-8
12256 End:
This page took 0.332919 seconds and 4 git commands to generate.