gdb: split regcaches management selftest
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * regcache.c (regcache_count): New.
4 (struct regcache_test_data): New.
5 (regcache_test_data_up): New.
6 (populate_regcaches_for_test): New.
7 (regcaches_test): Remove.
8 (get_thread_arch_aspace_regcache_test): New.
9 (registers_changed_ptid_all_test): New.
10 (registers_changed_ptid_target_test): New.
11 (registers_changed_ptid_target_ptid_test): New.
12 (regcache_thread_ptid_changed): Remove regcache_count lambda.
13 (_initialize_regcache): Register new tests.
14
15 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
18 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
19 gdbarch and aspace parameter. Use current inferior's aspace.
20 Validate regcache's arch value.
21 (regcaches_test): Update.
22
23 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * regcache.c (regcaches_test): Call registers_changed.
26
27 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28
29 * infrun.c (process_event_stop_test): Fix typo "breapoint".
30
31 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
32
33 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
34 to find the end of prologue for flang compiled binaries.
35 * arm-tdep.c (arm_skip_prologue): Likewise.
36 * i386-tdep.c (i386_skip_prologue): Likewise.
37 * producer.c (producer_is_llvm): New function.
38 (producer_parsing_tests): Added new tests for clang/flang.
39 * producer.h (producer_is_llvm): New declaration.
40
41 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
42
43 * linux-nat.c (linux_nat_debug_printf): New function.
44 (linux_nat_debug_printf_1): New macro. Use throughout the file.
45
46 2020-08-18 Aaron Merey <amerey@redhat.com>
47
48 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
49 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
50 (CLIBS): Add DEBUGINFOD_LIBS.
51
52 2020-08-17 Sergei Trofimovich <siarheit@google.com>
53
54 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
55 'gdbarch_num_regs'.
56
57 2020-08-17 Tom Tromey <tromey@adacore.com>
58
59 * ada-varobj.c (ada_varobj_decode_var): Handle case where
60 ada_get_decoded_value returns NULL.
61
62 2020-08-17 Tom Tromey <tromey@adacore.com>
63
64 * python/py-inferior.c (infpy_search_memory): Use
65 gdb_py_object_from_ulongest.
66 * python/py-infevents.c (create_inferior_call_event_object)
67 (create_memory_changed_event_object): Use
68 gdb_py_object_from_ulongest.
69 * python/py-linetable.c (ltpy_entry_get_pc): Use
70 gdb_py_object_from_ulongest.
71
72 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * loc.c (class symbol_needs_eval_context): Fix indentation.
75
76 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
79 bool.
80
81 2020-08-17 Tom de Vries <tdevries@suse.de>
82
83 PR gdb/26393
84 * gdbtypes.c (dump_dynamic_prop): New function.
85 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
86
87 2020-08-15 Tom de Vries <tdevries@suse.de>
88
89 PR backtrace/26390
90 * stack.c (print_frame_args): Temporarily set the selected
91 frame to FRAME while printing the frame's arguments.
92
93 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
94
95 PR breakpoints/26385
96 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
97 Always clear watchpoint with PTRACE_SET_DEBUGREG.
98
99 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
100
101 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
102 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
103 and >= to check return value instead of == -1 and != -1.
104
105 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * utils.h (class gdb_argv) <as_array_view>: New method.
108 * utils.c (gdb_argv_as_array_view_test): New.
109 (_initialize_utils): Register selftest.
110 * maint.c (maintenance_selftest): Use the new method.
111
112 2020-08-13 Kamil Rytarowski <n54@gmx.com>
113
114 * target.h (supports_dumpcore, dumpcore): New
115 function declarations.
116 * target.c (supports_dumpcore, dumpcore): New
117 functions.
118 * target-delegates.c: Rebuild.
119 * gcore.c (gcore_command): Use target_supports_dumpcore ()
120 and target_dumpcore ().
121
122 2020-08-13 Aaron Merey <amerey@redhat.com>
123
124 * debuginfod-support.c: Replace global variables with user_data.
125
126 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * maint.c (maintenance_selftest): Split args and pass array_view
129 to run_tests.
130
131 2020-08-12 Luis Machado <luis.machado@linaro.org>
132
133 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
134 type's length.
135 Use %s and pulongest to print the length.
136
137 2020-08-12 Pedro Alves <palves@redhat.com>
138
139 * NEWS: Move "Multi-target debugging support" item to the
140 "Changes since GDB 9" section.
141
142 2020-08-12 Pedro Alves <palves@redhat.com>
143
144 PR gdb/26336
145 * progspace.c (program_space::remove_objfile): Invalidate the
146 frame cache.
147
148 2020-08-11 Tom de Vries <tdevries@suse.de>
149
150 * MAINTAINERS: Mark ms1 as deleted.
151
152 2020-08-10 Luis Machado <luis.machado@linaro.org>
153
154 PR gdb/26310
155
156 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
157 act accordingly.
158 (aarch64_analyze_prologue_test): Add more unit tests to exercise
159 movz/str/stur/stp skipping behavior.
160
161 2020-08-10 Luis Machado <luis.machado@linaro.org>
162
163 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
164 struct user_sve_header instead of struct sve_context.
165
166 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * read.h (dwarf2_fetch_die_loc_sect_off,
169 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
170 `void *` parameter with function_view.
171 * read.c (dwarf2_fetch_die_loc_sect_off,
172 dwarf2_fetch_die_loc_cu_off): Likewise.
173 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
174 (per_cu_dwarf_call): Adjust.
175 (get_frame_address_in_block_wrapper): Remove.
176 (indirect_synthetic_pointer): Adjust.
177 (get_ax_pc): Remove.
178 (dwarf2_compile_expr_to_ax): Adjust.
179
180 2020-08-08 Tom de Vries <tdevries@suse.de>
181
182 PR build/26344
183 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
184 constructor.
185 * regcache.c (get_thread_arch_aspace_regcache): Same.
186
187 2020-08-07 Tom Tromey <tromey@adacore.com>
188
189 * ravenscar-thread.c
190 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
191 New method.
192 (ravenscar_thread_target::wait): Check
193 runtime_initialized.
194 (ravenscar_thread_target::prepare_to_store)
195 (ravenscar_thread_target::stopped_by_sw_breakpoint)
196 (ravenscar_thread_target::stopped_by_hw_breakpoint)
197 (ravenscar_thread_target::stopped_by_watchpoint)
198 (ravenscar_thread_target::stopped_data_address)
199 (ravenscar_thread_target::core_of_thread): Use
200 scoped_restore_current_thread and
201 set_base_thread_from_ravenscar_task.
202
203 2020-08-07 Tom Tromey <tromey@adacore.com>
204
205 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
206
207 2020-08-07 Tom Tromey <tromey@adacore.com>
208
209 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
210 update_inferior_ptid before update_thread_list.
211 (temporarily_change_regcache_ptid): New class.
212 (ravenscar_thread_target::fetch_registers)
213 (ravenscar_thread_target::store_registers)
214 (ravenscar_thread_target::prepare_to_store): Use base thread when
215 forwarding operation.
216
217 2020-08-07 Tom Tromey <tromey@adacore.com>
218
219 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
220 "is_pid" case.
221
222 2020-08-07 Tom Tromey <tromey@adacore.com>
223
224 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
225 New methods.
226 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
227 first.
228 (ravenscar_thread_target::add_thread): Rename from
229 ravenscar_add_thread.
230 (ravenscar_thread_target::update_thread_list): Use a lambda.
231 (ravenscar_thread_target::xfer_partial): New method.
232
233 2020-08-07 Tom Tromey <tromey@adacore.com>
234
235 * ada-lang.h (ada_task_list_iterator_ftype): Now a
236 gdb::function_view.
237 (iterate_over_live_ada_tasks): Change type of argument.
238 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
239 of argument.
240
241 2020-08-07 Tom Tromey <tromey@adacore.com>
242
243 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
244 Remove.
245 (ravenscar_thread_target::extra_thread_info): Remove.
246 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
247 defer to target beneath for non-Ravenscar threads.
248
249 2020-08-07 Tom Tromey <tromey@adacore.com>
250
251 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
252 get_base_thread_from_ravenscar_task>: Now methods.
253 <m_cpu_map>: New member.
254 (ravenscar_thread_target::get_thread_base_cpu): Rename from
255 ravenscar_get_thread_base_cpu. Check m_cpu_map.
256 (ravenscar_thread_target::task_is_currently_active): Update.
257 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
258 Now a method.
259 (ravenscar_thread_target::add_active_thread): Put initial thread
260 into the m_cpu_map.
261
262 2020-08-07 Tom Tromey <tromey@adacore.com>
263
264 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
265 event_ptid.
266
267 2020-08-07 Tom Tromey <tromey@adacore.com>
268
269 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
270 runtime_initialized.
271
272 2020-08-07 Tom Tromey <tromey@adacore.com>
273
274 * ravenscar-thread.c (ravenscar_thread_target): Don't call
275 add_active_thread.
276 (ravenscar_thread_target::add_active_thread): Now public.
277 (ravenscar_inferior_created): Call add_active_thread after pushing
278 the target.
279
280 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * regcache.c (ptid_regcache_map): New type.
283 (target_ptid_regcache_map): New type.
284 (regcaches): Change type to target_ptid_regcache_map.
285 (get_thread_arch_aspace_regcache): Update to regcaches' new
286 type.
287 (regcache_thread_ptid_changed): Likewise.
288 (registers_changed_ptid): Likewise.
289 (regcaches_size): Likewise.
290 (regcaches_test): Update.
291 (regcache_thread_ptid_changed): Update.
292 * regcache.h (regcache_up): New type.
293 * gdbsupport/ptid.h (hash_ptid): New struct.
294
295 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
296
297 * observable.h (thread_ptid_changed): Add parameter
298 `process_stratum_target *`.
299 * infrun.c (infrun_thread_ptid_changed): Add parameter
300 `process_stratum_target *` and use it.
301 (selftests): New namespace.
302 (infrun_thread_ptid_changed): New function.
303 (_initialize_infrun): Register selftest.
304 * regcache.c (regcache_thread_ptid_changed): Add parameter
305 `process_stratum_target *` and use it.
306 (regcache_thread_ptid_changed): New function.
307 (_initialize_regcache): Register selftest.
308 * thread.c (thread_change_ptid): Pass target to
309 thread_ptid_changed observable.
310
311 2020-08-06 Caroline Tice <cmtice@google.com>
312
313 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
314 (struct dwp_sections): Update field comments. Add loclists and
315 rnglists fields.
316 (struct virtual_v2_dwo_sections): Rename struct to
317 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
318 size & offset fields for loclists and rnglists.
319 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
320 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
321 skipping dummy type units.
322 (create_dwp_hash_table): Update the large comment above the function to
323 discuss Version 5 DWP files as well, with references. Update all the
324 version checks in the function to check for version 5 as well. Add new
325 section at the end to create dwp hash table for version 5.
326 (create_dwp_v2_section): Rename function to
327 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
328 Add V5 to error message text.
329 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
330 into calls to create_dwp_v2_or_v5_section.
331 (create_dwo_unit_in_dwp_v5): New function.
332 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
333 check for version2; add else clause to handle version 5.
334 (open_and_init_dwo_file): Add code to check dwarf version & only call
335 create_debug_types_hash_table (with sections.types) if version is not 5;
336 else call create_debug_type_hash_table, with sections.info.
337 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
338 version 5.
339 (dwarf2_locate_v5_dwp_sections): New function.
340 (open_and_init_dwp_file): Add else-if clause for version 5 to call
341 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
342
343 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
344
345 * regcache.h (class regcache): Remove friend
346 registers_changed_ptid.
347 <regcache_thread_ptid_changed>: Remove.
348 <regcaches>: Remove.
349 * regcache.c (regcache::regcaches): Rename to...
350 (regcaches): ... this. Make static.
351 (get_thread_arch_aspace_regcache): Update.
352 (regcache::regcache_thread_ptid_changed): Rename to...
353 (regcache_thread_ptid_changed): ... this. Update.
354 (class regcache_access): Remove.
355 (regcaches_test): Update.
356 (_initialize_regcache): Update.
357 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
358 <forward_list>.
359
360 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
361
362 * regcache.h (class regcache) <current_regcache>: Rename to...
363 <regcaches>: ... this. Move doc here.
364 * regcache.c (regcache::current_regcache) Rename to...
365 (regcache::regcaches): ... this. Move doc to header.
366 (get_thread_arch_aspace_regcache): Update.
367 (regcache::regcache_thread_ptid_changed): Update.
368 (registers_changed_ptid): Update.
369 (class regcache_access) <current_regcache_size>: Rename to...
370 <regcaches_size>: ... this.
371 (current_regcache_test): Rename to...
372 (regcaches_test): ... this.
373 (_initialize_regcache): Update.
374
375 2020-08-06 Victor Collod <vcollod@nvidia.com>
376
377 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
378
379 2020-08-05 Kevin Buettner <kevinb@redhat.com>
380
381 * corelow.c (core_target::build_file_mappings): Don't output
382 null pathname in warning.
383
384 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
387 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
388 gdb.dwarf2/dw2-single-line-discriminators.exp,
389 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
390
391 2020-08-05 Tom Tromey <tromey@adacore.com>
392
393 PR rust/26197:
394 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
395 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
396 Fix off-by-one and type size errors in ordinary case.
397
398 2020-08-05 Tom de Vries <tdevries@suse.de>
399
400 * gdbtypes.c (type_not_allocated, type_not_associated): Use
401 "prop->const_val () == 0" instead of "prop->const_val () != 0".
402
403 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
404
405 * frame.h (frame_id_p): Return bool.
406 (frame_id_artificial_p): Return bool.
407 (frame_id_eq): Return bool.
408 (has_stack_frames): Return bool.
409 (get_selected_frame): Fix typo in comment.
410 (get_frame_pc_if_available): Return bool.
411 (get_frame_address_in_block_if_available): Return bool.
412 (get_frame_func_if_available): Return bool.
413 (read_frame_register_unsigned): Return bool.
414 (get_frame_register_bytes): Return bool.
415 (safe_frame_unwind_memory): Return bool.
416 (deprecated_frame_register_read): Return bool.
417 (frame_unwinder_is): Return bool.
418 * frame.c (struct frame_info) <prev_arch::p>: Change type to
419 bool.
420 <this_id::p>: Likewise.
421 <prev_p>: Likewise.
422 (frame_stash_add): Return bool.
423 (get_frame_id): Use bool.
424 (frame_id_build_special) Use bool.
425 (frame_id_build_unavailable_stack): Use bool.
426 (frame_id_build): Use bool.
427 (frame_id_p): Return bool, use true/false instead of 1/0.
428 (frame_id_artificial_p): Likewise.
429 (frame_id_eq): Likewise.
430 (frame_id_inner): Likewise.
431 (get_frame_func_if_available): Likewise.
432 (read_frame_register_unsigned): Likewise.
433 (deprecated_frame_register_read): Likewise.
434 (get_frame_register_bytes): Likewise.
435 (has_stack_frames): Likewise.
436 (inside_main_func): Likewise.
437 (inside_entry_func): Likewise.
438 (get_frame_pc_if_available): Likewise.
439 (get_frame_address_in_block_if_available): Likewise.
440 (frame_unwinder_is): Likewise.
441 (safe_frame_unwind_memory): Likewise.
442 (frame_unwind_arch): Likewise.
443
444 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
445
446 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
447 type to cached_copy_status.
448 (fprintf_frame): Adjust.
449 (get_frame_func_if_available): Adjust.
450 (frame_cleanup_after_sniffer): Adjust.
451
452 2020-08-04 Mark Wielaard <mark@klomp.org>
453
454 * MAINTAINERS (Write After Approval): Update email address.
455
456 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
459 dynamic_prop::const_val.
460
461 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
464 dynamic_prop::kind.
465
466 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
469
470 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
471
472 * configure.tgt: Set gdb_sim for bpf-*-* targets.
473
474 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
475 Jose E. Marchesi <jose.marchesi@oracle.com>
476
477 * configure.tgt: Add entry for bpf-*-*.
478 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
479 (ALLDEPFILES): Add bpf-tdep.c.
480 * bpf-tdep.c: New file.
481 * MAINTAINERS: Add bpf target and maintainer.
482 * NEWS: Mention the support for the new target.
483
484 2020-08-04 Tom de Vries <tdevries@suse.de>
485
486 PR symtab/23270
487 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
488 Error.
489
490 2020-08-03 John Baldwin <jhb@FreeBSD.org>
491
492 * syscalls/freebsd.xml: Regenerate.
493
494 2020-08-03 John Baldwin <jhb@FreeBSD.org>
495
496 * syscalls/update-freebsd.sh: Fix usage and year range.
497
498 2020-08-03 Tom de Vries <tdevries@suse.de>
499
500 PR symtab/26333
501 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
502 DW_LNE_lo_user/DW_LNE_hi_user range.
503
504 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
505
506 PR ada/26318
507 * ada-lang.c (ada_modulus): Return 0 if property is not of const
508 kind.
509
510 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
511
512 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
513
514 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515
516 * breakpoint.c (set_breakpoint_condition): Update the condition
517 expressions after checking that the input condition string parses
518 successfully and does not contain junk at the end.
519
520 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
521
522 * breakpoint.c (set_breakpoint_condition): Update the
523 condition string after parsing the new condition successfully.
524
525 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526
527 * proc-api.c (_STRUCTURED_PROC): Don't define.
528 * proc-events.c: Likewise.
529 * proc-flags.c: Likewise.
530 * proc-why.c: Likewise.
531 * procfs.c: Likewise.
532
533 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
534 * configure, config.in: Regenerate.
535
536 2020-07-30 Tom de Vries <tdevries@suse.de>
537
538 PR build/26320
539 * ui-style.h (struct ui_file_style::color): Wrap m_value and
540 m_red/m_green/m_blue in a union.
541
542 2020-07-29 Tom de Vries <tdevries@suse.de>
543
544 PR tdep/26280
545 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
546
547 2020-07-28 Tom Tromey <tromey@adacore.com>
548
549 PR symtab/26270:
550 * symtab.h (find_pc_partial_function_sym): Declare.
551 * cli/cli-cmds.c (disassemble_command): Use
552 find_pc_partial_function_sym. Check asm_demangle.
553 * blockframe.c (cache_pc_function_sym): New global.
554 (cache_pc_function_name): Remove.
555 (clear_pc_function_cache): Update.
556 (find_pc_partial_function_sym): New function, from
557 find_pc_partial_function.
558 (find_pc_partial_function): Rewrite using
559 find_pc_partial_function_sym.
560
561 2020-07-28 Tom Tromey <tromey@adacore.com>
562
563 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
564 help. Add usage.
565
566 2020-07-28 Tom Tromey <tromey@adacore.com>
567
568 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
569 <DW_OP_GNU_variable_value>: Cast to address type.
570
571 2020-07-28 Kamil Rytarowski <n54@gmx.com>
572
573 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
574 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
575 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
576 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
577 (nbsd_get_siginfo_type): New.
578 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
579 (_initialize_nbsd_tdep): New.
580
581 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
582
583 PR binutils/26301
584 * configure: Regenerated.
585
586 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
587
588 PR binutils/26301
589 * configure: Regenerated.
590
591 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * python/py-frame.c: Remove 'user-regs.h' include.
594 (frapy_read_register): Rewrite to make use of
595 gdbpy_parse_register_id.
596 * python/py-registers.c (gdbpy_parse_register_id): New function,
597 moved here from python/py-unwind.c. Updated the return type, and
598 also accepts register descriptor objects.
599 * python/py-unwind.c: Remove 'user-regs.h' include.
600 (pyuw_parse_register_id): Moved to python/py-registers.c.
601 (unwind_infopy_add_saved_register): Update to use
602 gdbpy_parse_register_id.
603 (pending_framepy_read_register): Likewise.
604 * python/python-internal.h (gdbpy_parse_register_id): Declare.
605
606 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * python/py-registers.c: Add 'user-regs.h' include.
609 (register_descriptor_iter_find): New function.
610 (register_descriptor_iterator_object_methods): New static global
611 methods array.
612 (register_descriptor_iterator_object_type): Add pointer to methods
613 array.
614
615 2020-07-27 John Baldwin <jhb@FreeBSD.org>
616
617 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
618 for all architectures on FreeBSD 11.3 and later.
619
620 2020-07-27 Tom Tromey <tromey@adacore.com>
621
622 * gcore.h (load_corefile): Don't declare.
623
624 2020-07-27 Tom de Vries <tdevries@suse.de>
625
626 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
627 * config.in: Regenerate.
628 * configure: Regenerate.
629
630 2020-07-26 Eli Zaretskii <eliz@gnu.org>
631
632 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
633 ws2tcpip.h. When checking whether socklen_t type is defined, use
634 ws2tcpip.h if it is available and sys/socket.h isn't.
635 * configure: Regenerate.
636 * config.in: Regenerate.
637
638 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 PR fortran/23051
641 PR fortran/26139
642 * valops.c (value_ind): Pass address to
643 readjust_indirect_value_type.
644 * value.c (readjust_indirect_value_type): Make parameter
645 non-const, and add extra address parameter. Resolve original type
646 before using it.
647 * value.h (readjust_indirect_value_type): Update function
648 signature and comment.
649
650 2020-07-25 Tom de Vries <tdevries@suse.de>
651
652 PR symtab/26243
653 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
654 entries.
655
656 2020-07-24 Aaron Merey <amerey@redhat.com>
657
658 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
659 * configure: Rebuild.
660
661 2020-07-23 Kevin Buettner <kevinb@redhat.com>
662
663 PR corefiles/26294
664 * corelow.c (_initialize_corelow): Add period to help text
665 for "maintenance print core-file-backed-mappings".
666
667 2020-07-23 Pedro Alves <pedro@palves.net>
668
669 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
670 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
671 meanwhile.
672 * frame.c (frame_cache_generation, get_frame_cache_generation):
673 New.
674 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
675 (get_prev_frame_if_no_cycle): On exception, don't touch
676 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
677 * frame.h (get_frame_cache_generation): Declare.
678
679 2020-07-23 Tom de Vries <tdevries@suse.de>
680
681 PR tui/26282
682 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
683 New default constructor.
684
685 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
688 exclude non-statement entries.
689
690 2020-07-22 Kevin Buettner <kevinb@redhat.com>
691
692 * NEWS (New commands): Mention new command
693 "maintenance print core-file-backed-mappings".
694
695 2020-07-22 Kevin Buettner <kevinb@redhat.com>
696
697 * corelow.c (gdbcmd.h): Include.
698 (core_target::info_proc_mappings): New method.
699 (get_current_core_target): New function.
700 (maintenance_print_core_file_backed_mappings): New function.
701 (_initialize_corelow): Add core-file-backed-mappings to
702 "maint print" commands.
703
704 2020-07-22 Kevin Buettner <kevinb@redhat.com>
705
706 * linux-tdep.c (dump_note_entry_p): New function.
707 (linux_dump_mapping_p_ftype): New typedef.
708 (linux_find_memory_regions_full): Add new parameter,
709 should_dump_mapping_p.
710 (linux_find_memory_regions): Adjust call to
711 linux_find_memory_regions_full.
712 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
713 call to linux_find_memory_regions_full.
714
715 2020-07-22 Kevin Buettner <kevinb@redhat.com>
716
717 * corelow.c (solist.h, unordered_map): Include.
718 (class core_target): Add field m_core_file_mappings and
719 method build_file_mappings.
720 (core_target::core_target): Call build_file_mappings.
721 (core_target::~core_target): Free memory associated with
722 m_core_file_mappings.
723 (core_target::build_file_mappings): New method.
724 (core_target::xfer_partial): Use m_core_file_mappings
725 for memory transfers.
726 * linux-tdep.c (linux_read_core_file_mappings): New
727 function.
728 (linux_core_info_proc_mappings): Rewrite to use
729 linux_read_core_file_mappings.
730 (linux_init_abi): Register linux_read_core_file_mappings.
731
732 2020-07-22 Kevin Buettner <kevinb@redhat.com>
733
734 * arch-utils.c (default_read_core_file_mappings): New function.
735 * arch-utils.c (default_read_core_file_mappings): Declare.
736 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
737 * gdbarch.h, gdbarch.c: Regenerate.
738
739 2020-07-22 Kevin Buettner <kevinb@redhat.com>
740
741 PR corefiles/25631
742 * corelow.c (core_target:xfer_partial): Revise
743 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
744 case after first checking the stratum beneath the core
745 target.
746 (has_all_memory): Return true.
747 * target.c (raw_memory_xfer_partial): Revise comment
748 regarding use of has_all_memory.
749
750 2020-07-22 Kevin Buettner <kevinb@redhat.com>
751
752 * exec.h (section_table_xfer_memory): Revise declaration,
753 replacing section name parameter with an optional callback
754 predicate.
755 * exec.c (section_table_xfer_memory): Likewise.
756 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
757 of section_table_xfer_memory.
758
759 2020-07-22 Tom Tromey <tromey@adacore.com>
760
761 * mi/mi-cmd-stack.c (list_args_or_locals): Use
762 lookup_symbol_search_name.
763
764 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * python/py-registers.c (gdbpy_register_object_data_init): Remove
767 redundant local variable.
768 (gdbpy_get_register_descriptor): Extract descriptor vector as a
769 reference, not pointer, update code accordingly.
770
771 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
772 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773
774 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
775 * jit.c (jit_breakpoint_re_set_internal): Use the
776 `skip_jit_symbol_lookup` field.
777
778 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
779 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
780
781 * jit.c (jit_read_descriptor): Define the descriptor address once,
782 use twice.
783 (jit_breakpoint_deleted): Move the declaration of the loop variable
784 `iter` into the loop header.
785 (jit_breakpoint_re_set_internal): Move the declaration of the local
786 variable `objf_data` to the first point of definition.
787 (jit_event_handler): Move the declaration of local variables
788 `code_entry`, `entry_addr`, and `objf` to their first point of use.
789 Rename `objf` to `jited`.
790
791 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
794 Remove.
795 * jit.c (get_jiter_objfile_data): Update.
796
797 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * jit.c (struct jit_program_space_data): Remove.
801 (jit_program_space_key): Remove.
802 (jiter_objfile_data::~jiter_objfile_data): Remove program space
803 stuff.
804 (get_jit_program_space_data): Remove.
805 (jit_breakpoint_deleted): Iterate on all of the program space's
806 objfiles.
807 (jit_inferior_init): Likewise.
808 (jit_breakpoint_re_set_internal): Likewise. Also change return
809 type to void.
810 (jit_breakpoint_re_set): Pass current_program_space to
811 jit_breakpoint_re_set_internal.
812
813 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
814
815 * jit.h (struct jiter_objfile_data) <cached_code_address,
816 jit_breakpoint>: Move to here from ...
817 * jit.c (jit_program_space_data): ... here.
818 (jiter_objfile_data::~jiter_objfile_data): Update.
819 (jit_breakpoint_deleted): Update.
820 (jit_breakpoint_re_set_internal): Update.
821
822 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
825 checks.
826 (jit_read_descriptor): Remove NULL check.
827 (jit_event_handler): Add an assertion.
828
829 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * jit.h (struct jit_objfile_data): Split into...
832 (struct jiter_objfile_data): ... this ...
833 (struct jited_objfile_data): ... and this.
834 * objfiles.h (struct objfile) <jit_data>: Remove.
835 <jiter_data, jited_data>: New fields.
836 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
837 (jiter_objfile_data::~jiter_objfile_data): ... this.
838 (get_jit_objfile_data): Rename to ...
839 (get_jiter_objfile_data): ... this.
840 (add_objfile_entry): Update.
841 (jit_read_descriptor): Use get_jiter_objfile_data.
842 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
843 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
844 (jit_inferior_exit_hook): Use objfile's jited_data field.
845
846 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * jit.h: Forward-declare `struct minimal_symbol`.
849 (struct jit_objfile_data): Migrate to here from jit.c; also add a
850 constructor, destructor, and an objfile* field.
851 * jit.c (jit_objfile_data): Remove.
852 (struct jit_objfile_data): Migrate from here to jit.h.
853 (jit_objfile_data::~jit_objfile_data): New destructor
854 implementation with code moved from free_objfile_data.
855 (free_objfile_data): Delete.
856 (get_jit_objfile_data): Update to use the jit_data field of objfile.
857 (jit_find_objf_with_entry_addr): Ditto.
858 (jit_inferior_exit_hook): Ditto.
859 (_initialize_jit): Remove the call to
860 register_objfile_data_with_cleanup.
861 * objfiles.h (struct objfile) <jit_data>: New field.
862
863 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
864
865 * jit.h: Forward-declare `struct objfile`.
866 (jit_event_handler): Add a second parameter, the JITer objfile.
867 * jit.c (jit_read_descriptor): Change the signature to take the
868 JITer objfile as an argument instead of the jit_program_space_data.
869 (jit_inferior_init): Update the call to jit_read_descriptor.
870 (jit_event_handler): Use the new JITer objfile argument when calling
871 jit_read_descriptor.
872 * breakpoint.c (handle_jit_event): Update the call to
873 jit_event_handler to pass the JITer objfile.
874
875 2020-07-21 John Baldwin <jhb@FreeBSD.org>
876
877 * gdbarch.c: Regenerate.
878 * gdbarch.h: Regenerate.
879 * gdbarch.sh (handle_segmentation_fault): Remove method.
880 * infrun.c (handle_segmentation_fault): Remove.
881 (print_signal_received_reason): Remove call to
882 handle_segmentation_fault.
883
884 2020-07-21 John Baldwin <jhb@FreeBSD.org>
885
886 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
887 Rename to sparc64_linux_report_signal_info and add siggnal
888 argument.
889 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
890 instead of sparc64_linux_handle_segmentation_fault.
891
892 2020-07-21 John Baldwin <jhb@FreeBSD.org>
893
894 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
895 i386_linux_report_signal_info instead of
896 i386_linux_handle_segmentation_fault.
897 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
898 to i386_linux_report_signal_info and add siggnal argument.
899 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
900 of i386_linux_handle_segmentation_fault.
901 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
902 to i386_linux_report_signal_info and add siggnal argument.
903
904 2020-07-21 John Baldwin <jhb@FreeBSD.org>
905
906 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
907 hook if present.
908
909 2020-07-21 John Baldwin <jhb@FreeBSD.org>
910
911 * gdbarch.c: Regenerate.
912 * gdbarch.h: Regenerate.
913 * gdbarch.sh (report_signal_info): New method.
914 * infrun.c (print_signal_received_reason): Invoke gdbarch
915 report_signal_info hook if present.
916
917 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * python/py-registers.c : Add 'unordered_map' include.
920 (gdbpy_new_reggroup): Renamed to...
921 (gdbpy_get_reggroup): ...this. Update to only create register
922 group descriptors when needed.
923 (gdbpy_reggroup_iter_next): Update.
924
925 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * python/py-registers.c (gdbpy_register_object_data): New static
928 global.
929 (gdbpy_register_object_data_init): New function.
930 (gdbpy_new_register_descriptor): Renamed to...
931 (gdbpy_get_register_descriptor): ...this, and update to reuse
932 existing register descriptors where possible.
933 (gdbpy_register_descriptor_iter_next): Update.
934 (gdbpy_initialize_registers): Register new gdbarch data.
935
936 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
937
938 * linux-nat.c (stopped_pids): Make static.
939
940 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
941
942 PR ada/26235
943 * gdbtypes.c (ada_discrete_type_low_bound,
944 ada_discrete_type_high_bound): Handle undefined bounds.
945
946 2020-07-21 Kamil Rytarowski <n54@gmx.com>
947
948 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
949 declaration.
950 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
951 function.
952
953 2020-07-20 John Baldwin <jhb@FreeBSD.org>
954
955 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
956 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
957 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
958 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
959 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
960 method.
961
962 2020-07-20 Ludovic Courtès <ludo@gnu.org>
963
964 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
965 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
966 which are deprecated in Guile 3.0.
967 * configure.ac (try_guile_versions): Add "guile-3.0".
968 * configure (try_guile_versions): Regenerate.
969 * NEWS: Update entry.
970
971 2020-07-20 Ludovic Courtès <ludo@gnu.org>
972 Doug Evans <dje@google.com>
973
974 PR gdb/21104
975 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
976 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
977 USING_GUILE_BEFORE_2_2.
978 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
979 Change type to 'scm_t_port_type *'.
980 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
981 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
982 parameter and honor it. Update callers.
983 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
984 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
985 functions.
986 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
987 USING_GUILE_BEFORE_2_2.
988 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
989 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
990 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
991 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
992 and 'SCM_PORT_TYPE'.
993 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
994 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
995 (gdbscm_memory_port_read, gdbscm_memory_port_write)
996 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
997 [!USING_GUILE_BEFORE_2_2]: New functions.
998 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
999 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1000 'gdbscm_memory_port_read'.
1001 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1002 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1003 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1004 function.
1005 (ioscm_init_memory_port): Remove.
1006 (ioscm_init_memory_port_stream): New function
1007 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1008 function.
1009 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1010 Return scm_from_uint (0).
1011 (gdbscm_set_memory_port_read_buffer_size_x)
1012 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1013 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1014 Return scm_from_uint (0).
1015 (gdbscm_set_memory_port_write_buffer_size_x)
1016 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1017 * configure.ac (try_guile_versions): Add "guile-2.2".
1018 * configure: Regenerate.
1019 * NEWS: Add entry.
1020
1021 2020-07-18 Tom Tromey <tom@tromey.com>
1022
1023 * linux-nat.c (linux_multi_process): Remove.
1024 (linux_nat_target::supports_multi_process): Return true.
1025
1026 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1029 (riscv_lookup_target_description): Return pointer out of
1030 unique_ptr.
1031 * target-descriptions.c (allocate_target_description): Add
1032 comment.
1033 (target_desc_deleter::operator()): Likewise.
1034 * target-descriptions.h (struct target_desc_deleter): Moved to
1035 gdbsupport/tdesc.h.
1036 (target_desc_up): Likewise.
1037
1038 2020-07-17 Tom Tromey <tromey@adacore.com>
1039
1040 * linux-nat.c (linux_nat_target::supports_non_stop)
1041 (linux_nat_target::always_non_stop_p): Use "true".
1042 (linux_nat_target::supports_disable_randomization): Use "true" and
1043 "false".
1044
1045 2020-07-16 Caroline Tice <cmtice@google.com>
1046
1047 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1048 (RNGLIST_HEADER_SIZE64): New constant definition.
1049 (struct dwop_section_names): Add rnglists_dwo.
1050 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1051 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1052 (struct dwo_sections): Add rnglists field.
1053 (read_attribut_reprocess): Add tag parameter.
1054 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1055 (cu_debug_rnglists_section): New function (decl & definition).
1056 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1057 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1058 die whose range is being checked; get rnglist section from
1059 cu_debug_rnglists_section, to get from either objfile or dwo file as
1060 appropriate. Add cases for DW_RLE_base_addressx,
1061 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1062 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1063 test inside if-condition and updating complaint message.
1064 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1065 dwarf2_rnglists_process.
1066 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1067 dwarf2_ranges_process.
1068 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1069 need_ranges_base and update comment appropriately. Also pass die tag
1070 to dwarf2_ranges_read.
1071 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1072 need_ranges_base and update comment appropriately. Also pass die tag
1073 to dwarf2_ranges_process.
1074 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1075 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1076 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1077 need_ranges_base and update comment appropriately. Also pass die tag
1078 to read_attribute_reprocess and dwarf2_ranges_read.
1079 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1080 and update function comment appropriately.
1081 (read_loclist_index): Call read_loclists_rnglists_header instead of
1082 read_loclist_header.
1083 (read_rnglist_index): New function.
1084 (read_attribute_reprocess): Add tag parameter. Add code for
1085 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1086 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1087
1088 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1091 being resolved.
1092
1093 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * arch-utils.c (show_architecture): Update formatting of messages.
1096
1097 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * gdbtypes.h (struct type) <bounds>: Handle array and string
1100 types.
1101 * ada-lang.c (assign_aggregate): Use type::bounds on
1102 array/string type.
1103 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1104 * c-varobj.c (c_number_of_children): Likewise.
1105 (c_describe_child): Likewise.
1106 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1107 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1108 (f_type_print_base): Likewise.
1109 * f-valprint.c (f77_array_offset_tbl): Likewise.
1110 (f77_get_upperbound): Likewise.
1111 (f77_print_array_1): Likewise.
1112 * guile/scm-type.c (gdbscm_type_range): Likewise.
1113 * m2-typeprint.c (m2_array): Likewise.
1114 (m2_is_long_set_of_type): Likewise.
1115 * m2-valprint.c (get_long_set_bounds): Likewise.
1116 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1117 * python/py-type.c (typy_range): Likewise.
1118 * rust-lang.c (rust_internal_print_type): Likewise.
1119 * type-stack.c (type_stack::follow_types): Likewise.
1120 * valarith.c (value_subscripted_rvalue): Likewise.
1121 * valops.c (value_cast): Likewise.
1122
1123 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1126 callers to use the equivalent accessor methods.
1127
1128 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1131 (struct type) <bit_stride>: New method.
1132 (TYPE_BIT_STRIDE): Remove.
1133 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1134
1135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1136
1137 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1138 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1139 callers to use the equivalent accessor methods instead.
1140
1141 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1144 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1145 callers to use the equivalent accessor methods instead.
1146
1147 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1150 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1151 to use dynamic_prop::kind.
1152
1153 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1156 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1157 to get the bound property's kind and check against
1158 PROP_UNDEFINED.
1159
1160 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1163 all callers to use type::range_bounds followed by
1164 dynamic_prop::{low,high}.
1165
1166 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1169 const_val, set_const_val, baton, set_locexpr, set_loclist,
1170 set_addr_offset, variant_parts, set_variant_parts,
1171 original_type, set_original_type>: New methods.
1172 <kind>: Rename to...
1173 <m_kind>: ... this. Update all users to use the new methods
1174 instead.
1175 <data>: Rename to...
1176 <m_data>: ... this. Update all users to use the new methods
1177 instead.
1178
1179 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * gdbtypes.c (get_discrete_bounds): Return failure if
1182 the range type's bounds are not both defined and constant
1183 values.
1184 (get_array_bounds): Update comment. Remove undefined bound check.
1185
1186 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1189 the type::bounds method directly.
1190
1191 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1194 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1195 are used to set the range type's bounds to use set_bounds.
1196
1197 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1198
1199 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1200
1201 2020-07-10 Pedro Alves <pedro@palves.net>
1202
1203 * gdbthread.h (inferior_ref): Define.
1204 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1205 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1206 * thread.c
1207 (scoped_restore_current_thread::restore):
1208 Adjust to gdb::ref_ptr.
1209 (scoped_restore_current_thread::~scoped_restore_current_thread):
1210 Remove manual decref handling.
1211 (scoped_restore_current_thread::scoped_restore_current_thread):
1212 Adjust to use
1213 inferior_ref::new_reference/thread_info_ref::new_reference.
1214 Incref the thread before calling get_frame_id instead of after.
1215 Let TARGET_CLOSE_ERROR propagate.
1216
1217 2020-07-10 Pedro Alves <pedro@palves.net>
1218
1219 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1220 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1221 NOT_AVAILABLE_ERROR.
1222 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1223 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1224
1225 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1226 Pedro Alves <pedro@palves.net>
1227
1228 PR gdb/26199
1229 * infrun.c (threads_are_resumed_pending_p): Delete.
1230 (do_target_wait): Remove threads_are_executing and
1231 threads_are_resumed_pending_p checks from the inferior_matches
1232 lambda. Update comments.
1233
1234 2020-07-10 Pedro Alves <pedro@palves.net>
1235
1236 PR gdb/26199
1237 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1238 executing threads.
1239
1240 2020-07-10 Pedro Alves <pedro@palves.net>
1241
1242 PR gdb/26199
1243 * infrun.c (handle_no_resumed): Handle multiple targets.
1244
1245 2020-07-10 Pedro Alves <pedro@palves.net>
1246
1247 PR gdb/26199
1248 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1249 target_is_async_p.
1250
1251 2020-07-10 Pedro Alves <pedro@palves.net>
1252
1253 PR gdb/26199
1254 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1255 threads, not all threads.
1256
1257 2020-07-10 Pedro Alves <pedro@palves.net>
1258
1259 PR gdb/26199
1260 * remote.c (remote_target::open_1): Pass remote target pointer as
1261 data to create_async_event_handler.
1262 (remote_async_inferior_event_handler): Mark async event handler
1263 before returning if the remote target still has either pending
1264 events or unacknowledged notifications.
1265
1266 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1267
1268 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1269 declaration.
1270 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1271 function.
1272
1273 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1274
1275 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1276 inferior_ptid.
1277
1278 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1279
1280 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1281 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1282 AT_FREEBSD_PS_STRINGS.
1283
1284 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1285
1286 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1287 of debugfile path on Windows.
1288
1289 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1290
1291 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1292 argument to 'data'.
1293
1294 2020-07-08 Tom Tromey <tromey@adacore.com>
1295
1296 * ada-lang.c (ada_exception_message_1): Use read_memory.
1297
1298 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 PR python/22748
1301 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1302 special handling for inline frames.
1303 * findvar.c (value_of_register_lazy): Skip inline frames when
1304 creating lazy register values.
1305 * frame.c (frame_id_computed_p): Delete definition.
1306 * frame.h (frame_id_computed_p): Delete declaration.
1307
1308 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * NEWS: Mention additions to Python API.
1311 * python/py-arch.c (archpy_register_groups): New function.
1312 (arch_object_methods): Add 'register_groups' method.
1313 * python/py-registers.c (reggroup_iterator_object): New struct.
1314 (reggroup_object): New struct.
1315 (gdbpy_new_reggroup): New function.
1316 (gdbpy_reggroup_to_string): New function.
1317 (gdbpy_reggroup_name): New function.
1318 (gdbpy_reggroup_iter): New function.
1319 (gdbpy_reggroup_iter_next): New function.
1320 (gdbpy_new_reggroup_iterator): New function
1321 (gdbpy_initialize_registers): Register new types.
1322 (reggroup_iterator_object_type): Define new Python type.
1323 (gdbpy_reggroup_getset): New static global.
1324 (reggroup_object_type): Define new Python type.
1325 * python/python-internal.h
1326
1327 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1330 * python/py-arch.c (archpy_registers): New function.
1331 (arch_object_methods): Add 'registers' method.
1332 * python/py-registers.c: New file.
1333 * python/python-internal.h
1334 (gdbpy_new_register_descriptor_iterator): Declare.
1335 (gdbpy_initialize_registers): Declare.
1336 * python/python.c (do_start_initialization): Call
1337 gdbpy_initialize_registers.
1338 * NEWS: Mention additions to the Python API.
1339
1340 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * NEWS: Mention new Python API method.
1343 * python/py-unwind.c (pending_framepy_architecture): New function.
1344 (pending_frame_object_methods): Add architecture method.
1345
1346 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1347
1348 * gdbarch.c: Regenerate.
1349 * gdbarch.h: Regenerate.
1350 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1351 (gdbarch_data): Use internal_error for the case where
1352 deprecated_set_gdbarch_data was originally needed.
1353 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1354 and use passed in obstack.
1355 (libunwind_frame_set_descr): Should no longer get back NULL from
1356 gdbarch_data.
1357 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1358 type.
1359 * user-regs.c (user_regs_init): Update parameters, and use passed
1360 in obstack.
1361 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1362 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1363
1364 2020-07-06 Tom de Vries <tdevries@suse.de>
1365
1366 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1367 End-Of-Sequence in lte_is_less_than.
1368 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1369 "gdb: Don't reorder line table entries too much when sorting".
1370
1371 2020-07-06 Tom de Vries <tdevries@suse.de>
1372
1373 PR tui/26205
1374 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1375
1376 2020-07-05 Tom de Vries <tdevries@suse.de>
1377
1378 PR build/26187
1379 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1380 std::uncaught_exceptions instead of deprecated
1381 std::uncaught_exception.
1382
1383 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1384
1385 * macroexp.h (macro_stringify): Return
1386 gdb::unique_xmalloc_ptr<char>.
1387 * macroexp.c (macro_stringify): Likewise.
1388 * macrotab.c (fixup_definition): Update.
1389
1390 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1393 (lex_one_token): Update.
1394 * macroexp.c (struct macro_buffer) <release>: Return
1395 gdb::unique_xmalloc_ptr<char>.
1396 (macro_stringify): Update.
1397 (macro_expand): Update.
1398 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1399 * macroexp.h (macro_expand_next): Likewise.
1400
1401 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1402
1403 * macroexp.h (macro_lookup_ftype): Remove.
1404 (macro_expand, macro_expand_once, macro_expand_next): Remove
1405 lookup function parameters, add scope parameter.
1406 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1407 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1408 * macroscope.h (standard_macro_lookup): Change parameter type
1409 to macro_scope.
1410 * macroscope.c (standard_macro_lookup): Likewise.
1411 * c-exp.y (lex_one_token): Update.
1412 * macrocmd.c (macro_expand_command): Likewise.
1413 (macro_expand_once_command): Likewise.
1414
1415 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 * inf-loop.c (inferior_event_handler): Remove client_data param.
1418 * inf-loop.h (inferior_event_handler): Likewise.
1419 * infcmd.c (step_1): Adjust.
1420 * infrun.c (proceed): Adjust.
1421 (fetch_inferior_event): Remove client_data param.
1422 (infrun_async_inferior_event_handler): Adjust.
1423 * infrun.h (fetch_inferior_event): Remove `void *` param.
1424 * linux-nat.c (handle_target_event): Adjust.
1425 * record-btrace.c (record_btrace_handle_async_inferior_event):
1426 Adjust.
1427 * record-full.c (record_full_async_inferior_event_handler):
1428 Adjust.
1429 * remote.c (remote_async_inferior_event_handler): Adjust.
1430
1431 2020-07-01 Tom Tromey <tom@tromey.com>
1432
1433 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1434 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1435
1436 2020-07-01 Tom Tromey <tom@tromey.com>
1437
1438 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1439 tui_gen_win_info.
1440 (tui_win_info::make_window): Merge with
1441 tui_gen_win_info::make_window.
1442 (tui_win_info::make_visible): Move from tui_gen_win_info.
1443 * tui/tui-win.c (tui_win_info::max_width): Move from
1444 tui_gen_win_info.
1445 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1446 type.
1447 <window_factory>: Likewise.
1448 * tui/tui-layout.c (tui_win_info::resize): Move from
1449 tui_gen_win_info.
1450 (make_standard_window): Change return type.
1451 (get_locator_window, tui_get_window_by_name): Likewise.
1452 (tui_layout_window::apply): Remove a cast.
1453 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1454 (struct tui_win_info): Merge with tui_gen_win_info.
1455 (struct tui_gen_win_info): Remove.
1456
1457 2020-07-01 Tom Tromey <tom@tromey.com>
1458
1459 * tui/tui-stack.h (struct tui_locator_window): Derive from
1460 tui_win_info.
1461 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1462 <can_box>: New method.
1463
1464 2020-07-01 Tom Tromey <tom@tromey.com>
1465
1466 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1467
1468 2020-07-01 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-regs.c (tui_data_window::display_registers_from)
1471 (tui_data_window::display_registers_from)
1472 (tui_data_window::first_data_item_displayed)
1473 (tui_data_window::delete_data_content_windows): Update.
1474 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1475 Remove.
1476 (tui_data_window::check_register_values): Update.
1477 (tui_data_item_window::rerender): Add parameters. Update.
1478 (tui_data_item_window::refresh_window): Remove.
1479 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1480 virtual.
1481 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1482 tui_gen_win_info.
1483 <refresh_window, max_height, min_height>: Remove.
1484 <rerender>: Add parameters.
1485 <x, y, visible>: New members.
1486 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1487 <m_item_width>: New member.
1488
1489 2020-07-01 Tom Tromey <tom@tromey.com>
1490
1491 * tui/tui-regs.c (tui_data_window::show_register_group)
1492 (tui_data_window::check_register_values): Update.
1493 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1494 from item_no.
1495
1496 2020-07-01 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1499 useless "if".
1500
1501 2020-07-01 Tom Tromey <tom@tromey.com>
1502
1503 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1504 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1505
1506 2020-07-01 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1509 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1510 (struct tui_line_or_address): Move from tui-data.h.
1511 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1512 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1513 (tui_cmd_window, tui_source_window_base, tui_source_window)
1514 (tui_disasm_window): Don't declare.
1515 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1516 to tui-winsource.h.
1517 (SINGLE_KEY): Move to tui-stack.c.
1518
1519 2020-07-01 Tom Tromey <tom@tromey.com>
1520
1521 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1522 std::string.
1523 * tui/tui-regs.c (class tab_expansion_file): New.
1524 (tab_expansion_file::write): New method.
1525 (tui_register_format): Change return type. Use
1526 tab_expansion_file.
1527 (tui_get_register, tui_data_window::display_registers_from)
1528 (tui_data_item_window::rerender): Update.
1529 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1530 * tui/tui-io.c (tui_expand_tabs): Remove.
1531
1532 2020-07-01 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1535
1536 2020-07-01 Fangrui Song <maskray@google.com>
1537
1538 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1539
1540 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1541
1542 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1543 forms for DW_AT_associated and DW_AT_allocated attributes,
1544 which is already checked in function attr_to_dynamic_prop.
1545
1546 2020-06-30 Tom Tromey <tromey@adacore.com>
1547
1548 * dwarf2/read.c (quirk_rust_enum): Correctly call
1549 alloc_rust_variant for default-less enum.
1550
1551 2020-06-30 Tom Tromey <tromey@adacore.com>
1552
1553 PR build/26183:
1554 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1555 gdb::to_string.
1556
1557 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1560 * gdbarch.h: Re-generate.
1561
1562 2020-06-28 Tom Tromey <tom@tromey.com>
1563
1564 * command.h (cmd_types): Remove.
1565 (cmd_type): Don't declare.
1566 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1567 typedef.
1568 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1569 * cli/cli-decode.c (cmd_type): Remove.
1570
1571 2020-06-27 Pedro Alves <palves@redhat.com>
1572
1573 * fork-child.c (prefork_hook): Adjust.
1574 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1575 Delete.
1576 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1577 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1578 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1579 Remove declarations.
1580 (struct inferior) <set_tty, tty>: New methods.
1581 (struct inferior) <terminal>: Rename to ...
1582 (struct inferior) <m_terminal>: ... this and make private.
1583 * main.c (captured_main_1): Adjust.
1584 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1585 (mi_cmd_inferior_tty_show): Adjust.
1586 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1587 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1588
1589 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1590
1591 * configure.ac: Add --enable-libctf: handle --disable-static
1592 properly.
1593 * acinclude.m4: sinclude ../config/enable.m4.
1594 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1595 (LIBCTF): Substitute in.
1596 (CTF_DEPS): New, likewise.
1597 (CLIBS): libctf needs symbols from libbfd: move earlier.
1598 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1599 flags.
1600 * ctfread.c: Surround in ENABLE_LIBCTF.
1601 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1602 * configure: Regenerate.
1603 * config.in: Likewise.
1604
1605 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1608
1609 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * inferior.h (struct inferior) <terminal>: Change type to
1612 gdb::unique_xmalloc_ptr<char>.
1613 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1614 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1615 field, adjust to unique pointer.
1616 (get_inferior_io_terminal): Adjust to unique pointer.
1617
1618 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1619
1620 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1621 registers, not just the known core set of registers.
1622
1623 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1626 fflags, frm, and fcsr registers.
1627 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1628 restore groups.
1629 (riscv_tdesc_unknown_reg): New function.
1630 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1631 tdesc_use_registers.
1632 * riscv-tdep.h (struct gdbarch_tdep): Add
1633 unknown_csrs_first_regnum, unknown_csrs_count,
1634 duplicate_fflags_regnum, duplicate_frm_regnum, and
1635 duplicate_fcsr_regnum fields.
1636
1637 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1640 callback, use the callback (when not null) to help number unknown
1641 registers.
1642 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1643 (tdesc_use_registers): Add extra parameter to declaration.
1644
1645 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1648 in the file.
1649 (class riscv_pending_register_alias): Likewise.
1650 (riscv_register_feature::register_info): Change 'required_p' field
1651 to 'required', and change its type. Add 'check' member function.
1652 (riscv_register_feature::register_info::check): Define new member
1653 function.
1654 (riscv_xreg_feature): Change initialisation of 'required' field.
1655 (riscv_freg_feature): Likewise.
1656 (riscv_virtual_feature): Likewise.
1657 (riscv_csr_feature): Likewise.
1658 (riscv_check_tdesc_feature): Take extra parameter, the csr
1659 tdesc_feature, rewrite the function to use the new
1660 riscv_register_feature::register_info::check function.
1661 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1662
1663 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * features/Makefile: Remove all references to the deleted files
1666 below.
1667 * features/riscv/32bit-csr.c: Deleted.
1668 * features/riscv/32bit-csr.xml: Deleted.
1669 * features/riscv/64bit-csr.c: Deleted.
1670 * features/riscv/64bit-csr.xml: Deleted.
1671 * features/riscv/rebuild-csr-xml.sh: Deleted.
1672
1673 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1674
1675 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1676 whitespace error for declaration of names member variable.
1677 (struct riscv_register_feature): Add new prefer_first_name member
1678 variable, and fix whitespace error in declaration of registers.
1679 (riscv_xreg_feature): Initialize prefer_first_name field.
1680 (riscv_freg_feature): Likewise.
1681 (riscv_virtual_feature): Likewise.
1682 (riscv_csr_feature): Likewise.
1683 (riscv_register_name): Expand on comments. Remove register name
1684 modifications for CSR and virtual registers.
1685
1686 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1689 errors.
1690
1691 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1694 riscv-opc.h.
1695 (class riscv_pending_register_alias): New class.
1696 (riscv_check_tdesc_feature): Take vector of pending aliases and
1697 populate it as appropriate.
1698 (riscv_setup_register_aliases): Delete.
1699 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1700 to riscv_check_tdesc_feature in all cases. Use the vector to
1701 create the register aliases.
1702
1703 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1704
1705 * sol2-tdep.c (sol2_static_transform_name): Remove.
1706 (sol2_init_abi): Don't register it.
1707 * gdbarch.sh (static_transform_name): Remove.
1708 * gdbarch.c, gdbarch.h: Regenerate.
1709
1710 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1711 gdbarch_static_transform_name.
1712 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1713 * stabsread.c (define_symbol) <'X'>: Remove.
1714 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1715 handling.
1716 <'V'>: Likewise.
1717 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1718 <'S'>: Remove call to gdbarch_static_transform_name.
1719
1720 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1721
1722 * procfs.c (procfs_pre_trace): New function.
1723 (procfs_target::create_inferior): Pass it to fork_inferior.
1724
1725 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1728 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1729 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1730 sol2-tdep.o, sparc-sol2-tdep.o.
1731 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1732 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1733 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1734 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1735
1736 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737
1738 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1739 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1740 Call sol2_init_abi.
1741 Remove calls to set_gdbarch_skip_solib_resolver,
1742 set_gdbarch_core_pid_to_str.
1743 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1744 (i386_sol2_static_transform_name): Remove.
1745 (i386_sol2_init_abi): Call sol2_init_abi.
1746 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1747 set_gdbarch_static_transform_name,
1748 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1749 Use sol2_sigtramp_p.
1750 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1751 (sol2_sigtramp_p): New function.
1752 (sol2_static_transform_name): New function.
1753 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1754 (sol2_init_abi): New function.
1755 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1756 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1757 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1758 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1759 (sparc_sol2_static_transform_name): Remove.
1760 (sparc32_sol2_init_abi): Call sol2_init_abi.
1761 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1762 set_gdbarch_static_transform_name,
1763 set_gdbarch_skip_solib_resolver,
1764 set_gdbarch_core_pid_to_str.
1765 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1766 (sparc_sol2_static_transform_name): Remove
1767 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1768 call sol2_sigtramp_p.
1769 (sparc64_sol2_init_abi): Call sol2_init_abi.
1770 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1771 set_gdbarch_static_transform_name,
1772 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1773
1774 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1775
1776 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1777 * exec.c (validate_exec_file): If from_tty, set both
1778 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1779 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1780 and from_tty, unconditionally ask a confirmation.
1781
1782 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * target-descriptions.c (tdesc_architecture_name): Protect against
1785 NULL pointer dereference.
1786 (maint_print_xml_tdesc_cmd): New function.
1787 (_initialize_target_descriptions): Register new 'maint print
1788 xml-tdesc' command and give it the filename completer.
1789 * NEWS: Mention new 'maint print xml-tdesc' command.
1790
1791 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * target-descriptions.c (class tdesc_compatible_info): New class.
1794 (struct target_desc): Change type of compatible vector.
1795 (tdesc_compatible_p): Update for change in type of
1796 target_desc::compatible.
1797 (tdesc_compatible_info_list): New function.
1798 (tdesc_compatible_info_arch_name): New function.
1799 (tdesc_add_compatible): Update for change in type of
1800 target_desc::compatible.
1801 (print_c_tdesc::visit_pre): Likewise.
1802
1803 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1806 whitespace to underscore.
1807 (maint_print_c_tdesc_cmd): Use fake filename for target
1808 descriptions that came from the target.
1809 (_initialize_target_descriptions): Add filename command completion
1810 for 'maint print c-tdesc'.
1811
1812 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1815 lines.
1816
1817 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1820 lines.
1821 (dwarf2_find_location_expression): Likewise.
1822 (call_site_parameter_matches): Likewise.
1823 (dwarf2_compile_expr_to_ax): Likewise.
1824 (disassemble_dwarf_expression): Likewise.
1825 (loclist_describe_location): Likewise.
1826
1827 2020-06-23 Pedro Alves <palves@redhat.com>
1828
1829 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1830 progspace-and-thread.h. Include scoped-mock-context.h instead.
1831 (register_to_value_test): Use scoped_mock_context.
1832 * regcache.c: Include "scoped-mock-context.h".
1833 (cooked_read_test): Don't error out if a target is already pushed.
1834 Use scoped_mock_context. Adjust.
1835 * scoped-mock-context.h: New file.
1836
1837 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1840 initializer.
1841 (ada_language::is_string_type_p): New member function.
1842 * c-lang.c (c_language_data): Delete la_is_string_type_p
1843 initializer.
1844 (cplus_language_data): Likewise.
1845 (asm_language_data): Likewise.
1846 (minimal_language_data): Likewise.
1847 * d-lang.c (d_language_data): Likewise.
1848 * f-lang.c (f_is_string_type_p): Delete function, implementation
1849 moved to f_language::is_string_type_p.
1850 (f_language_data): Delete la_is_string_type_p initializer.
1851 (f_language::is_string_type_p): New member function,
1852 implementation from f_is_string_type_p.
1853 * go-lang.c (go_is_string_type_p): Delete function, implementation
1854 moved to go_language::is_string_type_p.
1855 (go_language_data): Delete la_is_string_type_p initializer.
1856 (go_language::is_string_type_p): New member function,
1857 implementation from go_is_string_type_p.
1858 * language.c (language_defn::is_string_type_p): Define new member
1859 function.
1860 (default_is_string_type_p): Make static, add comment copied from
1861 header file.
1862 (unknown_language_data): Delete la_is_string_type_p initializer.
1863 (unknown_language::is_string_type_p): New member function.
1864 (auto_language_data): Delete la_is_string_type_p initializer.
1865 (auto_language::is_string_type_p): New member function.
1866 * language.h (language_data): Delete la_is_string_type_p field.
1867 (language_defn::is_string_type_p): Declare new function.
1868 (default_is_string_type_p): Delete desclaration, move comment to
1869 definition.
1870 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1871 moved to m2_language::is_string_type_p.
1872 (m2_language_data): Delete la_is_string_type_p initializer.
1873 (m2_language::is_string_type_p): New member function,
1874 implementation from m2_is_string_type_p.
1875 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1876 initializer.
1877 * opencl-lang.c (opencl_language_data): Likewise.
1878 * p-lang.c (pascal_is_string_type_p): Delete function,
1879 implementation moved to pascal_language::is_string_type_p.
1880 (pascal_language_data): Delete la_is_string_type_p initializer.
1881 (pascal_language::is_string_type_p): New member function,
1882 implementation from pascal_is_string_type_p.
1883 * rust-lang.c (rust_is_string_type_p): Delete function,
1884 implementation moved to rust_language::is_string_type_p.
1885 (rust_language_data): Delete la_is_string_type_p initializer.
1886 (rust_language::is_string_type_p): New member function,
1887 implementation from rust_is_string_type_p.
1888 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1889 is_string_type_p.
1890
1891 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * ada-lang.c (ada_language_data): Delete la_print_typedef
1894 initializer.
1895 (ada_language::print_typedef): New member function.
1896 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1897 (cplus_language_data): Likewise.
1898 (asm_language_data): Likewise.
1899 (minimal_language_data): Likewise.
1900 * d-lang.c (d_language_data): Likewise.
1901 * f-lang.c (f_language_data): Likewise.
1902 (f_language::print_typedef): New member function.
1903 * go-lang.c (go_language_data): Delete la_print_typedef
1904 initializer.
1905 * language.c (language_defn::print_typedef): Define member
1906 function.
1907 (unknown_language_data): Delete la_print_typedef initializer.
1908 (unknown_language::print_typedef): New member function.
1909 (auto_language_data): Delete la_print_typedef initializer.
1910 (auto_language::print_typedef): New member function.
1911 * language.h (language_data): Delete la_print_typedef field.
1912 (language_defn::print_typedef): Declare new member function.
1913 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1914 (default_print_typedef): Delete declaration.
1915 * m2-lang.c (m2_language_data): Delete la_print_typedef
1916 initializer.
1917 (m2_language::print_typedef): New member function.
1918 * objc-lang.c (objc_language_data): Delete la_print_typedef
1919 initializer.
1920 * opencl-lang.c (opencl_language_data): Likewise.
1921 * p-lang.c (pascal_language_data): Likewise.
1922 (pascal_language::print_typedef): New member function.
1923 * rust-lang.c (rust_print_typedef): Delete function,
1924 implementation moved to rust_language::print_typedef.
1925 (rust_language): Delete la_print_typedef initializer.
1926 (rust_language::print_typedef): New member function,
1927 implementation from rust_print_typedef.
1928 * typeprint.c (default_print_typedef): Delete.
1929
1930 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1933 (ada_language::printstr): New member function.
1934 * c-lang.c (c_language_data): Delete la_printstr initializer.
1935 (cplus_language_data): Likewise.
1936 (asm_language_data): Likewise.
1937 (minimal_language_data): Likewise.
1938 * d-lang.c (d_language_data): Likewise.
1939 * f-lang.c (f_printstr): Rename to f_language::printstr.
1940 (f_language_data): Delete la_printstr initializer.
1941 (f_language::printstr): New member function, implementation from
1942 f_printstr.
1943 * go-lang.c (go_language_data): Delete la_printstr initializer.
1944 * language.c (language_defn::printstr): Define new member
1945 function.
1946 (unk_lang_printstr): Delete.
1947 (unknown_language_data): Delete la_printstr initializer.
1948 (unknown_language::printstr): New member function.
1949 (auto_language_data): Delete la_printstr initializer.
1950 (auto_language::printstr): New member function.
1951 * language.h (language_data): Delete la_printstr field.
1952 (language_defn::printstr): Declare new member function.
1953 (LA_PRINT_STRING): Update call to printstr.
1954 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1955 (m2_language_data): Delete la_printstr initializer.
1956 (m2_language::printstr): New member function, implementation from
1957 m2_printstr.
1958 * objc-lang.c (objc_language_data): Delete la_printstr
1959 initializer.
1960 * opencl-lang.c (opencl_language_data): Likewise.
1961 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1962 (pascal_language_data): Delete la_printstr initializer.
1963 (pascal_language::printstr): New member function, implementation
1964 from pascal_printstr.
1965 * p-lang.h (pascal_printstr): Delete declaration.
1966 * rust-lang.c (rust_printstr): Update header comment.
1967 (rust_language_data): Delete la_printstr initializer.
1968 (rust_language::printstr): New member function.
1969
1970 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1973 (ada_language::printchar): New member function.
1974 * c-lang.c (c_language_data): Delete la_printchar initializer.
1975 (cplus_language_data): Likewise.
1976 (asm_language_data): Likewise.
1977 (minimal_language_data): Likewise.
1978 * d-lang.c (d_language_data): Likewise.
1979 * f-lang.c (f_printchar): Rename to f_language::printchar.
1980 (f_language_data): Delete la_printchar initializer.
1981 (f_language::printchar): New member function, implementation from
1982 f_printchar.
1983 * go-lang.c (go_language_data): Delete la_printchar initializer.
1984 * language.c (unk_lang_printchar): Delete.
1985 (language_defn::printchar): Define new member function.
1986 (unknown_language_data): Delete la_printchar initializer.
1987 (unknown_language::printchar): New member function.
1988 (auto_language_data): Delete la_printchar initializer.
1989 (auto_language::printchar): New member function.
1990 * language.h (language_data): Delete la_printchar field.
1991 (language_defn::printchar): Declare new member function.
1992 (LA_PRINT_CHAR): Update call to printchar.
1993 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1994 (m2_language::printchar): New member function.
1995 * objc-lang.c (objc_language_data): Delete la_printchar
1996 initializer.
1997 * opencl-lang.c (opencl_language_data): Likewise.
1998 * p-lang.c (pascal_language_data): Delete la_printchar
1999 initializer.
2000 (pascal_language::printchar): New member function.
2001 * rust-lang.c (rust_printchar): Rename to
2002 rust_language::printchar.
2003 (rust_language_data): Delete la_printchar initializer.
2004 (rust_language::printchar): New member function, implementation
2005 from rust_printchar.
2006
2007 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2010 (ada_language_data): Delete la_emitchar initializer.
2011 (ada_language::emitchar): New member function, implementation from
2012 emit_char.
2013 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2014 (cplus_language_data): Likewise.
2015 (asm_language_data): Likewise.
2016 (minimal_language_data): Likewise.
2017 * d-lang.c (d_language_data): Likewise.
2018 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2019 (f_language_data): Delete la_emitchar initializer.
2020 (f_language::emitchar): New member function, implementation from
2021 f_emit_char.
2022 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2023 * language.c (unk_lang_emit_char): Delete.
2024 (language_defn::emitchar): New member function definition.
2025 (unknown_language_data): Delete la_emitchar initializer.
2026 (unknown_language::emitchar): New member function.
2027 (auto_language_data): Delete la_emitchar initializer.
2028 (auto_language::emitchar): New member function.
2029 * language.h (language_data): Delete la_emitchar field.
2030 (language_defn::emitchar): New member field declaration.
2031 (LA_EMIT_CHAR): Update call to emitchar.
2032 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2033 (m2_language_data): Delete la_emitchar initializer.
2034 (m2_language::emitchar): New member function, implementation from
2035 m2_emit_char.
2036 * objc-lang.c (objc_language_data): Delete la_emitchar
2037 initializer.
2038 * opencl-lang.c (opencl_language_data): Likewise.
2039 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2040 (pascal_language_data): Delete la_emitchar initializer.
2041 (pascal_language::emitchar): New member function, implementation
2042 from pascal_emit_char.
2043 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2044 (rust_language_data): Delete la_emitchar initializer.
2045 (rust_language::emitchar): New member function, implementation
2046 from rust_emitchar.
2047
2048 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2051 (ada_language_data): Delete la_post_parser initializer.
2052 (ada_language::post_parser): New member function.
2053 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2054 (cplus_language_data): Likewise.
2055 (asm_language_data): Likewise.
2056 (minimal_language_data): Likewise.
2057 * d-lang.c (d_language_data): Likewise.
2058 * f-lang.c (f_language_data): Likewise.
2059 * go-lang.c (go_language_data): Likewise.
2060 * language.c (unknown_language_data): Likewise.
2061 (auto_language_data): Likewise.
2062 * language.h (language_data): Delete la_post_parser field.
2063 (language_defn::post_parser): New member function.
2064 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2065 * objc-lang.c (objc_language_data): Likewise.
2066 * opencl-lang.c (opencl_language_data): Likewise.
2067 * p-lang.c (pascal_language_data): Likewise.
2068 * parse.c (parse_exp_in_context): Update call to post_parser.
2069 (null_post_parser): Delete definition.
2070 * parser-defs.h (null_post_parser): Delete declaration.
2071 * rust-lang.c (rust_language_data): Delete la_post_parser
2072 initializer.
2073
2074 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * ada-lang.c (parse): Rename to ada_language::parser.
2077 (ada_language_data): Delete la_parser initializer.
2078 (ada_language::parser): New member function, implementation from
2079 parse.
2080 * c-lang.c (c_language_data): Delete la_parser initializer.
2081 (cplus_language_data): Likewise.
2082 (asm_language_data): Likewise.
2083 (minimal_language_data): Likewise.
2084 * d-lang.c (d_language_data): Likewise.
2085 (d_language::parser): New member function.
2086 * f-lang.c (f_language_data): Delete la_parser initializer.
2087 (f_language::parser): New member function.
2088 * go-lang.c (go_language_data): Delete la_parser initializer.
2089 (go_language::parser): New member function.
2090 * language.c (unk_lang_parser): Delete.
2091 (language_defn::parser): Define new member function.
2092 (unknown_language_data): Delete la_parser initializer.
2093 (unknown_language::parser): New member function.
2094 (auto_language_data): Delete la_parser initializer.
2095 (auto_language::parser): New member function.
2096 * language.h (language_data): Delete la_parser field.
2097 (language_defn::parser): Declare new member function.
2098 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2099 (m2_language::parser): New member function.
2100 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2101 * opencl-lang.c (opencl_language_data): Likewise.
2102 * p-lang.c (pascal_language_data): Likewise.
2103 (pascal_language::parser): New member function.
2104 * parse.c (parse_exp_in_context): Update call to parser.
2105 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2106 (rust_language::parser): New member function.
2107
2108 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * top.c (print_gdb_configuration): Print --with-python-libdir
2111 configuration value.
2112
2113 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2114
2115 * NEWS: Mention change to the alias command.
2116
2117 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2118
2119 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2120 (alias_command_completer)
2121 (make_alias_options_def_group): New functions.
2122 (alias_opts, alias_option_defs): New struct and array.
2123 (alias_usage_error): Update usage.
2124 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2125 Use option framework.
2126 (_initialize_cli_cmds): Update alias command help.
2127 Update aliases command help.
2128 (show_user):
2129 Add NULL for new default_args lookup_cmd argument.
2130 (valid_command_p): Rename to validate_aliased_command.
2131 Add NULL for new default_args lookup_cmd argument. Verify that the
2132 aliased_command has no default args.
2133 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2134 (lookup_cmd_1, lookup_cmd): New argument default_args.
2135 (add_alias_cmd):
2136 Add NULL for new default_args lookup_cmd argument.
2137 (print_help_for_command): Show default args under the layout
2138 alias some_alias = some_aliased_cmd some_alias_default_arg.
2139 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2140 xfree default_args in destructor.
2141 * cli/cli-script.c (process_next_line, do_define_command):
2142 Add NULL for new default_args lookup_cmd argument.
2143 * command.h: Declare new default_args argument in lookup_cmd
2144 and lookup_cmd_1.
2145 * completer.c (complete_line_internal_1):
2146 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2147 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2148 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2149 Likewise.
2150 * infcmd.c (_initialize_infcmd): Likewise.
2151 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2152 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2153 * python/py-param.c (add_setshow_generic): Likewise.
2154 * remote.c (_initialize_remote): Likewise.
2155 * top.c (execute_command): Prepend default_args if command has some.
2156 (set_verbose):
2157 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2158 * tracepoint.c (validate_actionline, encode_actions_1):
2159 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2160
2161 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 * jit.c (jit_read_descriptor): Use bool as the return type.
2164 (jit_breakpoint_re_set_internal): Use bool as the return type.
2165 Invert the return value logic; return true if the jit breakpoint
2166 has been successfully initialized.
2167 (jit_inferior_init): Update the call to
2168 jit_breakpoint_re_set_internal.
2169
2170 2020-06-22 Pedro Alves <palves@redhat.com>
2171
2172 PR gdb/25939
2173 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2174 Use the current inferior instead. Don't return
2175 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2176 wait again.
2177 * sol-thread.c (sol_thread_target::wait): Don't reference
2178 inferior_ptid.
2179 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2180 (sol_update_thread_list_callback): Use the current inferior's pid
2181 instead of inferior_ptid.
2182
2183 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2184
2185 * procfs.c: Cleanup many comments.
2186
2187 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2188 (AFTER_WATCHFLAG): Replace by value.
2189
2190 (MAIN_PROC_NAME_FORMAT): Inline ...
2191 (create_procinfo): ... here.
2192
2193 (procfs_debug_inferior): Remove SYS_exec handling.
2194 (syscall_is_exec): Likewise.
2195 (procfs_set_exec_trap): Likewise.
2196
2197 (syscall_is_lwp_exit): Inline in callers.
2198 (syscall_is_exit): Likewise.
2199 (syscall_is_exec): Likewise.
2200 (syscall_is_lwp_create): Likewise.
2201
2202 (invalidate_cache): Remove #if 0 code.
2203
2204 (make_signal_thread_runnable): Remove.
2205 (procfs_target::resume): Remove #if 0 code.
2206
2207 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2208
2209 PR gdb/25939
2210 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2211 call ...
2212 (procfs_target::create_inferior): ... here.
2213
2214 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2215
2216 * exec.c (validate_exec_file): Ensure the build-id is up to
2217 date by calling reopen_exec_file (that checks file timestamp
2218 to decide to re-read the file).
2219
2220 2020-06-18 Pedro Alves <palves@redhat.com>
2221
2222 PR gdb/25412
2223 * gdbthread.h (delete_thread, delete_thread_silent)
2224 (find_thread_ptid): Update comments.
2225 * thread.c (current_thread_): New global.
2226 (is_current_thread): Move higher, and reimplement.
2227 (inferior_thread): Reimplement.
2228 (set_thread_exited): Use bool. Add assertions.
2229 (add_thread_silent): Simplify thread-reuse handling by always
2230 calling delete_thread.
2231 (delete_thread): Remove intro comment.
2232 (find_thread_ptid): Skip exited threads.
2233 (switch_to_thread_no_regs): Write to current_thread_.
2234 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2235 INFERIOR_PTID. Clear current_thread_.
2236
2237 2020-06-18 Pedro Alves <palves@redhat.com>
2238
2239 * aix-thread.c (pd_update): Use switch_to_thread.
2240
2241 2020-06-18 Pedro Alves <palves@redhat.com>
2242
2243 * ravenscar-thread.c (ravenscar_thread_target): Update.
2244 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2245 (ravenscar_thread_target::add_active_thread): ... this. Don't
2246 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2247 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2248
2249 2020-06-18 Pedro Alves <palves@redhat.com>
2250
2251 * nat/windows-nat.c (current_windows_thread): Remove.
2252 * nat/windows-nat.h (current_windows_thread): Remove.
2253 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2254 Adjust.
2255 (display_selectors): Adjust to fetch the current
2256 windows_thread_info based on inferior_ptid.
2257 (fake_create_process): No longer write to current_windows_thread.
2258 (windows_nat_target::get_windows_debug_event):
2259 Don't set inferior_ptid or current_windows_thread.
2260 (windows_nat_target::wait): Adjust to not rely on
2261 current_windows_thread.
2262 (do_initial_windows_stuff): Now a method of windows_nat_target.
2263 Switch to the last_ptid thread.
2264 (windows_nat_target::attach): Adjust.
2265 (windows_nat_target::detach): Use switch_to_no_thread instead of
2266 writing to inferior_ptid directly.
2267 (windows_nat_target::create_inferior): Adjust.
2268
2269 2020-06-18 Pedro Alves <palves@redhat.com>
2270
2271 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2272
2273 2020-06-18 Pedro Alves <palves@redhat.com>
2274
2275 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2276 after creating it, instead of writing to inferior_ptid. Don't
2277 write to inferior_ptid.
2278
2279 2020-06-18 Pedro Alves <palves@redhat.com>
2280
2281 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2282
2283 2020-06-18 Pedro Alves <palves@redhat.com>
2284
2285 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2286 it, instead of writing to inferior_ptid.
2287
2288 2020-06-18 Pedro Alves <palves@redhat.com>
2289
2290 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2291 to inferior_ptid.
2292
2293 2020-06-18 Pedro Alves <palves@redhat.com>
2294
2295 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2296 instead of writing to inferior_ptid directly.
2297
2298 2020-06-18 Pedro Alves <palves@redhat.com>
2299
2300 * corelow.c (core_target::close): Use switch_to_no_thread instead
2301 of writing to inferior_ptid directly.
2302 (add_to_thread_list, core_target_open): Use switch_to_thread
2303 instead of writing to inferior_ptid directly.
2304
2305 2020-06-18 Pedro Alves <palves@redhat.com>
2306
2307 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2308 inferior_ptid.
2309 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2310 inferior_ptid.
2311 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2312 inferior_ptid directly.
2313 (darwin_nat_target::init_thread_list): Switch to thread, instead
2314 of writing to inferior_ptid.
2315 (darwin_nat_target::attach): Don't write to inferior_ptid.
2316 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2317
2318 2020-06-18 Pedro Alves <palves@redhat.com>
2319
2320 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2321 thread.
2322 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2323 Instead use switch_to_thread.
2324 (gnu_nat_target::detach): Use switch_to_no_thread
2325 instead of writing to inferior_ptid directly. Used passed-in
2326 inferior instead of looking up the inferior by pid.
2327
2328 2020-06-18 Pedro Alves <palves@redhat.com>
2329
2330 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2331 inferior_ptid.
2332
2333 2020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2336 inferior_ptid.
2337 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2338 thread.
2339 (nto_procfs_target::detach): Avoid referencing
2340 inferior_ptid. Use switch_to_no_thread instead of writing to
2341 inferior_ptid directly.
2342 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2343 instead of writing to inferior_ptid directly.
2344 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2345 to thread.
2346
2347 2020-06-18 Pedro Alves <palves@redhat.com>
2348
2349 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2350 after creating it, instead of writing to inferior_ptid.
2351 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2352 to inferior_ptid directly.
2353 (gdbsim_target::wait): Don't write to inferior_ptid.
2354
2355 2020-06-18 Pedro Alves <palves@redhat.com>
2356
2357 * remote.c (remote_target::remote_notice_new_inferior): Use
2358 switch_to_thread instead of writing to inferior_ptid directly.
2359 (remote_target::add_current_inferior_and_thread): Use
2360 switch_to_no_thread instead of writing to inferior_ptid directly.
2361 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2362 and switch_to_thread instead of using set_current_inferior or
2363 writing to inferior_ptid directly.
2364
2365 2020-06-18 Pedro Alves <palves@redhat.com>
2366
2367 * tracectf.c (ctf_target_open): Switch to added thread instead of
2368 writing to inferior_ptid directly.
2369 (ctf_target::close): Use switch_to_no_thread instead of writing to
2370 inferior_ptid directly.
2371
2372 2020-06-18 Pedro Alves <palves@redhat.com>
2373
2374 * tracefile-tfile.c (tfile_target_open): Don't write to
2375 inferior_ptid directly, instead switch to added thread.
2376 (tfile_target::close): Use switch_to_no_thread instead of writing
2377 to inferior_ptid directly.
2378
2379 2020-06-18 Pedro Alves <palves@redhat.com>
2380
2381 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2382 (procfs_target::detach): Use switch_to_no_thread
2383 instead of writing to inferior_ptid directly.
2384 (do_attach): Change return type to void. Switch to the added
2385 thread.
2386 (procfs_target::create_inferior): Switch to the added thread.
2387 (procfs_do_thread_registers): Don't write to inferior_ptid.
2388
2389 2020-06-18 Pedro Alves <palves@redhat.com>
2390
2391 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2392 of writing to inferior_ptid.
2393 (scoped_restore_exited_inferior): Delete.
2394 (handle_vfork_child_exec_or_exit): Simplify using
2395 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2396 instead of writing to inferior_ptid.
2397 (THREAD_STOPPED_BY): Delete.
2398 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2399 (thread_stopped_by_hw_breakpoint): Delete.
2400 (save_waitstatus): Use
2401 scoped_restore_current_thread+switch_to_thread, and call
2402 target_stopped_by_watchpoint instead of
2403 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2404 instead of thread_stopped_by_sw_breakpoint, and
2405 target_stopped_by_hw_breakpoint instead of
2406 thread_stopped_by_hw_breakpoint.
2407 (handle_inferior_event)
2408 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2409 inferior_ptid directly, nor
2410 set_current_inferior/set_current_program_space. Use
2411 switch_to_thread / switch_to_inferior_no_thread instead.
2412
2413 2020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2416 instead of writing to inferior_ptid.
2417
2418 2020-06-18 Pedro Alves <palves@redhat.com>
2419
2420 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2421 added thread.
2422 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2423 to the added thread.
2424 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2425 instead of writing to inferior_ptid.
2426
2427 2020-06-18 Pedro Alves <palves@redhat.com>
2428
2429 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2430 (register_to_value_test): Mock a program_space too. Heap-allocate
2431 the address space. Don't write to inferior_ptid. Use
2432 switch_to_thread instead.
2433
2434 2020-06-18 Pedro Alves <palves@redhat.com>
2435
2436 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2437 Delete.
2438 (find_signalled_thread()): New, factored out from
2439 linux_make_corefile_notes and adjusted to handle exited threads.
2440 (linux_make_corefile_notes): Adjust to use the new
2441 find_signalled_thread.
2442
2443 2020-06-18 Pedro Alves <palves@redhat.com>
2444
2445 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2446 of saving/restoring inferior_ptid.
2447
2448 2020-06-17 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2451 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2452 declare.
2453 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2454
2455 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2456
2457 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2458 of partial symtabs.
2459
2460 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * regformats/reg-arm.dat: Remove.
2463 * regformats/reg-bfin.dat: Remove.
2464 * regformats/reg-cris.dat: Remove.
2465 * regformats/reg-crisv32.dat: Remove.
2466 * regformats/reg-m32r.dat: Remove.
2467 * regformats/reg-tilegx.dat: Remove.
2468 * regformats/reg-tilegx32.dat: Remove.
2469
2470 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2471
2472 * features/Makefile (WHICH): Remove arm files.
2473 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2474 * regformats/arm/arm-with-neon.dat: Remove.
2475 * regformats/arm/arm-with-vfpv2.dat: Remove.
2476 * regformats/arm/arm-with-vfpv3.dat: Remove.
2477
2478 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * features/Makefile (XMLTOC): Remove rx.xml.
2481
2482 2020-06-17 Pedro Alves <palves@redhat.com>
2483
2484 * gdbthread.h (thread_control_state) <trap_expected> Update
2485 comments.
2486
2487 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2488
2489 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2490 ada_language::lookup_symbol_nonlocal.
2491 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2492 (ada_language::lookup_symbol_nonlocal): New member function,
2493 implementation from ada_lookup_symbol_nonlocal.
2494 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2495 initializer.
2496 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2497 initializer.
2498 (cplus_language::lookup_symbol_nonlocal): New member function.
2499 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2500 (minimal_language_data) Likewise.
2501 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2502 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2503 initializer.
2504 (d_language::lookup_symbol_nonlocal): New member function.
2505 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2506 initializer.
2507 (f_language::lookup_symbol_nonlocal): New member function.
2508 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2509 initializer.
2510 * language.c (unknown_language_data): Likewise.
2511 (auto_language_data): Likewise.
2512 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2513 field.
2514 (language_defn::lookup_symbol_nonlocal): New member function.
2515 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2516 initializer.
2517 * objc-lang.c (objc_language_data): Likewise.
2518 * opencl-lang.c (opencl_language_data): Likewise.
2519 * p-lang.c (pascal_language_data): Likewise.
2520 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2521 rust_language::lookup_symbol_nonlocal.
2522 (rust_language_data): Delete la_lookup_symbol_nonlocal
2523 initializer.
2524 (rust_language::lookup_symbol_nonlocal): New member function,
2525 implementation from rust_lookup_symbol_nonlocal.
2526 * symtab.c (lookup_symbol_aux): Update call to
2527 lookup_symbol_nonlocal.
2528 (basic_lookup_symbol_nonlocal): Rename to...
2529 (language_defn::lookup_symbol_nonlocal): ...this, and update
2530 header comment. Remove language_defn parameter, and replace with
2531 uses of `this'.
2532 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2533
2534 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2537 initializer.
2538 (ada_language::value_print_inner): New member function.
2539 * c-lang.c (c_language_data): Delete la_value_print_inner
2540 initializer.
2541 (cplus_language_data): Likewise.
2542 (asm_language_data): Likewise.
2543 (minimal_language_data): Likewise.
2544 * d-lang.c (d_language_data): Likewise.
2545 (d_language::value_print_inner): New member function.
2546 * f-lang.c (f_language_data): Delete la_value_print_inner
2547 initializer.
2548 (f_language::value_print_inner): New member function.
2549 * f-lang.h (f_value_print_innner): Rename to...
2550 (f_value_print_inner): ...this (note spelling of 'inner').
2551 * f-valprint.c (f_value_print_innner): Rename to...
2552 (f_value_print_inner): ...this (note spelling of 'inner').
2553 * go-lang.c (go_language_data): Delete la_value_print_inner
2554 initializer.
2555 (go_language::value_print_inner): New member function.
2556 * language.c (language_defn::value_print_inner): Define new member
2557 function.
2558 (unk_lang_value_print_inner): Delete.
2559 (unknown_language_data): Delete la_value_print_inner initializer.
2560 (unknown_language::value_print_inner): New member function.
2561 (auto_language_data): Delete la_value_print_inner initializer.
2562 (auto_language::value_print_inner): New member function.
2563 * language.h (language_data): Delete la_value_print_inner field.
2564 (language_defn::value_print_inner): Delcare new member function.
2565 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2566 initializer.
2567 (m2_language::value_print_inner): New member function.
2568 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2569 initializer.
2570 * opencl-lang.c (opencl_language_data): Likewise.
2571 * p-lang.c (pascal_language_data): Likewise.
2572 (pascal_language::value_print_inner): New member function.
2573 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2574 initializer.
2575 (rust_language::value_print_inner): New member function.
2576 * valprint.c (do_val_print): Update call to value_print_inner.
2577
2578 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * ada-lang.c (ada_language_data): Delete la_value_print
2581 initializer.
2582 (ada_language::value_print): New member function.
2583 * c-lang.c (c_language_data): Delete la_value_print initializer.
2584 (cplus_language_data): Likewise.
2585 (asm_language_data): Likewise.
2586 (minimal_language_data): Likewise.
2587 * d-lang.c (d_language_data): Likewise.
2588 * f-lang.c (f_language_data): Likewise.
2589 * go-lang.c (go_language_data): Likewise.
2590 * language.c (unk_lang_value_print): Delete.
2591 (language_defn::value_print): Define new member function.
2592 (unknown_language_data): Delete la_value_print initializer.
2593 (unknown_language::value_print): New member function.
2594 (auto_language_data): Delete la_value_print initializer.
2595 (auto_language::value_print): New member function.
2596 * language.h (language_data): Delete la_value_print field.
2597 (language_defn::value_print): Declare new member function.
2598 (LA_VALUE_PRINT): Update call to value_print.
2599 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2600 * objc-lang.c (objc_language_data): Likewise.
2601 * opencl-lang.c (opencl_language_data): Likewise.
2602 * p-lang.c (pascal_language_data): Likewise.
2603 (pascal_language::value_print): New member function.
2604 * rust-lang.c (rust_language_data): Delete la_value_print
2605 initializer.
2606
2607 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * ada-lang.c (ada_watch_location_expression): Rename to
2610 ada_language::watch_location_expression.
2611 (ada_language_data): Delete la_watch_location_expression
2612 initializer.
2613 (ada_language::watch_location_expression): New member function,
2614 implementation from ada_watch_location_expression.
2615 * breakpoint.c (watch_command_1): Update call to
2616 watch_location_expression.
2617 * c-lang.c (c_watch_location_expression): Rename to
2618 language_defn::watch_location_expression.
2619 (c_language_data): Delete la_watch_location_expression
2620 initializer.
2621 (cplus_language_data): Likewise.
2622 (asm_language_data): Likewise.
2623 (minimal_language_data): Likewise.
2624 * c-lang.h (c_watch_location_expression): Delete declaration.
2625 * d-lang.c (d_language_data): Delete la_watch_location_expression
2626 initializer.
2627 * f-lang.c (f_language_data): Likewise.
2628 * go-lang.c (go_language_data): Likewise.
2629 * language.c (language_defn::watch_location_expression): Member
2630 function implementation from c_watch_location_expression.
2631 (unknown_language_data): Delete la_watch_location_expression
2632 initializer.
2633 (auto_language_data): Likewise.
2634 * language.h (language_data): Delete la_watch_location_expression
2635 field.
2636 (language_defn::watch_location_expression): Declare new member
2637 function.
2638 * m2-lang.c (m2_language_data): Delete
2639 la_watch_location_expression initializer.
2640 * objc-lang.c (objc_language_data): Likewise.
2641 * opencl-lang.c (opencl_language_data): Likewise.
2642 * p-lang.c (pascal_language_data): Likewise.
2643 * rust-lang.c (rust_watch_location_expression): Rename to
2644 rust_language::watch_location_expression.
2645 (rust_language_data): Delete la_watch_location_expression
2646 initializer.
2647 (rust_language::watch_location_expression): New member function,
2648 implementation from rust_watch_location_expression.
2649
2650 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2653 ada_language::collect_symbol_completion_matches.
2654 (ada_language_data): Delete la_collect_symbol_completion_matches
2655 initializer.
2656 (ada_language::collect_symbol_completion_matches): New member
2657 function, implementation from
2658 ada_collect_symbol_completion_matches.
2659 * c-lang.c (c_language_data): Delete
2660 la_collect_symbol_completion_matches initializer.
2661 (cplus_language_data): Likewise.
2662 (asm_language_data): Likewise.
2663 (minimal_language_data): Likewise.
2664 * d-lang.c (d_language_data): Likewise.
2665 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2666 f_language::collect_symbol_completion_matches.
2667 (f_language_data): Delete la_collect_symbol_completion_matches
2668 initializer.
2669 (f_language::collect_symbol_completion_matches) New member
2670 function, implementation from f_collect_symbol_completion_matches.
2671 * go-lang.c (go_language_data): Delete
2672 la_collect_symbol_completion_matches initializer.
2673 * language.c (unknown_language_data): Likewise.
2674 (auto_language_data): Likewise.
2675 * language.h (language_data): Delete
2676 la_collect_symbol_completion_matches field.
2677 (language_defn::collect_symbol_completion_matches): New member
2678 function.
2679 * m2-lang.c (m2_language_data): Delete
2680 la_collect_symbol_completion_matches initializer.
2681 * objc-lang.c (objc_language_data): Likewise.
2682 * opencl-lang.c (opencl_language_data): Likewise.
2683 * p-lang.c (pascal_language_data): Likewise.
2684 * rust-lang.c (rust_language_data): Likewise.
2685 * symtab.c (default_collect_symbol_completion_matches): Delete.
2686 (collect_symbol_completion_matches): Update call to
2687 collect_symbol_completion_matches.
2688 (collect_symbol_completion_matches_type): Likewise.
2689 * symtab.h (default_collect_symbol_completion_matches): Delete
2690 declaration.
2691
2692 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2695 (ada_language_data): Delete la_word_break_characters initializer.
2696 (ada_language::word_break_characters): New member function.
2697 * c-lang.c (c_language_data): Delete la_word_break_characters
2698 initializer.
2699 (cplus_language_data): Likewise.
2700 (asm_language_data): Likewise.
2701 (minimal_language_data): Likewise.
2702 * completer.c: Update global comment.
2703 (advance_to_expression_complete_word_point): Update call to
2704 word_break_characters.
2705 (complete_files_symbols): Likewise.
2706 (complete_line_internal_1): Likewise.
2707 (default_completer_handle_brkchars): Likewise.
2708 (skip_quoted_chars): Likewise.
2709 * d-lang.c (d_language_data): Delete la_word_break_characters
2710 initializer.
2711 * f-lang.c (f_word_break_characters): Delete.
2712 (f_language_data): Delete la_word_break_characters initializer.
2713 (f_language::word_break_characters): New member function.
2714 * go-lang.c (go_language_data): Delete la_word_break_characters
2715 initializer.
2716 * language.c (unknown_language_data): Likewise.
2717 (auto_language_data): Likewise.
2718 * language.h (default_word_break_characters): Move declaration to
2719 earlier in the file.
2720 (language_data): Delete la_word_break_characters field.
2721 (language_defn::word_break_characters): New member function.
2722 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2723 initializer.
2724 * objc-lang.c (objc_language_data): Likewise.
2725 * opencl-lang.c (opencl_language_data): Likewise.
2726 * p-lang.c (pascal_language_data): Likewise.
2727 * rust-lang.c (rust_language_data): Likewise.
2728
2729 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2732 (ada_language_data): Delete la_get_symbol_name_matcher
2733 initializer.
2734 (language_defn::get_symbol_name_matcher_inner): New member
2735 function.
2736 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2737 initializer.
2738 (cplus_language_data): Likewise.
2739 (cplus_language::get_symbol_name_matcher_inner): New member
2740 function.
2741 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2742 (minimal_language_data): Likewise.
2743 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2744 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2745 initializer.
2746 * dictionary.c (iter_match_first_hashed): Update call to
2747 get_symbol_name_matcher.
2748 (iter_match_next_hashed): Likewise.
2749 (iter_match_next_linear): Likewise.
2750 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2751 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2752 initializer.
2753 (f_language::get_symbol_name_matcher_inner): New member function.
2754 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2755 initializer.
2756 * language.c (default_symbol_name_matcher): Update header comment,
2757 make static.
2758 (language_defn::get_symbol_name_matcher): New definition.
2759 (language_defn::get_symbol_name_matcher_inner): Likewise.
2760 (get_symbol_name_matcher): Delete.
2761 (unknown_language_data): Delete la_get_symbol_name_matcher
2762 initializer.
2763 (auto_language_data): Likewise.
2764 * language.h (language_data): Delete la_get_symbol_name_matcher
2765 field.
2766 (language_defn::get_symbol_name_matcher): New member function.
2767 (language_defn::get_symbol_name_matcher_inner): Likewise.
2768 (default_symbol_name_matcher): Delete declaration.
2769 * linespec.c (find_methods): Update call to
2770 get_symbol_name_matcher.
2771 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2772 initializer.
2773 * minsyms.c (lookup_minimal_symbol): Update call to
2774 get_symbol_name_matcher.
2775 (iterate_over_minimal_symbols): Likewise.
2776 * objc-lang.c (objc_language_data): Delete
2777 la_get_symbol_name_matcher initializer.
2778 * opencl-lang.c (opencl_language_data): Likewise.
2779 * p-lang.c (pascal_language_data): Likewise.
2780 * psymtab.c (psymbol_name_matches): Update call to
2781 get_symbol_name_matcher.
2782 * rust-lang.c (rust_language_data): Delete
2783 la_get_symbol_name_matcher initializer.
2784 * symtab.c (symbol_matches_search_name): Update call to
2785 get_symbol_name_matcher.
2786 (compare_symbol_name): Likewise.
2787
2788 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * ada-lang.c (ada_language_data): Delete la_compute_program
2791 initializer.
2792 * c-lang.c (c_language_data): Likewise.
2793 (c_language::compute_program): New member function.
2794 (cplus_language_data): Delete la_compute_program initializer.
2795 (cplus_language::compute_program): New member function.
2796 (asm_language_data): Delete la_compute_program initializer.
2797 (minimal_language_data): Likewise.
2798 * c-lang.h (c_compute_program): Update comment.
2799 (cplus_compute_program): Likewise.
2800 * compile/compile-c-support.c (c_compute_program): Likewise.
2801 (cplus_compute_program): Likewise.
2802 * compile/compile.c (compile_to_object): Update call to
2803 la_compute_program.
2804 * d-lang.c (d_language_data): Delete la_compute_program
2805 initializer.
2806 * f-lang.c (f_language_data): Likewise.
2807 * go-lang.c (go_language_data): Likewise.
2808 * language.c (unknown_language_data): Likewise.
2809 (auto_language_data): Likewise.
2810 * language.h (language_data): Delete la_compute_program field.
2811 (language_defn::compute_program): New member function.
2812 * m2-lang.c (m2_language_data): Delete la_compute_program
2813 initializer.
2814 * objc-lang.c (objc_language_data): Likewise.
2815 * opencl-lang.c (opencl_language_data): Likewise.
2816 * p-lang.c (pascal_language_data): Likewise.
2817 * rust-lang.c (rust_language_data): Likewise.
2818
2819 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * ada-lang.c (ada_language_data) Delete
2822 la_class_name_from_physname initializer.
2823 * c-lang.c (c_language_data): Likewise.
2824 (cplus_language_data): Likewise.
2825 (cplus_language::class_name_from_physname): New member function.
2826 (asm_language_data): Delete la_class_name_from_physname
2827 initializer.
2828 (minimal_language_data): Likewise.
2829 * d-lang.c (d_language_data): Likewise.
2830 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2831 method on language_defn class.
2832 (guess_full_die_structure_name): Likewise.
2833 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2834 initializer.
2835 * go-lang.c (go_language_data): Likewise.
2836 * language.c (language_class_name_from_physname): Delete.
2837 (unk_lang_class_name): Delete.
2838 (unknown_language_data): Delete la_class_name_from_physname
2839 initializer.
2840 (auto_language_data): Likewise.
2841 * language.h (language_data): Delete la_class_name_from_physname
2842 field.
2843 (language_defn::class_name_from_physname): New function.
2844 (language_class_name_from_physname): Delete declaration.
2845 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2846 initializer.
2847 * objc-lang.c (objc_language_data): Likewise.
2848 * opencl-lang.c (opencl_language_data): Likewise.
2849 * p-lang.c (pascal_language_data): Likewise.
2850 * rust-lang.c (rust_language_data): Likewise.
2851
2852 2020-06-16 Tom Tromey <tom@tromey.com>
2853
2854 * tui/tui-data.h (STATUS_NAME): New macro.
2855 * tui/tui-layout.c (tui_remove_some_windows)
2856 (initialize_known_windows, tui_register_window)
2857 (tui_layout_split::remove_windows, initialize_layouts)
2858 (tui_new_layout_command): Don't use hard-coded window names.
2859
2860 2020-06-16 Tom Tromey <tom@tromey.com>
2861
2862 PR tui/25348:
2863 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2864 tui_initialize_readline. Only run once. Call rl_initialize.
2865 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2866 tui_initialize_readline.
2867 * tui/tui-io.c (tui_setup_io): Call
2868 tui_ensure_readline_initialized.
2869 * tui/tui-interp.c (tui_interp::init): Update.
2870
2871 2020-06-16 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2874 Also preserve the status window.
2875
2876 2020-06-16 Tom Tromey <tom@tromey.com>
2877
2878 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2879 where m_window==nullptr.
2880
2881 2020-06-15 Tom Tromey <tromey@adacore.com>
2882
2883 * windows-nat.c (windows_nat::handle_output_debug_string):
2884 Update.
2885 (windows_nat::handle_ms_vc_exception): Update.
2886 * target.h (target_read_string): Change API.
2887 * target.c (target_read_string): Change API.
2888 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2889 Update.
2890 * solib-frv.c (frv_current_sos): Update.
2891 * solib-dsbt.c (dsbt_current_sos): Update.
2892 * solib-darwin.c (darwin_current_sos): Update.
2893 * linux-thread-db.c (inferior_has_bug): Update.
2894 * expprint.c (print_subexp_standard): Update.
2895 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2896 (ada_exception_message_1): Update.
2897
2898 2020-06-15 Tom Tromey <tromey@adacore.com>
2899
2900 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2901
2902 2020-06-15 Tom Tromey <tromey@adacore.com>
2903
2904 * valprint.c (read_string): Update comment.
2905 * target.c (MIN): Remove.
2906 (target_read_string): Rewrite.
2907
2908 2020-06-15 Tom Tromey <tromey@adacore.com>
2909
2910 * corefile.c (read_memory_string): Remove.
2911 * ada-valprint.c (ada_value_print_ptr): Update.
2912 * ada-lang.h (ada_tag_name): Change return type.
2913 * ada-lang.c (type_from_tag): Update.
2914 (ada_tag_name_from_tsd): Change return type. Use
2915 target_read_string.
2916 (ada_tag_name): Likewise.
2917 * gdbcore.h (read_memory_string): Don't declare.
2918
2919 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2920
2921 * symtab.c (rbreak_command): Ignore Windows drive colon.
2922
2923 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2924
2925 * NEWS: Mention removed GDBserver host support.
2926
2927 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2928
2929 * features/riscv/rebuild-csr-xml.sh: Updated.
2930
2931 2020-06-11 Tom Tromey <tom@tromey.com>
2932
2933 PR gdb/18318:
2934 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2935
2936 2020-06-09 Jonny Grant <jg@jguk.org>
2937 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * main.c (captured_main_1): Don't print new line after help.
2940 (print_gdb_help): add mailing list and IRC channel information
2941 to --help. Add new lines between items in the footer. Remove
2942 quotes around bug url.
2943
2944 2020-06-11 Keith Seitz <keiths@redhat.com>
2945
2946 PR gdb/21356
2947 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2948 Resolve typedefs for type length calculations.
2949
2950 2020-06-10 Tom de Vries <tdevries@suse.de>
2951
2952 PR ada/24713
2953 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2954 (write_psymbols): Enable .gdb_index for ada.
2955 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2956 ada.
2957
2958 2020-06-10 Tom de Vries <tdevries@suse.de>
2959
2960 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2961 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2962 namei" instead of "const char *name" argument.
2963 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2964 dw2_symtab_iter_init.
2965
2966 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2969 to use type::field and field::type instead.
2970
2971 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2974 to use field::type instead.
2975
2976 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * gdbtypes.h (struct field) <type, set_type>: New methods.
2979 Rename `type` field to...
2980 <m_type>: ... this. Change references throughout to use type or
2981 set_type methods.
2982 (FIELD_TYPE): Use field::type. Change call sites that modify
2983 the field's type to use field::set_type instead.
2984
2985 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2988 to use type::index_type instead.
2989
2990 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2993 methods.
2994 (TYPE_INDEX_TYPE): Use type::index_type.
2995 * gdbtypes.c (create_array_type_with_stride): Likewise.
2996
2997 2020-06-07 Tom Tromey <tom@tromey.com>
2998
2999 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3000 parameter.
3001 (generic_value_print): Update.
3002
3003 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 Revert commit 982a38f60b0.
3006 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3007
3008 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3011 avoid use after free.
3012
3013 2020-06-05 Tom de Vries <tdevries@suse.de>
3014
3015 * NEWS: Fix typos.
3016
3017 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3020 the per_bfd object.
3021 (dwarf2_read_debug_names): Likewise.
3022 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3023 object when re-using a per_bfd object with an index.
3024
3025 2020-06-03 Tom de Vries <tdevries@suse.de>
3026
3027 PR symtab/26046
3028 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3029 children for C++.
3030 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3031 DW_TAG_subprogram.
3032
3033 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * ada-lang.c (ada_language_data): Delete skip_trampoline
3036 initializer.
3037 * c-lang.c (c_language_data): Likewise.
3038 (cplus_language_data): Likewise.
3039 (cplus_language::skip_trampoline): New member function.
3040 (asm_language_data): Delete skip_trampoline initializer.
3041 (minimal_language_data): Likewise.
3042 * d-lang.c (d_language_data): Likewise.
3043 * f-lang.c (f_language_data): Likewise.
3044 * go-lang.c (go_language_data): Likewise.
3045 * language.c (unk_lang_trampoline): Delete function.
3046 (skip_language_trampoline): Update.
3047 (unknown_language_data): Delete skip_trampoline initializer.
3048 (auto_language_data): Likewise.
3049 * language.h (language_data): Delete skip_trampoline field.
3050 (language_defn::skip_trampoline): New function.
3051 * m2-lang.c (m2_language_data): Delete skip_trampoline
3052 initializer.
3053 * objc-lang.c (objc_skip_trampoline): Delete function, move
3054 implementation to objc_language::skip_trampoline.
3055 (objc_language_data): Delete skip_trampoline initializer.
3056 (objc_language::skip_trampoline): New member function with
3057 implementation from objc_skip_trampoline.
3058 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3059 initializer.
3060 * p-lang.c (pascal_language_data): Likewise.
3061 * rust-lang.c (rust_language_data): Likewise.
3062
3063 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3066 (ada_language::demangle): New member function.
3067 * c-lang.c (c_language_data): Delete la_demangle initializer.
3068 (cplus_language_data): Delete la_demangle initializer.
3069 (cplus_language::demangle): New member function.
3070 (asm_language_data): Delete la_demangle initializer.
3071 (minimal_language_data): Delete la_demangle initializer.
3072 * d-lang.c (d_language_data): Delete la_demangle initializer.
3073 (d_language::demangle): New member function.
3074 * f-lang.c (f_language_data): Delete la_demangle initializer.
3075 (f_language::demangle): New member function.
3076 * go-lang.c (go_language_data): Delete la_demangle initializer.
3077 (go_language::demangle): New member function.
3078 * language.c (language_demangle): Update.
3079 (unk_lang_demangle): Delete.
3080 (unknown_language_data): Delete la_demangle initializer.
3081 (unknown_language::demangle): New member function.
3082 (auto_language_data): Delete la_demangle initializer.
3083 (auto_language::demangle): New member function.
3084 * language.h (language_data): Delete la_demangle field.
3085 (language_defn::demangle): New function.
3086 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3087 * objc-lang.c (objc_language_data): Delete la_demangle
3088 initializer.
3089 (objc_language::demangle): New member function.
3090 * opencl-lang.c (opencl_language_data): Delete la_demangle
3091 initializer.
3092 * p-lang.c (pascal_language_data): Likewise.
3093 * rust-lang.c (rust_language_data): Likewise.
3094 (rust_language::demangle): New member function.
3095
3096 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3097
3098 * ada-lang.c (ada_language_data): Delete la_print_type
3099 initializer.
3100 (ada_language::print_type): New member function.
3101 * c-lang.c (c_language_data): Delete la_print_type initializer.
3102 (c_language::print_type): New member function.
3103 (cplus_language_data): Delete la_print_type initializer.
3104 (cplus_language::print_type): New member function.
3105 (asm_language_data): Delete la_print_type initializer.
3106 (asm_language::print_type): New member function.
3107 (minimal_language_data): Delete la_print_type initializer.
3108 (minimal_language::print_type): New member function.
3109 * d-lang.c (d_language_data): Delete la_print_type initializer.
3110 (d_language::print_type): New member function.
3111 * f-lang.c (f_language_data): Delete la_print_type initializer.
3112 (f_language::print_type): New member function.
3113 * go-lang.c (go_language_data): Delete la_print_type initializer.
3114 (go_language::print_type): New member function.
3115 * language.c (unk_lang_print_type): Delete.
3116 (unknown_language_data): Delete la_print_type initializer.
3117 (unknown_language::print_type): New member function.
3118 (auto_language_data): Delete la_print_type initializer.
3119 (auto_language::print_type): New member function.
3120 * language.h (language_data): Delete la_print_type field.
3121 (language_defn::print_type): New function.
3122 (LA_PRINT_TYPE): Update.
3123 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3124 (m2_language::print_type): New member function.
3125 * objc-lang.c (objc_language_data): Delete la_print_type
3126 initializer.
3127 (objc_language::print_type): New member function.
3128 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3129 to opencl_language::print_type.
3130 (opencl_language_data): Delete la_print_type initializer.
3131 (opencl_language::print_type): New member function, implementation
3132 from opencl_print_type.
3133 * p-lang.c (pascal_language_data): Delete la_print_type
3134 initializer.
3135 (pascal_language::print_type): New member function.
3136 * rust-lang.c (rust_print_type): Delete, implementation moved to
3137 rust_language::print_type.
3138 (rust_language_data): Delete la_print_type initializer.
3139 (rust_language::print_type): New member function, implementation
3140 from rust_print_type.
3141
3142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3145 implementation moves to...
3146 (ada_language::sniff_from_mangled_name): ...here. Update return
3147 type.
3148 (ada_language_data): Delete la_sniff_from_mangled_name
3149 initializer.
3150 * c-lang.c (c_language_data): Likewise.
3151 (cplus_language_data): Likewise.
3152 (cplus_language::sniff_from_mangled_name): New member function,
3153 implementation taken from gdb_sniff_from_mangled_name.
3154 (asm_language_data): Delete la_sniff_from_mangled_name
3155 initializer.
3156 (minimal_language_data): Likewise.
3157 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3158 implementation moves to cplus_language::sniff_from_mangled_name.
3159 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3160 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3161 moves to...
3162 (d_language::sniff_from_mangled_name): ...here.
3163 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3164 * f-lang.c (f_language_data): Likewise.
3165 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3166 moves to...
3167 (go_language::sniff_from_mangled_name): ...here.
3168 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3169 * language.c (language_sniff_from_mangled_name): Delete.
3170 (unknown_language_data): Delete la_sniff_from_mangled_name
3171 initializer.
3172 (auto_language_data): Likewise.
3173 * language.h (language_data): Delete la_sniff_from_mangled_name
3174 field.
3175 (language_defn::sniff_from_mangled_name): New function.
3176 (language_sniff_from_mangled_name): Delete declaration.
3177 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3178 field.
3179 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3180 implementation moves to...
3181 (objc_language::sniff_from_mangled_name): ...here.
3182 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3183 * opencl-lang.c (opencl_language_data): Likewise.
3184 * p-lang.c (pascal_language_data): Likewise.
3185 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3186 implementation moves to...
3187 (rust_language::sniff_from_mangled_name): ...here.
3188 (rust_language_data): Delete la_sniff_from_mangled_name
3189 initializer.
3190 * symtab.c (symbol_find_demangled_name): Call
3191 sniff_from_mangled_name member function.
3192
3193 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3196 initializer.
3197 * c-lang.c (c_language_data): Likewise.
3198 (cplus_language_data): Likewise.
3199 (cplus_language::search_name_hash): New member function.
3200 (asm_language_data): Delete la_search_name_hash initializer.
3201 (minimal_language_data): Likewise.
3202 * d-lang.c (d_language_data): Likewise.
3203 * dictionary.c (default_search_name_hash): Rename to...
3204 (language_defn::search_name_hash): ...this.
3205 * f-lang.c (f_language_data): Likewise.
3206 (f_language::search_name_hash): New member function.
3207 * go-lang.c (go_language_data): Delete la_search_name_hash
3208 initializer.
3209 * language.c (unknown_language_data): Likewise.
3210 (auto_language_data): Likewise.
3211 * language.h (struct language_data): Delete la_search_name_hash
3212 field.
3213 (language_defn::search_name_hash): Declare new member function.
3214 (default_search_name_hash): Delete declaration.
3215 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3216 initializer.
3217 * objc-lang.c (objc_language_data): Likewise.
3218 * opencl-lang.c (opencl_language_data): Likewise.
3219 * p-lang.c (pascal_language_data): Likewise.
3220 * rust-lang.c (rust_language_data): Likewise.
3221 * symtab.c (search_name_hash): Update call.
3222
3223 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3226 initializer.
3227 * c-lang.c (class compile_instance): Declare.
3228 (c_language_data): Delete la_get_compile_instance initializer.
3229 (c_language::get_compile_instance): New member function.
3230 (cplus_language_data): Delete la_get_compile_instance initializer.
3231 (cplus_language::get_compile_instance): New member function.
3232 (asm_language_data): Delete la_get_compile_instance initializer.
3233 (minimal_language_data): Likewise.
3234 * c-lang.h (c_get_compile_context): Update comment.
3235 (cplus_get_compile_context): Update comment.
3236 * compile/compile.c (compile_to_object): Update calls, don't rely
3237 on function pointer being NULL.
3238 * d-lang.c (d_language_data): Delete la_get_compile_instance
3239 initializer.
3240 * f-lang.c (f_language_data): Likewise.
3241 * go-lang.c (go_language_data): Likewise.
3242 * language.c (unknown_language_data): Likewise.
3243 (auto_language_data): Likewise.
3244 * language.h (language_data): Delete la_get_compile_instance field.
3245 (language_defn::get_compile_instance): New member function.
3246 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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
3253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_add_all_symbols): Update comment.
3256 (ada_iterate_over_symbols): Delete, move implementation to...
3257 (ada_language::iterate_over_symbols): ...here, a new member
3258 function, rewrite to use range based for loop.
3259 (ada_language_data): Delete la_iterate_over_symbols initializer.
3260 * c-lang.c (c_language_data): Likewise.
3261 (cplus_language_data): Likewise.
3262 (asm_language_data): Likewise.
3263 (minimal_language_data): Likewise.
3264 * d-lang.c (d_language_data): Likewise.
3265 * f-lang.c (f_language_data): Likewise.
3266 * go-lang.c (go_language_data): Likewise.
3267 * language.c (unknown_language_data): Likewise.
3268 (auto_language_data): Likewise.
3269 * language.h (language_data): Delete la_iterate_over_symbols field.
3270 (language_defn::iterate_over_symbols): New member function.
3271 (LA_ITERATE_OVER_SYMBOLS): Update.
3272 * linespec.c (iterate_over_all_matching_symtabs): Update.
3273 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3274 initializer.
3275 * objc-lang.c (objc_language_data): Likewise.
3276 * opencl-lang.c (opencl_language_data): Likewise.
3277 * p-lang.c (pascal_language_data): Likewise.
3278 * rust-lang.c (rust_language_data): Likewise.
3279
3280 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_language_data): Delete
3283 la_lookup_transparent_type initializer.
3284 * c-lang.c (c_language_data): Likewise.
3285 (cplus_language_data): Likewise.
3286 (cplus_language::lookup_transparent_type): New member function.
3287 (asm_language_data): Delete la_lookup_transparent_type
3288 initializer.
3289 (minimal_language_data): Likewise.
3290 * d-lang.c (d_language_data): Likewise.
3291 * f-lang.c (f_language_data): Likewise.
3292 * go-lang.c (go_language_data): Likewise.
3293 * language.c (unknown_language_data): Likewise.
3294 (auto_language_data): Likewise.
3295 * language.h (struct language_data): Delete
3296 la_lookup_transparent_type field.
3297 (language_defn::lookup_transparent_type): New member function.
3298 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3299 initializer.
3300 * objc-lang.c (objc_language_data): Likewise.
3301 * opencl-lang.c (opencl_language_data): Likewise.
3302 * p-lang.c (pascal_language_data): Likewise.
3303 * rust-lang.c (rust_language_data): Likewise.
3304 * symtab.c (symbol_matches_domain): Update call.
3305
3306 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * ada-lang.c (ada_language_arch_info): Delete function, move
3309 implementation to...
3310 (ada_language::language_arch_info): ...here, a new member
3311 function.
3312 (ada_language_data): Delete la_language_arch_info.
3313 * c-lang.c (c_language_data): Likewise.
3314 (c_language::language_arch_info): New member function.
3315 (cplus_language_arch_info): Delete function, move
3316 implementation to...
3317 (cplus_language::language_arch_info): ...here, a new member
3318 function.
3319 (cplus_language_data): Delete la_language_arch_info.
3320 (asm_language_data): Likewise.
3321 (asm_language::language_arch_info): New member function.
3322 (minimal_language_data): Delete la_language_arch_info.
3323 (minimal_language::language_arch_info): New member function.
3324 * d-lang.c (d_language_arch_info): Delete function, move
3325 implementation to...
3326 (d_language::language_arch_info): ...here, a new member
3327 function.
3328 (d_language_data): Delete la_language_arch_info.
3329 * f-lang.c (f_language_arch_info): Delete function, move
3330 implementation to...
3331 (f_language::language_arch_info): ...here, a new member
3332 function.
3333 (f_language_data): Delete la_language_arch_info.
3334 * go-lang.c (go_language_arch_info): Delete function, move
3335 implementation to...
3336 (go_language::language_arch_info): ...here, a new member
3337 function.
3338 (go_language_data): Delete la_language_arch_info.
3339 * language.c (unknown_language_data): Likewise.
3340 (unknown_language::language_arch_info): New member function.
3341 (auto_language_data): Delete la_language_arch_info.
3342 (auto_language::language_arch_info): New member function.
3343 (language_gdbarch_post_init): Update call to
3344 la_language_arch_info.
3345 * language.h (language_data): Delete la_language_arch_info
3346 function pointer.
3347 (language_defn::language_arch_info): New function.
3348 * m2-lang.c (m2_language_arch_info): Delete function, move
3349 implementation to...
3350 (m2_language::language_arch_info): ...here, a new member
3351 function.
3352 (m2_language_data): Delete la_language_arch_info.
3353 * objc-lang.c (objc_language_arch_info): Delete function, move
3354 implementation to...
3355 (objc_language::language_arch_info): ...here, a new member
3356 function.
3357 (objc_language_data): Delete la_language_arch_info.
3358 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3359 implementation to...
3360 (opencl_language::language_arch_info): ...here, a new member
3361 function.
3362 (opencl_language_data): Delete la_language_arch_info.
3363 * p-lang.c (pascal_language_arch_info): Delete function, move
3364 implementation to...
3365 (pascal_language::language_arch_info): ...here, a new member
3366 function.
3367 (pascal_language_data): Delete la_language_arch_info.
3368 * rust-lang.c (rust_language_arch_info): Delete function, move
3369 implementation to...
3370 (rust_language::language_arch_info): ...here, a new member
3371 function.
3372 (rust_language_data): Delete la_language_arch_info.
3373
3374 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3377 initializer.
3378 * c-lang.c (c_language_data): Likewise.
3379 (cplus_language_data): Likewise.
3380 (cplus_language::pass_by_reference_info): New method.
3381 (asm_language_data): Delete la_pass_by_reference initializer.
3382 (minimal_language_data): Likewise.
3383 * cp-abi.c (cp_pass_by_reference): Remove use of
3384 default_pass_by_reference.
3385 * d-lang.c (d_language_data): Likewise.
3386 * f-lang.c (f_language_data): Likewise.
3387 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3388 default_pass_by_reference.
3389 * go-lang.c (go_language_data): Likewise.
3390 * language.c (language_pass_by_reference): Update.
3391 (default_pass_by_reference): Delete.
3392 (unknown_language_data): Delete la_pass_by_reference
3393 initializer.
3394 (auto_language_data): Likewise.
3395 * language.h (struct language_data): Delete la_pass_by_reference
3396 field.
3397 (language_defn::pass_by_reference_info): New member function.
3398 (default_pass_by_reference): Delete declaration.
3399 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3400 initializer.
3401 * objc-lang.c (objc_language_data): Likewise.
3402 * opencl-lang.c (opencl_language_data): Likewise.
3403 * p-lang.c (pascal_language_data): Likewise.
3404 * rust-lang.c (rust_language_data): Likewise.
3405
3406 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * ada-lang.c (ada_read_var_value): Delete function, move
3409 implementation to...
3410 (ada_language::read_var_value): ...here.
3411 (ada_language_data): Delete la_read_var_value initializer.
3412 * c-lang.c (c_language_data): Likewise.
3413 (cplus_language_data): Likewise.
3414 (minimal_language_data): Likewise.
3415 * d-lang.c (d_language_data): Likewise.
3416 * f-lang.c (f_language_data): Likewise.
3417 * findvar.c (default_read_var_value): Rename to...
3418 (language_defn::read_var_value): ...this.
3419 * findvar.c (read_var_value): Update header comment, and change to
3420 call member function instead of function pointer.
3421 * go-lang.c (go_language_data): Likewise.
3422 * language.c (unknown_language_data): Delete la_read_var_value
3423 initializer.
3424 (auto_language_data): Likewise.
3425 * language.h (struct language_data): Delete la_read_var_value
3426 field.
3427 (language_defn::read_var_value): New member function.
3428 (default_read_var_value): Delete declaration.
3429 * m2-lang.c (m2_language_data): Delete la_read_var_value
3430 initializer.
3431 * objc-lang.c (objc_language_data): Likewise.
3432 * opencl-lang.c (opencl_language_data): Likewise.
3433 * p-lang.c (pascal_language_data): Likewise.
3434 * rust-lang.c (rust_language_data): Likewise.
3435 * value.h (default_read_var_value): Delete declaration.
3436
3437 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * ada-lang.c (ada_print_array_index): Delete function, move
3440 implementation to...
3441 (ada_language::print_array_index): ...here.
3442 (ada_language_data): Delete la_print_array_index 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 * go-lang.c (go_language_data): Likewise.
3449 * language.c (default_print_array_index): Delete function, move
3450 implementation to...
3451 (language_defn::print_array_index): ...here.
3452 (unknown_language_data): Delete la_print_array_index initializer.
3453 (auto_language_data): Likewise.
3454 * language.h (struct language_data): Delete la_print_array_index
3455 field.
3456 (language_defn::print_array_index): New member function.
3457 (LA_PRINT_ARRAY_INDEX): Update.
3458 (default_print_array_index): Delete declaration.
3459 * m2-lang.c (m2_language_data): Delete la_print_array_index
3460 initializer.
3461 * objc-lang.c (objc_language_data): Likewise.
3462 * opencl-lang.c (opencl_language_data): Likewise.
3463 * p-lang.c (pascal_language_data): Likewise.
3464 * rust-lang.c (rust_language_data): Likewise.
3465
3466 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * gdb/ada-lang.c (ada_language_defn): Convert to...
3469 (ada_language_data): ...this.
3470 (class ada_language): New class.
3471 (ada_language_defn): New static global.
3472 * gdb/c-lang.c (c_language_defn): Convert to...
3473 (c_language_data): ...this.
3474 (class c_language): New class.
3475 (c_language_defn): New static global.
3476 (cplus_language_defn): Convert to...
3477 (cplus_language_data): ...this.
3478 (class cplus_language): New class.
3479 (cplus_language_defn): New static global.
3480 (asm_language_defn): Convert to...
3481 (asm_language_data): ...this.
3482 (class asm_language): New class.
3483 (asm_language_defn): New static global.
3484 (minimal_language_defn): Convert to...
3485 (minimal_language_data): ...this.
3486 (class minimal_language): New class.
3487 (minimal_language_defn): New static global.
3488 * gdb/d-lang.c (d_language_defn): Convert to...
3489 (d_language_data): ...this.
3490 (class d_language): New class.
3491 (d_language_defn): New static global.
3492 * gdb/f-lang.c (f_language_defn): Convert to...
3493 (f_language_data): ...this.
3494 (class f_language): New class.
3495 (f_language_defn): New static global.
3496 * gdb/go-lang.c (go_language_defn): Convert to...
3497 (go_language_data): ...this.
3498 (class go_language): New class.
3499 (go_language_defn): New static global.
3500 * gdb/language.c (unknown_language_defn): Remove declaration.
3501 (current_language): Initialize to nullptr, real initialization is
3502 moved to _initialize_language.
3503 (languages): Delete global.
3504 (language_defn::languages): Define.
3505 (set_language_command): Use language_defn::languages.
3506 (set_language): Likewise.
3507 (range_error): Likewise.
3508 (language_enum): Likewise.
3509 (language_def): Likewise.
3510 (add_set_language_command): Use language_def::languages for the
3511 language list, and language_def to lookup language pointers.
3512 (skip_language_trampoline): Use language_defn::languages.
3513 (unknown_language_defn): Convert to...
3514 (unknown_language_data): ...this.
3515 (class unknown_language): New class.
3516 (unknown_language_defn): New static global.
3517 (auto_language_defn): Convert to...
3518 (auto_language_data): ...this.
3519 (class auto_language): New class.
3520 (auto_language_defn): New static global.
3521 (language_gdbarch_post_init): Use language_defn::languages.
3522 (_initialize_language): Initialize current_language.
3523 * gdb/language.h (struct language_defn): Rename to...
3524 (struct language_data): ...this.
3525 (struct language_defn): New.
3526 (auto_language_defn): Delete.
3527 (unknown_language_defn): Delete.
3528 (minimal_language_defn): Delete.
3529 (ada_language_defn): Delete.
3530 (asm_language_defn): Delete.
3531 (c_language_defn): Delete.
3532 (cplus_language_defn): Delete.
3533 (d_language_defn): Delete.
3534 (f_language_defn): Delete.
3535 (go_language_defn): Delete.
3536 (m2_language_defn): Delete.
3537 (objc_language_defn): Delete.
3538 (opencl_language_defn): Delete.
3539 (pascal_language_defn): Delete.
3540 (rust_language_defn): Delete.
3541 * gdb/m2-lang.c (m2_language_defn): Convert to...
3542 (m2_language_data): ...this.
3543 (class m2_language): New class.
3544 (m2_language_defn): New static global.
3545 * gdb/objc-lang.c (objc_language_defn): Convert to...
3546 (objc_language_data): ...this.
3547 (class objc_language): New class.
3548 (objc_language_defn): New static global.
3549 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3550 (opencl_language_data): ...this.
3551 (class opencl_language): New class.
3552 (opencl_language_defn): New static global.
3553 * gdb/p-lang.c (pascal_language_defn): Convert to...
3554 (pascal_language_data): ...this.
3555 (class pascal_language): New class.
3556 (pascal_language_defn): New static global.
3557 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3558 language pointer, update comment format.
3559 * gdb/rust-lang.c (rust_language_defn): Convert to...
3560 (rust_language_data): ...this.
3561 (class rust_language): New class.
3562 (rust_language_defn): New static global.
3563
3564 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3567 member variable.
3568 <m_stmt_at_address>: New member variable.
3569 (lnp_state_machine::record_line): Don't record some lines, update
3570 tracking of is_stmt at the same address.
3571 (lnp_state_machine::lnp_state_machine): Initialise new member
3572 variables.
3573
3574 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3575
3576 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3577 "-include gnu-nat-mig.h".
3578 * gnu-nat-mig.h: New file.
3579 * gnu-nat.c: Include "gnu-nat-mig.h".
3580 (exc_server, msg_reply_server, notify_server,
3581 process_reply_server): Remove declarations.
3582
3583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3584
3585 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3586 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3587 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3588 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3589 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3590 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3591 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3592 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3593 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3594 to gnu_nat_target class.
3595 * gnu-nat.c: Likewise.
3596 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3597 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3598 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3599 object.
3600 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3601 instead of `gnu_target'.
3602
3603 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3604
3605 * i386-gnu-tdep.c: Include "gdbcore.h"
3606 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3607 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3608 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3609 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3610 i386_gnu_sigcontext_addr): New functions
3611 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3612 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3613 tdep.
3614
3615 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3616
3617 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3618 before fork_inferior call. Avoid calling it if target_is_pushed returns
3619 true.
3620
3621 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3622
3623 * gnu-nat.h (gnu_target): New variable declaration.
3624 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3625 gnu_target.
3626 * gnu-nat.c (gnu_target): New variable.
3627 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3628 add_thread_silent, and add_thread calls.
3629 (gnu_nat_target::create_inferior): Pass gnu_target to
3630 add_thread_silent, thread_change_ptid call.
3631 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3632 call.
3633
3634 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3635
3636 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3637 (gnu_nat_target::find_memory_regions): Remove unused
3638 `old_address' variable.
3639
3640 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3641
3642 * gnu-nat.c: Include "gdbarch.h".
3643
3644 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3645
3646 * reply_mig_hack.awk (Error return): Cast function through
3647 void *, to bypass compiler function call check.
3648
3649 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3650
3651 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3652 $(srcdir)/reply_mig_hack.awk.
3653
3654 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3655
3656 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3657
3658 2020-05-30 Jonny Grant <jg@jguk.org>
3659
3660 * configure.ac (ACX_BUGURL): change bug URL to https.
3661
3662 2020-05-30 Pedro Alves <palves@redhat.com>
3663
3664 * cp-support.c (replace_typedefs_template): New.
3665 (replace_typedefs_qualified_name): Handle
3666 DEMANGLE_COMPONENT_TEMPLATE.
3667
3668 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3671 dwarf2/index-cache.h, dwarf2/index-write.c,
3672 dwarf2/index-write.h, dwarf2/line-header.c,
3673 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3674 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3675 variables and fields from `dwarf2_per_objfile` to just
3676 `per_objfile` throughout.
3677
3678 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3679
3680 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3681 <push_dwarf_reg_entry_value>: Add comment.
3682
3683 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3684 Keith Seitz <keiths@redhat.com>
3685
3686 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3687 instead of PyEval_ReleaseLock.
3688 (class gdbpy_gil): Move to earlier in file.
3689 (finalize_python): Set gdb_python_initialized.
3690 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3691 when not initialized.
3692
3693 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3696 <push_dwarf_reg_entry_value>: Remove assert. Override
3697 per_objfile with caller_per_objfile.
3698
3699 2020-05-28 Tom de Vries <tdevries@suse.de>
3700
3701 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3702 PR gold/15646 workaround to symbol kind "type".
3703
3704 2020-05-27 Tom Tromey <tromey@adacore.com>
3705
3706 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3707
3708 2020-05-27 Tom Tromey <tromey@adacore.com>
3709
3710 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3711 Use htab_find_with_hash.
3712 <add_abbrev>: Remove "abbrev_number" parameter.
3713 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3714 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3715 (hash_abbrev): Add comment.
3716 (abbrev_table::lookup_abbrev): Move to header file.
3717 (abbrev_table::read): Update.
3718
3719 2020-05-27 Tom Tromey <tromey@adacore.com>
3720
3721 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3722 method.
3723 <canonical_name>: New member.
3724 <raw_name>: Rename from "name".
3725 (partial_die_info): Initialize canonical_name.
3726 (scan_partial_symbols): Check raw_name.
3727 (partial_die_parent_scope, partial_die_full_name)
3728 (add_partial_symbol, add_partial_subprogram)
3729 (add_partial_enumeration, load_partial_dies): Use "name" method.
3730 (partial_die_info::name): New method.
3731 (partial_die_info::read, guess_partial_die_structure_name)
3732 (partial_die_info::fixup): Update.
3733
3734 2020-05-27 Tom Tromey <tromey@adacore.com>
3735
3736 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3737 <get_ref_die_offset>: Inline.
3738 <get_ref_die_offset_complaint>: New method.
3739 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3740 (attribute::get_ref_die_offset_complaint): Rename from
3741 get_ref_die_offset. Just issue complaint.
3742
3743 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3744
3745 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3746
3747 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3748
3749 * exec.c (exec_file_attach): Use errno value of first openp failure.
3750
3751 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3752
3753 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3754 Don't close thread handle.
3755
3756 2020-05-27 Tom Tromey <tom@tromey.com>
3757 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3760 shared_ptr.
3761 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3762 member.
3763 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3764 dwarf2_per_bfd_objfile_data_key>: New globals.
3765 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3766 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3767 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3768 shared.
3769 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3770 short-circuit when sharing.
3771 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3772 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3773
3774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3777 to...
3778 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3779 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3780
3781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3784 build_name_components, find_name_components_bounds>:
3785 Add per_objfile parameter.
3786 (struct mapped_index) <symbol_name_at>: Likewise.
3787 (struct mapped_debug_names): Remove constructor.
3788 <dwarf2_per_objfile>: Remove field.
3789 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3790 (mapped_index_base::find_name_components_bounds,
3791 mapped_index_base::build_name_components,
3792 dw2_expand_symtabs_matching_symbol): Likewise.
3793 (class mock_mapped_index) <symbol_name_at>: Likewise.
3794 (check_match): Likewise.
3795 (check_find_bounds_finds): Likewise.
3796 (test_mapped_index_find_name_component_bounds): Update.
3797 (CHECK_MATCH): Update.
3798 (dw2_expand_symtabs_matching): Update.
3799 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3800 per_objfile parameter.
3801 <find_vec_in_debug_names>: Likewise.
3802 <m_per_objfile>: New field.
3803 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3804 parameter.
3805 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3806 (dw2_debug_names_iterator::next): Update.
3807 (dw2_debug_names_lookup_symbol): Update.
3808 (dw2_debug_names_expand_symtabs_for_function): Update.
3809 (dw2_debug_names_map_matching_symbols): Update.
3810 (dw2_debug_names_expand_symtabs_matching): Update.
3811 (dwarf2_read_debug_names): Update.
3812
3813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3816 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3817 move to dwarf2_per_objfile.
3818 <read_in_chain>: Remove.
3819 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3820 remove_all_cus, age_comp_units>: New methods.
3821 <m_dwarf2_cus>: New member.
3822 (struct dwarf2_per_cu_data) <cu>: Remove.
3823 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3824 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3825 moved to methods of dwarf2_per_objfile.
3826 (dwarf2_clear_marks): Remove.
3827 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3828 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3829 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3830 (dwarf2_per_objfile::remove_all_cus): New.
3831 (class free_cached_comp_units) <~free_cached_comp_units>:
3832 Update.
3833 (load_cu): Update.
3834 (dw2_do_instantiate_symtab): Adjust.
3835 (fill_in_sig_entry_from_dwo_entry): Adjust.
3836 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3837 (cutu_reader::cutu_reader): Likewise.
3838 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3839 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3840 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3841 and dwarf2_per_objfile::age_comp_units.
3842 (load_partial_comp_unit): Update.
3843 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3844 (process_queue): Likewise.
3845 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3846 backlink.
3847 (dwarf2_read_addr_index): Likewise.
3848 (follow_die_offset): Likewise.
3849 (dwarf2_fetch_die_loc_sect_off): Likewise.
3850 (dwarf2_fetch_constant_bytes): Likewise.
3851 (dwarf2_fetch_die_type_sect_off): Likewise.
3852 (follow_die_sig_1): Likewise.
3853 (load_full_type_unit): Likewise.
3854 (read_signatured_type): Likewise.
3855 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3856 (dwarf2_cu::~dwarf2_cu): Remove.
3857 (dwarf2_per_objfile::get_cu): New.
3858 (dwarf2_per_objfile::set_cu): New.
3859 (age_cached_comp_units): Rename to...
3860 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3861 to std::unordered_map.
3862 (free_one_cached_comp_unit): Rename to...
3863 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3864 to std::unordered_map.
3865 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3866 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3867 a dwarf2_per_objfile in data.
3868 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3869 (dwarf2_clear_marks): Remove.
3870
3871 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3874 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3875 (init_tu_and_read_dwo_dies): Likewise.
3876 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3877 (cutu_reader::cutu_reader): Likewise.
3878 (load_partial_comp_unit): Likewise.
3879 (process_psymtab_comp_unit): Update.
3880 (build_type_psymtabs_1): Update.
3881 (process_skeletonless_type_unit): Update.
3882 (load_full_comp_unit): Update.
3883 (find_partial_die): Update.
3884 (dwarf2_read_addr_index): Update.
3885 (read_signatured_type): Update.
3886
3887 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3888
3889 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3890 m_header_read_in>: New fields.
3891 <get_header>: New method.
3892 * dwarf2/read.c (per_cu_header_read_in): Remove.
3893 (dwarf2_per_cu_data::get_header): New.
3894 (dwarf2_per_cu_data::addr_size): Update.
3895 (dwarf2_per_cu_data::offset_size): Update.
3896 (dwarf2_per_cu_data::ref_addr_size): Update.
3897
3898 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3899
3900 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3901 (dw2_do_instantiate_symtab): Update.
3902 (queue_and_load_all_dwo_tus): Change parameter from
3903 dwarf2_per_cu_data to dwarf2_cu.
3904 (dwarf2_fetch_die_loc_sect_off): Update.
3905 (dwarf2_fetch_constant_bytes): Update.
3906 (dwarf2_fetch_die_type_sect_off): Update.
3907
3908 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3909
3910 * dwarf2/read.c (process_full_comp_unit,
3911 process_full_type_unit): Remove per_cu, per_objfile paramters.
3912 Add dwarf2_cu parameter.
3913 (process_queue): Update.
3914
3915 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3916
3917 * dwarf2/read.c (create_cu_from_index_list): Replace
3918 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3919 (create_cus_from_index_list): Likewise.
3920 (create_cus_from_index): Likewise.
3921 (create_signatured_type_table_from_index): Likewise.
3922 (create_cus_from_debug_names_list): Likewise.
3923 (create_cus_from_debug_names): Likewise.
3924 (dwarf2_read_gdb_index): Update.
3925 (dwarf2_read_debug_names): Update.
3926
3927 2020-05-27 Tom Tromey <tom@tromey.com>
3928 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * dwarf2/read.h (struct dwarf2_per_objfile)
3931 <get_type_for_signatured_type, set_type_for_signatured_type>:
3932 New methods.
3933 <m_type_map>: New member.
3934 (struct signatured_type) <type>: Remove.
3935 * dwarf2/read.c
3936 (dwarf2_per_objfile::get_type_for_signatured_type,
3937 dwarf2_per_objfile::set_type_for_signatured_type): New.
3938 (get_signatured_type): Use new methods.
3939
3940 2020-05-27 Tom Tromey <tom@tromey.com>
3941 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3944 (struct dwarf2_per_objfile) <type_units>: New member.
3945 <get_type_unit_group_unshareable>: New method.
3946 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3947 num_symtabs, symtabs>: Remove; move to
3948 type_unit_group_unshareable.
3949 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3950 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3951 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3952
3953 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * dwarf2/read.h (struct dwarf2_per_cu_data):
3956 <dwarf2_per_objfile>: Remove.
3957 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3958 dwarf2_per_objfile.
3959 (create_signatured_type_table_from_index): Likewise.
3960 (create_signatured_type_table_from_debug_names): Likewise.
3961 (create_debug_type_hash_table): Likewise.
3962 (fill_in_sig_entry_from_dwo_entry): Likewise.
3963 (create_type_unit_group): Likewise.
3964 (read_comp_units_from_section): Likewise.
3965 (create_cus_hash_table): Likewise.
3966
3967 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3970 dwarf2_per_cu_data::dwarf2_per_objfile.
3971 (compute_compunit_symtab_includes): Likewise.
3972 (dwarf2_cu::start_symtab): Likewise.
3973
3974 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3975
3976 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3977 parameter.
3978 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3979 (read_namespace_alias): Update.
3980 (lookup_die_type): Update.
3981 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3982 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3983 Update.
3984 (disassemble_dwarf_expression): Update.
3985
3986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * dwarf2/read.h (struct dwarf2_queue_item): Add
3989 dwarf2_per_objfile parameter, assign new parameter.
3990 <per_objfile>: New field.
3991 * dwarf2/read.c (free_one_cached_comp_unit): Add
3992 dwarf2_per_objfile parameter.
3993 (queue_comp_unit): Likewise.
3994 (dw2_do_instantiate_symtab): Update.
3995 (process_psymtab_comp_unit): Update.
3996 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3997 (process_imported_unit_die): Update.
3998 (queue_and_load_dwo_tu): Update.
3999 (follow_die_offset): Update.
4000 (follow_die_sig_1): Update.
4001
4002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4005 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4006 (read_call_site_scope): Assign per_objfile.
4007 (dwarf2_per_cu_data::objfile): Remove.
4008 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4009 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4010 dwarf2_per_objfile parameter.
4011 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4012 dwarf2_per_objfile parameter.
4013 (dwarf_expr_reg_to_entry_parameter): Add output
4014 dwarf2_per_objfile parameter.
4015 (locexpr_get_frame_base): Update.
4016 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4017 <push_dwarf_reg_entry_value>: Update.
4018 <call_site_to_target_addr>: Update.
4019 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4020 parameter.
4021 (value_of_dwarf_reg_entry): Update.
4022 (rw_pieced_value): Update.
4023 (indirect_synthetic_pointer): Update.
4024 (dwarf2_evaluate_property): Update.
4025 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4026 parameter.
4027 (locexpr_read_variable): Update.
4028 (locexpr_get_symbol_read_needs): Update.
4029 (loclist_read_variable): Update.
4030
4031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4034 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4035 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4036 parameter.
4037 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4038 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4039 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4040 parameter.
4041 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4042 sect_variable_value): Add dwarf2_per_objfile parameter.
4043 (class dwarf_evaluate_loc_desc) <dwarf_call,
4044 dwarf_variable_value>: Update.
4045 (fetch_const_value_from_synthetic_pointer): Add
4046 dwarf2_per_objfile parameter.
4047 (fetch_const_value_from_synthetic_pointer): Update.
4048 (coerced_pieced_ref): Update.
4049 (class symbol_needs_eval_context) <dwarf_call,
4050 dwarf_variable_value>: Update.
4051 (dwarf2_compile_expr_to_ax): Update.
4052
4053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4056 parameter.
4057 (dwarf2_evaluate_loc_desc_full): Update.
4058
4059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4062 parameter.
4063 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4064 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4065 dwarf2_per_objfile parameter.
4066 (decode_debug_loc_dwo_addresses): Likewise.
4067 (dwarf2_find_location_expression): Update.
4068 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4069 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4070 parameter.
4071 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4072 parameter.
4073 (locexpr_describe_location_1): Likewise.
4074 (locexpr_describe_location): Update.
4075
4076 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4079 Remove.
4080 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4081 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4082 (dwarf2_compile_property_to_c): Update.
4083 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4084 use text offset from objfile.
4085 (locexpr_tracepoint_var_ref): Update.
4086 (locexpr_generate_c_location): Update.
4087 (loclist_describe_location): Update.
4088 (loclist_tracepoint_var_ref): Update.
4089 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4090 dwarf2_per_objfile parameter.
4091 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4092 use text offset from objfile.
4093 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4094
4095 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4096
4097 * dwarf2/expr.h (struct dwarf_expr_context)
4098 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4099 <offset>: Remove.
4100 <per_objfile>: New member.
4101 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4102 dwarf2_per_objfile parameter. Don't set offset, set
4103 per_objfile.
4104 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4105 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4106 a dwarf2_per_objfile object instead of an offset.
4107 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4108 constructor.
4109 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4110 to dwarf2_expr_executor constructor. Don't set offset.
4111 (dwarf2_fetch_cfa_info): Update.
4112 (struct dwarf2_frame_cache) <text_offset>: Remove.
4113 <per_objfile>: New field.
4114 (dwarf2_frame_cache): Update.
4115 (dwarf2_frame_prev_register): Update.
4116 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4117 <dwarf_evaluate_loc_desc>: Add constructor.
4118 (dwarf2_evaluate_loc_desc_full): Update.
4119 (dwarf2_locexpr_baton_eval): Update.
4120 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4121 Add constructor.
4122 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4123
4124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4127 addr_sized_int_type>: Move to dwarf2_cu.
4128 <int_type>: Move to dwarf2_per_objfile.
4129 (struct dwarf2_per_objfile) <int_type>: Move here.
4130 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4131 addr_sized_int_type>: Move here.
4132 (read_func_scope): Update.
4133 (read_array_type): Update.
4134 (read_tag_string_type): Update.
4135 (attr_to_dynamic_prop): Update.
4136 (dwarf2_per_cu_data::int_type): Rename to...
4137 (dwarf2_per_objfile::int_type): ... this.
4138 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4139 (dwarf2_cu::addr_sized_int_type): ... this.
4140 (read_subrange_type): Update.
4141 (dwarf2_per_cu_data::addr_type): Rename to...
4142 (dwarf2_cu::addr_type): ... this.
4143 (set_die_type): Update.
4144
4145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4148 data through per_cu->cu.
4149
4150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4153 dwarf2_per_cu_data parameter fo dwarf2_cu.
4154 (lookup_dwo_type_unit): Likewise.
4155 (read_cutu_die_from_dwo): Likewise.
4156 (lookup_dwo_unit): Likewise.
4157 (open_and_init_dwo_file): Likewise.
4158 (lookup_dwo_cutu): Likewise.
4159 (lookup_dwo_comp_unit): Likewise.
4160 (lookup_dwo_type_unit): Likewise.
4161 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4162 (cutu_reader::cutu_reader): Update.
4163
4164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4167 parameter.
4168 (process_full_type_unit): Likewise.
4169 (process_queue): Update.
4170
4171 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4172
4173 * dwarf2/read.c (recursively_compute_inclusions): Add
4174 dwarf2_per_objfile parameter.
4175 (compute_compunit_symtab_includes): Likewise.
4176 (process_cu_includes): Update.
4177
4178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4181 parameter.
4182 (create_type_unit_group): Update.
4183 (process_psymtab_comp_unit_reader): Update.
4184 (build_type_psymtabs_reader): Update.
4185
4186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4189 object through m_this_cu->cu.
4190
4191 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4192
4193 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4194 the info parameter.
4195 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4196
4197 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4198
4199 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4200 per_objfile parameter.
4201 (load_full_type_unit): Add per_objfile parameter.
4202 (read_signatured_type): Likewise.
4203 (load_full_comp_unit): Likewise.
4204 (load_cu): Likewise.
4205 (dw2_do_instantiate_symtab): Likewise.
4206 (dw2_get_file_names): Likewise.
4207 (dw2_map_symtabs_matching_filename): Update.
4208 (dw_expand_symtabs_matching_file_matcher): Update.
4209 (dw2_map_symbol_filenames): Update.
4210 (process_psymtab_comp_unit): Add per_objfile parameter.
4211 (build_type_psymtabs_1): Update.
4212 (process_skeletonless_type_unit): Update.
4213 (dwarf2_build_psymtabs_hard): Update.
4214 (load_partial_comp_unit): Add per_objfile parameter.
4215 (scan_partial_symbols): Update.
4216 (load_full_comp_unit): Add per_objfile parameter.
4217 (process_imported_unit_die): Update.
4218 (create_cus_hash_table): Update.
4219 (find_partial_die): Update.
4220 (dwarf2_read_addr_index): Update.
4221 (follow_die_offset): Update.
4222 (dwarf2_fetch_die_loc_sect_off): Update.
4223 (dwarf2_fetch_constant_bytes): Update.
4224 (dwarf2_fetch_die_type_sect_off): Update.
4225 (follow_die_sig_1): Update.
4226 (load_full_type_unit): Add per_objfile parameter.
4227 (read_signatured_type): Likewise.
4228
4229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4232 of objfile_name.
4233
4234 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4235
4236 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4237 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4238 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4239 field.
4240 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4241 (create_cus_from_index): Update.
4242 (dwarf2_read_gdb_index): Update.
4243 (create_cus_from_debug_names): Update.
4244 (dwarf2_read_debug_names): Update.
4245 (get_abbrev_section_for_cu): Update.
4246 (create_all_comp_units): Update.
4247 (read_attribute_value): Update.
4248 (get_debug_line_section): Update.
4249 * dwarf2/index-cache.c (index_cache::store): Update.
4250 * dwarf2/index-write.c (save_gdb_index_command): Update.
4251 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4252
4253 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4256 member.
4257 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4258 dwarf2_per_cu_data::per_bfd.
4259 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4260 (create_type_unit_group): Likewise.
4261 (queue_comp_unit): Remove reference to
4262 per_cu->dwarf2_per_objfile.
4263 (maybe_queue_comp_unit): Likewise.
4264 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4265 (create_cus_hash_table): Assign new field.
4266
4267 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * dwarf2/read.c: Replace
4270 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4271 dwarf2_cu->per_objfile throughout.
4272
4273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4276 parameter, don't use per_cu->dwarf2_per_objfile.
4277 (dw2_instantiate_symtab): Likewise.
4278 (dw2_find_last_source_symtab): Update.
4279 (dw2_map_expand_apply): Update.
4280 (dw2_lookup_symbol): Update.
4281 (dw2_expand_symtabs_for_function): Update.
4282 (dw2_expand_all_symtabs): Update.
4283 (dw2_expand_symtabs_with_fullname): Update.
4284 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4285 don't use per_cu->dwarf2_per_objfile.
4286 (dw2_expand_marked_cus): Update.
4287 (dw2_find_pc_sect_compunit_symtab): Update.
4288 (dw2_debug_names_lookup_symbol): Update.
4289 (dw2_debug_names_expand_symtabs_for_function): Update.
4290 (dw2_debug_names_map_matching_symbols): Update.
4291 (dwarf2_psymtab::expand_psymtab): Update.
4292
4293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4296 <per_objfile>: New member.
4297 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4298 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4299 call to dwarf2_cu.
4300 (cutu_reader::cutu_reader): Update.
4301 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4302
4303 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4306 struct dwarf2_per_objfile.
4307 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4308 dwarf2_per_bfd.
4309 * dwarf2/read.c (set_die_type): Update.
4310 (get_die_type_at_offset): Update.
4311
4312 2020-05-27 Tom Tromey <tom@tromey.com>
4313 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4316 method.
4317 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4318 get_symtab, set_symtab>: New methods.
4319 <m_symtabs>: New field.
4320 (struct dwarf2_psymtab): Derive from partial_symtab.
4321 <readin_p, get_compunit_symtab>: Declare methods.
4322 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4323 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4324 New methods.
4325 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4326 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4327 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4328 (dw2_symtab_iter_next, dw2_print_stats)
4329 (dw2_expand_symtabs_with_fullname)
4330 (dw2_expand_symtabs_matching_one)
4331 (dw_expand_symtabs_matching_file_matcher)
4332 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4333 (dw2_debug_names_iterator::next)
4334 (dw2_debug_names_map_matching_symbols)
4335 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4336 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4337 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4338 New methods.
4339 (get_compunit_symtab, process_full_comp_unit)
4340 (process_full_type_unit): Update.
4341 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4342
4343 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4346 then introduce a new dwarf2_per_objfile type.
4347 <read_line_string>: Move to the new dwarf2_per_objfile type.
4348 <objfile>: Likewise.
4349 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4350 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4351 dwarf2_per_objfile->per_bfd.
4352 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4353 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4354 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4355 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4356 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4357 (dwarf2_per_objfile::locate_sections): Rename to...
4358 (dwarf2_per_bfd::locate_sections): ... this.
4359 (dwarf2_per_objfile::get_cutu): Rename to...
4360 (dwarf2_per_bfd::get_cutu): ... this.
4361 (dwarf2_per_objfile::get_cu): Rename to...
4362 (dwarf2_per_bfd::get_cu): ... this.
4363 (dwarf2_per_objfile::get_tu): Rename to...
4364 (dwarf2_per_bfd::get_tu): ... this.
4365 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4366 (dwarf2_per_bfd::allocate_per_cu): ... this.
4367 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4368 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4369 (get_gdb_index_contents_ftype): Change parameter from
4370 dwarf2_per_objfile to dwarf2_per_bfd.
4371 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4372 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4373
4374 2020-05-27 Tom Tromey <tom@tromey.com>
4375 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4378 (allocate_piece_closure): Set "per_objfile" member.
4379 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4380 (locexpr_describe_location, loclist_describe_location): Use new
4381 member.
4382 * dwarf2/read.c (read_call_site_scope)
4383 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4384 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4385 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4386 handle_data_member_location): Set per_objfile member.
4387 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4388 member.
4389 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4390
4391 2020-05-27 Tom Tromey <tom@tromey.com>
4392
4393 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4394 allocate_signatured_type>: Declare new methods.
4395 <m_num_psymtabs>: New member.
4396 (struct dwarf2_per_cu_data) <index>: New member.
4397 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4398 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4399 (create_cu_from_index_list): Use allocate_per_cu.
4400 (create_signatured_type_table_from_index)
4401 (create_signatured_type_table_from_debug_names)
4402 (create_debug_type_hash_table, add_type_unit)
4403 (read_comp_units_from_section): Use allocate_signatured_type.
4404
4405 2020-05-27 Tom Tromey <tom@tromey.com>
4406
4407 * psymtab.c (partial_map_expand_apply)
4408 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4409 (psym_lookup_global_symbol_language)
4410 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4411 (psym_print_stats, psym_expand_symtabs_for_function)
4412 (psym_map_symbol_filenames, psym_map_matching_symbols)
4413 (psym_expand_symtabs_matching)
4414 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4415 (maintenance_check_psymtabs): Update.
4416 * psympriv.h (struct partial_symtab) <readin_p,
4417 get_compunit_symtab>: Add objfile parameter.
4418 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4419 Likewise.
4420 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4421 get_compunit_symtab>: Likewise.
4422 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4423
4424 2020-05-27 Tom Tromey <tom@tromey.com>
4425
4426 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4427 member.
4428 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4429 (create_cu_from_index_list)
4430 (create_signatured_type_table_from_index)
4431 (create_signatured_type_table_from_debug_names)
4432 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4433 (dwarf2_create_include_psymtab)
4434 (create_debug_type_hash_table, add_type_unit)
4435 (create_type_unit_group, read_comp_units_from_section)
4436 (dwarf2_compute_name, create_cus_hash_table)
4437 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4438 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4439 obstack.
4440 (dw2_get_real_path): Likewise. Change argument to
4441 dwarf2_per_objfile.
4442
4443 2020-05-27 Luis Machado <luis.machado@linaro.org>
4444
4445 PR tdep/26000
4446 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4447 for ldrd (immediate).
4448
4449 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4450
4451 * command.h: Add comment giving the name of class_tui.
4452 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4453 create the fake command for the help for class_tui.
4454
4455 2020-05-26 Tom Tromey <tromey@adacore.com>
4456
4457 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4458 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4459 (val_atr): New function.
4460 (value_val_atr): Use it.
4461 * ada-valprint.c (print_optional_low_bound): Change low bound
4462 handling for enums.
4463 (val_print_packed_array_elements): Don't call discrete_position.
4464 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4465 discrete_position for enum types.
4466 * language.c (default_print_array_index): Change type.
4467 * language.h (struct language_defn) <la_print_array_index>: Add
4468 index_type parameter, change type of index_value.
4469 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4470 (default_print_array_index): Update.
4471 * valprint.c (maybe_print_array_index): Don't call
4472 value_from_longest. Update.
4473 (value_print_array_elements): Don't call discrete_position.
4474
4475 2020-05-26 Tom Tromey <tromey@adacore.com>
4476
4477 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4478 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4479
4480 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4481
4482 PR gdb/13519
4483 * avr-tdep.c (avr_integer_to_address): Return data or code
4484 address accordingly to the second 'type' argument of the
4485 function.
4486
4487 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4488
4489 * infcmd.c, inferior.h: (construct_inferior_arguments):
4490 Moved function from here to gdbsupport/common-inferior.{h,cc}
4491
4492 2020-05-23 Tom Tromey <tom@tromey.com>
4493
4494 Revert commit eca1f90c:
4495 * NEWS: Remove entry for completion styling.
4496 * completer.c (_rl_completion_prefix_display_length): Move
4497 declaration later.
4498 (gdb_fnprint): Revert.
4499 (gdb_display_match_list_1): Likewise.
4500 * cli/cli-style.c (completion_prefix_style)
4501 (completion_difference_style, completion_suffix_style): Remove.
4502 (_initialize_cli_style): Revert.
4503 * cli/cli-style.h (completion_prefix_style)
4504 (completion_difference_style, completion_suffix_style): Don't
4505 declare.
4506
4507 2020-05-24 Pedro Alves <palves@redhat.com>
4508
4509 * symtab.c (completion_list_add_name): Return boolean indication
4510 of whether the symbol matched.
4511 (completion_list_add_symbol): Don't try to remove C++ aliases if
4512 the symbol didn't match in the first place.
4513 * symtab.h (completion_list_add_name): Return bool.
4514
4515 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4516
4517 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4518 type::field.
4519
4520 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4521
4522 GDB 9.2 released.
4523
4524 2020-05-23 Tom Tromey <tom@tromey.com>
4525
4526 * NEWS: Add entry for completion styling.
4527 * completer.c (_rl_completion_prefix_display_length): Move
4528 declaration earlier.
4529 (gdb_fnprint): Use completion_style.
4530 (gdb_display_match_list_1): Likewise.
4531 * cli/cli-style.c (completion_prefix_style)
4532 (completion_difference_style, completion_suffix_style): New
4533 globals.
4534 (_initialize_cli_style): Register new globals.
4535 * cli/cli-style.h (completion_prefix_style)
4536 (completion_difference_style, completion_suffix_style): Declare.
4537
4538 2020-05-23 Pedro Alves <palves@redhat.com>
4539
4540 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4541 (parse_escape): Use ISDIGIT instead of isdigit.
4542 (puts_debug): Use gdb_isprint instead of isprint.
4543 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4544 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4545 ISSPACE instead of isspace.
4546 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4547 instead of isspace.
4548 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4549 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4550 instead of isxdigit and ISDIGIT instead of isdigit.
4551
4552 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * gdbtypes.h (struct type) <field>: New method.
4555 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4556 or type::field.
4557
4558 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4561 (TYPE_FIELDS): Use type::fields. Change all call sites that
4562 modify the propery to use type::set_fields instead.
4563
4564 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4567 type::num_fields instead.
4568
4569 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4572 methods.
4573 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4574 that modify the number of fields to use type::set_num_fields
4575 instead.
4576
4577 2020-05-22 Tom Tromey <tromey@adacore.com>
4578
4579 * compile/compile-object-load.h (munmap_list_free): Don't
4580 declare.
4581
4582 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * annotate.c (annotate_source_line): Update return type, add call
4585 to update current symtab and line.
4586 * annotate.h (annotate_source_line): Update return type, and
4587 extend header comment.
4588 * source.c (info_line_command): Check annotation_level before
4589 calling annotate_source_line.
4590 * stack.c (print_frame_info): If calling annotate_source_line
4591 returns true, then don't print any other source line information.
4592
4593 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4596
4597 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * coffread.c (patch_type): Remove NULL check before xfree.
4600 * corefile.c (set_gnutarget): Likewise.
4601 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4602 * exec.c (build_section_table): Likewise.
4603 * remote.c (remote_target::pass_signals): Likewise.
4604 * utils.c (n_spaces): Likewise.
4605 * cli/cli-script.c (document_command): Likewise.
4606 * i386-windows-tdep.c (core_process_module_section): Likewise.
4607 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4608
4609 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * symfile.c (reread_symbols): Clear objfile's section_offsets
4612 vector and section indices, re-compute them by calling
4613 sym_offsets.
4614
4615 2020-05-20 Tom Tromey <tromey@adacore.com>
4616
4617 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4618 (desc_one_bound, desc_index_type): Compute field name.
4619
4620 2020-05-20 Tom de Vries <tdevries@suse.de>
4621
4622 PR symtab/25833
4623 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4624
4625 2020-05-20 Alan Modra <amodra@gmail.com>
4626
4627 PR 25993
4628 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4629 bfd_set_filename.
4630 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4631 passed to bfd_set_filename.
4632 * symfile-mem.c (add_vsyscall_page): Likewise for string
4633 passed to symbol_file_add_from_memory.
4634 (symbol_file_add_from_memory): Make name param a const char* and
4635 don't strdup.
4636
4637 2020-05-20 Alan Modra <amodra@gmail.com>
4638
4639 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4640 rather than accessing bfd->filename directly.
4641 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4642 and use bfd_section_name.
4643 * dwarf2/frame.c (decode_frame_entry): Likewise.
4644 * exec.c (exec_set_section_address): Likewise.
4645 * solib-aix.c (solib_aix_bfd_open): Likewise.
4646 * stap-probe.c (get_stap_base_address): Likewise.
4647 * symfile.c (reread_symbols): Likewise.
4648
4649 2020-05-19 Tom Tromey <tromey@adacore.com>
4650
4651 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4652
4653 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4656
4657 2020-05-19 Pedro Alves <palves@redhat.com>
4658
4659 * NEWS (set exec-file-mismatch): Adjust entry.
4660 * exec.c: Include "build-id.h".
4661 (validate_exec_file): Try to match build IDs instead of filenames.
4662 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4663 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4664 and pass down 'warn_if_slow'.
4665 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4666 gdb_bfd_open_closure to pass it down.
4667 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4668
4669 2020-05-19 Pedro Alves <palves@redhat.com>
4670
4671 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4672 * target.c (target_fileio_open_1): Rename to target_fileio_open
4673 and make extern. Use bool.
4674 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4675 (target_fileio_read_alloc_1): Adjust.
4676 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4677 (target_fileio_open_warn_if_slow): Delete declaration.
4678
4679 2020-05-19 Pedro Alves <palves@redhat.com>
4680
4681 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4682 Adjust all callers.
4683
4684 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4685
4686 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4687 whether disp is negative.
4688
4689 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * symfile.h (struct symfile_segment_data)
4692 <~symfile_segment_data>: Remove.
4693 <segment_info>: Change to std::vector.
4694 * symfile.c (default_symfile_segments): Update.
4695 * elfread.c (elf_symfile_segments): Update.
4696
4697 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4700 <segments>: New.
4701 <segment_bases, segment_sizes>: Remove.
4702 * symfile.c (default_symfile_segments): Update.
4703 * elfread.c (elf_symfile_segments): Update.
4704 * remote.c (remote_target::get_offsets): Update.
4705 * solib-target.c (solib_target_relocate_section_addresses):
4706 Update.
4707
4708 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * symfile.h (struct symfile_segment_data): Initialize fields.
4711 <~symfile_segment_data>: Add.
4712 (symfile_segment_data_up): New.
4713 (struct sym_fns) <sym_segments>: Return a
4714 symfile_segment_data_up.
4715 (default_symfile_segments): Return a symfile_segment_data_up.
4716 (free_symfile_segment_data): Remove.
4717 (get_symfile_segment_data): Return a symfile_segment_data_up.
4718 * symfile.c (default_symfile_segments): Likewise.
4719 (get_symfile_segment_data): Likewise.
4720 (free_symfile_segment_data): Remove.
4721 (symfile_find_segment_sections): Update.
4722 * elfread.c (elf_symfile_segments): Return a
4723 symfile_segment_data_up.
4724 * remote.c (remote_target::get_offsets): Update.
4725 * solib-target.c (solib_target_relocate_section_addresses):
4726 Update.
4727 * symfile-debug.c (debug_sym_segments): Return a
4728 symfile_segment_data_up.
4729
4730 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732 PR build/25981
4733 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4734 Hardcode register numbers.
4735
4736 PR build/25981
4737 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4738 procfs_find_LDT_entry): Remove.
4739 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4740 procfs_find_LDT_entry): Remove.
4741 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4742 Remove.
4743
4744 2020-05-17 Pedro Alves <palves@redhat.com>
4745 Andrew Burgess <andrew.burgess@embecosm.com>
4746 Keno Fischer <keno@juliacomputing.com>
4747
4748 PR gdb/25741
4749 * breakpoint.c (build_target_condition_list): Update comments.
4750 (build_target_command_list): Update comments and skip matching
4751 locations.
4752 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4753 a separate function. Simplify "set breakpoint auto-hw off"
4754 handling.
4755 (insert_breakpoints): Update comment.
4756 (tracepoint_locations_match): New parameter. For breakpoints,
4757 compare location types too, if the caller wants to.
4758 (handle_automatic_hardware_breakpoints): New functions.
4759 (bp_location_is_less_than): Also sort by location type and
4760 hardware breakpoint length.
4761 (update_global_location_list): Handle "set breakpoint auto-hw on"
4762 here.
4763 (update_breakpoint_locations): Ask breakpoint_locations_match to
4764 ignore location types.
4765
4766 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4769 type::name instead.
4770
4771 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * gdbtypes.h (struct type) <name, set_name>: New methods.
4774 (TYPE_CODE): Use type::name. Change all call sites used to set
4775 the name to use type::set_name instead.
4776
4777 2020-05-16 Tom Tromey <tom@tromey.com>
4778
4779 * top.c (quit_force): Update.
4780 * infrun.c (handle_no_resumed): Update.
4781 * top.h (all_uis): New function.
4782 (ALL_UIS): Remove.
4783
4784 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4787
4788 2020-05-16 Pedro Alves <palves@redhat.com>
4789
4790 * ia64-linux-nat.c
4791 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4792 Declare method.
4793 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4794
4795 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4798 (sparc64_adi_info): Likewise.
4799
4800 2020-05-15 Tom Tromey <tom@tromey.com>
4801
4802 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4803 block_objfile.
4804 (lookup_objfile_from_block): Remove.
4805 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4806 (lookup_global_symbol): Use block_objfile.
4807 * symtab.h (lookup_objfile_from_block): Don't declare.
4808 * printcmd.c (clear_dangling_display_expressions): Use
4809 block_objfile.
4810 * parse.c (operator_check_standard): Use block_objfile.
4811
4812 2020-05-15 Tom Tromey <tom@tromey.com>
4813
4814 * language.c (language_alloc_type_symbol): Set
4815 SYMBOL_SECTION.
4816 * symtab.c (initialize_objfile_symbol): Remove.
4817 (allocate_symbol): Remove.
4818 (allocate_template_symbol): Remove.
4819 * dwarf2/read.c (fixup_go_packaging): Use "new".
4820 (new_symbol): Use "new".
4821 (read_variable): Don't call initialize_objfile_symbol. Use
4822 "new".
4823 (read_func_scope): Use "new".
4824 * xcoffread.c (process_xcoff_symbol): Don't call
4825 initialize_objfile_symbol.
4826 (SYMBOL_DUP): Remove.
4827 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4828 "new".
4829 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4830 (allocate_template_symbol): Don't declare.
4831 (struct symbol): Add copy constructor. Change defaults.
4832 * jit.c (finalize_symtab): Use "new".
4833 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4834 Use "new".
4835 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4836 (common_block_end): Use "new".
4837 * mdebugread.c (parse_symbol): Use "new".
4838 (new_symbol): Likewise.
4839
4840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * NEWS: Mention changes to help and apropos.
4843
4844 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4845
4846 * command.h (enum command_class): Improve comments, document
4847 that class_alias is for user-defined aliases, give the class
4848 name for each class, remove unused class_xdb.
4849 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4850 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4851 by a precise class.
4852 * infcmd.c (_initialize_infcmd): Likewise.
4853 * reverse.c (_initialize_reverse): Likewise.
4854 * stack.c (_initialize_stack): Likewise.
4855 * symfile.c (_initialize_symfile): Likewise.
4856 * tracepoint.c (_initialize_tracepoint): Likewise.
4857
4858 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4859
4860 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4861 when their aliased command is traversed.
4862 (help_cmd): Add fput_command_names_styled call to
4863 output command name and aliases when command has an alias.
4864
4865 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4866
4867 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4868 * cli/cli-decode.c (help_cmd_list): Declare as static,
4869 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4870 a command together with the command.
4871 (fput_command_name_styled, fput_command_names_styled): New functions.
4872 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4873 fput_command_name_styled.
4874 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4875 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4876
4877 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4878
4879 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4880 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4881 * command.h (cmd_show_list): Likewise.
4882 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4883 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4884
4885 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886
4887 * unittests/command-def-selftests.c (traverse_command_structure):
4888 Verify all commands of a list have the same prefix command and
4889 that only the top cmdlist commands have a null prefix.
4890
4891 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4892
4893 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4894 as prefix, not one of its aliases.
4895 (set_cmd_prefix): Remove.
4896 (do_add_cmd): Centralize the setting of the prefix of a command, when
4897 command is defined after its full chain of prefix commands.
4898 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4899 (add_setshow_cmd_full): Likewise.
4900 (update_prefix_field_of_prefixed_commands): New function.
4901 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4902 update_prefix_field_of_prefixed_commands.
4903 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4904 addresses of remote_set_cmdlist and remote_show_cmdlist given
4905 as argument, not the address of an argument.
4906 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4907 * gdb/remote.c (_initialize_remote): Likewise.
4908
4909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4910
4911 * cli/cli-cmds.c (alias_command): Check for an existing alias
4912 using lookup_cmd_composition, as valid_command_p is too strict
4913 and forbids aliases that are the prefix of an existing alias
4914 or command.
4915 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4916 command is properly recognised as a valid command.
4917
4918 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4919
4920 * unittests/help-doc-selftests.c: Rename to
4921 unittests/command-def-selftests.c
4922 * unittests/command-def-selftests.c (help_doc_tests): Update some
4923 comments.
4924 (command_structure_tests, traverse_command_structure): New namespace
4925 and function.
4926 (command_structure_invariants_tests): New function.
4927 (_initialize_command_def_selftests) Renamed from
4928 _initialize_help_doc_selftests, register command_structure_invariants
4929 selftest.
4930
4931 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4932
4933 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4934 an alias of 'show'.
4935
4936 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4937
4938 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4939 ada_is_fixed_point_type. Update all callers.
4940 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4941 all callers.
4942 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4943 Update all callers.
4944 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4945 print_fixed_point_type. Update all callers.
4946 * ada-valprint.c (ada_value_print_num): Replace call to
4947 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4948
4949 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4950
4951 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4952 processors.
4953 (cpu_supports_bts): Add CV_AMD case.
4954
4955 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4956 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * infrun.c (stop_all_threads): Collect multiple wait events at
4959 each pass.
4960
4961 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4964 type::code instead.
4965
4966 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * gdbtypes.h (struct type) <code, set_code>: New methods.
4969 (TYPE_CODE): Use type::code. Change all call sites used to set
4970 the code to use type::set_code instead.
4971
4972 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4973 Tom de Vries <tdevries@suse.de>
4974 Pedro Alves <palves@redhat.com>
4975
4976 PR threads/25478
4977 * infrun.c (stop_all_threads): Do NOT ignore
4978 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4979 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4980 received.
4981 (handle_no_resumed): Remove code handling a live inferior with no
4982 threads.
4983 * remote.c (has_single_non_exited_thread): New.
4984 (remote_target::update_thread_list): Do not delete a thread if is
4985 the last thread of the process.
4986 * thread.c (thread_select): Call delete_exited_threads instead of
4987 prune_threads.
4988
4989 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4990
4991 * infrun.c (stop_all_threads): Enable/disable thread events of all
4992 targets. Move a debug message denoting the end of the function
4993 into the SCOPED_EXIT block.
4994
4995 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4996
4997 * process-stratum-target.h: Include <set>.
4998 (all_non_exited_process_targets, switch_to_target_no_thread): New
4999 function declarations.
5000 * process-stratum-target.c (all_non_exited_process_targets)
5001 (switch_to_target_no_thread): New function implementations.
5002
5003 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5004
5005 * infrun.c (handle_inferior_event): Extract out a piece of code
5006 into...
5007 (mark_non_executing_threads): ...this new function.
5008
5009 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5010
5011 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5012 use.
5013
5014 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5015
5016 * regcache.c (regcache_read_pc_protected): New function
5017 implementation that returns 0 if the PC cannot read via
5018 'regcache_read_pc'.
5019 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5020 instead of 'regcache_read_pc'.
5021 (keep_going_pass_signal): Ditto.
5022
5023 2020-05-13 Tom Tromey <tromey@adacore.com>
5024
5025 * ada-lang.c (align_value): Remove.
5026 (ada_template_to_fixed_record_type_1): Use align_up.
5027
5028 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5029
5030 * async-event.c: Update the copyright year.
5031 * async-event.h: Update the copyright year.
5032
5033 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * objfiles.h (is_addr_in_objfile,
5036 shared_objfile_contains_address_p): Return bool.
5037 * objfile.c (is_addr_in_objfile,
5038 shared_objfile_contains_address_p): Return bool.
5039
5040 2020-05-11 Tom Tromey <tromey@adacore.com>
5041
5042 * cli/cli-cmds.c (info_command): Restore.
5043 (_initialize_cli_cmds): Use add_prefix_command for "info".
5044 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5045
5046 2020-05-11 Tom Tromey <tromey@adacore.com>
5047
5048 * ada-lang.c (ada_value_primitive_field): Now public.
5049 * ada-lang.h (ada_value_primitive_field): Declare.
5050 * ada-valprint.c (print_field_values): Use
5051 ada_value_primitive_field for wrapper fields.
5052
5053 2020-05-11 Tom de Vries <tdevries@suse.de>
5054
5055 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5056 MODULE_DOMAIN.
5057
5058 2020-05-11 Tom de Vries <tdevries@suse.de>
5059
5060 PR symtab/25941
5061 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5062 with length 0, if not gdb-produced.
5063 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5064
5065 2020-05-09 Tom de Vries <tdevries@suse.de>
5066
5067 PR gdb/25955
5068 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5069 calculation.
5070
5071 2020-05-09 Tom Tromey <tom@tromey.com>
5072
5073 * top.c (server_command): Now bool.
5074 * top.h (server_command): Now bool.
5075
5076 2020-05-08 Tom Tromey <tromey@adacore.com>
5077
5078 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5079 already being processed.
5080
5081 2020-05-08 Tom Tromey <tom@tromey.com>
5082
5083 * printcmd.c (struct display) <next>: Remove.
5084 <display>: New constructor.
5085 <exp_string>: Now a std::string.
5086 <enabled_p>: Now a bool.
5087 (display_number): Move definition earlier.
5088 (displays): Rename from display_chain. Now a std::vector.
5089 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5090 (display_command): Update.
5091 (do_one_display, disable_display)
5092 (enable_disable_display_command, do_enable_disable_display):
5093 Update.
5094 (free_display): Remove.
5095 (clear_displays): Rewrite.
5096 (delete_display): Update.
5097 (map_display_numbers): Use function_view. Remove "data"
5098 parameter. Update.
5099 (do_delete_display): Remove.
5100 (undisplay_command): Update.
5101 (do_one_display, do_displays, disable_display)
5102 (info_display_command): Update.
5103 (do_enable_disable_display): Remove.
5104 (enable_disable_display_command)
5105 (clear_dangling_display_expressions): Update.
5106
5107 2020-05-08 Tom Tromey <tom@tromey.com>
5108
5109 * symtab.c (set_symbol_cache_size)
5110 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5111 (maintenance_print_symbol_cache_statistics): Update.
5112 * symmisc.c (print_symbol_bcache_statistics)
5113 (print_objfile_statistics, maintenance_print_objfiles)
5114 (maintenance_info_symtabs, maintenance_check_symtabs)
5115 (maintenance_expand_symtabs, maintenance_info_line_tables):
5116 Update.
5117 * symfile-debug.c (set_debug_symfile): Update.
5118 * source.c (forget_cached_source_info): Update.
5119 * python/python.c (gdbpy_progspaces): Update.
5120 * psymtab.c (maintenance_info_psymtabs): Update.
5121 * probe.c (parse_probes): Update.
5122 * linespec.c (iterate_over_all_matching_symtabs)
5123 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5124 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5125 * exec.c (exec_target::close): Update.
5126 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5127 * breakpoint.c (print_one_breakpoint_location)
5128 (create_longjmp_master_breakpoint)
5129 (create_std_terminate_master_breakpoint): Update.
5130 * progspace.c (program_spaces): Now a std::vector.
5131 (maybe_new_address_space): Update.
5132 (add_program_space): Remove.
5133 (program_space::program_space): Update.
5134 (remove_program_space): Update.
5135 (number_of_program_spaces): Remove.
5136 (print_program_space, update_address_spaces): Update.
5137 * progspace.h (program_spaces): Change type.
5138 (ALL_PSPACES): Remove.
5139 (number_of_program_spaces): Don't declare.
5140 (struct program_space) <next>: Remove.
5141
5142 2020-05-08 Tom Tromey <tom@tromey.com>
5143
5144 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5145 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5146 (enable_break): Update.
5147 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5148 (frv_fdpic_find_canonical_descriptor): Update.
5149 (frv_fetch_objfile_link_map): Update.
5150 * progspace.c (program_space::free_all_objfiles): Update.
5151 (program_space::solibs): New method.
5152 * progspace.h (struct program_space) <solibs>: New method.
5153 * solist.h (master_so_list): Don't declare.
5154 (ALL_SO_LIBS): Remove.
5155 * solib.h (so_list_head): Remove.
5156 (update_solib_list): Update comment.
5157 * solib.c (master_so_list): Remove.
5158 (solib_used, update_solib_list, solib_add)
5159 (info_sharedlibrary_command, clear_solib)
5160 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5161
5162 2020-05-08 Tom Tromey <tom@tromey.com>
5163
5164 * extension.c (extension_languages): Now a std::array.
5165 (ALL_EXTENSION_LANGUAGES): Remove.
5166 (get_ext_lang_defn, get_ext_lang_of_file)
5167 (eval_ext_lang_from_control_command): Update.
5168 (finish_ext_lang_initialization)
5169 (auto_load_ext_lang_scripts_for_objfile)
5170 (ext_lang_type_printers::ext_lang_type_printers)
5171 (apply_ext_lang_type_printers)
5172 (ext_lang_type_printers::~ext_lang_type_printers)
5173 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5174 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5175 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5176 (get_matching_xmethod_workers, ext_lang_colorize)
5177 (ext_lang_before_prompt): Update.
5178 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5179
5180 2020-05-08 Tom Tromey <tom@tromey.com>
5181
5182 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5183 overload.
5184 <swap_string, m_string>: Remove.
5185 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5186 Update.
5187 * stabsread.c (define_symbol, read_type): Update.
5188 * linespec.c (find_linespec_symbols): Update.
5189 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5190 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5191 * dbxread.c (read_dbx_symtab): Update.
5192 * cp-support.h (cp_canonicalize_string_full)
5193 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5194 Return unique_xmalloc_ptr.
5195 * cp-support.c (inspect_type): Update.
5196 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5197 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5198 Likewise.
5199 * c-typeprint.c (print_name_maybe_canonical): Update.
5200 * break-catch-throw.c (check_status_exception_catchpoint):
5201 Update.
5202
5203 2020-05-08 Tom de Vries <tdevries@suse.de>
5204
5205 * infrun.c (follow_fork): Copy current_line and current_symtab to
5206 child thread.
5207
5208 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * async-event.c (struct async_signal_handler, struct
5211 async_event_handler): Reformat, remove typedef.
5212
5213 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5216 access thistype->main_type->dyn_prop_list directly.
5217
5218 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5221 (remove_dyn_prop): Remove. Update all users to use
5222 type::remove_dyn_prop.
5223 * gdbtypes.c (remove_dyn_prop): Rename to...
5224 (type::remove_dyn_prop): ... this.
5225
5226 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5227
5228 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5229 (add_dyn_prop): Remove. Update all users to use
5230 type::add_dyn_prop.
5231 * gdbtypes.c (add_dyn_prop): Rename to...
5232 (type::add_dyn_prop): ... this.
5233
5234 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5237 (get_dyn_prop): Remove. Update all users to use
5238 type::dyn_prop.
5239 * gdbtypes.c (get_dyn_prop): Rename to...
5240 (type::dyn_prop): ... this.
5241
5242 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5245
5246 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5249 instruction, skip it if it's there.
5250
5251 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5252
5253 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5254
5255 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5258 * gdbtypes.c (recursive_dump_type): Remove use of
5259 TYPE_INCOMPLETE.
5260
5261 2020-05-03 Tom Tromey <tom@tromey.com>
5262
5263 * breakpoint.c (catch_command, tcatch_command): Remove.
5264 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5267 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5268 Remove.
5269 (add_internal_problem_command): Use add_basic_prefix_cmd,
5270 add_show_prefix_cmd.
5271 * mips-tdep.c (set_mipsfpu_command): Remove.
5272 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5273 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5274 (_initialize_index_cache): Use add_basic_prefix_cmd.
5275 * memattr.c (dummy_cmd): Remove.
5276 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5277 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5278 (_initialize_tui_win): Use add_basic_prefix_cmd,
5279 add_show_prefix_cmd.
5280 * cli/cli-logging.c (set_logging_command): Remove.
5281 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5282 add_show_prefix_cmd.
5283 (show_logging_command): Remove.
5284 * target.c (target_command): Remove.
5285 (add_target): Use add_basic_prefix_cmd.
5286
5287 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5288
5289 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5290
5291 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5292
5293 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5294 info_command.
5295
5296 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5297
5298 * nbsd-nat.c (nbsd_enable_proc_events)
5299 (nbsd_nat_target::post_startup_inferior): Add.
5300 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5301 (nbsd_nat_target::update_thread_list): Rewrite.
5302 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5303 "PTRACE_LWP_CREATE".
5304 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5305
5306 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5307
5308 * stack.c (_initialize_stack): Remove duplicated creation
5309 of "frame" command and "f" alias.
5310
5311 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5312
5313 PR gdb/18706
5314 * gdbtypes.c (check_typedef): Calculate size of array of
5315 stubbed type.
5316
5317 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5318
5319 PR gdb/15559
5320 * i386-tdep.c (i386_push_dummy_call): Call
5321 i386_thiscall_push_dummy_call.
5322 (i386_thiscall_push_dummy_call): New function.
5323 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5324 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5325 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5326
5327 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * gdbarch.sh (do_read): Add shellcheck disable directive for
5330 warning SC2162.
5331
5332 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5335 "referenced but not assigned" warning.
5336
5337 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * gdbarch.sh: Remove code that sets fallbackdefault.
5340
5341 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5342
5343 * gdbarch.sh: Use shell operators && and || instead of
5344 -a and -o.
5345
5346 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbarch.sh: Use $(...) instead of `...`.
5349
5350 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * gdbarch.sh: Use double quotes around variables.
5353
5354 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbarch.sh: Use %s with printf, instead of variables in the
5357 format string.
5358
5359 2020-04-29 Tom Tromey <tromey@adacore.com>
5360
5361 PR ada/25875:
5362 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5363 type fields here.
5364 (read_enumeration_type): Call
5365 update_enumeration_type_from_children later. Update comments.
5366 (process_enumeration_scope): Don't create type fields.
5367
5368 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5369
5370 * nbsd-tdep.c: Include "xml-syscall.h".
5371 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5372
5373 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5374
5375 * nbsd-nat.c: Include "sys/wait.h".
5376 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5377 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5378 (nbsd_nat_target::remove_exec_catchpoint)
5379 (nbsd_nat_target::set_syscall_catchpoint): Add.
5380 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5381 (nbsd_nat_target::insert_exec_catchpoint)
5382 (nbsd_nat_target::remove_exec_catchpoint)
5383 (nbsd_nat_target::set_syscall_catchpoint): Add.
5384 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5385 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5386 `nbsd_get_syscall_number'.
5387
5388 2020-04-29 Tom Tromey <tom@tromey.com>
5389
5390 * stack.c (print_block_frame_labels): Remove.
5391
5392 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5393
5394 PR gdb/17320
5395 * ada-valprint.c (val_print_packed_array_elements): Move array
5396 end bracket to new line.
5397 (ada_val_print_string): Remove extra spaces before first array
5398 element.
5399 * c-valprint.c (c_value_print_array): Likewise.
5400 * m2-valprint.c (m2_print_array_contents): Likewise.
5401 (m2_value_print_inner): Likewise.
5402 * p-valprint.c (pascal_value_print_inner): Likewise.
5403 * valprint.c (generic_val_print_array): Likewise.
5404 (value_print_array_elements): Move first array element and array
5405 end bracket to new line.
5406
5407 2020-04-29 Tom de Vries <tdevries@suse.de>
5408
5409 PR symtab/25889
5410 * linespec.c (find_method): Fix ix calculation.
5411
5412 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5413
5414 * syscalls/update-netbsd.sh: New file.
5415 * syscalls/netbsd.xml: Regenerate.
5416 * data-directory/Makefile.in: Register `netbsd.xml' in
5417 `SYSCALLS_FILES'.
5418
5419 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * syscalls/update-freebsd.sh: Add double quotes.
5422
5423 2020-04-28 Tom Tromey <tom@tromey.com>
5424
5425 * NEWS: Update.
5426 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5427 (cmdpy_init): Allow class_tui.
5428
5429 2020-04-28 Mark Williams <mark@myosotissp.com>
5430
5431 PR gdb/24480
5432 * dwarf2read.c: Add missing assingments to list_in_scope when
5433 start_symtab was already called.
5434
5435 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5436
5437 PR gdb/25881
5438 * dwarf2/read.c (offset_map_type): Use
5439 gdb:hash_enum<sect_offset> as hash function.
5440
5441 2020-04-28 Tom de Vries <tdevries@suse.de>
5442
5443 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5444 with DW_AT_signature.
5445
5446 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5447
5448 * configure.ac: Remove check for fs_base/gs_base in
5449 user_regs_struct.
5450 * configure: Re-generate.
5451 * config.in: Re-generate.
5452 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5453 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5454 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5455
5456 2020-04-27 Luis Machado <luis.machado@linaro.org>
5457
5458 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5459 problematic inline frame unwinding situation.
5460 * frame.c (frame_id_computed_p): New function.
5461 * frame.h (frame_id_computed_p): New prototype.
5462
5463 2020-04-26 Tom Tromey <tom@tromey.com>
5464
5465 * command.h (enum command_class) <class_pseudo>: Remove.
5466
5467 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5468
5469 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5470 and whitespace.
5471
5472 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5473
5474 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5475 `PT_GET_PROCESS_STATE' block.
5476
5477 2020-04-24 Tom Tromey <tom@tromey.com>
5478
5479 * symtab.h (symbol_get_demangled_name): Don't declare.
5480 * symtab.c (symbol_get_demangled_name): Remove.
5481 (general_symbol_info::natural_name)
5482 (general_symbol_info::demangled_name): Update.
5483
5484 2020-04-24 Tom Tromey <tom@tromey.com>
5485
5486 PR rust/25025:
5487 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5488
5489 2020-04-24 Tom Tromey <tom@tromey.com>
5490
5491 PR symtab/12707:
5492 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5493 exists.
5494 (new_symbol): Likewise.
5495 * compile/compile-object-load.c (get_out_value_type): Use
5496 symbol_matches_search_name.
5497
5498 2020-04-24 Tom Tromey <tom@tromey.com>
5499
5500 * dwarf2/read.c (add_partial_symbol): Do not call
5501 compute_and_set_names.
5502
5503 2020-04-24 Tom Tromey <tom@tromey.com>
5504
5505 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5506 overload.
5507
5508 2020-04-24 Tom Tromey <tom@tromey.com>
5509
5510 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5511 (add_psymbol_to_list): New overload. Make old overload call new
5512 one.
5513 * psympriv.h (add_psymbol_to_list): New overload.
5514
5515 2020-04-24 Tom Tromey <tom@tromey.com>
5516
5517 * dwarf2/read.c (partial_die_info::read) <case
5518 DW_AT_linkage_name>: Use value_as_string.
5519 (dwarf2_string_attr): Use value_as_string.
5520 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5521 method.
5522 * dwarf2/attribute.c (attribute::value_as_string): New method.
5523
5524 2020-04-24 Tom Tromey <tom@tromey.com>
5525
5526 * symtab.c (general_symbol_info::natural_name)
5527 (general_symbol_info::demangled_name): Check for language_rust.
5528
5529 2020-04-24 Tom Tromey <tom@tromey.com>
5530
5531 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5532 (dwarf2_physname): ... from here.
5533 (partial_die_info::read): Add Rust "{" hack.
5534
5535 2020-04-24 Tom Tromey <tom@tromey.com>
5536
5537 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5538 method.
5539 (symbol_set_demangled_name): Don't declare.
5540 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5541 symbol_set_demangled_name.
5542 (general_symbol_info::set_language)
5543 (general_symbol_info::compute_and_set_names): Update.
5544 * minsyms.c (minimal_symbol_reader::install): Update.
5545 * dwarf2/read.c (new_symbol): Update.
5546
5547 2020-04-24 Tom Tromey <tromey@adacore.com>
5548
5549 PR python/23662:
5550 * python/py-type.c (convert_field): Handle
5551 FIELD_LOC_KIND_DWARF_BLOCK.
5552 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5553 (typy_get_dynamic): Nw function.
5554 (type_object_getset): Add "dynamic".
5555 * NEWS: Add entry.
5556
5557 2020-04-24 Tom Tromey <tromey@adacore.com>
5558
5559 * ada-typeprint.c (print_choices, print_variant_part)
5560 (print_record_field_types_dynamic): New functions.
5561 (print_record_field_types): Use print_record_field_types_dynamic.
5562
5563 2020-04-24 Tom Tromey <tromey@adacore.com>
5564
5565 * dwarf2/read.c (handle_data_member_location): New overload.
5566 (dwarf2_add_field): Use it.
5567 (decode_locdesc): Add "computed" parameter. Update comment.
5568 * gdbtypes.c (is_dynamic_type_internal): Also look for
5569 FIELD_LOC_KIND_DWARF_BLOCK.
5570 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5571 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5572 virtual base classes.
5573 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5574 FIELD_LOC_KIND_DWARF_BLOCK.
5575
5576 2020-04-24 Tom Tromey <tromey@adacore.com>
5577
5578 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5579 * gdbtypes.c (is_dynamic_type_internal): Check
5580 TYPE_HAS_DYNAMIC_LENGTH.
5581 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5582 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5583 New macros.
5584 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5585 constant.
5586
5587 2020-04-24 Tom Tromey <tromey@adacore.com>
5588
5589 * dwarf2/read.c (struct variant_field): Rewrite.
5590 (struct variant_part_builder): New.
5591 (struct nextfield): Remove "variant" field. Add "offset".
5592 (struct field_info): Add "current_variant_part" and
5593 "variant_parts".
5594 (alloc_discriminant_info): Remove.
5595 (alloc_rust_variant): New function.
5596 (quirk_rust_enum): Update.
5597 (dwarf2_add_field): Set "offset" member. Don't handle
5598 DW_TAG_variant_part.
5599 (offset_map_type): New typedef.
5600 (convert_variant_range, create_one_variant)
5601 (create_one_variant_part, create_variant_parts)
5602 (add_variant_property): New functions.
5603 (dwarf2_attach_fields_to_type): Call add_variant_property.
5604 (read_structure_type): Don't handle DW_TAG_variant_part.
5605 (handle_variant_part, handle_variant): New functions.
5606 (handle_struct_member_die): Use them.
5607 (process_structure_scope): Don't handle variant parts.
5608 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5609 (struct discriminant_info): Remove.
5610 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5611 (struct main_type) <flag_discriminated_union>: Remove.
5612 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5613 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5614 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5615 Update.
5616 * valops.c (value_union_variant): Remove.
5617 * value.h (value_union_variant): Don't declare.
5618
5619 2020-04-24 Tom Tromey <tromey@adacore.com>
5620
5621 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5622 (ada_value_primitive_packed_val): Update.
5623 * ada-valprint.c (ada_value_print_1): Update.
5624 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5625 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5626 just an address. Use evaluate_for_locexpr_baton.
5627 (dwarf2_evaluate_property): Update.
5628 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5629 array_view.
5630 * findvar.c (default_read_var_value): Update.
5631 * gdbtypes.c (compute_variant_fields_inner)
5632 (resolve_dynamic_type_internal): Update.
5633 (resolve_dynamic_type): Change type of valaddr parameter.
5634 * gdbtypes.h (resolve_dynamic_type): Update.
5635 * valarith.c (value_subscripted_rvalue): Update.
5636 * value.c (value_from_contents_and_address): Update.
5637
5638 2020-04-24 Tom Tromey <tromey@adacore.com>
5639
5640 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5641 "push_initial_value" parameter.
5642 (dwarf2_evaluate_property): Likewise.
5643 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5644
5645 2020-04-24 Tom Tromey <tromey@adacore.com>
5646
5647 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5648 (variant::matches, compute_variant_fields_recurse)
5649 (compute_variant_fields_inner, compute_variant_fields): New
5650 functions.
5651 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5652 Use resolved_type after type is made.
5653 (operator==): Add new cases.
5654 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5655 (struct discriminant_range, struct variant, struct variant_part):
5656 New.
5657 (union dynamic_prop_data) <variant_parts, original_type>: New
5658 members.
5659 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5660 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5661 constants.
5662 * value.c (unpack_bits_as_long): Now public.
5663 * value.h (unpack_bits_as_long): Declare.
5664
5665 2020-04-24 Tom Tromey <tromey@adacore.com>
5666
5667 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5668 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5669
5670 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5671
5672 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5673
5674 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5675
5676 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5677 (remove_fork_catchpoint, post_startup_inferior)
5678 (post_attach): Move...
5679 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5680 (remove_fork_catchpoint, post_startup_inferior)
5681 (post_attach): ...here.
5682 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5683 (remove_fork_catchpoint, post_startup_inferior)
5684 (post_attach): Move...
5685 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5686 (remove_fork_catchpoint, post_startup_inferior)
5687 (post_attach): ...here.
5688
5689 2020-04-24 Tom Tromey <tromey@adacore.com>
5690
5691 * nat/windows-nat.h (struct windows_thread_info)
5692 <pc_adjusted>: New member.
5693 * windows-nat.c (windows_fetch_one_register): Check
5694 pc_adjusted.
5695 (windows_nat_target::get_windows_debug_event)
5696 (windows_nat_target::wait): Set pc_adjusted.
5697
5698 2020-04-24 Tom de Vries <tdevries@suse.de>
5699
5700 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5701 Run gdb-add-index inside temp dir.
5702
5703 2020-04-23 Tom Tromey <tromey@adacore.com>
5704
5705 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5706 in loop.
5707
5708 2020-04-23 Luis Machado <luis.machado@linaro.org>
5709
5710 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5711 get_frame_register instead of gdbarch_unwind_pc.
5712
5713 2020-04-23 Tom de Vries <tdevries@suse.de>
5714
5715 * symtab.c (lookup_global_symbol): Prefer def over decl.
5716
5717 2020-04-23 Tom de Vries <tdevries@suse.de>
5718
5719 PR symtab/25807
5720 * block.c (best_symbol, better_symbol): Promote to external.
5721 * block.h (best_symbol, better_symbol): Declare.
5722 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5723 decl.
5724
5725 2020-04-23 Tom Tromey <tromey@adacore.com>
5726
5727 PR ada/25837:
5728 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5729 "const char *", not a "const std::string &".
5730 <name_and_matcher::operator==>: Update.
5731 * unittests/lookup_name_info-selftests.c: Change type of
5732 "result".
5733
5734 2020-04-23 Tom Tromey <tom@tromey.com>
5735
5736 * inferior.h (iterate_over_inferiors): Don't declare.
5737 * inferior.c (iterate_over_inferiors): Remove.
5738 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5739 Remove.
5740 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5741 use iterate_over_inferiors.
5742 (darwin_resume_inferior_it)
5743 (struct resume_inferior_threads_param)
5744 (darwin_resume_inferior_threads_it): Remove.
5745 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5746
5747 2020-04-23 Tom de Vries <tdevries@suse.de>
5748
5749 * blockframe.c (find_pc_partial_function): Use
5750 find_pc_sect_compunit_symtab rather than
5751 objfile->sf->qf->find_pc_sect_compunit_symtab.
5752
5753 2020-04-22 Tom de Vries <tdevries@suse.de>
5754
5755 PR symtab/25764
5756 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5757 in psymtabs.
5758
5759 2020-04-22 Tom de Vries <tdevries@suse.de>
5760
5761 PR symtab/25801
5762 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5763 symtabs.
5764
5765 2020-04-22 Tom de Vries <tdevries@suse.de>
5766
5767 PR symtab/25700
5768 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5769 CU if already created.
5770
5771 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5772
5773 * infrun.c (displaced_step_fixup): Switch to the event_thread
5774 before calling displaced_step_restore, not after.
5775
5776 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5777
5778 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5779 its inferior is not recorded by us.
5780 (record_btrace_target_open): Replace call to
5781 all_non_exited_threads () with call to current_inferior
5782 ()->non_exited_threads ().
5783 (record_btrace_target::stop_recording): Likewise.
5784 (record_btrace_target::close): Likewise.
5785 (record_btrace_target::wait): Likewise.
5786 (record_btrace_target::record_stop_replaying): Likewise.
5787
5788 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5789
5790 * btrace.c (btrace_enable): Throw an error on double enables and
5791 when enabling recording fails.
5792 (btrace_disable): Throw an error if the thread is not recorded.
5793
5794 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5795
5796 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5797 request if we do not have a thread_info.
5798
5799 2020-04-21 Tom de Vries <tdevries@suse.de>
5800
5801 PR gdb/25471
5802 * thread.c
5803 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5804 exception in get_frame_id.
5805
5806 2020-04-20 Tom Tromey <tromey@adacore.com>
5807
5808 * python/python.c (struct gdbpy_event): Mark move constructor as
5809 noexcept.
5810 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5811 constructor as noexcept.
5812 * completer.h (struct completion_result): Mark move constructor as
5813 noexcept.
5814 * completer.c (completion_result::completion_result): Use
5815 initialization style. Don't call reset_match_list.
5816
5817 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5818
5819 * MAINTAINERS (Write After Approval): Add myself.
5820
5821 2020-04-18 Tom Tromey <tom@tromey.com>
5822
5823 * windows-tdep.c (init_w32_command_list)
5824 (w32_prefix_command_valid): Restore.
5825 (_initialize_windows_tdep): Call init_w32_command_list.
5826
5827 2020-04-18 Tom Tromey <tom@tromey.com>
5828
5829 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5830 * value.c (value_fn_field): Update.
5831 * valops.c (find_function_in_inferior)
5832 (value_allocate_space_in_inferior): Update.
5833 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5834 Update.
5835 * tui/tui-source.c (tui_source_window::set_contents): Update.
5836 * symtab.c (lookup_global_or_static_symbol)
5837 (find_function_start_sal_1, skip_prologue_sal)
5838 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5839 * symmisc.c (dump_msymbols, dump_symtab_1)
5840 (maintenance_print_one_line_table): Update.
5841 * symfile.c (init_entry_point_info, section_is_mapped)
5842 (list_overlays_command, simple_read_overlay_table)
5843 (simple_overlay_update_1): Update.
5844 * stap-probe.c (handle_stap_probe): Update.
5845 * stabsread.c (dbx_init_float_type, define_symbol)
5846 (read_one_struct_field, read_enum_type, read_range_type): Update.
5847 * source.c (info_line_command): Update.
5848 * python/python.c (gdbpy_source_objfile_script)
5849 (gdbpy_execute_objfile_script): Update.
5850 * python/py-type.c (save_objfile_types): Update.
5851 * python/py-objfile.c (py_free_objfile): Update.
5852 * python/py-inferior.c (python_new_objfile): Update.
5853 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5854 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5855 (maintenance_check_psymtabs): Update.
5856 * printcmd.c (info_address_command): Update.
5857 * objfiles.h (struct objfile) <arch>: New method, from
5858 get_objfile_arch.
5859 (get_objfile_arch): Don't declare.
5860 * objfiles.c (get_objfile_arch): Remove.
5861 (filter_overlapping_sections): Update.
5862 * minsyms.c (msymbol_is_function): Update.
5863 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5864 (output_nondebug_symbol): Update.
5865 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5866 (mdebug_expand_psymtab): Update.
5867 * machoread.c (macho_add_oso_symfile): Update.
5868 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5869 Update.
5870 * linux-fork.c (checkpoint_command): Update.
5871 * linespec.c (convert_linespec_to_sals): Update.
5872 * jit.c (finalize_symtab): Update.
5873 * infrun.c (insert_exception_resume_from_probe): Update.
5874 * ia64-tdep.c (ia64_find_unwind_table): Update.
5875 * hppa-tdep.c (internalize_unwinds): Update.
5876 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5877 Update.
5878 * gcore.c (call_target_sbrk): Update.
5879 * elfread.c (record_minimal_symbol, elf_symtab_read)
5880 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5881 (elf_gnu_ifunc_resolve_by_got): Update.
5882 * dwarf2/read.c (create_addrmap_from_index)
5883 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5884 (read_debug_names_from_section)
5885 (process_psymtab_comp_unit_reader, add_partial_symbol)
5886 (add_partial_subprogram, process_full_comp_unit)
5887 (read_file_scope, read_func_scope, read_lexical_block_scope)
5888 (read_call_site_scope, dwarf2_ranges_read)
5889 (dwarf2_record_block_ranges, dwarf2_add_field)
5890 (mark_common_block_symbol_computed, read_tag_pointer_type)
5891 (read_tag_string_type, dwarf2_init_float_type)
5892 (dwarf2_init_complex_target_type, read_base_type)
5893 (partial_die_info::read, partial_die_info::read)
5894 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5895 (dwarf2_fetch_die_loc_sect_off): Update.
5896 * dwarf2/loc.c (dwarf2_find_location_expression)
5897 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5898 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5899 (dwarf2_loc_desc_get_symbol_read_needs)
5900 (locexpr_describe_location_piece, locexpr_describe_location_1)
5901 (loclist_describe_location): Update.
5902 * dwarf2/index-write.c (write_debug_names): Update.
5903 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5904 * dtrace-probe.c (dtrace_process_dof): Update.
5905 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5906 (process_one_symbol): Update.
5907 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5908 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5909 (coff_read_enum_type): Update.
5910 * cli/cli-cmds.c (edit_command, list_command): Update.
5911 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5912 * breakpoint.c (create_overlay_event_breakpoint)
5913 (create_longjmp_master_breakpoint)
5914 (create_std_terminate_master_breakpoint)
5915 (create_exception_master_breakpoint, get_sal_arch): Update.
5916 * block.c (block_gdbarch): Update.
5917 * annotate.c (annotate_source_line): Update.
5918
5919 2020-04-17 Tom Tromey <tromey@adacore.com>
5920
5921 * auto-load.c (show_auto_load_cmd): Remove.
5922 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5923 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5924 (maintenance_print_arc_command): Remove.
5925 * tui/tui-win.c (tui_command): Remove.
5926 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5927 * tui/tui-layout.c (tui_layout_command): Remove.
5928 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5929 * python/python.c (user_set_python, user_show_python): Remove.
5930 (_initialize_python): Use add_basic_prefix_cmd,
5931 add_show_prefix_cmd.
5932 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5933 (install_gdb_commands): Use add_basic_prefix_cmd,
5934 add_show_prefix_cmd.
5935 (info_guile_command): Remove.
5936 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5937 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5938 add_show_prefix_cmd.
5939 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5940 Remove do_set and do_show parameters.
5941 * cli/cli-style.c (set_style, show_style): Remove.
5942 (_initialize_cli_style): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 (cli_style_option::add_setshow_commands): Remove do_set and
5945 do_show parameters.
5946 (cli_style_option::add_setshow_commands): Use
5947 add_basic_prefix_cmd, add_show_prefix_cmd.
5948 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5949 (set_style_name): Remove.
5950 * cli/cli-dump.c (dump_command, append_command): Remove.
5951 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5952 (tekhex_dump_command, binary_dump_command)
5953 (binary_append_command): Remove.
5954 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5955 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5956 (init_w32_command_list): Remove; move into ...
5957 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5958 * valprint.c (set_print, show_print, set_print_raw)
5959 (show_print_raw): Remove.
5960 (_initialize_valprint): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 * typeprint.c (set_print_type, show_print_type): Remove.
5963 (_initialize_typeprint): Use add_basic_prefix_cmd,
5964 add_show_prefix_cmd.
5965 * record.c (set_record_command, show_record_command): Remove.
5966 (_initialize_record): Use add_basic_prefix_cmd,
5967 add_show_prefix_cmd.
5968 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5969 add_show_prefix_cmd.
5970 (info_command, show_command, set_debug, show_debug): Remove.
5971 * top.h (set_history, show_history): Don't declare.
5972 * top.c (set_history, show_history): Remove.
5973 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5974 (unset_tdesc_cmd): Remove.
5975 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5976 add_show_prefix_cmd.
5977 * symtab.c (info_module_command): Remove.
5978 (_initialize_symtab): Use add_basic_prefix_cmd.
5979 * symfile.c (overlay_command): Remove.
5980 (_initialize_symfile): Use add_basic_prefix_cmd.
5981 * sparc64-tdep.c (info_adi_command): Remove.
5982 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5983 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5984 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5985 add_show_prefix_cmd.
5986 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5987 (_initialize_serial): Use add_basic_prefix_cmd,
5988 add_show_prefix_cmd.
5989 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5990 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5993 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5994 add_show_prefix_cmd.
5995 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5996 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5997 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5998 add_show_prefix_cmd.
5999 * remote.c (remote_command, set_remote_cmd): Remove.
6000 (_initialize_remote): Use add_basic_prefix_cmd.
6001 * record-full.c (set_record_full_command)
6002 (show_record_full_command): Remove.
6003 (_initialize_record_full): Use add_basic_prefix_cmd,
6004 add_show_prefix_cmd.
6005 * record-btrace.c (cmd_set_record_btrace)
6006 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6007 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6008 (cmd_show_record_btrace_pt): Remove.
6009 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6010 add_show_prefix_cmd.
6011 * ravenscar-thread.c (set_ravenscar_command)
6012 (show_ravenscar_command): Remove.
6013 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6014 add_show_prefix_cmd.
6015 * mips-tdep.c (show_mips_command, set_mips_command)
6016 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6017 add_show_prefix_cmd.
6018 * maint.c (maintenance_command, maintenance_info_command)
6019 (maintenance_check_command, maintenance_print_command)
6020 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6021 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6022 add_show_prefix_cmd.
6023 (show_per_command_cmd): Remove.
6024 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6025 Remove.
6026 (maintenance_show_test_settings_cmd): Remove.
6027 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6028 add_show_prefix_cmd.
6029 * maint-test-options.c (maintenance_test_options_command):
6030 Remove.
6031 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6032 * macrocmd.c (macro_command): Remove
6033 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6034 * language.c (set_check, show_check): Remove.
6035 (_initialize_language): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * infcmd.c (unset_command): Remove.
6038 (_initialize_infcmd): Use add_basic_prefix_cmd.
6039 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6040 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6041 add_show_prefix_cmd.
6042 * go32-nat.c (go32_info_dos_command): Remove.
6043 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6044 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6045 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6046 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6047 (_initialize_frame): Use add_basic_prefix_cmd,
6048 add_show_prefix_cmd.
6049 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6050 (_initialize_dcache): Use add_basic_prefix_cmd,
6051 add_show_prefix_cmd.
6052 * cp-support.c (maint_cplus_command): Remove.
6053 (_initialize_cp_support): Use add_basic_prefix_cmd.
6054 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6055 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6056 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6057 add_basic_prefix_cmd, add_show_prefix_cmd.
6058 * breakpoint.c (save_command): Remove.
6059 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6060 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6061 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6062 add_show_prefix_cmd.
6063 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6064 (set_ada_command, show_ada_command): Remove.
6065 (_initialize_ada_language): Use add_basic_prefix_cmd,
6066 add_show_prefix_cmd.
6067 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6068
6069 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6070
6071 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6072 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6073
6074 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6075
6076 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6077 warning messages.
6078
6079 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6082 import table is not at beginning of .idata section.
6083
6084 2020-04-16 Pedro Alves <palves@redhat.com>
6085
6086 * inferior.c (delete_inferior): Use delete operator directly
6087 instead of delete_program_space.
6088 * progspace.c (add_program_space): New, factored out from
6089 program_space::program_space.
6090 (remove_program_space): New, factored out from
6091 delete_program_space.
6092 (program_space::program_space): Remove intro comment. Rewrite.
6093 (program_space::~program_space): Remove intro comment. Call
6094 remove_program_space.
6095 (delete_program_space): Delete.
6096 * progspace.h (program_space::program_space): Make explicit. Move
6097 intro comment here, adjusted.
6098 (program_space::~program_space): Move intro comment here,
6099 adjusted.
6100 (delete_program_space): Remove.
6101
6102 2020-04-16 Tom Tromey <tromey@adacore.com>
6103
6104 * windows-nat.c (windows_nat::handle_access_violation): New
6105 function.
6106 * nat/windows-nat.h (handle_access_violation): Declare.
6107 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6108 windows-nat.c. Call handle_access_violation.
6109
6110 2020-04-16 Tom de Vries <tdevries@suse.de>
6111
6112 PR symtab/25791
6113 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6114 CUs without psymtab.
6115
6116 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6117
6118 * python/python.c (do_start_initialization): Don't call
6119 PyEval_InitThreads for Python 3.9 and beyond.
6120
6121 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6122
6123 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6124 thread functions.
6125 (obsd_nat_target::wait): Likewise.
6126
6127 2020-04-15 Tom Tromey <tromey@adacore.com>
6128
6129 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6130 (DEBUG_EXCEPT): Use debug_printf.
6131
6132 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * completer.c (class completion_tracker::completion_hash_entry)
6135 <hash_name>: New member function.
6136 (completion_tracker::discard_completions): New callback to hash a
6137 completion_hash_entry, pass this to htab_create_alloc.
6138
6139 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6140
6141 * windows-nat.c (windows_make_so): Warn rather than stopping with
6142 an error if realpath() fails.
6143
6144 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6145
6146 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6147 (nbsd_nat_target::info_proc): Add do_status.
6148
6149 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6150 Tom de Vries <tdevries@suse.de>
6151
6152 PR symtab/25718
6153 * psympriv.h (struct partial_symtab::read_symtab)
6154 (struct partial_symtab::expand_psymtab)
6155 (struct partial_symtab::read_dependencies): Update comments.
6156 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6157 read_symtab for includer.
6158 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6159 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6160 (struct dwarf2_include_psymtab::m_readin): Remove.
6161 (struct dwarf2_include_psymtab::includer): New member function.
6162 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6163
6164 2020-04-14 Tom de Vries <tdevries@suse.de>
6165
6166 PR symtab/25720
6167 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6168 with NULL symbol_matcher and lookup_name.
6169 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6170 and lookup_name.
6171 * dwarf2/read.c (dw2_expand_symtabs_matching)
6172 (dw2_debug_names_expand_symtabs_matching): Same.
6173 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6174 Make lookup_name a pointer. Update comment.
6175 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6176 lookup_name being a pointer.
6177 * symfile.c (expand_symtabs_matching): Same.
6178 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6179 * linespec.c (iterate_over_all_matching_symtabs): Same.
6180
6181 2020-04-13 Tom Tromey <tom@tromey.com>
6182
6183 * run-on-main-thread.c: Update include.
6184 * unittests/main-thread-selftests.c: Update include.
6185 * tui/tui-win.c: Update include.
6186 * tui/tui-io.c: Update include.
6187 * tui/tui-interp.c: Update include.
6188 * tui/tui-hooks.c: Update include.
6189 * top.h: Update include.
6190 * top.c: Update include.
6191 * ser-base.c: Update include.
6192 * remote.c: Update include.
6193 * remote-notif.c: Update include.
6194 * remote-fileio.c: Update include.
6195 * record-full.c: Update include.
6196 * record-btrace.c: Update include.
6197 * python/python.c: Update include.
6198 * posix-hdep.c: Update include.
6199 * mingw-hdep.c: Update include.
6200 * mi/mi-main.c: Update include.
6201 * mi/mi-interp.c: Update include.
6202 * main.c: Update include.
6203 * linux-nat.c: Update include.
6204 * interps.c: Update include.
6205 * infrun.c: Update include.
6206 * inf-loop.c: Update include.
6207 * event-top.c: Update include.
6208 * event-loop.c: Move to ../gdbsupport/.
6209 * event-loop.h: Move to ../gdbsupport/.
6210 * async-event.h: Update include.
6211 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6212
6213 2020-04-13 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-win.c: Include async-event.h.
6216 * remote.c: Include async-event.h.
6217 * remote-notif.c: Include async-event.h.
6218 * record-full.c: Include async-event.h.
6219 * record-btrace.c: Include async-event.h.
6220 * infrun.c: Include async-event.h.
6221 * event-top.c: Include async-event.h.
6222 * event-loop.h: Move some declarations to async-event.h.
6223 * event-loop.c: Don't include ser-event.h or top.h. Move some
6224 code to async-event.c.
6225 * async-event.h: New file.
6226 * async-event.c: New file.
6227 * Makefile.in (COMMON_SFILES): Add async-event.c.
6228 (HFILES_NO_SRCDIR): Add async-event.h.
6229
6230 2020-04-13 Tom Tromey <tom@tromey.com>
6231
6232 * utils.c (flush_streams): New function.
6233 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6234
6235 2020-04-13 Tom Tromey <tom@tromey.com>
6236
6237 * event-loop.c (handle_file_event): Use warning, not
6238 printf_unfiltered.
6239
6240 2020-04-13 Tom Tromey <tom@tromey.com>
6241
6242 * event-loop.c: Include <chrono>.
6243
6244 2020-04-13 Tom Tromey <tom@tromey.com>
6245
6246 * gdb_select.h: Move to ../gdbsupport/.
6247 * event-loop.c: Update include path.
6248 * top.c: Update include path.
6249 * ser-base.c: Update include path.
6250 * ui-file.c: Update include path.
6251 * ser-tcp.c: Update include path.
6252 * guile/scm-ports.c: Update include path.
6253 * posix-hdep.c: Update include path.
6254 * ser-unix.c: Update include path.
6255 * gdb_usleep.c: Update include path.
6256 * mingw-hdep.c: Update include path.
6257 * inflow.c: Update include path.
6258 * infrun.c: Update include path.
6259 * event-top.c: Update include path.
6260
6261 2020-04-13 Tom Tromey <tom@tromey.com>
6262
6263 * configure: Rebuild.
6264 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6265
6266 2020-04-13 Tom Tromey <tom@tromey.com>
6267
6268 * event-loop.h (start_event_loop): Don't declare.
6269 * event-loop.c (start_event_loop): Move...
6270 * main.c (start_event_loop): ...here. Now static.
6271
6272 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6273
6274 * MAINTAINERS: Update my email address.
6275
6276 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6277
6278 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6279 IP_ALL.
6280
6281 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6282
6283 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6284 (nbsd_nat_target::info_proc): Add do_cmdline.
6285
6286 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6287
6288 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6289 (nbsd_nat_target::info_proc): Add do_cwd.
6290
6291 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6292
6293 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6294
6295 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6296
6297 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6298 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6299 (nbsd_nat_target::info_proc): New functions.
6300 * nbsd-nat.c (kinfo_get_vmmap): New function.
6301 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6302 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6303 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6304 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6305 functions.
6306 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6307 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6308 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6309 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6310 (KINFO_VME_FLAG_GROWS_DOWN): New.
6311
6312 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6313
6314 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6315 bit shift.
6316
6317 2020-04-10 Tom Tromey <tromey@adacore.com>
6318
6319 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6320
6321 2020-04-10 Tom Tromey <tromey@adacore.com>
6322
6323 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6324 separate debug files.
6325
6326 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6327
6328 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6329 Move to...
6330 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6331 ... here.
6332 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6333 Check for STATUS_WX86_BREAKPOINT.
6334 (windows_nat_target::wait): Same.
6335
6336 2020-04-10 Tom de Vries <tdevries@suse.de>
6337
6338 PR cli/25808
6339 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6340
6341 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6344 (Write After Approval): Remove Tom de Vries.
6345
6346 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6347
6348 revert partially:
6349 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6350
6351 * buildsym.c (record_line): Fix undefined behavior and preserve
6352 lines at eof.
6353
6354 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6355
6356 * auxv.h (svr4_auxv_parse): New.
6357 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6358 and generic_auxv_parse.
6359 (svr4_auxv_parse): Add.
6360 * obsd-tdep.c: Include "auxv.h".
6361 (obsd_auxv_parse): Remove.
6362 (obsd_init_abi): Remove comment.
6363 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6364 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6365 * nbsd-tdep.c: Include "auxv.h".
6366 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6367
6368 2020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * nat/windows-nat.h (last_wait_event): Don't declare.
6371 (wait_for_debug_event): Update comment.
6372 * nat/windows-nat.c (last_wait_event): Now static.
6373
6374 2020-04-08 Tom Tromey <tromey@adacore.com>
6375
6376 * windows-nat.c (wait_for_debug_event): Move to
6377 nat/windows-nat.c.
6378 * nat/windows-nat.h (wait_for_debug_event): Declare.
6379 * nat/windows-nat.c (wait_for_debug_event): Move from
6380 windows-nat.c. No longer static.
6381
6382 2020-04-08 Tom Tromey <tromey@adacore.com>
6383
6384 * windows-nat.c (get_windows_debug_event): Use
6385 fetch_pending_stop.
6386 * nat/windows-nat.h (fetch_pending_stop): Declare.
6387 * nat/windows-nat.c (fetch_pending_stop): New function.
6388
6389 2020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (windows_continue): Use matching_pending_stop and
6392 continue_last_debug_event.
6393 * nat/windows-nat.h (matching_pending_stop)
6394 (continue_last_debug_event): Declare.
6395 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6396 (matching_pending_stop, continue_last_debug_event): New
6397 functions.
6398
6399 2020-04-08 Tom Tromey <tromey@adacore.com>
6400
6401 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6402 (handle_exception_result): Move to nat/windows-nat.h.
6403 (DEBUG_EXCEPTION_SIMPLE): Remove.
6404 (windows_nat::handle_ms_vc_exception): New function.
6405 (handle_exception): Move to nat/windows-nat.c.
6406 (get_windows_debug_event): Update.
6407 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6408 nat/windows-nat.c.
6409 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6410 (handle_exception_result): Move from windows-nat.c.
6411 (handle_exception): Declare.
6412 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6413 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6414 windows-nat.c.
6415
6416 2020-04-08 Tom Tromey <tromey@adacore.com>
6417
6418 * windows-nat.c (exception_count, event_count): Remove.
6419 (handle_exception, get_windows_debug_event)
6420 (do_initial_windows_stuff): Update.
6421
6422 2020-04-08 Tom Tromey <tromey@adacore.com>
6423
6424 * windows-nat.c (windows_nat::handle_load_dll)
6425 (windows_nat::handle_unload_dll): Rename. No longer static.
6426 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6427 Declare.
6428
6429 2020-04-08 Tom Tromey <tromey@adacore.com>
6430
6431 * complaints.h (stop_whining): Declare at top-level.
6432 (complaint): Don't declare stop_whining.
6433
6434 2020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c (windows_nat::handle_output_debug_string):
6437 Rename. No longer static.
6438 * nat/windows-nat.h (handle_output_debug_string): Declare.
6439
6440 2020-04-08 Tom Tromey <tromey@adacore.com>
6441
6442 * windows-nat.c (current_process_handle, current_process_id)
6443 (main_thread_id, last_sig, current_event, last_wait_event)
6444 (current_windows_thread, desired_stop_thread_id, pending_stops)
6445 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6446 (display_selectors, fake_create_process)
6447 (get_windows_debug_event): Update.
6448 * nat/windows-nat.h (current_process_handle, current_process_id)
6449 (main_thread_id, last_sig, current_event, last_wait_event)
6450 (current_windows_thread, desired_stop_thread_id, pending_stops)
6451 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6452 * nat/windows-nat.c (current_process_handle, current_process_id)
6453 (main_thread_id, last_sig, current_event, last_wait_event)
6454 (current_windows_thread, desired_stop_thread_id, pending_stops)
6455 (siginfo_er): New globals. Move from windows-nat.c.
6456
6457 2020-04-08 Tom Tromey <tromey@adacore.com>
6458
6459 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6460 (handle_load_dll): Update.
6461 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6462
6463 2020-04-08 Tom Tromey <tromey@adacore.com>
6464
6465 * windows-nat.c (enum thread_disposition_type): Move to
6466 nat/windows-nat.h.
6467 (windows_nat::thread_rec): Rename from thread_rec. No longer
6468 static.
6469 (windows_add_thread, windows_nat_target::fetch_registers)
6470 (windows_nat_target::store_registers, handle_exception)
6471 (windows_nat_target::resume, get_windows_debug_event)
6472 (windows_nat_target::get_tib_address)
6473 (windows_nat_target::thread_name)
6474 (windows_nat_target::thread_alive): Update.
6475 * nat/windows-nat.h (enum thread_disposition_type): Move from
6476 windows-nat.c.
6477 (thread_rec): Declare.
6478
6479 2020-04-08 Tom Tromey <tromey@adacore.com>
6480
6481 * windows-nat.c: Add "using namespace".
6482 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6483 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6484
6485 2020-04-08 Tom Tromey <tromey@adacore.com>
6486
6487 * nat/windows-nat.h (struct windows_thread_info): Declare
6488 destructor.
6489 * nat/windows-nat.c (~windows_thread_info): New.
6490
6491 2020-04-08 Tom Tromey <tromey@adacore.com>
6492
6493 PR gdb/22992
6494 * windows-nat.c (current_event): Update comment.
6495 (last_wait_event, desired_stop_thread_id): New globals.
6496 (struct pending_stop): New.
6497 (pending_stops): New global.
6498 (windows_nat_target) <stopped_by_sw_breakpoint>
6499 <supports_stopped_by_sw_breakpoint>: New methods.
6500 (windows_fetch_one_register): Add assertions. Adjust PC.
6501 (windows_continue): Handle pending stops. Suspend other threads
6502 when stepping. Use last_wait_event
6503 (wait_for_debug_event): New function.
6504 (get_windows_debug_event): Use wait_for_debug_event. Handle
6505 pending stops. Queue spurious stops.
6506 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6507 (windows_nat_target::kill): Use wait_for_debug_event.
6508 * nat/windows-nat.h (struct windows_thread_info)
6509 <stopped_at_software_breakpoint>: New field.
6510 * nat/windows-nat.c (windows_thread_info::resume): Clear
6511 stopped_at_software_breakpoint.
6512
6513 2020-04-08 Tom Tromey <tromey@adacore.com>
6514
6515 * windows-nat.c (enum thread_disposition_type): New.
6516 (thread_rec): Replace "get_context" parameter with "disposition";
6517 change type.
6518 (windows_add_thread, windows_nat_target::fetch_registers)
6519 (windows_nat_target::store_registers, handle_exception)
6520 (windows_nat_target::resume, get_windows_debug_event)
6521 (windows_nat_target::get_tib_address)
6522 (windows_nat_target::thread_name)
6523 (windows_nat_target::thread_alive): Update.
6524
6525 2020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6528 (windows_continue): Use windows_continue::resume.
6529 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6530 resume>: Declare new methods.
6531 * nat/windows-nat.c: New file.
6532 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6533
6534 2020-04-08 Tom Tromey <tromey@adacore.com>
6535
6536 * windows-nat.c (windows_add_thread, windows_delete_thread)
6537 (windows_nat_target::fetch_registers)
6538 (windows_nat_target::store_registers, fake_create_process)
6539 (windows_nat_target::resume, windows_nat_target::resume)
6540 (get_windows_debug_event, windows_nat_target::wait)
6541 (windows_nat_target::pid_to_str)
6542 (windows_nat_target::get_tib_address)
6543 (windows_nat_target::get_ada_task_ptid)
6544 (windows_nat_target::thread_name)
6545 (windows_nat_target::thread_alive): Use lwp, not tid.
6546
6547 2020-04-08 Tom Tromey <tromey@adacore.com>
6548
6549 * windows-nat.c (handle_exception)
6550 (windows_nat_target::thread_name): Update.
6551 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6552 <name>: Now unique_xmalloc_ptr.
6553
6554 2020-04-08 Tom Tromey <tromey@adacore.com>
6555
6556 * windows-nat.c (thread_rec)
6557 (windows_nat_target::fetch_registers): Update.
6558 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6559 Update comment.
6560 <debug_registers_changed, reload_context>: Now bool.
6561
6562 2020-04-08 Tom Tromey <tromey@adacore.com>
6563
6564 * windows-nat.c (windows_add_thread): Use new.
6565 (windows_init_thread_list, windows_delete_thread): Use delete.
6566 (get_windows_debug_event): Update.
6567 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6568 destructor, and initializers.
6569
6570 2020-04-08 Tom Tromey <tromey@adacore.com>
6571
6572 * windows-nat.c (struct windows_thread_info): Remove.
6573 * nat/windows-nat.h: New file.
6574
6575 2020-04-08 Tom Tromey <tromey@adacore.com>
6576
6577 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6578 (thread_rec, windows_add_thread, windows_delete_thread)
6579 (windows_continue): Update.
6580
6581 2020-04-08 Tom Tromey <tromey@adacore.com>
6582
6583 * windows-nat.c (struct windows_thread_info): Remove typedef.
6584 (thread_head): Remove.
6585 (thread_list): New global.
6586 (thread_rec, windows_add_thread, windows_init_thread_list)
6587 (windows_delete_thread, windows_continue): Update.
6588
6589 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6590
6591 * windows-tdep.h (windows_init_abi): Add comment.
6592 (cygwin_init_abi): New declaration.
6593 * windows-tdep.c: Split signal enumeration in two, one for
6594 Windows and one for Cygwin.
6595 (windows_gdb_signal_to_target): Only deal with signal of the
6596 Windows OS ABI.
6597 (cygwin_gdb_signal_to_target): New function.
6598 (windows_init_abi): Rename to windows_init_abi_common, don't set
6599 gdb_signal_to_target gdbarch method. Add new new function with
6600 this name.
6601 (cygwin_init_abi): New function.
6602 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6603 comment. Don't call windows_init_abi.
6604 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6605 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6606 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6607 i386_windows_init_abi_common, don't call windows_init_abi. Add
6608 a new function of this name.
6609 (i386_cygwin_init_abi): New function.
6610 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6611 OS ABI Cygwin.
6612
6613 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6614
6615 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6616 parameter.c.
6617 (dwarf2_read_gdb_index): Update.
6618
6619 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6620
6621 * nbsd-tdep.c: Include "objfiles.h".
6622 (nbsd_skip_solib_resolver): New.
6623 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6624
6625 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6626
6627 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6628 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6629 with DW_LLE_base_addressx are being emitted in DWARFv5.
6630 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6631 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6632 unsigned integer.
6633
6634 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6635
6636 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6637 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6638 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6639 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6640 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6641 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6642 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6643
6644
6645 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6646
6647 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6648 (read_loclist_index): New function definition.
6649 (lookup_loclist_base): New function definition.
6650 (read_loclist_header): New function definition.
6651 (dwarf2_cu): Add loclist_base and loclist_header field.
6652 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6653 (read_full_die_1): Read the value of DW_AT_loclists_base.
6654 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6655 (read_attribute_value): Handle DW_FORM_loclistx.
6656 (skip_one_die): Handle DW_FORM_loclistx.
6657 (loclist_header): New structure declaration.
6658 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6659
6660 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6663 constructor. Remove `addr` parameter from other constructor and
6664 add `per_cu` parameter.
6665 * dwarf2/read.c (create_partial_symtab): Update.
6666
6667 2020-04-07 Tom de Vries <tdevries@suse.de>
6668
6669 PR symtab/25796
6670 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6671 (partial_die_info::fixup): Inherit has_const_value.
6672
6673 2020-04-07 Tom de Vries <tdevries@suse.de>
6674
6675 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6676 symbols without address.
6677
6678 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6679
6680 * nbsd-nat.h (struct thread_info): Add forward declaration.
6681 (nbsd_nat_target::thread_alive): Add.
6682 (nbsd_nat_target::thread_name): Likewise.
6683 (nbsd_nat_target::update_thread_list): Likewise.
6684 (update_thread_list::post_attach): Likewise.
6685 (post_attach::pid_to_str): Likewise.
6686 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6687 (nbsd_thread_lister): Add.
6688 (nbsd_nat_target::thread_alive): Likewise.
6689 (nbsd_nat_target::thread_name): Likewise.
6690 (nbsd_add_threads): Likewise.
6691 (update_thread_list::post_attach): Likewise.
6692 (nbsd_nat_target::update_thread_list): Likewise.
6693 (post_attach::pid_to_str): Likewise.
6694
6695 2020-04-06 Tom Tromey <tromey@adacore.com>
6696
6697 * ada-valprint.c (print_variant_part): Extract the variant field.
6698 (print_field_values): Use the field as the outer value when
6699 recursing.
6700
6701 2020-04-06 Tom Tromey <tromey@adacore.com>
6702
6703 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6704 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6705 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6706 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6707 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6708
6709 2020-04-06 Tom Tromey <tromey@adacore.com>
6710
6711 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6712 TYPE_CODE_ERROR.
6713
6714 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6715
6716 * nbsd-tdep.c: Include "gdbarch.h".
6717 Define enum with NetBSD signal numbers.
6718 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6719 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6720 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6721 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6722 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6723 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6724 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6725 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6726 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6727 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6728 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6729 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6730
6731 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6732
6733 PR gdb/25325
6734 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6735
6736 2020-04-03 Tom Tromey <tromey@adacore.com>
6737
6738 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6739 Read constant block.
6740
6741 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6742
6743 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6744 (gdb_bfd_get_full_section_contents): New declaration.
6745 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6746 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6747 gdb_bfd_get_full_section_contents.
6748
6749 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6750
6751 * exec.c (build_section_table): Replace internal_error with
6752 gdb_assert.
6753 (section_table_xfer_memory_partial): Likewise.
6754 * mdebugread.c (parse_partial_symbols): Likewise.
6755 * psymtab.c (lookup_partial_symbol): Likewise.
6756 * utils.c (wrap_here): Likewise.
6757
6758 2020-04-02 Tom Tromey <tromey@adacore.com>
6759
6760 * f-lang.c (build_fortran_types): Use arch_type to initialize
6761 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6762
6763 2020-04-02 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6766 of attributes.
6767
6768 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6769 Bernd Edlinger <bernd.edlinger@hotmail.de>
6770 Tom Tromey <tromey@adacore.com>
6771
6772 * buildsym.c (buildsym_compunit::record_line): Remove
6773 deduplication code.
6774
6775 2020-04-02 Tom de Vries <tdevries@suse.de>
6776
6777 PR ada/24671
6778 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6779
6780 2020-04-02 Tom de Vries <tdevries@suse.de>
6781
6782 * dwarf2/read.c (dwarf2_gdb_index_functions,
6783 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6784 NULL.
6785 * psymtab.c (psym_lookup_global_symbol_language): New function.
6786 (psym_functions): Init psym_lookup_global_symbol_language with
6787 psym_lookup_global_symbol_language.
6788 * symfile-debug.c (debug_sym_quick_functions): Init
6789 lookup_global_symbol_language with NULL.
6790 * symfile.c (set_initial_language): Remove fixme comment.
6791 * symfile.h (struct quick_symbol_functions): Add
6792 lookup_global_symbol_language.
6793 * symtab.c (find_quick_global_symbol_language): New function.
6794 (find_main_name): Use find_quick_global_symbol_language.
6795
6796 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6799
6800 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6801
6802 * buildsym.c (record_line): Fix undefined behavior and preserve
6803 lines at eof.
6804
6805 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6806
6807 * buildsym.c (record_line): Fix the resizing condition.
6808
6809 2020-04-01 Tom Tromey <tom@tromey.com>
6810
6811 * value.h (value_literal_complex): Add comment.
6812 * valops.c (value_literal_complex): Refer to value.h.
6813
6814 2020-04-01 Tom Tromey <tom@tromey.com>
6815
6816 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6817 (scalar_type): New rule, from typebase.
6818 (typebase): Use scalar_type. Recognize complex types.
6819 (field_name): Handle FLOAT_KEYWORD.
6820 (ident_tokens): Add _Complex and __complex__.
6821
6822 2020-04-01 Tom Tromey <tom@tromey.com>
6823
6824 PR exp/25299:
6825 * valarith.c (promotion_type, complex_binop): New functions.
6826 (scalar_binop): Handle complex numbers. Use promotion_type.
6827 (value_pos, value_neg, value_complement): Handle complex numbers.
6828
6829 2020-04-01 Tom Tromey <tom@tromey.com>
6830
6831 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6832 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6833 (parse_number): Handle complex numbers.
6834
6835 2020-04-01 Tom Tromey <tom@tromey.com>
6836
6837 * c-valprint.c (c_decorations): Change complex suffix to "i".
6838
6839 2020-04-01 Tom Tromey <tom@tromey.com>
6840
6841 * valprint.c (generic_value_print_complex): Use accessors.
6842 * value.h (value_real_part, value_imaginary_part): Declare.
6843 * valops.c (value_real_part, value_imaginary_part): New
6844 functions.
6845 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6846
6847 2020-04-01 Tom Tromey <tom@tromey.com>
6848
6849 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6850 (read_range_type): Update.
6851 * mdebugread.c (basic_type): Update.
6852 * go-lang.c (build_go_types): Use init_complex_type.
6853 * gdbtypes.h (struct main_type) <complex_type>: New member.
6854 (init_complex_type): Update.
6855 (arch_complex_type): Don't declare.
6856 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6857 Make name if none given. Use alloc_type_copy. Look for cached
6858 complex type.
6859 (arch_complex_type): Remove.
6860 (gdbtypes_post_init): Use init_complex_type.
6861 * f-lang.c (build_fortran_types): Use init_complex_type.
6862 * dwarf2/read.c (read_base_type): Update.
6863 * d-lang.c (build_d_types): Use init_complex_type.
6864 * ctfread.c (read_base_type): Update.
6865
6866 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6867
6868 * infrun.c (stop_all_threads): Update assertion, plus when
6869 stopping threads, take into account that we might be trying
6870 to stop an all-stop target.
6871 (stop_waiting): Call 'stop_all_threads' if there exists a
6872 non-stop target.
6873
6874 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6875
6876 * target.h (exists_non_stop_target): New function declaration.
6877 * target.c (exists_non_stop_target): New function.
6878
6879 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6880
6881 PR gdb/24789
6882 * eval.c (is_integral_or_integral_reference): New function.
6883 (evaluate_subexp_standard): Allow integer references in
6884 pointer arithmetic.
6885
6886 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6887
6888 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6889 check for no ptid in the stop reply when the target is non-stop.
6890
6891 2020-04-01 Tom Tromey <tromey@adacore.com>
6892
6893 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6894 "name" parameter to rvalue reference. Initialize m_name_holder.
6895 <lookup_name_info>: New overloads.
6896 <name>: Return gdb::string_view.
6897 <c_str>: New method.
6898 <make_ignore_params>: Update.
6899 <search_name_hash>: Update.
6900 <language_lookup_name>: Return const char *.
6901 <m_name>: Change type.
6902 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6903 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6904 (lookup_name_info::match_any): Update.
6905 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6906 Update.
6907 * minsyms.c (linkage_name_str): Update.
6908 * language.c (default_symbol_name_matcher): Update.
6909 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6910 Update.
6911 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6912 (ada_lookup_name_info::ada_lookup_name_info): Update.
6913 (literal_symbol_name_matcher): Update.
6914
6915 2020-04-01 Tom Tromey <tromey@adacore.com>
6916
6917 * psymtab.c (psymtab_search_name): Remove function.
6918 (psym_lookup_symbol): Create search name and lookup name here.
6919 (lookup_partial_symbol): Remove "name" parameter; add
6920 lookup_name.
6921 (psym_expand_symtabs_for_function): Update.
6922
6923 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6924
6925 PR tui/25597:
6926 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6927
6928 2020-03-31 Tom Tromey <tromey@adacore.com>
6929
6930 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6931 memcpy.
6932
6933 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6934
6935 * features/riscv/32bit-csr.xml: Regenerated.
6936 * features/riscv/64bit-csr.xml: Regenerated.
6937
6938 2020-03-30 Tom Tromey <tromey@adacore.com>
6939
6940 * ada-valprint.c (print_variant_part): Update.
6941 * ada-lang.h (ada_which_variant_applies): Update.
6942 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6943 outer_valaddr parameters; replace with "outer" value parameter.
6944 (to_fixed_variant_branch_type): Update.
6945
6946 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6947
6948 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6949 <list>. Remove inclusion of observable.h.
6950 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6951 (struct arch_lwp_info): New struct.
6952 (class ppc_linux_dreg_interface): New class.
6953 (struct ppc_linux_process_info): New struct.
6954 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6955 <low_new_clone, low_forget_process, low_prepare_to_resume>
6956 <copy_thread_dreg_state, mark_thread_stale>
6957 <mark_debug_registers_changed, register_hw_breakpoint>
6958 <clear_hw_breakpoint, register_wp, clear_wp>
6959 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6960 <num_memory_accesses, get_trigger_type>
6961 <create_watchpoint_request, hwdebug_point_cmp>
6962 <init_arch_lwp_info, get_arch_lwp_info>
6963 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6964 methods.
6965 <struct ptid_hash>: New inner struct.
6966 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6967 members.
6968 (saved_dabr_value, hwdebug_info, max_slots_number)
6969 (struct hw_break_tuple, struct thread_points, ppc_threads)
6970 (have_ptrace_hwdebug_interface)
6971 (hwdebug_find_thread_points_by_tid)
6972 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6973 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6974 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6975 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6976 use m_dreg_interface.
6977 (hwdebug_point_cmp): Change to...
6978 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6979 reference arguments instead of pointers.
6980 (ppc_linux_nat_target::ranged_break_num_registers): Use
6981 m_dreg_interface.
6982 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6983 m_dreg_interface. Call register_hw_breakpoint.
6984 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6985 m_dreg_interface. Call clear_hw_breakpoint.
6986 (get_trigger_type): Change to...
6987 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6988 comment.
6989 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6990 use m_dreg_interface. Call register_hw_breakpoint.
6991 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6992 use m_dreg_interface. Call clear_hw_breakpoint.
6993 (can_use_watchpoint_cond_accel): Change to...
6994 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6995 method. Update comment, use m_dreg_interface and
6996 m_process_info.
6997 (calculate_dvc): Change to...
6998 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6999 m_dreg_interface.
7000 (num_memory_accesses): Change to...
7001 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7002 (check_condition): Change to...
7003 (ppc_linux_nat_target::check_condition): ...this method.
7004 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7005 comment, use m_dreg_interface.
7006 (create_watchpoint_request): Change to...
7007 (ppc_linux_nat_target::create_watchpoint_request): ...this
7008 method. Use m_dreg_interface.
7009 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7010 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7011 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7012 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7013 (ppc_linux_nat_target::low_forget_process)
7014 (ppc_linux_nat_target::low_new_fork)
7015 (ppc_linux_nat_target::low_new_clone)
7016 (ppc_linux_nat_target::low_delete_thread)
7017 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7018 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7019 only call mark_thread_stale.
7020 (ppc_linux_thread_exit): Remove.
7021 (ppc_linux_nat_target::stopped_data_address): Change to...
7022 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7023 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7024 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7025 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7026 comment. Call low_stopped_data_address.
7027 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7028 m_dreg_interface.
7029 (ppc_linux_nat_target::masked_watch_num_registers): Use
7030 m_dreg_interface.
7031 (ppc_linux_nat_target::copy_thread_dreg_state)
7032 (ppc_linux_nat_target::mark_thread_stale)
7033 (ppc_linux_nat_target::mark_debug_registers_changed)
7034 (ppc_linux_nat_target::register_hw_breakpoint)
7035 (ppc_linux_nat_target::clear_hw_breakpoint)
7036 (ppc_linux_nat_target::register_wp)
7037 (ppc_linux_nat_target::clear_wp)
7038 (ppc_linux_nat_target::init_arch_lwp_info)
7039 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7040 (_initialize_ppc_linux_nat): Remove observer callback.
7041
7042 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7043
7044 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7045 (ppc_linux_nat_target::auxv_parse)
7046 (ppc_linux_nat_target::read_description)
7047 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7048 Move up.
7049
7050 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7051
7052 * linux-nat.h (low_new_clone): New method.
7053 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7054
7055 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7056
7057 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7058 (dbx_expand_psymtab): ... this.
7059 (start_psymtab): Update.
7060 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7061 (mdebug_expand_psymtab): ... this.
7062 (parse_partial_symbols): Update.
7063 (new_psymtab): Update.
7064 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7065 (xcoff_expand_psymtab): ... this.
7066 (xcoff_start_psymtab): Update.
7067
7068 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7069
7070 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7071 <expand_dependencies>: ... this.
7072 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7073 (partial_symtab::expand_dependencies): ... this.
7074 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7075 Update.
7076 (dwarf2_psymtab::expand_psymtab): Update.
7077 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7078 * mdebugread.c (psymtab_to_symtab_1): Update.
7079 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7080
7081 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7082
7083 * psympriv.h (discard_psymtab): Remove.
7084 * dbxread.c (dbx_end_psymtab): Update.
7085 * xcoffread.c (xcoff_end_psymtab): Update.
7086
7087 2020-03-28 Tom Tromey <tom@tromey.com>
7088
7089 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7090 comment.
7091
7092 2020-03-28 Tom Tromey <tom@tromey.com>
7093
7094 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7095
7096 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7097
7098 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7099
7100 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7101
7102 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7103
7104 2020-03-26 Tom Tromey <tom@tromey.com>
7105
7106 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7107 (mark_common_block_symbol_computed, read_tag_string_type)
7108 (attr_to_dynamic_prop, read_subrange_type): Update.
7109 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7110 to be methods on struct attribute.
7111 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7112 (read_call_site_scope, partial_die_info::read)
7113 (partial_die_info::read, lookup_die_type, follow_die_ref):
7114 Update.
7115 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7116 from dwarf2_get_ref_die_offset.
7117 (attribute::constant_value): New method, from
7118 dwarf2_get_attr_constant_value.
7119 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7120 Declare method.
7121 <constant_value>: New method.
7122
7123 2020-03-26 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7126 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7127 (dwarf_type_encoding_name): Move to stringify.c.
7128 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7129 * dwarf2/stringify.c: New file.
7130 * dwarf2/stringify.h: New file.
7131
7132 2020-03-26 Tom Tromey <tom@tromey.com>
7133
7134 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7135 Rewrite.
7136
7137 2020-03-26 Tom Tromey <tom@tromey.com>
7138
7139 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7140 methods.
7141 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7142 (lookup_ranges_base): Likewise.
7143 (read_cutu_die_from_dwo, read_full_die_1): Update.
7144
7145 2020-03-26 Tom Tromey <tom@tromey.com>
7146
7147 * dwarf2/read.c (read_import_statement, read_file_scope)
7148 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7149 (read_lexical_block_scope, read_call_site_scope)
7150 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7151 (handle_struct_member_die, process_structure_scope)
7152 (update_enumeration_type_from_children)
7153 (process_enumeration_scope, read_array_type, read_common_block)
7154 (read_namespace, read_module, read_subroutine_type): Update.
7155 (sibling_die): Remove.
7156
7157 2020-03-26 Tom Tromey <tom@tromey.com>
7158
7159 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7160 (build_type_psymtabs_reader, read_structure_type)
7161 (read_enumeration_type, read_full_die_1): Update.
7162 (dwarf2_attr_no_follow): Move to die.h.
7163 * dwarf2/die.h (struct die_info) <attr>: New method.
7164
7165 2020-03-26 Tom Tromey <tom@tromey.com>
7166
7167 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7168 <base_address>: Now an optional.
7169 (dwarf2_find_base_address, dwarf2_rnglists_process)
7170 (dwarf2_ranges_process, fill_in_loclist_baton)
7171 (dwarf2_symbol_mark_computed): Update.
7172
7173 2020-03-26 Tom Tromey <tom@tromey.com>
7174
7175 * dwarf2/read.c (struct die_info): Move to die.h.
7176 * dwarf2/die.h: New file.
7177
7178 2020-03-26 Tom Tromey <tom@tromey.com>
7179
7180 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7181 * dwarf2/read.c
7182 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7183 Move to line-header.c.
7184 (read_checked_initial_length_and_offset, read_formatted_entries):
7185 Likewise.
7186 (dwarf_decode_line_header): Split into two.
7187 * dwarf2/line-header.c
7188 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7189 Move from read.c.
7190 (read_checked_initial_length_and_offset, read_formatted_entries):
7191 Likewise.
7192 (dwarf_decode_line_header): New function, split from read.c.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7197 Declare method.
7198 * dwarf2/read.c (read_attribute_value): Update.
7199 (dwarf2_per_objfile::read_line_string): Rename from
7200 read_indirect_line_string.
7201 (read_formatted_entries): Update.
7202
7203 2020-03-26 Tom Tromey <tom@tromey.com>
7204
7205 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7206 variable.
7207
7208 2020-03-26 Tom Tromey <tom@tromey.com>
7209
7210 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7211 const.
7212 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7213 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7214 parameter const.
7215
7216 2020-03-26 Tom Tromey <tom@tromey.com>
7217
7218 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7219 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7220 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7221 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7222
7223 2020-03-26 Tom Tromey <tom@tromey.com>
7224
7225 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7226 file_names_size, file_full_name, file_file_name>: Use const.
7227 <file_name_at, file_names>: Add const overload.
7228 * dwarf2/line-header.c (line_header::file_file_name)
7229 (line_header::file_full_name): Update.
7230
7231 2020-03-26 Tom Tromey <tom@tromey.com>
7232
7233 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7234 (macro_start_file, consume_improper_spaces)
7235 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7236 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7237 (dwarf_decode_macros): Move to macro.c.
7238 * dwarf2/macro.c: New file.
7239 * dwarf2/macro.h: New file.
7240 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7241
7242 2020-03-26 Tom Tromey <tom@tromey.com>
7243
7244 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7245 method.
7246 * dwarf2/section.c: New method. From
7247 read_indirect_string_at_offset_from.
7248 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7249 (read_indirect_string_at_offset_from): Move to section.c.
7250 (read_indirect_string_at_offset): Rewrite.
7251 (read_indirect_line_string_at_offset): Remove.
7252 (read_indirect_string, read_indirect_line_string)
7253 (dwarf_decode_macro_bytes): Update.
7254
7255 2020-03-26 Tom Tromey <tom@tromey.com>
7256
7257 * dwarf2/section.h (struct dwarf2_section_info)
7258 <overload_complaint>: Declare.
7259 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7260 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7261 Rename from dwarf2_section_buffer_overflow_complaint.
7262 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7263 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7264
7265 2020-03-26 Tom Tromey <tom@tromey.com>
7266
7267 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7268 Declare.
7269 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7270 Move from read.c.
7271 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7272 to section.c.
7273
7274 2020-03-26 Tom Tromey <tom@tromey.com>
7275
7276 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7277
7278 2020-03-26 Tom Tromey <tom@tromey.com>
7279
7280 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7281 "builder".
7282 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7283 parameter.
7284 (dwarf_decode_macros): Update.
7285
7286 2020-03-26 Tom Tromey <tom@tromey.com>
7287
7288 * dwarf2/read.c (read_attribute_value): Update.
7289 (read_indirect_string_from_dwz): Move to dwz.c; change into
7290 method.
7291 (dwarf_decode_macro_bytes): Update.
7292 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7293 * dwarf2/dwz.c: New file.
7294 * Makefile.in (COMMON_SFILES): Add dwz.c.
7295
7296 2020-03-26 Tom Tromey <tom@tromey.com>
7297
7298 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7299 * dwarf2/read.c: Add include.
7300 * dwarf2/index-write.c: Add include.
7301 * dwarf2/index-cache.c: Add include.
7302 * dwarf2/dwz.h: New file.
7303
7304 2020-03-25 Tom Tromey <tom@tromey.com>
7305
7306 * compile/compile-object-load.c (get_out_value_type): Mention
7307 correct symbol name in error message.
7308
7309 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7310
7311 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7312
7313 2020-03-25 Tom de Vries <tdevries@suse.de>
7314
7315 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7316 * symmisc.c (dump_symtab_1): Print user and includes fields.
7317 (maintenance_info_symtabs): Same.
7318
7319 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7320
7321 PR gdb/25534
7322 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7323 (riscv_regcache_cooked_write): New function.
7324 (riscv_push_dummy_call): Use new function.
7325 (riscv_return_value): Likewise.
7326
7327 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7330 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7331 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7332 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7333 * infrun.c (follow_fork): Likewise.
7334 (follow_fork_inferior): Likewise.
7335 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7336 * linux-nat.h (class linux_nat_target): Likewise.
7337 * remote.c (class remote_target) <follow_fork>: Likewise.
7338 (remote_target::follow_fork): Likewise.
7339 * target-delegates.c: Re-generate.
7340 * target.c (default_follow_fork): Likewise.
7341 (target_follow_fork): Likewise.
7342 * target.h (struct target_ops) <follow_fork>: Likewise.
7343 (target_follow_fork): Likewise.
7344
7345 2020-03-24 Tom de Vries <tdevries@suse.de>
7346
7347 * psymtab.c (maintenance_info_psymtabs): Print user field.
7348
7349 2020-03-20 Tom Tromey <tromey@adacore.com>
7350
7351 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7352 const.
7353 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7354 const.
7355
7356 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7357
7358 * ptrace.m4: Don't check for ptrace declaration.
7359 * config.in: Re-generate.
7360 * configure: Re-generate.
7361 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7362 not defined.
7363
7364 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7365
7366 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7367 `PTRACE_TYPE_RET'.
7368 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7369 * sparc-nat.c (gdb_ptrace): Likewise.
7370 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7371
7372 2020-03-20 Tom Tromey <tromey@adacore.com>
7373
7374 * c-exp.y (lex_one_token): Fix assert.
7375
7376 2020-03-20 Tom Tromey <tromey@adacore.com>
7377
7378 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7379 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7380 strncpy call.
7381
7382 2020-03-20 Tom Tromey <tromey@adacore.com>
7383
7384 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7385
7386 2020-03-20 Tom Tromey <tromey@adacore.com>
7387
7388 * ada-valprint.c (print_variant_part): Remove parameters; switch
7389 to value-based API.
7390 (print_field_values): Likewise.
7391 (ada_val_print_struct_union): Likewise.
7392 (ada_value_print_1): Update.
7393
7394 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7395
7396 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7397 nbsd_nat_target instead of inf_ptrace_target.
7398 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7399 nbsd_nat_target.
7400
7401 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7402
7403 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7404 it to the ptrace call.
7405 * (store_registers): Likewise.
7406
7407 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7408
7409 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7410 it to the ptrace call.
7411 * (store_registers): Likewise.
7412
7413 2020-03-19 Luis Machado <luis.machado@linaro.org>
7414
7415 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7416 valid, fetch vg value from ptrace.
7417
7418 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7419 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7420 * inf-ptrace.c: Likewise.
7421 * (gdb_ptrace): Add.
7422 * (inf_ptrace_target::resume): Update.
7423 * (inf_ptrace_target::xfer_partial): Likewise.
7424 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7425 * (inf_ptrace_peek_poke): Update.
7426
7427 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7428
7429 * x86-bsd-nat.c (gdb_ptrace): New.
7430 * (x86bsd_dr_set): Add new argument `ptid'.
7431 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7432 x86bsd_dr_set_addr): Update.
7433
7434 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 * remote.c (remote_target::process_stop_reply): Handle events for
7437 all threads differently.
7438
7439 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7440
7441 * completer.c (completion_tracker::remove_completion): Define new
7442 function.
7443 * completer.h (completion_tracker::remove_completion): Declare new
7444 function.
7445 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7446 when adding a C++ function symbol.
7447
7448 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * completer.c (completion_tracker::completion_hash_entry): Define
7451 new class.
7452 (advance_to_filename_complete_word_point): Call
7453 recompute_lowest_common_denominator.
7454 (completion_tracker::completion_tracker): Call discard_completions
7455 to setup the hash table.
7456 (completion_tracker::discard_completions): Allow for being called
7457 from the constructor, pass new equal function, and element deleter
7458 when constructing the hash table. Initialise new class member
7459 variables.
7460 (completion_tracker::maybe_add_completion): Remove use of
7461 m_entries_vec, and store more information into m_entries_hash.
7462 (completion_tracker::recompute_lcd_visitor): New function, most
7463 content taken from...
7464 (completion_tracker::recompute_lowest_common_denominator):
7465 ...here, this now just visits each item in the hash calling the
7466 above visitor.
7467 (completion_tracker::build_completion_result): Remove use of
7468 m_entries_vec, call recompute_lowest_common_denominator.
7469 * completer.h (completion_tracker::have_completions): Remove use
7470 of m_entries_vec.
7471 (completion_tracker::completion_hash_entry): Declare new class.
7472 (completion_tracker::recompute_lowest_common_denominator): Change
7473 function signature.
7474 (completion_tracker::recompute_lcd_visitor): Declare new function.
7475 (completion_tracker::m_entries_vec): Delete.
7476 (completion_tracker::m_entries_hash): Initialize to NULL.
7477 (completion_tracker::m_lowest_common_denominator_valid): New
7478 member variable.
7479 (completion_tracker::m_lowest_common_denominator_max_length): New
7480 member variable.
7481
7482 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7483
7484 * regformats/regdef.h: Put reg in gdb namespace.
7485
7486 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7487
7488 * i386-bsd-nat.c (gdb_ptrace): New.
7489 * (i386bsd_fetch_inferior_registers,
7490 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7491 * (i386bsd_fetch_inferior_registers,
7492 i386bsd_store_inferior_registers) Use gdb_ptrace.
7493
7494 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7495
7496 * amd64-bsd-nat.c (gdb_ptrace): New.
7497 * (amd64bsd_fetch_inferior_registers,
7498 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7499 * (amd64bsd_fetch_inferior_registers,
7500 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7501
7502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7503
7504 * user-regs.c (user_reg::read): Rename to...
7505 (user_reg::xread): ...this.
7506 * (append_user_reg): Rename argument `read' to `xread'.
7507 * (user_reg_add_builtin): Likewise.
7508 * (user_reg_add): Likewise.
7509 * (value_of_user_reg): Likewise.
7510
7511 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7512
7513 * sparc-nat.c (gdb_ptrace): New.
7514 * sparc-nat.c (sparc_fetch_inferior_registers)
7515 (sparc_store_inferior_registers) Remove obsolete comment.
7516 * sparc-nat.c (sparc_fetch_inferior_registers)
7517 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7518 * sparc-nat.c (sparc_fetch_inferior_registers)
7519 (sparc_store_inferior_registers) Use gdb_ptrace.
7520
7521 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7522
7523 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7524 it to the ptrace call.
7525 * sh-nbsd-nat.c (store_registers): Likewise.
7526
7527 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7528
7529 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7530 nbsd_nat_target instead of inf_ptrace_target.
7531 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7532 nbsd_nat_target.
7533
7534 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7535
7536 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7537
7538 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7539
7540 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7541 <sys/sysctl.h>.
7542 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7543
7544 2020-03-17 Tom de Vries <tdevries@suse.de>
7545
7546 PR gdb/23710
7547 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7548 fields.
7549 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7550 fields.
7551 (process_imported_unit_die): Skip import of c++ CUs.
7552
7553 2020-03-16 Tom Tromey <tom@tromey.com>
7554
7555 * p-valprint.c (pascal_object_print_value): Initialize
7556 base_value.
7557
7558 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7559 Shahab Vahedi <shahab@synopsys.com>
7560
7561 * Makefile.in: Add arch/arc.o
7562 * configure.tgt: Likewise.
7563 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7564 (_initialize_arc_tdep): Don't initialize old target descriptions.
7565 (arc_read_description): New function to cache target descriptions.
7566 * arc-tdep.h (arc_read_description): Add proto type.
7567 * arch/arc.c: New file.
7568 * arch/arc.h: Likewise.
7569 * features/Makefile: Replace old target descriptions with new.
7570 * features/arc-arcompact.c: Remove.
7571 * features/arc-arcompact.xml: Likewise.
7572 * features/arc-v2.c: Likewise
7573 * features/arc-v2.xml: Likewise
7574 * features/arc/aux-arcompact.xml: New file.
7575 * features/arc/aux-v2.xml: Likewise.
7576 * features/arc/core-arcompact.xml: Likewise.
7577 * features/arc/core-v2.xml: Likewise.
7578 * features/arc/aux-arcompact.c: Generate.
7579 * features/arc/aux-v2.c: Likewise.
7580 * features/arc/core-arcompact.c: Likewise.
7581 * features/arc/core-v2.c: Likewise.
7582 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7583
7584 2020-03-16 Tom Tromey <tromey@adacore.com>
7585
7586 PR gdb/25663:
7587 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7588 putting value into bcache.
7589
7590 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7591
7592 PR gdb/21500
7593 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7594 to...
7595 (amd64_windows_init_abi_common): ... this. Don't set size of
7596 long type.
7597 (amd64_windows_init_abi): New function.
7598 (amd64_cygwin_init_abi): New function.
7599 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7600 the Cygwin OS ABI.
7601 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7602 comment.
7603
7604 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7607 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7608 (pe_import_directory_entry): New struct type.
7609 (is_linked_with_cygwin_dll): New function.
7610 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7611 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7612 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7613
7614 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7617 i386_cygwin_core_osabi_sniffer.
7618
7619 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7620
7621 * i386-cygwin-tdep.c: Rename to...
7622 * i386-windows-tdep.c: ... this.
7623 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7624 i386-windows-tdep.c.
7625 * configure.tgt: Likewise.
7626
7627 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7630 * osabi.c (gdb_osabi_names): Add "Windows".
7631 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7632 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7633 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7634 i386_cygwin_osabi_sniffer.
7635 (_initialize_i386_cygwin_tdep): Register OS ABI
7636 GDB_OSABI_WINDOWS for i386.
7637 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7638 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7639 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7640 for x86-64.
7641 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7642 when the target matches '*-*-mingw*'.
7643
7644 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * defs.h (enum gdb_osabi): Move to...
7647 * osabi.h (enum gdb_osabi): ... here.
7648 * gdbarch.sh: Include osabi.h in gdbarch.h.
7649 * gdbarch.h: Re-generate.
7650
7651 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7654 function.
7655 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7656
7657 2020-03-14 Tom Tromey <tom@tromey.com>
7658
7659 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7660 for C++.
7661 (c_type_print_modifier): Likewise. Add "language" parameter.
7662 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7663 (c_type_print_base_1): Update.
7664 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7665 constants.
7666 * type-stack.c (type_stack::insert): Handle tp_atomic and
7667 tp_restrict.
7668 (type_stack::follow_type_instance_flags): Likewise.
7669 (type_stack::follow_types): Likewise. Merge type-following code.
7670 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7671 (space_identifier, cv_with_space_id)
7672 (const_or_volatile_or_space_identifier_noopt)
7673 (const_or_volatile_or_space_identifier): Remove.
7674 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7675 rules.
7676 (ptr_operator, typebase): Update.
7677 (enum token_flag) <FLAG_C>: New constant.
7678 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7679 "_Atomic".
7680 (lex_one_token): Handle FLAG_C.
7681
7682 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7683
7684 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7685 it to the ptrace call.
7686 * m68k-bsd-nat.c (store_registers): Likewise.
7687
7688 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7689
7690 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7691 gdb_byte *.
7692 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7693 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7694 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7695
7696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7697
7698 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7699 nbsd_nat_target instead of inf_ptrace_target.
7700 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7701 nbsd_nat_target.
7702
7703 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7704
7705 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7706 register_t.
7707
7708 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7709
7710 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7711 it to the ptrace call.
7712 * alpha-bsd-nat.c (store_registers): Likewise.
7713
7714 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7715
7716 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7717 includes.
7718 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7719 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7720 fill_fpregset): Likewise.
7721
7722 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7723
7724 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7725 nbsd_nat_target instead of inf_ptrace_target.
7726 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7727 nbsd_nat_target.
7728
7729 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7730
7731 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7732 register_t.
7733
7734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7735
7736 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7737 it to the ptrace call.
7738 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7739 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7740 * arm-nbsd-nat.c (store_register): Likewise.
7741 * arm-nbsd-nat.c (store_regs): Likewise.
7742 * arm-nbsd-nat.c (store_fp_register): Likewise.
7743 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7744
7745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7746
7747 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7748 nbsd_nat_target instead of inf_ptrace_target.
7749 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7750 nbsd_nat_target.
7751
7752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7753
7754 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7755 it to the ptrace call.
7756 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7757
7758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7759
7760 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7761 it to the ptrace call.
7762 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7763
7764 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7765
7766 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7767 gdb_byte *.
7768 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7769
7770 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7771
7772 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7773 instead of inf_ptrace_target.
7774 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7775 nbsd_nat_target.
7776
7777 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7778
7779 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7780 register_t.
7781
7782 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7783
7784 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7785 register_t.
7786
7787 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7788
7789 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7790 register_t.
7791
7792 2020-03-13 Tom Tromey <tom@tromey.com>
7793
7794 * value.h (val_print): Don't declare.
7795 * valprint.h (val_print_array_elements)
7796 (val_print_scalar_formatted, generic_val_print): Don't declare.
7797 * valprint.c (generic_val_print_array): Take a struct value.
7798 (generic_val_print_ptr, generic_val_print_memberptr)
7799 (generic_val_print_bool, generic_val_print_int)
7800 (generic_val_print_char, generic_val_print_complex)
7801 (generic_val_print): Remove.
7802 (generic_value_print): Update.
7803 (do_val_print): Remove unused parameters. Don't call
7804 la_val_print.
7805 (val_print): Remove.
7806 (common_val_print): Update. Don't call value_check_printable.
7807 (val_print_scalar_formatted, val_print_array_elements): Remove.
7808 * rust-lang.c (rust_val_print): Remove.
7809 (rust_language_defn): Update.
7810 * p-valprint.c (pascal_val_print): Remove.
7811 (pascal_value_print_inner): Update.
7812 (pascal_object_print_val_fields, pascal_object_print_val):
7813 Remove.
7814 (pascal_object_print_static_field): Update.
7815 * p-lang.h (pascal_val_print): Don't declare.
7816 * p-lang.c (pascal_language_defn): Update.
7817 * opencl-lang.c (opencl_language_defn): Update.
7818 * objc-lang.c (objc_language_defn): Update.
7819 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7820 * m2-lang.h (m2_val_print): Don't declare.
7821 * m2-lang.c (m2_language_defn): Update.
7822 * language.h (struct language_defn) <la_val_print>: Remove.
7823 * language.c (unk_lang_value_print_inner): Rename. Change
7824 argument types.
7825 (unknown_language_defn, auto_language_defn): Update.
7826 * go-valprint.c (go_val_print): Remove.
7827 * go-lang.h (go_val_print): Don't declare.
7828 * go-lang.c (go_language_defn): Update.
7829 * f-valprint.c (f_val_print): Remove.
7830 * f-lang.h (f_value_print): Don't declare.
7831 * f-lang.c (f_language_defn): Update.
7832 * d-valprint.c (d_val_print): Remove.
7833 * d-lang.h (d_value_print): Don't declare.
7834 * d-lang.c (d_language_defn): Update.
7835 * cp-valprint.c (cp_print_value_fields)
7836 (cp_print_value_fields_rtti, cp_print_value): Remove.
7837 (cp_print_static_field): Update.
7838 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7839 (c_val_print_struct, c_val_print_union, c_val_print_int)
7840 (c_val_print_memberptr, c_val_print): Remove.
7841 * c-lang.h (c_val_print_array, cp_print_value_fields)
7842 (cp_print_value_fields_rtti): Don't declare.
7843 * c-lang.c (c_language_defn, cplus_language_defn)
7844 (asm_language_defn, minimal_language_defn): Update.
7845 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7846 (ada_val_print_enum): Take a struct value.
7847 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7848 (ada_val_print): Remove.
7849 (ada_value_print_1): Update.
7850 (printable_val_type): Remove.
7851 * ada-lang.h (ada_val_print): Don't declare.
7852 * ada-lang.c (ada_language_defn): Update.
7853
7854 2020-03-13 Tom Tromey <tom@tromey.com>
7855
7856 * valprint.c (do_val_print): Update.
7857 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7858 a struct value.
7859 (value_to_value_object_no_release): Declare.
7860 * python/py-value.c (value_to_value_object_no_release): New
7861 function.
7862 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7863 struct value.
7864 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7865 function.
7866 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7867 a struct value.
7868 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7869 Declare.
7870 (gdbscm_apply_val_pretty_printer): Take a struct value.
7871 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7872 value.
7873 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7874 value.
7875 * extension-priv.h (struct extension_language_ops)
7876 <apply_val_pretty_printer>: Take a struct value.
7877 * cp-valprint.c (cp_print_value): Create a struct value.
7878 (cp_print_value): Update.
7879
7880 2020-03-13 Tom Tromey <tom@tromey.com>
7881
7882 * ada-valprint.c (print_field_values): Call common_val_print.
7883
7884 2020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * ada-valprint.c (val_print_packed_array_elements): Remove
7887 bitoffset and val parameters. Call common_val_print.
7888 (ada_val_print_string): Remove offset, address, and original_value
7889 parameters.
7890 (ada_val_print_array): Update.
7891 (ada_value_print_array): New function.
7892 (ada_value_print_1): Call it.
7893
7894 2020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * ada-valprint.c (ada_value_print): Use common_val_print.
7897
7898 2020-03-13 Tom Tromey <tom@tromey.com>
7899
7900 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7901
7902 2020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * ada-valprint.c (ada_value_print_num): New function.
7905 (ada_value_print_1): Use it.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * ada-valprint.c (ada_value_print_ptr): New function.
7914 (ada_value_print_1): Use it.
7915
7916 2020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7919 call common_val_print.
7920 (ada_val_print_1): Update.
7921 (ada_value_print_1): New function.
7922 (ada_value_print_inner): Rewrite.
7923
7924 2020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * cp-valprint.c (cp_print_value_fields): Update.
7927 (cp_print_value): New function.
7928
7929 2020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * m2-valprint.c (m2_value_print_inner): Use
7932 cp_print_value_fields.
7933 * cp-valprint.c (cp_print_value_fields): New function.
7934 * c-valprint.c (c_value_print_struct): New function.
7935 (c_value_print_inner): Use c_value_print_struct.
7936 * c-lang.h (cp_print_value_fields): Declare.
7937
7938 2020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * c-valprint.c (c_value_print_array): New function.
7941 (c_value_print_inner): Use it.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * c-valprint.c (c_value_print_memberptr): New function.
7946 (c_value_print_inner): Use it.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * c-valprint.c (c_value_print_int): New function.
7951 (c_value_print_inner): Use it.
7952
7953 2020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * c-valprint.c (c_value_print_ptr): New function.
7956 (c_value_print_inner): Use it.
7957
7958 2020-03-13 Tom Tromey <tom@tromey.com>
7959
7960 * c-valprint.c (c_value_print_inner): Rewrite.
7961
7962 2020-03-13 Tom Tromey <tom@tromey.com>
7963
7964 * valprint.c (generic_value_print_complex): New function.
7965 (generic_value_print): Use it.
7966
7967 2020-03-13 Tom Tromey <tom@tromey.com>
7968
7969 * valprint.c (generic_val_print_float): Don't call
7970 val_print_scalar_formatted.
7971 (generic_val_print, generic_value_print): Update.
7972
7973 2020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * valprint.c (generic_value_print_char): New function
7976 (generic_value_print): Use it.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * valprint.c (generic_value_print_int): New function.
7981 (generic_value_print): Use it.
7982
7983 2020-03-13 Tom Tromey <tom@tromey.com>
7984
7985 * valprint.c (generic_value_print_bool): New function.
7986 (generic_value_print): Use it.
7987
7988 2020-03-13 Tom Tromey <tom@tromey.com>
7989
7990 * valprint.c (generic_val_print_func): Simplify.
7991 (generic_val_print, generic_value_print): Update.
7992
7993 2020-03-13 Tom Tromey <tom@tromey.com>
7994
7995 * valprint.c (generic_val_print_flags): Remove.
7996 (generic_val_print, generic_value_print): Update.
7997 (val_print_type_code_flags): Add original_value parameter.
7998
7999 2020-03-13 Tom Tromey <tom@tromey.com>
8000
8001 * valprint.c (generic_val_print): Update.
8002 (generic_value_print): Update.
8003 * valprint.c (generic_val_print_enum): Don't call
8004 val_print_scalar_formatted.
8005
8006 2020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8009 * valprint.c (generic_value_print_ptr): New function.
8010
8011 2020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * valprint.c (generic_value_print): Rewrite.
8014
8015 2020-03-13 Tom Tromey <tom@tromey.com>
8016
8017 * p-valprint.c (pascal_object_print_value_fields)
8018 (pascal_object_print_value): New functions.
8019
8020 2020-03-13 Tom Tromey <tom@tromey.com>
8021
8022 * p-valprint.c (pascal_value_print_inner): Rewrite.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * f-valprint.c (f_value_print_innner): Rewrite.
8027
8028 2020-03-13 Tom Tromey <tom@tromey.com>
8029
8030 * m2-valprint.c (m2_print_unbounded_array): New overload.
8031 (m2_print_unbounded_array): Update.
8032 (m2_print_array_contents): Take a struct value.
8033 (m2_value_print_inner): Rewrite.
8034
8035 2020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8038 (d_value_print_inner): New function.
8039 * d-lang.h (d_value_print_inner): Declare.
8040 * d-lang.c (d_language_defn): Use d_value_print_inner.
8041
8042 2020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * go-valprint.c (go_value_print_inner): New function.
8045 * go-lang.h (go_value_print_inner): Declare.
8046 * go-lang.c (go_language_defn): Use go_value_print_inner.
8047
8048 2020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8051 API.
8052 (rust_val_print): Rewrite.
8053 (rust_value_print_inner): New function, from rust_val_print.
8054 (rust_language_defn): Use rust_value_print_inner.
8055
8056 2020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * ada-valprint.c (ada_value_print_inner): New function.
8059 * ada-lang.h (ada_value_print_inner): Declare.
8060 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8061
8062 2020-03-13 Tom Tromey <tom@tromey.com>
8063
8064 * f-valprint.c (f_value_print_innner): New function.
8065 * f-lang.h (f_value_print_innner): Declare.
8066 * f-lang.c (f_language_defn): Use f_value_print_innner.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * p-valprint.c (pascal_value_print_inner): New function.
8071 * p-lang.h (pascal_value_print_inner): Declare.
8072 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8073
8074 2020-03-13 Tom Tromey <tom@tromey.com>
8075
8076 * m2-valprint.c (m2_value_print_inner): New function.
8077 * m2-lang.h (m2_value_print_inner): Declare.
8078 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8079
8080 2020-03-13 Tom Tromey <tom@tromey.com>
8081
8082 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8083 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8084 * c-valprint.c (c_value_print_inner): New function.
8085 * c-lang.h (c_value_print_inner): Declare.
8086 * c-lang.c (c_language_defn, cplus_language_defn)
8087 (asm_language_defn, minimal_language_defn): Use
8088 c_value_print_inner.
8089
8090 2020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * p-valprint.c (pascal_object_print_value_fields): Now static.
8093 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8094
8095 2020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * c-valprint.c (c_val_print_array): Simplify.
8098
8099 2020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * valprint.c (value_print_array_elements): New function.
8102 * valprint.h (value_print_array_elements): Declare.
8103
8104 2020-03-13 Tom Tromey <tom@tromey.com>
8105
8106 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8107 * mips-tdep.c (mips_print_register): Use
8108 value_print_scalar_formatted.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * valprint.h (value_print_scalar_formatted): Declare.
8113 * valprint.c (value_print_scalar_formatted): New function.
8114
8115 2020-03-13 Tom Tromey <tom@tromey.com>
8116
8117 * valprint.h (generic_value_print): Declare.
8118 * valprint.c (generic_value_print): New function.
8119
8120 2020-03-13 Tom Tromey <tom@tromey.com>
8121
8122 * valprint.c (do_val_print): Call la_value_print_inner, if
8123 available.
8124 * rust-lang.c (rust_language_defn): Update.
8125 * p-lang.c (pascal_language_defn): Update.
8126 * opencl-lang.c (opencl_language_defn): Update.
8127 * objc-lang.c (objc_language_defn): Update.
8128 * m2-lang.c (m2_language_defn): Update.
8129 * language.h (struct language_defn) <la_value_print_inner>: New
8130 member.
8131 * language.c (unknown_language_defn, auto_language_defn): Update.
8132 * go-lang.c (go_language_defn): Update.
8133 * f-lang.c (f_language_defn): Update.
8134 * d-lang.c (d_language_defn): Update.
8135 * c-lang.c (c_language_defn, cplus_language_defn)
8136 (asm_language_defn, minimal_language_defn): Update.
8137 * ada-lang.c (ada_language_defn): Update.
8138
8139 2020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * c-valprint.c (c_value_print): Use common_val_print.
8142
8143 2020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8146
8147 2020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * f-valprint.c (f77_print_array_1, f_val_print): Use
8150 common_val_print.
8151
8152 2020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * riscv-tdep.c (riscv_print_one_register_info): Use
8155 common_val_print.
8156
8157 2020-03-13 Tom Tromey <tom@tromey.com>
8158
8159 * mi/mi-main.c (output_register): Use common_val_print.
8160
8161 2020-03-13 Tom Tromey <tom@tromey.com>
8162
8163 * infcmd.c (default_print_one_register_info): Use
8164 common_val_print.
8165
8166 2020-03-13 Tom Tromey <tom@tromey.com>
8167
8168 * valprint.h (common_val_print_checked): Declare.
8169 * valprint.c (common_val_print_checked): New function.
8170 * stack.c (print_frame_arg): Use common_val_print_checked.
8171
8172 2020-03-13 Tom Tromey <tom@tromey.com>
8173
8174 * valprint.c (do_val_print): New function, from val_print.
8175 (val_print): Use do_val_print.
8176 (common_val_print): Use do_val_print.
8177
8178 2020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * valprint.c (value_print): Use scoped_value_mark.
8181
8182 2020-03-13 Tom de Vries <tdevries@suse.de>
8183
8184 PR symtab/25646
8185 * psymtab.c (partial_symtab::partial_symtab): Don't set
8186 globals_offset and statics_offset. Push element onto
8187 current_global_psymbols and current_static_psymbols stacks.
8188 (concat): New function.
8189 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8190 element from current_global_psymbols and current_static_psymbols
8191 stacks. Concat popped elements to global_psymbols and
8192 static_symbols.
8193 (add_psymbol_to_list): Use current_global_psymbols and
8194 current_static_psymbols stacks.
8195 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8196 current_static_psymbols fields.
8197
8198 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8199
8200 * corelow.c (sniff_core_bfd): Remove.
8201 (class core_target) <m_core_vec>: Remove.
8202 (core_target::core_target): Update.
8203 (core_file_fns): Remove.
8204 (deprecated_add_core_fns): Remove.
8205 (default_core_sniffer): Remove.
8206 (sniff_core_bfd): Remove.
8207 (default_check_format): Remove.
8208 (gdb_check_format): Remove.
8209 (core_target_open): Update.
8210 (core_target::get_core_register_section): Update.
8211 (get_core_registers_cb): Update.
8212 (core_target::fetch_registers): Update.
8213 * gdbcore.h (struct core_fns): Remove.
8214 (deprecated_add_core_fns): Remove.
8215 (default_core_sniffer): Remove.
8216 (default_check_format): Remove.
8217
8218 2020-03-12 Tom Tromey <tom@tromey.com>
8219
8220 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8221 CORE_ADDR.
8222 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8223
8224 2020-03-12 Tom Tromey <tom@tromey.com>
8225
8226 * remote.c (remote_target::download_tracepoint)
8227 (remote_target::enable_tracepoint)
8228 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8229 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8230 sprintf_vma.
8231
8232 2020-03-12 Tom Tromey <tom@tromey.com>
8233
8234 * symfile-mem.c: Update CORE_ADDR size assert.
8235
8236 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8237
8238 * selftest.m4: Move to gdbsupport/.
8239 * acinclude.m4: Update path to selftest.m4.
8240
8241 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8244 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8245 gdbarch-selfselftests.c and selftest-arch.c.
8246 (SUBDIR_UNITTESTS_OBS): Rename to...
8247 (SELFTESTS_OBS): ... this.
8248 (COMMON_SFILES): Remove disasm-selftests.c and
8249 gdbarch-selftests.c.
8250 * configure.ac: Don't add selftest-arch.{c,o} to
8251 CONFIG_{SRCS,OBS}.
8252 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8253 preprocessor conditions.
8254
8255 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * configure.ac: Don't source bfd/development.sh.
8258 * selftest.m4: Modify comment.
8259 * configure: Re-generate.
8260
8261 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8264 not "true" or "false".
8265 * configure: Re-generate.
8266
8267 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8268
8269 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8270 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8271 renamed to arm_nbsd_supply_gregset.
8272 (fetch_register): Update to call arm_nbsd_supply_gregset.
8273 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8274 (arm_netbsd_nat_target::fetch_registers): Update.
8275 (fetch_elfcore_registers): Removed.
8276 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8277 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8278 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8279 not require NetBSD system headers.
8280 (arm_nbsd_regset): New struct.
8281 (arm_nbsd_iterate_over_regset_sections): New function.
8282 (arm_netbsd_init_abi_common): Updated to call
8283 set_gdbarch_iterate_over_regset_sections.
8284 * arm-nbsd-tdep.h: New file.
8285
8286 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8287
8288 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8289 recursion.
8290
8291 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * configure: Re-generate.
8294
8295 2020-03-11 Tom Tromey <tromey@adacore.com>
8296
8297 * ada-typeprint.c (print_choices): Fix comment.
8298
8299 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8300
8301 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8302 previous item in the list, when the list has no items.
8303
8304 2020-03-11 Tom de Vries <tdevries@suse.de>
8305
8306 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8307 PROP_LOCLIST handling code.
8308
8309 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8310
8311 * buildsym-legacy.c (record_line): Pass extra parameter to
8312 record_line.
8313 * buildsym.c (buildsym_compunit::record_line): Take an extra
8314 parameter, reduce duplication in the line table, and record the
8315 is_stmt flag in the line table.
8316 * buildsym.h (buildsym_compunit::record_line): Add extra
8317 parameter.
8318 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8319 non-statement lines.
8320 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8321 this to the symtab builder.
8322 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8323 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8324 through to dwarf_record_line_1.
8325 * infrun.c (process_event_stop_test): When stepping, don't stop at
8326 a non-statement instruction, and only refresh the step info when
8327 we land in the middle of a line's range. Also add an extra
8328 comment.
8329 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8330 field.
8331 * record-btrace.c (btrace_find_line_range): Only record lines
8332 marked as is-statement.
8333 * stack.c (frame_show_address): Show the frame address if we are
8334 in a non-statement sal.
8335 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8336 (maintenance_print_one_line_table): Print a header for the is_stmt
8337 column, and include is_stmt information in the output.
8338 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8339 preference to non-statements.
8340 (find_pcs_for_symtab_line): Prefer is-statement entries.
8341 (find_line_common): Likewise.
8342 * symtab.h (struct linetable_entry): Add is_stmt field.
8343 (struct symtab_and_line): Likewise.
8344 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8345 arranging the line table.
8346
8347 2020-03-07 Tom de Vries <tdevries@suse.de>
8348
8349 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8350 DIE.
8351
8352 2020-03-07 Tom Tromey <tom@tromey.com>
8353
8354 * valops.c (value_literal_complex): Remove obsolete comment.
8355 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8356 comment.
8357
8358 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8359
8360 * infrun.h: Forward-declare thread_info.
8361 (set_step_info): Add thread_info parameter, add doc.
8362 * infrun.c (set_step_info): Add thread_info parameter, move doc
8363 to header.
8364 * infrun.c (process_event_stop_test): Pass thread to
8365 set_step_info call.
8366 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8367 set_step_info.
8368 (prepare_one_step): Add thread_info parameter, pass it to
8369 set_step_frame and prepare_one_step (recursive) call.
8370 (step_1): Pass thread to prepare_one_step call.
8371 (step_command_fsm::should_stop): Pass thread to
8372 prepare_one_step.
8373 (until_next_fsm): Pass thread to set_step_frame call.
8374 (finish_command): Pass thread to set_step_info call.
8375
8376 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8377
8378 * windows-tdep.c (windows_solib_create_inferior_hook):
8379 Check if inferior is running.
8380
8381 2020-03-06 Tom de Vries <tdevries@suse.de>
8382
8383 * NEWS: Fix "the the".
8384 * ctfread.c: Same.
8385
8386 2020-03-06 Tom de Vries <tdevries@suse.de>
8387
8388 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8389
8390 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * .dir-locals.el: Add a comment referencing the other copies of
8393 this file.
8394
8395 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8396
8397 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8398 psargs.
8399
8400 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8401
8402 * .gitattributes: New file.
8403
8404 2020-03-04 Tom Tromey <tom@tromey.com>
8405
8406 * symmisc.c (print_symbol_bcache_statistics)
8407 (print_objfile_statistics): Update.
8408 * symfile.c (allocate_symtab): Use intern.
8409 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8410 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8411 macro_cache>: Remove.
8412 <string_cache>: New member.
8413 (struct objfile) <intern>: New methods.
8414 * elfread.c (elf_symtab_read): Use intern.
8415 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8416 (dwarf2_compute_name, dwarf2_physname)
8417 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8418 names.
8419 (guess_partial_die_structure_name): Update.
8420 (partial_die_info::fixup): Intern name.
8421 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8422 name.
8423 (dwarf2_name): Intern name. Update.
8424 * buildsym.c (buildsym_compunit::get_macro_table): Use
8425 string_cache.
8426
8427 2020-03-04 Tom Tromey <tom@tromey.com>
8428
8429 * jit.c (bfd_open_from_target_memory): Make "target" const.
8430 * corefile.c (gnutarget): Now const.
8431 * gdbcore.h (gnutarget): Now const.
8432
8433 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8434
8435 * NEWS: Mention support for WOW64 processes.
8436 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8437 (amd64_windows_segment_register_p): Remove static.
8438 (_initialize_amd64_windows_nat): Update.
8439 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8440 * i386-windows-nat.c (context_offset): Update.
8441 (i386_mappings): Rename and remove static.
8442 (i386_windows_segment_register_p): Remove static.
8443 (_initialize_i386_windows_nat): Update.
8444 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8445 (STATUS_WX86_SINGLE_STEP): New macro.
8446 (EnumProcessModulesEx): New macro.
8447 (Wow64SuspendThread): New macro.
8448 (Wow64GetThreadContext): New macro.
8449 (Wow64SetThreadContext): New macro.
8450 (Wow64GetThreadSelectorEntry): New macro.
8451 (windows_set_context_register_offsets): Add static.
8452 (windows_set_segment_register_p): Likewise.
8453 (windows_add_thread): Adapt for WOW64 processes.
8454 (windows_fetch_one_register): Likewise.
8455 (windows_nat_target::fetch_registers): Likewise.
8456 (windows_store_one_register): Likewise.
8457 (display_selector): Likewise.
8458 (display_selectors): Likewise.
8459 (handle_exception): Likewise.
8460 (windows_continue): Likewise.
8461 (windows_nat_target::resume): Likewise.
8462 (windows_add_all_dlls): Likewise.
8463 (do_initial_windows_stuff): Likewise.
8464 (windows_nat_target::attach): Likewise.
8465 (windows_get_exec_module_filename): Likewise.
8466 (windows_nat_target::create_inferior): Likewise.
8467 (windows_xfer_siginfo): Likewise.
8468 (_initialize_loadable): Initialize Wow64SuspendThread,
8469 Wow64GetThreadContext, Wow64SetThreadContext,
8470 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8471 * windows-nat.h (windows_set_context_register_offsets):
8472 Remove declaration.
8473 (windows_set_segment_register_p): Likewise.
8474 (i386_windows_segment_register_p): Add declaration.
8475 (amd64_windows_segment_register_p): Likewise.
8476
8477 2020-03-04 Luis Machado <luis.machado@linaro.org>
8478
8479 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8480 in "info registers" for AArch64/ARM.
8481
8482 The change caused "info registers" to not print GPR's.
8483
8484 gdb/ChangeLog:
8485
8486 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8487
8488 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8489 when reg->group is empty and reggroup is not.
8490
8491 2020-03-03 Tom Tromey <tromey@adacore.com>
8492
8493 * dwarf2/frame.c (struct dwarf2_frame_cache)
8494 <checked_tailcall_bottom, entry_cfa_sp_offset,
8495 entry_cfa_sp_offset_p>: Remove members.
8496 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8497 (dwarf2_frame_prev_register): Don't call
8498 dwarf2_tailcall_sniffer_first.
8499 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8500 * frame-unwind.c (add_unwinder): New fuction.
8501 (frame_unwind_init): Use it. Add tailcall unwinder.
8502
8503 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8504 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8505
8506 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8507 value should be printed as true.
8508
8509 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8510
8511 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8512 (windows_init_abi): Set and use windows_so_ops.
8513
8514 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8515
8516 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8517 when verifying if dealing with a convenience variable.
8518
8519 2020-03-03 Luis Machado <luis.machado@linaro.org>
8520
8521 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8522
8523 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8524
8525 * infrun.c (gdbarch_supports_displaced_stepping): New.
8526 (use_displaced_stepping): Break up conditions in smaller pieces.
8527 Use gdbarch_supports_displaced_stepping.
8528 (displaced_step_prepare_throw): Use
8529 gdbarch_supports_displaced_stepping.
8530
8531 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8532
8533 * NEWS: Mention new behaviour of the history filename.
8534 * top.c (write_history_p): Add comment.
8535 (show_write_history_p): Add header comment, give a different
8536 message when history writing is on, but the history filename is
8537 empty.
8538 (history_filename): Add comment.
8539 (history_filename_empty): New function.
8540 (show_history_filename): Add header comment, give a different
8541 message when the filename is empty.
8542 (init_history): Compare history_filename against nullptr, and only
8543 read history if the filename is not empty.
8544 (set_history_filename): Add header comment, and only make
8545 non-empty filenames absolute.
8546 (init_main): Make the filename argument to 'set history filename'
8547 optional.
8548
8549 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8550
8551 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8552 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8553 (fetch_fp_register): Update.
8554 (fetch_fp_regs): Update.
8555 (store_fp_register): Update.
8556 (store_fp_regs): Update.
8557 (arm_netbsd_nat_target::read_description): New function.
8558 (fetch_elfcore_registers): Update.
8559
8560 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8563 general_thread if the stop reply is missing a thread-id.
8564 (remote_target::process_stop_reply): Use the first non-exited
8565 thread if the target didn't pass a thread-id.
8566 * infrun.c (do_target_wait): Move call to
8567 switch_to_inferior_no_thread to ....
8568 (do_target_wait_1): ... here.
8569
8570 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8571
8572 * debuginfod-support.c: Include defs.h first.
8573
8574 2020-02-28 Tom de Vries <tdevries@suse.de>
8575
8576 * symfile.c (set_initial_language): Use default language for lookup.
8577
8578 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8581 reader variable, pass `this` to read_cutu_die_from_dwo.
8582
8583 2020-02-27 Aaron Merey <amerey@redhat.com>
8584
8585 * source.c (open_source_file): Check for nullptr when computing
8586 srcpath.
8587
8588 2020-02-27 Tom Tromey <tromey@adacore.com>
8589
8590 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8591 member.
8592 (dwarf2_add_field): Don't update nfields.
8593 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8594
8595 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8598 abs.
8599
8600 2020-02-26 Tom Tromey <tom@tromey.com>
8601
8602 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8603 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8604 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8605 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8606 per_cu_data.
8607
8608 2020-02-26 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2/index-write.c (psym_index_map): Change type.
8611 (add_address_entry_worker, write_one_signatured_type)
8612 (recursively_count_psymbols, recursively_write_psymbols)
8613 (class debug_names, psyms_seen_size, write_gdbindex)
8614 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8615
8616 2020-02-26 Aaron Merey <amerey@redhat.com>
8617
8618 * Makefile.in: Handle optional debuginfod support.
8619 * NEWS: Update.
8620 * README: Add --with-debuginfod summary.
8621 * config.in: Regenerate.
8622 * configure: Regenerate.
8623 * configure.ac: Handle optional debuginfod support.
8624 * debuginfod-support.c: debuginfod helper functions.
8625 * debuginfod-support.h: Ditto.
8626 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8627 summary.
8628 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8629 when a dwz file cannot be found.
8630 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8631 debuginfo file cannot be found.
8632 * source.c (open_source_file): Query debuginfod servers when a
8633 source file cannot be found.
8634 * top.c (print_gdb_configuration): Include
8635 --{with,without}-debuginfod in the output.
8636
8637 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8638
8639 * thread.c (thr_try_catch_cmd): Print thread name.
8640
8641 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8644 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8645 dwarf2_fetch_die_type_sect_off): Move to...
8646 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8647 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8648 dwarf2_fetch_die_type_sect_off): ... here.
8649 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8650 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8651 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8652
8653 2020-02-26 Tom de Vries <tdevries@suse.de>
8654
8655 PR gdb/25603
8656 * symfile.c (set_initial_language): Exit-early if
8657 language_mode == language_mode_manual.
8658
8659 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8660
8661 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8662 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8663 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8664
8665 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8666
8667 * gdbtypes.c (create_array_type_with_stride): Handle negative
8668 array strides.
8669 * valarith.c (value_subscripted_rvalue): Likewise.
8670
8671 2020-02-25 Luis Machado <luis.machado@linaro.org>
8672
8673 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8674
8675 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8676
8677 * loc.h (dwarf2_get_die_type): Move to...
8678 * read.h (dwarf2_get_die_type): ... here.
8679 * read.c (dwarf2_get_die_type): Move doc to header.
8680
8681 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8682
8683 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8684 'gnulib/Makefile.in' to the list.
8685
8686 2020-02-24 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8689 Remove.
8690 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8691 XOBNEWVEC.
8692
8693 2020-02-24 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8696 New method.
8697 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8698 (dw2_do_instantiate_symtab, dw2_get_file_names)
8699 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8700
8701 2020-02-24 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8704 make_scoped_restore.
8705 (dwarf2_psymtab::read_symtab): Don't clear
8706 reading_partial_symbols.
8707
8708 2020-02-24 Tom de Vries <tdevries@suse.de>
8709
8710 PR gdb/25592
8711 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8712
8713 2020-02-24 Tom de Vries <tdevries@suse.de>
8714
8715 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8716 commands layout next/prev/regs.
8717
8718 2020-02-22 Tom Tromey <tom@tromey.com>
8719
8720 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8721 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8722
8723 2020-02-22 Tom Tromey <tom@tromey.com>
8724
8725 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8726
8727 2020-02-22 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8730 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8731 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8732 * tui/tui.c (_initialize_tui): Add usage text.
8733
8734 2020-02-22 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-win.c (tui_set_focus_command)
8737 (tui_set_win_height_command): Use error_no_arg.
8738 (_initialize_tui_win): Update help text.
8739 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8740
8741 2020-02-22 Tom Tromey <tom@tromey.com>
8742
8743 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8744 * tui/tui-disasm.h (struct tui_disasm_window)
8745 <display_start_addr>: Declare.
8746 * tui/tui-source.h (struct tui_source_window)
8747 <display_start_addr>: Declare.
8748 * tui/tui-winsource.h (struct tui_source_window_base)
8749 <show_source_line, display_start_addr>: New methods.
8750 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8751 Rename and move to protected section.
8752 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8753 (tui_source_window_base::do_erase_source_content): Update.
8754 (tui_source_window_base::show_source_line): Now a method.
8755 (tui_source_window_base::show_source_content)
8756 (tui_source_window_base::tui_source_window_base)
8757 (tui_source_window_base::rerender)
8758 (tui_source_window_base::refill)
8759 (tui_source_window_base::do_scroll_horizontal)
8760 (tui_source_window_base::set_is_exec_point_at)
8761 (tui_source_window_base::update_breakpoint_info)
8762 (tui_source_window_base::update_exec_info): Update.
8763 * tui/tui-source.c (tui_source_window::set_contents)
8764 (tui_source_window::showing_source_p)
8765 (tui_source_window::do_scroll_vertical)
8766 (tui_source_window::location_matches_p)
8767 (tui_source_window::line_is_displayed): Update.
8768 (tui_source_window::display_start_addr): New method.
8769 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8770 (tui_disasm_window::do_scroll_vertical)
8771 (tui_disasm_window::location_matches_p): Update.
8772 (tui_disasm_window::display_start_addr): New method.
8773
8774 2020-02-22 Tom Tromey <tom@tromey.com>
8775
8776 * NEWS: Add entry for gdb.register_window_type.
8777 * tui/tui-layout.h (window_factory): New typedef.
8778 (tui_register_window): Declare.
8779 * tui/tui-layout.c (saved_tui_windows): New global.
8780 (tui_apply_current_layout): Use it.
8781 (tui_register_window): New function.
8782 * python/python.c (do_start_initialization): Call
8783 gdbpy_initialize_tui.
8784 (python_GdbMethods): Add "register_window_type" function.
8785 * python/python-internal.h (gdbpy_register_tui_window)
8786 (gdbpy_initialize_tui): Declare.
8787 * python/py-tui.c: New file.
8788 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8789
8790 2020-02-22 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8793
8794 2020-02-22 Tom Tromey <tom@tromey.com>
8795
8796 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8797 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8798 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8799 (tui_set_win_focus_to): Move from tui-win.c.
8800
8801 2020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8804 functions.
8805 (known_window_types): New global.
8806 (tui_get_window_by_name): Reimplement.
8807 (initialize_known_windows): New function.
8808 (validate_window_name): Rewrite.
8809 (_initialize_tui_layout): Call initialize_known_windows.
8810
8811 2020-02-22 Tom Tromey <tom@tromey.com>
8812
8813 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8814 Remove constants.
8815 * tui/tui-winsource.h (struct tui_source_window_base)
8816 <tui_source_window_base>: Remove parameter.
8817 * tui/tui-winsource.c
8818 (tui_source_window_base::tui_source_window_base): Remove
8819 parameter.
8820 (tui_source_window_base::refill): Update.
8821 * tui/tui-stack.h (struct tui_locator_window)
8822 <tui_locator_window>: Update.
8823 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8824 Default the constructor.
8825 * tui/tui-regs.h (struct tui_data_item_window)
8826 <tui_data_item_window>: Default the constructor.
8827 (struct tui_data_window) <tui_data_window>: Likewise.
8828 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8829 Default the constructor.
8830 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8831 Default the constructor.
8832 <type>: Remove.
8833 (struct tui_win_info) <tui_win_info>: Default the constructor.
8834 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8835 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8836 Default the constructor.
8837
8838 2020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8841 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8842 * tui/tui-win.c (tui_resize_all): Don't call
8843 tui_delete_invisible_windows.
8844 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8845 done.
8846 (tui_set_layout): Update.
8847 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8848 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8849 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8850
8851 2020-02-22 Tom Tromey <tom@tromey.com>
8852
8853 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8854 correctly.
8855
8856 2020-02-22 Tom Tromey <tom@tromey.com>
8857
8858 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8859
8860 2020-02-22 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-winsource.h (struct tui_source_window_iterator)
8863 <inner_iterator>: New etytypedef.
8864 <tui_source_window_iterator>: Take "end" parameter.
8865 <tui_source_window_iterator>: Take iterator.
8866 <operator*, advance>: Update.
8867 <m_iter>: Change type.
8868 <m_end>: New field.
8869 (struct tui_source_windows) <begin, end>: Update.
8870 * tui/tui-layout.c (tui_windows): New global.
8871 (tui_apply_current_layout): Clear tui_windows.
8872 (tui_layout_window::apply): Update tui_windows.
8873 * tui/tui-data.h (tui_windows): Declare.
8874 (all_tui_windows): Now inline function.
8875 (class tui_window_iterator, struct all_tui_windows): Remove.
8876
8877 2020-02-22 Tom Tromey <tom@tromey.com>
8878
8879 PR tui/17850:
8880 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8881 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8882 "height" argument.
8883 (class tui_layout_window) <get_sizes>: Likewise.
8884 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8885 argument.
8886 <get_sizes>: Add "height" argument.
8887 <m_vertical>: New field.
8888 * tui/tui-layout.c (tui_layout_split::clone): Update.
8889 (tui_layout_split::get_sizes): Add "height" argument.
8890 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8891 (tui_new_layout_command): Parse "-horizontal".
8892 (_initialize_tui_layout): Update help string.
8893 (tui_layout_split::specification): Add "-horizontal" when needed.
8894 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8895 argument.
8896 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8897 New methods.
8898
8899 2020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * tui/tui-layout.h (enum tui_adjust_result): New.
8902 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8903 (class tui_layout_window) <adjust_size>: Return
8904 tui_adjust_result. Rewrite.
8905 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8906 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8907
8908 2020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8911 parameter and return types.
8912 (class tui_layout_base) <specification>: Add "depth".
8913 (class tui_layout_window) <specification>: Add "depth".
8914 (class tui_layout_split) <specification>: Add "depth".
8915 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8916 and return types.
8917 (tui_new_layout_command): Parse sub-layouts.
8918 (_initialize_tui_layout): Update help string.
8919 (tui_layout_window::specification): Add "depth".
8920 (add_layout_command): Update.
8921
8922 2020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * NEWS: Add "tui new-layout" item.
8925 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8926 Add new-layout command to help text.
8927 (validate_window_name): New function.
8928 (tui_new_layout_command): New function.
8929 (_initialize_tui_layout): Register "new-layout".
8930 (tui_layout_window::specification): New method.
8931 (tui_layout_window::specification): New method.
8932 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8933 method.
8934 (class tui_layout_window) <specification>: New method.
8935 (class tui_layout_split) <specification>: New method.
8936
8937 2020-02-22 Tom Tromey <tom@tromey.com>
8938
8939 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8940 * tui/tui-win.c (window_name_completer): Update comment.
8941 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8942 Declare method.
8943 (class tui_layout_window) <replace_window>: Likewise.
8944 (class tui_layout_split) <replace_window>: Likewise.
8945 (tui_set_layout): Don't declare.
8946 (tui_set_initial_layout): Declare function.
8947 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8948 (asm_regs_layout): New globals.
8949 (tui_current_layout, show_layout): Remove.
8950 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8951 (find_layout, tui_apply_layout): New function.
8952 (layout_completer): Remove.
8953 (tui_next_layout): Reimplement.
8954 (tui_next_layout_command): New function.
8955 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8956 (tui_regs_layout): Reimplement.
8957 (tui_regs_layout_command): New function.
8958 (extract_display_start_addr): Rewrite.
8959 (next_layout, prev_layout): Remove.
8960 (tui_layout_window::replace_window): New method.
8961 (tui_layout_split::replace_window): New method.
8962 (destroy_layout): New function.
8963 (layout_list): New global.
8964 (add_layout_command): New function.
8965 (initialize_layouts): Update.
8966 (tui_layout_command): New function.
8967 (_initialize_tui_layout): Install "layout" commands.
8968 * tui/tui-data.h (enum tui_layout_type): Remove.
8969 (tui_current_layout): Don't declare.
8970
8971 2020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-regs.c (tui_reg_layout): Remove.
8974 (tui_reg_command): Use tui_regs_layout.
8975 * tui/tui-layout.h (tui_reg_command): Declare.
8976 * tui/tui-layout.c (tui_reg_command): New function.
8977
8978 2020-02-22 Tom Tromey <tom@tromey.com>
8979
8980 * tui/tui.c (tui_rl_delete_other_windows): Call
8981 tui_remove_some_windows.
8982 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8983 Declare method.
8984 (class tui_layout_window) <remove_windows>: New method.
8985 (class tui_layout_split) <remove_windows>: Declare.
8986 (tui_remove_some_windows): Declare.
8987 * tui/tui-layout.c (tui_remove_some_windows): New function.
8988 (tui_layout_split::remove_windows): New method.
8989
8990 2020-02-22 Tom Tromey <tom@tromey.com>
8991
8992 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8993 * tui/tui-layout.h (tui_next_layout): Declare.
8994 * tui/tui-layout.c (tui_next_layout): New function.
8995
8996 2020-02-22 Tom Tromey <tom@tromey.com>
8997
8998 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8999 correct coordinates.
9000
9001 2020-02-22 Tom Tromey <tom@tromey.com>
9002
9003 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9004 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9005 DATA_WIN case.
9006
9007 2020-02-22 Tom Tromey <tom@tromey.com>
9008
9009 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9010 TUI_DISASM_WIN, not tui_win_list.
9011
9012 2020-02-22 Tom Tromey <tom@tromey.com>
9013
9014 * valprint.c (generic_val_print_enum_1)
9015 (val_print_type_code_flags): Style member names.
9016 * rust-lang.c (val_print_struct, rust_print_enum)
9017 (rust_print_struct_def, rust_internal_print_type): Style member
9018 names.
9019 * p-valprint.c (pascal_object_print_value_fields): Style member
9020 names. Only call fprintf_symbol_filtered for static members.
9021 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9022 * f-valprint.c (f_val_print): Style member names.
9023 * f-typeprint.c (f_type_print_base): Style member names.
9024 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9025 call fprintf_symbol_filtered for static members.
9026 (cp_print_class_member): Style member names.
9027 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9028 member names.
9029 * ada-valprint.c (ada_print_scalar): Style enum names.
9030 (ada_val_print_enum): Likewise.
9031 * ada-typeprint.c (print_enum_type): Style enum names.
9032
9033 2020-02-21 Tom Tromey <tom@tromey.com>
9034
9035 * psympriv.h (struct partial_symtab): Update comment.
9036
9037 2020-02-21 Tom Tromey <tromey@adacore.com>
9038
9039 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9040 type is CORE_ADDR.
9041
9042 2020-02-21 Tom de Vries <tdevries@suse.de>
9043
9044 PR gdb/25534
9045 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9046 if dependencies[i]->user != NULL.
9047
9048 2020-02-21 Ali Tamur <tamur@google.com>
9049
9050 * dwarf2/read.c (dwarf2_name): Add null check.
9051
9052 2020-02-20 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9055 ">=", in binary search.
9056 (dwarf2_find_containing_comp_unit): New overload.
9057 (run_test): New self-test.
9058 (_initialize_dwarf2_read): Register new test.
9059
9060 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9061
9062 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9063 * riscv-tdep.h: Likewise.
9064 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9065 rv32-only CSR.
9066 * features/riscv/64bit-csr.xml: Regenerated.
9067
9068 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9069 Tom Tromey <tom@tromey.com>
9070
9071 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9072 of 'fputc_unfiltered'.
9073 (putchar_unfiltered): Call 'fputc_unfiltered'.
9074 (fputc_unfiltered): Call 'fputs_unfiltered'.
9075
9076 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * config.in: Regenerate.
9079 * configure: Regenerate.
9080 * configure.ac: Add --with-python-libdir option.
9081 * main.c: Use WITH_PYTHON_LIBDIR.
9082
9083 2020-02-19 Tom Tromey <tom@tromey.com>
9084
9085 * symtab.c (general_symbol_info::compute_and_set_names): Use
9086 obstack_strndup. Simplify call to symbol_set_demangled_name.
9087
9088 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * dwarf2/read.c (allocate_signatured_type_table,
9091 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9092 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9093 Remove objfile parameter, update all callers.
9094
9095 2020-02-19 Doug Evans <dje@google.com>
9096
9097 PR rust/25535
9098 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9099 rust_enum_variant calculation.
9100
9101 2020-02-19 Tom Tromey <tromey@adacore.com>
9102
9103 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9104
9105 2020-02-19 Tom Tromey <tromey@adacore.com>
9106
9107 * ada-lang.c (cache_symbol): Use obstack_strdup.
9108
9109 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 * configure: Regenerate.
9112
9113 2020-02-19 Tom Tromey <tromey@adacore.com>
9114
9115 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9116 NULL check.
9117
9118 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9119
9120 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9121
9122 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9125 if GDBSERVER is not defined.
9126 (riscv_tdesc_cache): Likewise, also store const target_desc.
9127 (STATIC_IN_GDB): Define.
9128 (riscv_create_target_description): Update declaration with
9129 STATIC_IN_GDB.
9130 (riscv_lookup_target_description): New function, only define if
9131 GDBSERVER is not defined.
9132 * arch/riscv.h (riscv_create_target_description): Declare only
9133 when GDBSERVER is defined.
9134 (riscv_lookup_target_description): New declaration when GDBSERVER
9135 is not defined.
9136 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9137 (riscv_linux_read_features): ...this, and return
9138 riscv_gdbarch_features instead of target_desc.
9139 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9140 (riscv_linux_read_description): Rename to...
9141 (riscv_linux_read_features): ...this.
9142 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9143 Update to use riscv_gdbarch_features and
9144 riscv_lookup_target_description.
9145 * riscv-tdep.c (riscv_find_default_target_description): Use
9146 riscv_lookup_target_description instead of
9147 riscv_create_target_description.
9148
9149 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * valprint.c (generic_val_print_enum_1): When printing a flag
9152 enum with value 0 and there is no enumerator with value 0, print
9153 just "0" instead of "(unknown: 0x0)".
9154
9155 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * valprint.c (generic_val_print_enum_1): Print unknown part of
9158 flag enum in hex.
9159
9160 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9163 flag enums to contain duplicate enumerators.
9164 * valprint.c (generic_val_print_enum_1): Update comment.
9165
9166 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.c: Include "count-one-bits.h".
9169 (update_enumeration_type_from_children): If an enumerator has
9170 multiple bits set, don't treat the enumeration as a "flag enum".
9171 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9172 of flag enums have 0 or 1 bit set.
9173
9174 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9175
9176 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9177 conversion.
9178 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9179 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9180 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9181 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9182 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9183
9184 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9187
9188 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9191 displaced_step_closure_up.
9192 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9193 (struct displaced_step_closure_up):
9194 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9195 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9196 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9197 Likewise.
9198 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9199 * gdbarch.c, gdbarch.h: Re-generate.
9200 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9201 displaced_step_closure_up.
9202 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9203 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9204 * infrun.h (displaced_step_closure_up): New type alias.
9205 (struct displaced_step_inferior_state) <step_closure>: Change
9206 type to displaced_step_closure_up.
9207 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9208 displaced_step_closure_up.
9209 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9210
9211 2020-02-14 Tom Tromey <tom@tromey.com>
9212
9213 * minidebug.c (gnu_debug_key): New global.
9214 (find_separate_debug_file_in_section): Use it.
9215
9216 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9219 std::unique_ptr.
9220 * gdbarch.c: Re-generate.
9221 * gdbarch.h: Re-generate.
9222 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9223 change.
9224 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9225 type to std::unique_ptr.
9226 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9227 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9228 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9229 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9230 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9231 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9232 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9233 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9234 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9235
9236 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9239 std::unique_ptr.
9240 (displaced_step_clear): Rename to...
9241 (displaced_step_reset): ... this. Just call displaced->reset ().
9242 (displaced_step_clear_cleanup): Rename to...
9243 (displaced_step_reset_cleanup): ... this.
9244 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9245 (displaced_step_fixup): Likewise.
9246 (resume_1): Likewise.
9247 (handle_inferior_event): Restore child's memory before calling
9248 displaced_step_fixup on the parent.
9249 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9250 to std::unique_ptr.
9251 <step_closure>: Change type to std::unique_ptr.
9252
9253 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * arm-tdep.c: Include count-one-bits.h.
9256 (cleanup_block_store_pc): Use count_one_bits.
9257 (cleanup_block_load_pc): Use count_one_bits.
9258 (arm_copy_block_xfer): Use count_one_bits.
9259 (thumb2_copy_block_xfer): Use count_one_bits.
9260 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9261 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9262 (thumb_get_next_pcs_raw): Use count_one_bits.
9263 (arm_get_next_pcs_raw): Use count_one_bits_l.
9264 * arch/arm.c (bitcount): Remove.
9265 * arch/arm.h (bitcount): Remove.
9266
9267 2020-02-14 Tom Tromey <tromey@adacore.com>
9268
9269 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9270 Update.
9271 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9272 * dwarf2/loc.c (call_site_find_chain_1): Return
9273 unique_xmalloc_ptr.
9274 (call_site_find_chain): Likewise.
9275
9276 2020-02-14 Richard Biener <rguenther@suse.de>
9277
9278 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9279 on expression with division operators.
9280
9281 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9282
9283 * MAINTAINERS (Write After Approval): Adding myself.
9284
9285 2020-02-12 Tom Tromey <tom@tromey.com>
9286
9287 * event-loop.c (event_data, gdb_event, event_handler_func):
9288 Remove.
9289
9290 2020-02-12 Tom Tromey <tom@tromey.com>
9291
9292 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9293 (dwarf2_frame_objfile_data): Add comment.
9294 (find_comp_unit, set_comp_unit): New functions.
9295 (dwarf2_frame_find_fde): Use find_comp_unit.
9296 (dwarf2_build_frame_info): Use set_comp_unit.
9297
9298 2020-02-12 Tom Tromey <tom@tromey.com>
9299
9300 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9301 (comp_unit): Don't initialize objfile.
9302 (execute_cfa_program): Add text_offset parameter.
9303 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9304 (dwarf2_frame_cache): Update.
9305 (dwarf2_build_frame_info): Don't set "objfile" member.
9306
9307 2020-02-12 Tom Tromey <tom@tromey.com>
9308
9309 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9310 (decode_frame_entry): Likewise.
9311 (dwarf2_build_frame_info): Update.
9312
9313 2020-02-12 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9316 (decode_frame_entry_1): Use the comp_unit obstack.
9317
9318 2020-02-12 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2/frame.c (struct comp_unit): Add initializers and
9321 constructor.
9322 (dwarf2_frame_objfile_data): Store a comp_unit.
9323 (dwarf2_frame_find_fde): Update.
9324 (dwarf2_build_frame_info): Use "new".
9325
9326 2020-02-12 Tom Tromey <tom@tromey.com>
9327
9328 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9329 (dwarf2_fde_table): Typedef for std::vector.
9330 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9331 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9332 (decode_frame_entry): Update.
9333 (dwarf2_build_frame_info): Use "new".
9334
9335 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9336
9337 * arm-tdep.c (arm_gdbarch_init): Update.
9338 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9339 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9340 have_neon, is_m>: Change to bool.
9341
9342 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9343
9344 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9345
9346 2020-02-12 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9349
9350 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9351
9352 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9353 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9354
9355 2020-02-11 Tom Tromey <tom@tromey.com>
9356
9357 * psymtab.h: Update comment.
9358
9359 2020-02-11 Tom Tromey <tom@tromey.com>
9360
9361 * gdb_obstack.h (struct auto_obstack): Use
9362 DISABLE_COPY_AND_ASSIGN.
9363
9364 2020-02-11 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2/frame.h (struct objfile): Don't forward declare.
9367
9368 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9369
9370 * cris-tdep.c (cris_supply_gregset): Change signature to match
9371 what struct regset expects.
9372 (cris_regset): New struct.
9373 (fetch_core_registers): Remove.
9374 (cris_iterate_over_regset_sections): New function.
9375 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9376 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9377
9378 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9379
9380 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9381 registers.
9382
9383 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9384
9385 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9386
9387 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * configure: Re-generate.
9390
9391 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * configure: Re-generate.
9394
9395 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * acinclude: Update warning.m4 path.
9398 * warning.m4: Move to gdbsupport.
9399
9400 2020-02-11 Tom Tromey <tromey@adacore.com>
9401
9402 * remote.c (remote_console_output): Update.
9403 * printcmd.c (printf_command): Update.
9404 * event-loop.c (gdb_wait_for_event): Update.
9405 * linux-nat.c (sigchld_handler): Update.
9406 * remote-sim.c (gdb_os_write_stdout): Update.
9407 (gdb_os_flush_stdout): Update.
9408 (gdb_os_flush_stderr): Update.
9409 (gdb_os_write_stderr): Update.
9410 * exceptions.c (print_exception): Update.
9411 * remote-fileio.c (remote_fileio_func_read): Update.
9412 (remote_fileio_func_write): Update.
9413 * tui/tui.c (tui_enable): Update.
9414 * tui/tui-interp.c (tui_interp::init): Update.
9415 * utils.c (init_page_info): Update.
9416 (putchar_unfiltered, fputc_unfiltered): Update.
9417 (gdb_flush): Update.
9418 (emit_style_escape): Update.
9419 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9420 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9421 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9422 (stderr_file::write): Update.
9423 (stderr_file::puts): Update.
9424 * ui-file.h (ui_file_isatty, ui_file_write)
9425 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9426 (ui_file_puts): Don't declare.
9427
9428 2020-02-10 Tom de Vries <tdevries@suse.de>
9429
9430 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9431 sentinel to char *.
9432
9433 2020-02-09 Tom de Vries <tdevries@suse.de>
9434
9435 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9436 filename if it matches "<artificial>".
9437
9438 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9439
9440 * windows-tdep.c (struct enum_value_name): New struct.
9441 (create_enum): New function.
9442 (windows_get_siginfo_type): Create and use enum types.
9443
9444 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9445
9446 * NEWS: Mention $_siginfo support for Windows.
9447 * windows-nat.c (handle_exception): Set siginfo_er.
9448 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9449 (windows_xfer_siginfo): New function.
9450 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9451 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9452 (init_windows_gdbarch_data): New function.
9453 (get_windows_gdbarch_data): New function.
9454 (windows_get_siginfo_type): New function.
9455 (windows_init_abi): Register windows_get_siginfo_type.
9456 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9457
9458 2020-02-08 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9461 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9462 <keep>: Declare method.
9463 <m_keep>: Remove member.
9464 <~cutu_reader>: Remove.
9465 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9466 (cutu_reader::cutu_reader): Update.
9467 (cutu_reader::keep): Rename from ~cutu_reader.
9468 (process_psymtab_comp_unit, build_type_psymtabs_1)
9469 (process_skeletonless_type_unit, load_partial_comp_unit)
9470 (load_full_comp_unit, dwarf2_read_addr_index)
9471 (read_signatured_type): Update.
9472
9473 2020-02-08 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9476 "want_partial_unit" parameter.
9477 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9478 Inline check for DW_TAG_partial_unit.
9479 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9480
9481 2020-02-08 Tom Tromey <tom@tromey.com>
9482
9483 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9484 read.c.
9485 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9486 read.c.
9487
9488 2020-02-08 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.c (read_address): Move to comp-unit.c.
9491 (dwarf2_rnglists_process, dwarf2_ranges_process)
9492 (read_attribute_value, dwarf_decode_lines_1)
9493 (var_decode_location, decode_locdesc): Update.
9494 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9495 read.c. Remove "cu" parameter.
9496 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9497 method.
9498
9499 2020-02-08 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9502 (read_indirect_line_string): Update.
9503 * dwarf2/comp-unit.c (read_offset): Remove.
9504 (read_comp_unit_head): Update.
9505 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9506 method.
9507 (read_offset): Don't declare.
9508
9509 2020-02-08 Tom Tromey <tom@tromey.com>
9510
9511 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9512 * dwarf2/read.c (struct comp_unit_head): Move to
9513 dwarf2/comp-unit.h.
9514 (enum class rcuh_kind): Move to comp-unit.h.
9515 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9516 (read_comp_unit_head, error_check_comp_unit_head)
9517 (read_and_check_comp_unit_head): Move to comp-unit.c.
9518 (read_offset, dwarf_unit_type_name): Likewise.
9519 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9520 (cutu_reader::cutu_reader, read_call_site_scope)
9521 (find_partial_die, follow_die_offset): Update.
9522 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9523
9524 2020-02-08 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/read.c (read_offset_1): Move to leb.c.
9527 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9528 (dwarf_decode_macro_bytes): Update.
9529 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9530 * dwarf2/leb.h (read_offset): Declare.
9531
9532 2020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (dwarf2_section_size): Remove.
9535 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9536 Update.
9537 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9538
9539 2020-02-08 Tom Tromey <tom@tromey.com>
9540
9541 * dwarf2/read.c (read_initial_length): Move to leb.c.
9542 * dwarf2/leb.h (read_initial_length): Declare.
9543 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9544 handle_nonstd parameter.
9545 * dwarf2/frame.c (read_initial_length): Remove.
9546 (decode_frame_entry_1): Update.
9547
9548 2020-02-08 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2/loc.c (dwarf2_find_location_expression)
9551 (dwarf_evaluate_loc_desc::get_tls_address)
9552 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9553 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9554 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9555 (dwarf2_compile_property_to_c)
9556 (dwarf2_loc_desc_get_symbol_read_needs)
9557 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9558 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9559 (loclist_describe_location, loclist_tracepoint_var_ref)
9560 (loclist_generate_c_location): Update.
9561 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9562 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9563 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9564 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9565 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9566 (dwarf2_per_cu_data::addr_size)
9567 (dwarf2_per_cu_data::ref_addr_size)
9568 (dwarf2_per_cu_data::text_offset)
9569 (dwarf2_per_cu_data::addr_type): Now methods.
9570 (per_cu_header_read_in): Make per_cu "const".
9571 (dwarf2_version): Remove.
9572 (dwarf2_per_cu_data::int_type): Now a method.
9573 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9574 (set_die_type, read_array_type, read_subrange_index_type)
9575 (read_tag_string_type, read_subrange_type): Update.
9576 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9577 offset_size, ref_addr_size, text_offset, addr_type, version,
9578 objfile, int_type, addr_sized_int_type>: Declare methods.
9579
9580 2020-02-08 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9583 Move earlier.
9584
9585 2020-02-08 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/read.h (dwarf_line_debug): Declare.
9588 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9589 * dwarf2/read.c: Move line_header code to new files.
9590 (dwarf_line_debug): No longer static.
9591 * dwarf2/line-header.c: New file.
9592 * dwarf2/line-header.h: New file.
9593
9594 2020-02-08 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/read.c (struct line_header) <file_full_name,
9597 file_file_name>: Return unique_xmalloc_ptr.
9598 (line_header::file_file_name): Update.
9599 (line_header::file_full_name): Update.
9600 (dw2_get_file_names_reader): Update.
9601 (macro_start_file): Update.
9602
9603 2020-02-08 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/read.c (struct line_header) <file_full_name,
9606 file_file_name>: Declare methods.
9607 (dw2_get_file_names_reader): Update.
9608 (file_file_name): Now a method.
9609 (file_full_name): Likewise.
9610 (macro_start_file): Update.
9611
9612 2020-02-08 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/read.c (dwarf_always_disassemble)
9615 (show_dwarf_always_disassemble): Move to loc.c.
9616 (_initialize_dwarf2_read): Move "always-disassemble" registration
9617 to loc.c.
9618 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9619 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9620 static.
9621 (show_dwarf_always_disassemble): Move from read.c.
9622 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9623
9624 2020-02-08 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9627 (create_quick_file_names_table): Return htab_up.
9628 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9629 Update.
9630 * dwarf2/read.h (struct dwarf2_per_objfile)
9631 <quick_file_names_table>: Now htab_up.
9632
9633 2020-02-08 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9636
9637 2020-02-08 Tom Tromey <tom@tromey.com>
9638
9639 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9640 Rewrite.
9641 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9642 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9643 (abbrev_table::abbrev_table): No longer inline.
9644 (ABBREV_HASH_SIZE): Remove.
9645 (abbrev_table::m_abbrevs): Now an htab_up.
9646
9647 2020-02-08 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9650 (cutu_reader): Update.
9651 (build_type_psymtabs_1): Update.
9652 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9653 (abbrev_table::alloc_abbrev): Update.
9654 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9655 (abbrev_table::read): New static method, renamed from
9656 abbrev_table_read_table.
9657 (abbrev_table::alloc_abbrev)
9658 (abbrev_table::add_abbrev): Now private.
9659 (abbrev_table::abbrev_table): Now private.
9660 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9661
9662 2020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9665 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9666 htab_up.
9667
9668 2020-02-08 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9671 htab_up.
9672 (lookup_dwo_unit_in_dwp): Update.
9673 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9674 on obstack.
9675
9676 2020-02-08 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9679 obstack.
9680
9681 2020-02-08 Tom Tromey <tom@tromey.com>
9682
9683 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9684 line_header_hash.
9685 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9686 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9687 Change type to htab_up.
9688
9689 2020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9692 htab_up. Don't allocate on obstack.
9693 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9694 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9695 Change type to htab_up.
9696
9697 2020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9700 Change type to htab_up.
9701 * dwarf2/read.c (create_signatured_type_table_from_index)
9702 (create_signatured_type_table_from_debug_names)
9703 (create_all_type_units, add_type_unit)
9704 (lookup_dwo_signatured_type, lookup_signatured_type)
9705 (process_skeletonless_type_unit): Update.
9706 (create_debug_type_hash_table, create_debug_types_hash_table):
9707 Change type of types_htab.
9708 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9709 htab_up. Don't allocate on obstack.
9710 (create_cus_hash_table): Change type of cus_htab parameter.
9711 (struct dwo_file) <cus, tus>: Now htab_up.
9712 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9713 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9714 (queue_and_load_all_dwo_tus): Update.
9715 * dwarf2/index-write.c (write_gdbindex): Update.
9716 (write_debug_names): Update.
9717
9718 2020-02-08 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9721 dwarf2/read.c. Remove "next" member. Add constructor ntad
9722 destructor.
9723 (struct dwarf2_per_objfile) <queue>: New member.
9724 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9725 dwarf2/read.h.
9726 (dwarf2_queue, dwarf2_queue_tail): Remove.
9727 (class dwarf2_queue_guard): Add parameter to constructor. Use
9728 DISABLE_COPY_AND_ASSIGN.
9729 <m_per_objfile>: New member.
9730 <~dwarf2_queue_guard>: Rewrite.
9731 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9732 Update.
9733 (~dwarf2_queue_item): New.
9734
9735 2020-02-08 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (struct die_info) <has_children>: New member.
9738 (dw2_get_file_names_reader): Remove has_children.
9739 (dw2_get_file_names): Update.
9740 (read_cutu_die_from_dwo): Remove has_children.
9741 (cutu_reader::init_tu_and_read_dwo_dies)
9742 (cutu_reader::cutu_reader): Update.
9743 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9744 Remove has_children.
9745 (build_type_psymtabs_1, process_skeletonless_type_unit)
9746 (load_partial_comp_unit, load_full_comp_unit): Update.
9747 (create_dwo_cu_reader): Remove has_children.
9748 (create_cus_hash_table, read_die_and_children): Update.
9749 (read_full_die_1,read_full_die): Remove has_children.
9750 (read_signatured_type): Update.
9751 (class cutu_reader) <has_children>: Remove.
9752
9753 2020-02-08 Tom Tromey <tom@tromey.com>
9754
9755 * dwarf2/expr.c: Rename from dwarf2expr.c.
9756 * dwarf2/expr.h: Rename from dwarf2expr.h.
9757 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9758 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9759 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9760 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9761 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9762 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9763 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9764 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9765 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9766 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9767 * dwarf2/loc.c: Rename from dwarf2loc.c.
9768 * dwarf2/loc.h: Rename from dwarf2loc.h.
9769 * dwarf2/read.c: Rename from dwarf2read.c.
9770 * dwarf2/read.h: Rename from dwarf2read.h.
9771 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9772 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9773 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9774 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9775 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9776 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9777 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9778 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9779 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9780 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9781 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9782 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9783 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9784 Update.
9785 * Makefile.in (COMMON_SFILES): Update.
9786 (HFILES_NO_SRCDIR): Update.
9787
9788 2020-02-08 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9791 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9792
9793 2020-02-08 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2read.h (struct die_info): Don't declare.
9796
9797 2020-02-08 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2read.h (die_info_ptr): Remove typedef.
9800
9801 2020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2read.c (read_call_site_scope)
9804 (handle_data_member_location, dwarf2_add_member_fn)
9805 (mark_common_block_symbol_computed, read_common_block)
9806 (attr_to_dynamic_prop, partial_die_info::read)
9807 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9808 (dwarf2_symbol_mark_computed, set_die_type): Update.
9809 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9810 method.
9811 (attr_form_is_block): Don't declare.
9812 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9813
9814 2020-02-08 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2read.c (dwarf2_find_base_address, )
9817 (read_call_site_scope, rust_containing_type)
9818 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9819 (handle_data_member_location, dwarf2_add_member_fn)
9820 (get_alignment, read_structure_type, process_structure_scope)
9821 (mark_common_block_symbol_computed, read_common_block)
9822 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9823 (partial_die_info::read, read_attribute_value, new_symbol)
9824 (lookup_die_type, dwarf2_get_ref_die_offset)
9825 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9826 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9827 (dwarf2_symbol_mark_computed): Update.
9828 * dwarf2/attribute.h (struct attribute) <value_as_address,
9829 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9830 methods.
9831 (value_as_address, attr_form_is_section_offset)
9832 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9833 * dwarf2/attribute.c (attribute::value_as_address)
9834 (attribute::form_is_section_offset, attribute::form_is_constant)
9835 (attribute::form_is_ref): Now methods.
9836
9837 2020-02-08 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2read.c (struct attribute, DW_STRING)
9840 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9841 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9842 (attr_form_is_block, attr_form_is_section_offset)
9843 (attr_form_is_constant, attr_form_is_ref): Move.
9844 * dwarf2/attribute.h: New file.
9845 * dwarf2/attribute.c: New file, from dwarf2read.c.
9846 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9847
9848 2020-02-08 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9851 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9852 Move.
9853 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9854 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9855 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9856 abbrev.c.
9857 * dwarf2/abbrev.h: New file.
9858 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9859 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9860
9861 2020-02-08 Tom Tromey <tom@tromey.com>
9862
9863 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9864 (dwarf2_section_size, dwarf2_get_section_info)
9865 (create_signatured_type_table_from_debug_names)
9866 (create_addrmap_from_aranges, read_debug_names_from_section)
9867 (get_gdb_index_contents_from_section, read_comp_unit_head)
9868 (error_check_comp_unit_head, read_abbrev_offset)
9869 (create_debug_type_hash_table, init_cu_die_reader)
9870 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9871 (read_comp_units_from_section, create_cus_hash_table)
9872 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9873 (create_dwp_v2_section, dwarf2_rnglists_process)
9874 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9875 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9876 (read_indirect_string_from_dwz, read_addr_index_1)
9877 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9878 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9879 (fill_in_loclist_baton): Update.
9880 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9881 get_containing_section, get_bfd_owner, get_bfd_section,
9882 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9883 (dwarf2_read_section, get_section_name, get_section_file_name)
9884 (get_containing_section, get_section_bfd_owner)
9885 (get_section_bfd_section, get_section_name, get_section_file_name)
9886 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9887 declare.
9888 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9889 (dwarf2_section_info::get_bfd_owner)
9890 (dwarf2_section_info::get_bfd_section)
9891 (dwarf2_section_info::get_name)
9892 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9893 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9894 (dwarf2_section_info::read): Now methods.
9895 * dwarf-index-write.c (class debug_names): Update.
9896
9897 2020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9900 Move to dwarf2/section.h.
9901 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9902 (get_section_bfd_section, get_section_name)
9903 (get_section_file_name, get_section_id, get_section_flags)
9904 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9905 dwarf2/section.c.
9906 * dwarf2/section.h: New file.
9907 * dwarf2/section.c: New file, from dwarf2read.c.
9908 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9909
9910 2020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9913 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9914 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9915 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9916 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9917 * dwarf2/leb.h: New file, from dwarf2read.c.
9918 * dwarf2/leb.c: New file, from dwarf2read.c.
9919 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9920 Remove.
9921 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9922 (COMMON_SFILES): Add dwarf2/leb.c.
9923
9924 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9925
9926 GDB 9.1 released.
9927
9928 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9929
9930 PR gdb/25190:
9931 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9932 * gdb/remote.c (remote_console_output): Update.
9933 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9934 (ui_file_puts): ...this.
9935 * gdb/ui-file.h (ui_file_puts): Add declaration.
9936 * gdb/utils.c (emit_style_escape): Update.
9937 (flush_wrap_buffer): Update.
9938 (fputs_maybe_filtered): Update.
9939 (fputs_unfiltered): Add function.
9940
9941 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9942
9943 * gdb/event-loop.c (gdb_wait_for_event): Update.
9944 * gdb/printcmd.c (printf_command): Update.
9945 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9946 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9947 (gdb_os_flush_stderr): Update.
9948 * gdb/remote.c (remote_console_output): Update.
9949 * gdb/ui-file.c (gdb_flush): Rename to...
9950 (ui_file_flush): ...this.
9951 (stderr_file::write): Update.
9952 (stderr_file::puts): Update.
9953 * gdb/ui-file.h (gdb_flush): Rename to...
9954 (ui_file_flush): ...this.
9955 * gdb/utils.c (gdb_flush): Add function.
9956 * gdb/utils.h (gdb_flush): Add declaration.
9957
9958 2020-02-07 Tom Tromey <tromey@adacore.com>
9959
9960 PR breakpoints/24915:
9961 * source.c (find_and_open_source): Do not check basenames_may_differ.
9962
9963 2020-02-07 Tom Tromey <tom@tromey.com>
9964
9965 * README: Update gdbserver documentation.
9966 * gdbserver: Move to top level.
9967 * configure.tgt (build_gdbserver): Remove.
9968 * configure.ac: Remove --enable-gdbserver.
9969 * configure: Rebuild.
9970 * Makefile.in (distclean): Don't mention gdbserver.
9971
9972 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9973
9974 * source-cache.c (source_cache::ensure): Surround
9975 get_plain_source_lines with a try/catch.
9976 (source_cache::get_line_charpos): Get rid of try/catch
9977 and only check for the return value of "ensure".
9978 * tui/tui-source.c (tui_source_window::set_contents):
9979 Simplify "nlines" calculation.
9980
9981 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9982
9983 * MAINTAINERS (Write After Approval): Add myself.
9984
9985 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9986
9987 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9988 function call.
9989
9990 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9991
9992 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9993
9994 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9995
9996 * nat/riscv-linux-tdesc.h: New file.
9997 * nat/riscv-linux-tdesc.c: New file, taking code from...
9998 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9999 ... here.
10000 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10001 NATDEPFILES.
10002
10003 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10006 we don't set the fake simulator ptid to the null_ptid.
10007
10008 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10011 * gdbthread.h (class thread_info) <resumed>: Likewise.
10012 * infrun.c (resume_1): Likewise.
10013 (proceed): Likewise.
10014 (infrun_thread_stop_requested): Likewise.
10015 (stop_all_threads): Likewise.
10016 (handle_inferior_event): Likewise.
10017 (restart_threads): Likewise.
10018 (finish_step_over): Likewise.
10019 (keep_going_stepped_thread): Likewise.
10020 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10021 (linux_handle_extended_wait): Likewise.
10022 * record-btrace.c (get_thread_current_frame_id): Likewise.
10023 * record-full.c (record_full_wait_1): Likewise.
10024 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10025 * target.c (target_resume): Likewise.
10026 * thread.c (set_running_thread): Likewise.
10027
10028 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10029
10030 * f-valprint.c (f77_print_array_1): Changed datatype of index
10031 variable to LONGEST from int to enable it to contain bound
10032 values correctly.
10033
10034 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10035
10036 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10037 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10038 offsets according to FLEN determined.
10039 (riscv_linux_nat_target::read_description): Determine FLEN
10040 dynamically.
10041 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10042 according to FLEN determined.
10043 (riscv_linux_nat_target::store_registers): Likewise.
10044
10045 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10046
10047 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10048 when reg->group is empty and reggroup is not.
10049
10050 2020-01-31 Tom Tromey <tromey@adacore.com>
10051
10052 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10053 Call beneath target's mourn_inferior after unpushing.
10054
10055 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 PR tui/9765
10058 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10059 have enough lines to fill the screen, still return the lowest
10060 address we found.
10061
10062 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10065 '-', '<', and '>' commands.
10066
10067 2020-01-29 Pedro Alves <palves@redhat.com>
10068 Sergio Durigan Junior <sergiodj@redhat.com>
10069
10070 * infcmd.c (construct_inferior_arguments): Assert that
10071 'argc' is greater than 0.
10072
10073 2020-01-29 Luis Machado <luis.machado@linaro.org>
10074
10075 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10076 (BRK_INSN_MASK): Define to 0xd4200000.
10077 (aarch64_program_breakpoint_here_p): New function.
10078 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10079 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10080 breakpoint.c.
10081 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10082 breakpoint.h
10083 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10084 call gdbarch_program_breakpoint_here_p.
10085 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10086 default_program_breakpoint_here_p, changed return type to bool and
10087 simplified.
10088 * breakpoint.h (program_breakpoint_here): Moved prototype to
10089 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10090 return type to bool.
10091 * gdbarch.c: Regenerate.
10092 * gdbarch.h: Regenerate.
10093 * gdbarch.sh (program_breakpoint_here_p): New method.
10094 * infrun.c (handle_signal_stop): Call
10095 gdbarch_program_breakpoint_here_p.
10096
10097 2020-01-26 Tom Tromey <tom@tromey.com>
10098
10099 * ctfread.c (struct ctf_fp_info): Reindent.
10100 (_initialize_ctfread): Remove.
10101
10102 2020-01-26 Tom Tromey <tom@tromey.com>
10103
10104 * psymtab.c (partial_map_expand_apply)
10105 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10106 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10107 (psym_print_stats, psym_expand_symtabs_for_function)
10108 (psym_map_symbol_filenames, psym_map_matching_symbols)
10109 (psym_expand_symtabs_matching)
10110 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10111 (maintenance_check_psymtabs): Use new methods.
10112 * psympriv.h (struct partial_symtab) <readin_p,
10113 get_compunit_symtab>: New methods.
10114 <readin, compunit_symtab>: Remove members.
10115 (struct standard_psymtab): New.
10116 (struct legacy_psymtab): Derive from standard_psymtab.
10117 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10118 standard_psymtab.
10119 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10120
10121 2020-01-26 Tom Tromey <tom@tromey.com>
10122
10123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10124 read_dependencies. Add assert.
10125 * psymtab.c (partial_symtab::read_dependencies): New method.
10126 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10127 method.
10128 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10129 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10130 read_dependencies.
10131 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10132 Add assert.
10133
10134 2020-01-26 Tom Tromey <tom@tromey.com>
10135
10136 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10137 Call expand_psymtab.
10138 (xcoff_read_symtab): Call expand_psymtab.
10139 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10140 legacy_expand_psymtab.
10141 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10142 method.
10143 (struct legacy_psymtab) <expand_psymtab>: Implement.
10144 <legacy_expand_psymtab>: New member.
10145 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10146 (parse_partial_symbols): Set legacy_expand_psymtab.
10147 (psymtab_to_symtab_1): Change argument order. Call
10148 expand_psymtab.
10149 (new_psymtab): Set legacy_expand_psymtab.
10150 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10151 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10152 expand_psymtab.
10153 (dwarf2_psymtab::expand_psymtab): Rename from
10154 psymtab_to_symtab_1. Call expand_psymtab.
10155 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10156 (dbx_end_psymtab): Likewise.
10157 (dbx_psymtab_to_symtab_1): Change argument order. Call
10158 expand_psymtab.
10159 (dbx_read_symtab): Call expand_psymtab.
10160 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10161 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10162 (ctf_psymtab::read_symtab): Call expand_psymtab.
10163
10164 2020-01-26 Tom Tromey <tom@tromey.com>
10165
10166 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10167 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10168 messages.
10169 * mdebugread.c (mdebug_read_symtab): Remove prints.
10170 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10171 assert.
10172 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10173
10174 2020-01-26 Tom Tromey <tom@tromey.com>
10175
10176 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10177 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10178 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10179 legacy_symtab.
10180 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10181 * psymtab.c (psymtab_to_symtab): Call method.
10182 (dump_psymtab): Update.
10183 * psympriv.h (struct partial_symtab): Add virtual destructor.
10184 <read_symtab>: New method.
10185 (struct legacy_symtab): New.
10186 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10187 (struct pst_map) <pst>: Now a legacy_psymtab.
10188 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10189 (new_psymtab): Use legacy_psymtab.
10190 * dwarf2read.h (struct dwarf2_psymtab): New.
10191 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10192 * dwarf2read.c (dwarf2_create_include_psymtab)
10193 (dwarf2_build_include_psymtabs, create_type_unit_group)
10194 (create_partial_symtab, process_psymtab_comp_unit_reader)
10195 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10196 (set_partial_user): Use dwarf2_psymtab.
10197 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10198 (psymtab_to_symtab_1, process_full_comp_unit)
10199 (process_full_type_unit, dwarf2_ranges_read)
10200 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10201 (dwarf_decode_lines): Use dwarf2_psymtab.
10202 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10203 (add_address_entry_worker, write_one_signatured_type)
10204 (recursively_count_psymbols, recursively_write_psymbols)
10205 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10206 (write_debug_names): Likewise.
10207 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10208 <pst>: Now a legacy_psymtab.
10209 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10210 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10211 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10212 * ctfread.c (struct ctf_psymtab): New.
10213 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10214 ctf_psymtab.
10215 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10216 (create_partial_symtab): Return a ctf_psymtab.
10217 (scan_partial_symbols): Update.
10218
10219 2020-01-26 Tom Tromey <tom@tromey.com>
10220
10221 * xcoffread.c (xcoff_start_psymtab): Use new.
10222 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10223 renamed from start_psymtab_common.
10224 * psympriv.h (struct partial_symtab): Add new constructor.
10225 (start_psymtab_common): Don't declare.
10226 * mdebugread.c (parse_partial_symbols): Use new.
10227 * dwarf2read.c (create_partial_symtab): Use new.
10228 * dbxread.c (start_psymtab): Use new.
10229 * ctfread.c (create_partial_symtab): Use new.
10230
10231 2020-01-26 Tom Tromey <tom@tromey.com>
10232
10233 * xcoffread.c (xcoff_end_psymtab): Use new.
10234 * psymtab.c (start_psymtab_common): Use new.
10235 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10236 Update.
10237 * psympriv.h (struct partial_symtab): Add parameters to
10238 constructor. Don't inline.
10239 (allocate_psymtab): Don't declare.
10240 * mdebugread.c (new_psymtab): Use new.
10241 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10242 * dbxread.c (dbx_end_psymtab): Use new.
10243
10244 2020-01-26 Tom Tromey <tom@tromey.com>
10245
10246 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10247 allocate_psymtab. Update documentation.
10248 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10249 allocate_psymtab. Do not use new.
10250 (allocate_psymtab): Use new. Update.
10251
10252 2020-01-26 Tom Tromey <tom@tromey.com>
10253
10254 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10255 * psymtab.c (psym_print_stats): Update.
10256 * psympriv.h (struct partial_symtab) <readin,
10257 psymtabs_addrmap_supported, anonymous>: Now bool.
10258 * mdebugread.c (psymtab_to_symtab_1): Update.
10259 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10260 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10261 (process_full_comp_unit, process_full_type_unit): Update.
10262 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10263 * ctfread.c (psymtab_to_symtab): Update.
10264
10265 2020-01-26 Tom Tromey <tom@tromey.com>
10266
10267 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10268 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10269 * psymtab.c (psymtab_storage): Delete psymtabs.
10270 (psymtab_storage::allocate_psymtab): Use new.
10271 (psymtab_storage::discard_psymtab): Use delete.
10272 * psympriv.h (struct partial_symtab): Add constructor and
10273 initializers.
10274
10275 2020-01-26 Tom Tromey <tom@tromey.com>
10276
10277 * machoread.c: Do not include psympriv.h.
10278
10279 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10280
10281 * NEWS: Mention the new option and the set/show commands.
10282
10283 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10284
10285 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10286 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10287 (validate_exec_file): New variables, enums, functions.
10288 (exec_file_locate_attach, print_section_info): Style the filenames.
10289 (_initialize_exec): Install show_exec_file_mismatch_command and
10290 set_exec_file_mismatch_command.
10291 * gdbcore.h (validate_exec_file): Declare.
10292 * infcmd.c (attach_command): Call validate_exec_file.
10293 * remote.c ( remote_target::remote_add_inferior): Likewise.
10294
10295 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * frame.c (find_frame_sal): Move call to get_next_frame into more
10298 inner scope.
10299 * inline-frame.c (inilne_state) <inline_state>: Update argument
10300 types.
10301 (inilne_state) <skipped_symbol>: Rename to...
10302 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10303 (skip_inline_frames): Build vector of skipped symbols and use this
10304 to reate the inline_state.
10305 (inline_skipped_symbol): Add a comment and some assertions, fetch
10306 skipped symbol from the list.
10307
10308 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * buildsym.c (lte_is_less_than): Delete.
10311 (buildsym_compunit::end_symtab_with_blockvector): Create local
10312 lambda function to sort line table entries, and use
10313 std::stable_sort instead of std::sort.
10314 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10315 markers when looking for a previous line.
10316
10317 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10318
10319 * dwarf2read.c (lnp_state_machine::record_line): Include
10320 end_sequence parameter in debug print out. Record the line if we
10321 are at an end_sequence marker even if it's not the start of a
10322 statement.
10323 * symmisc.c (maintenance_print_one_line_table): Print end of
10324 sequence markers with 'END' not '0'.
10325
10326 2020-01-24 Pedro Alves <palves@redhat.com>
10327
10328 PR gdb/25410
10329 * thread.c (scoped_restore_current_thread::restore): Use
10330 switch_to_inferior_no_thread.
10331 * exec.c: Include "progspace-and-thread.h".
10332 (add_target_sections, remove_target_sections):
10333 scoped_restore_current_pspace_and_thread instead of
10334 scoped_restore_current_thread.
10335 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10336 and aspace to the inferior before calling clone_program_space.
10337 Remove stale comment.
10338
10339 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10340
10341 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10342 (arm_netbsd_nat_target::fetch_registers): ...this.
10343 (arm_nbsd_nat_target::store_registers): Rename to...
10344 (arm_netbsd_nat_target::store_registers): ...this.
10345
10346 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10347
10348 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10349 register_t.
10350
10351 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10352
10353 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10354 Update comment.
10355 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10356 Likewise.
10357 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10358 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10359 the correct replacement (iterate_over_regset_sections).
10360 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10361 Update comment.
10362
10363 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10364
10365 PR gdb/23718
10366 * gdb/python/python.c (execute_gdb_command): Call
10367 async_enable_stdin in catch block.
10368
10369 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10370
10371 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10372 SWITCH_THRU_ALL_UIS.
10373
10374 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10375
10376 PR tui/9765
10377 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10378 comment, add extra parameter, and update to store previous symbol
10379 when appropriate.
10380 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10381 add extra parameter.
10382 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10383 remove unneeded parameter, add try/catch around gdb_print_insn,
10384 rewrite to add items to asm_lines vector.
10385 (tui_find_backward_disassembly_start_address): New function.
10386 (tui_find_disassembly_address): Updated throughout.
10387 (tui_disasm_window::set_contents): Update for changes to
10388 tui_disassemble.
10389 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10390 number of lines to scroll.
10391
10392 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10393
10394 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10395 (SECT_OFF_DATA): Likewise.
10396 (SECT_OFF_RODATA): Likewise.
10397 (SECT_OFF_TEXT): Likewise.
10398 (SECT_OFF_BSS): Likewise.
10399 (struct objfile) <text_section_offset, data_section_offset>: New
10400 methods.
10401 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10402 objfile::text_section_offset.
10403 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10404 * coffread.c (coff_symtab_read): Likewise.
10405 (enter_linenos): Likewise.
10406 (process_coff_symbol): Likewise.
10407 * ctfread.c (get_objfile_text_range): Likewise.
10408 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10409 Use objfile::data_section_offset.
10410 * dwarf2-frame.c (execute_cfa_program): Use
10411 objfile::text_section_offset.
10412 (dwarf2_frame_find_fde): Likewise.
10413 * dwarf2read.c (create_addrmap_from_index): Likewise.
10414 (create_addrmap_from_aranges): Likewise.
10415 (dw2_find_pc_sect_compunit_symtab): Likewise.
10416 (process_psymtab_comp_unit_reader): Likewise.
10417 (add_partial_symbol): Likewise.
10418 (add_partial_subprogram): Likewise.
10419 (process_full_comp_unit): Likewise.
10420 (read_file_scope): Likewise.
10421 (read_func_scope): Likewise.
10422 (read_lexical_block_scope): Likewise.
10423 (read_call_site_scope): Likewise.
10424 (dwarf2_rnglists_process): Likewise.
10425 (dwarf2_ranges_process): Likewise.
10426 (dwarf2_ranges_read): Likewise.
10427 (dwarf_decode_lines_1): Likewise.
10428 (new_symbol): Likewise.
10429 (dwarf2_fetch_die_loc_sect_off): Likewise.
10430 (dwarf2_per_cu_text_offset): Likewise.
10431 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10432 * hppa-tdep.c (read_unwind_info): Likewise.
10433 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10434 * psympriv.h (struct partial_symtab): Likewise.
10435 * psymtab.c (find_pc_sect_psymtab): Likewise.
10436 * solib-svr4.c (enable_break): Likewise.
10437 * stap-probe.c (relocate_address): Use
10438 objfile::data_section_offset.
10439 * xcoffread.c (enter_line_range): Use
10440 objfile::text_section_offset.
10441 (read_xcoff_symtab): Likewise.
10442
10443 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10446 declaration to narrower scopes.
10447
10448 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10449
10450 * darwin-nat.h (struct darwin_exception_msg, enum
10451 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10452 Move up.
10453 (class darwin_nat_target) <wait_1, check_new_threads,
10454 decode_exception_message, decode_message, stop_inferior,
10455 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10456 * darwin-nat.c (darwin_check_new_threads): Rename to...
10457 (darwin_nat_target::check_new_threads): ... this.
10458 (darwin_suspend_inferior_it): Remove.
10459 (darwin_decode_exception_message): Rename to...
10460 (darwin_nat_target::decode_exception_message): ... this.
10461 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10462 (darwin_decode_message): Rename to...
10463 (darwin_nat_target::decode_message): ... this.
10464 (cancel_breakpoint): Rename to...
10465 (darwin_nat_target::cancel_breakpoint): ... this.
10466 (darwin_wait): Rename to...
10467 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10468 instead of iterate_over_inferiors.
10469 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10470 (darwin_stop_inferior): Rename to...
10471 (darwin_nat_target::stop_inferior): ... this.
10472 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10473 (darwin_init_thread_list): Rename to...
10474 (darwin_nat_target::init_thread_list): ... this.
10475 (darwin_ptrace_him): Rename to...
10476 (darwin_nat_target::ptrace_him): ... this.
10477 (darwin_nat_target::create_inferior): Pass lambda function to
10478 fork_inferior.
10479 (darwin_nat_target::detach): Call stop_inferior instead of
10480 darwin_stop_inferior.
10481 * fork-inferior.h (fork_inferior): Change init_trace_fun
10482 parameter to gdb::function_view.
10483 * fork-inferior.c (fork_inferior): Likewise.
10484
10485 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10486
10487 * i386-cygwin-tdep.c (core_process_module_section): Update.
10488 * windows-nat.c (struct lm_info_windows): Add text_offset.
10489 (windows_xfer_shared_libraries): Update.
10490 * windows-tdep.c (windows_xfer_shared_library):
10491 Add text_offset_cached argument.
10492 * windows-tdep.h (windows_xfer_shared_library): Update.
10493
10494 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10497
10498 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10501 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10502 replace with range-based for.
10503 (gdbsim_interrupt_inferior): Remove.
10504 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10505 with a range-based for. Inline code from
10506 gdbsim_interrupt_inferior.
10507
10508 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10509
10510 * infrun.c (proceed): Fix indentation.
10511
10512 2020-01-21 Tom Tromey <tromey@adacore.com>
10513
10514 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10515 * python/python.c (python_extension_ops): Update.
10516 (gdbpy_colorize): New function.
10517 * python/lib/gdb/__init__.py (colorize): New function.
10518 * extension.h (ext_lang_colorize): Declare.
10519 * extension.c (ext_lang_colorize): New function.
10520 * extension-priv.h (struct extension_language_ops) <colorize>: New
10521 member.
10522 * cli/cli-style.c (_initialize_cli_style): Update help text.
10523
10524 2020-01-21 Luis Machado <luis.machado@linaro.org>
10525
10526 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10527 <cond>: Change type to bool.
10528 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10529 (aarch64_displaced_step_cb): Likewise.
10530 (aarch64_displaced_step_tb): Likewise.
10531
10532 2020-01-21 Luis Machado <luis.machado@linaro.org>
10533
10534 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10535 output.
10536
10537 2020-01-21 Luis Machado <luis.machado@linaro.org>
10538
10539 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10540 <pc_adjust>: Adjust the documentation.
10541 (aarch64_displaced_step_fixup): Check if PC really moved before
10542 adjusting it.
10543
10544 2020-01-19 Tom Tromey <tom@tromey.com>
10545
10546 * disasm.c (~gdb_disassembler): New destructor.
10547 (gdb_buffered_insn_length): Call disassemble_free_target.
10548 * disasm.h (class gdb_disassembler): Declare destructor. Use
10549 DISABLE_COPY_AND_ASSIGN.
10550
10551 2020-01-19 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10554 (die_reader_func_ftype): Remove.
10555 (cutu_reader): New class.
10556 (dw2_get_file_names_reader): Remove "data" parameter.
10557 (dw2_get_file_names): Use cutu_reader.
10558 (create_debug_type_hash_table): Update.
10559 (read_cutu_die_from_dwo): Update comment.
10560 (lookup_dwo_unit): Add dwo_name parameter.
10561 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10562 die_reader_func_ftype and data parameters.
10563 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10564 Remove die_reader_func_ftype and data parameters.
10565 (~cutu_reader): New; from init_cutu_and_read_dies.
10566 (cutu_reader::cutu_reader): Rename from
10567 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10568 and data parameters.
10569 (init_cutu_and_read_dies_simple): Remove.
10570 (struct process_psymtab_comp_unit_data): Remove.
10571 (process_psymtab_comp_unit_reader): Remove data parameter; add
10572 want_partial_unit and pretend_language parameters.
10573 (process_psymtab_comp_unit): Use cutu_reader.
10574 (build_type_psymtabs_reader): Remove data parameter.
10575 (build_type_psymtabs_1): Use cutu_reader.
10576 (process_skeletonless_type_unit): Likewise.
10577 (load_partial_comp_unit_reader): Remove.
10578 (load_partial_comp_unit): Use cutu_reader.
10579 (load_full_comp_unit_reader): Remove.
10580 (load_full_comp_unit): Use cutu_reader.
10581 (struct create_dwo_cu_data): Remove.
10582 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10583 dwo_unit parameters.
10584 (create_cus_hash_table): Use cutu_reader.
10585 (struct dwarf2_read_addr_index_data): Remove.
10586 (dwarf2_read_addr_index_reader): Remove.
10587 (dwarf2_read_addr_index): Use cutu_reader.
10588 (read_signatured_type_reader): Remove.
10589 (read_signatured_type): Use cutu_reader.
10590
10591 2020-01-19 Tom Tromey <tom@tromey.com>
10592
10593 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10594 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10595 (tui_wrefresh): Declare.
10596 * tui/tui-wingeneral.c (suppress_output): New global.
10597 (tui_suppress_output, ~tui_suppress_output): New constructor and
10598 destructor.
10599 (tui_wrefresh): New function.
10600 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10601 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10602 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10603 method.
10604 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10605 tui_wrefresh.
10606 (tui_data_window::no_refresh): New method.
10607 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10608 (tui_reg_command): Use tui_suppress_output
10609 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10610 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10611 method.
10612 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10613
10614 2020-01-19 Tom Tromey <tom@tromey.com>
10615
10616 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10617 Handle case where symtab is null.
10618
10619 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * linux-fork.c (one_fork_p): Simplify.
10622
10623 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * top.c (struct qt_args): Remove.
10626 (kill_or_detach): Change return type to void, replace `void *`
10627 parameter with a proper one.
10628 (print_inferior_quit_action): Likewise.
10629 (quit_confirm): Use range-based for loop to iterate over inferiors.
10630 (quit_force): Likewise.
10631
10632 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10633
10634 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10635 `void *` parameter with proper parameters.
10636 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10637 (print_one_inferior): Change return type to void, replace `void *`
10638 parameter with proper parameters.
10639 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10640 inferiors.
10641 (get_other_inferior): Remove.
10642 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10643 inferiors.
10644
10645 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10646
10647 * mi/mi-interp.c (report_initial_inferior): Remove.
10648 (mi_interp::init): Use range-based for to iterate over inferiors.
10649
10650 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10651
10652 * python/py-inferior.c (build_inferior_list): Remove.
10653 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10654
10655 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10656
10657 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10658 (btrace_stitch_trace): Likewise.
10659 * charset.c (intermediate_encoding): Likewise (vaild).
10660 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10661 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10662 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10663
10664 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10665
10666 * windows-tdep.c (windows_get_tlb_type):
10667 Add rtl_user_process_parameters type.
10668
10669 2020-01-16 Pedro Alves <palves@redhat.com>
10670 Norbert Lange <nolange79@gmail.com>
10671
10672 PR build/24805
10673 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10674 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10675 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10676 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10677 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10678 (ps_plog): Redeclare exported functions with default visibility.
10679
10680 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10681
10682 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10683 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10684
10685 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * infcmd.c (post_create_inferior): Use get_thread_regcache
10688 instead of get_current_regcache.
10689
10690 2020-01-14 Tom Tromey <tom@tromey.com>
10691
10692 PR symtab/12535:
10693 * python/python.c (gdbpy_decode_line): Treat empty string the same
10694 as no argument.
10695
10696 2020-01-14 Tom Tromey <tom@tromey.com>
10697
10698 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10699
10700 2020-01-14 Tom Tromey <tom@tromey.com>
10701
10702 * nat/linux-btrace.c: Don't include <config.h>.
10703 * nat/linux-ptrace.c: Don't include <config.h>.
10704 * nat/x86-linux-dregs.c: Don't include <config.h>.
10705
10706 2020-01-14 Tom Tromey <tom@tromey.com>
10707
10708 * configure: Rebuild.
10709 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10710
10711 2020-01-14 Tom Tromey <tom@tromey.com>
10712
10713 * nat/x86-linux-dregs.c: Include configh.h.
10714 * nat/linux-ptrace.c: Include configh.h.
10715 * nat/linux-btrace.c: Include configh.h.
10716 * defs.h: Include config.h, bfd.h.
10717 * configure.ac: Don't source common.host.
10718 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10719 * configure: Rebuild.
10720 * acinclude.m4: Update path.
10721 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10722 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10723 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10724 (CLIBS): Add LIBSUPPORT.
10725 (CDEPS): Likewise.
10726 (COMMON_SFILES): Remove gdbsupport files.
10727 (HFILES_NO_SRCDIR): Likewise.
10728 (stamp-version): Update path to create-version.sh.
10729 (ALLDEPFILES): Remove gdbsupport files.
10730
10731 2020-01-14 Tom Tromey <tom@tromey.com>
10732
10733 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10734 USE_WIN32API when needed.
10735 * configure.ac (USE_WIN32API): Don't define.
10736 (WIN32LIBS): Use WIN32APILIBS.
10737 * configure: Rebuild.
10738
10739 2020-01-14 Tom Tromey <tom@tromey.com>
10740
10741 * configure: Rebuild.
10742 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10743
10744 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10745
10746 * skip.c (skip_function_command): Make skip w/o arguments use the
10747 name of the inlined function if pc is inside any inlined function.
10748
10749 2020-01-14 Luis Machado <luis.machado@linaro.org>
10750
10751 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10752 * infrun.c (resume_1): Likewise.
10753 (handle_inferior_event): Remove stale comment.
10754 * linux-nat.c (linux_nat_target::resume): Update comments.
10755 (save_stop_reason): Likewise.
10756 (linux_nat_filter_event): Likewise.
10757 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10758
10759 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * elfread.c (record_minimal_symbol): Set section index to 0 for
10762 non-allocatable sections.
10763
10764
10765 2020-01-13 Ali Tamur <tamur@google.com>
10766
10767 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10768 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10769 to gdb::optional. Update comments.
10770 (dwo_file): Update comments.
10771 (read_attribute): Update API to take an additional out parameter,
10772 need_reprocess. This is used to mark attributes that need other
10773 attributes (e.g. str_offsets_base) for correct computation which may not
10774 have been read yet.
10775 (read_attribute_reprocess): New function declaration.
10776 (read_addr_index): Likewise.
10777 (read_dwo_str_index): Likewise.
10778 (read_stub_str_index): Likewise.
10779 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10780 (lookup_addr_base): New function definition.
10781 (lookup_ranges_base): Likewise.
10782 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10783 lookup_ranges_base.
10784 (init_cutu_and_read_dies): Update comments.
10785 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10786 unit. This is used to inherit parent's str_offsets_base and addr_base.
10787 Update comments.
10788 (init_cutu_and_read_dies_simple): Reflect API changes.
10789 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10790 (create_cus_hash_table): Change API to take parent compile unit.
10791 Reflect API changes.
10792 (open_and_init_dwo_file): Reflect API changes.
10793 (dwarf2_get_pc_bounds): Update comments.
10794 (dwarf2_record_block_ranges): Likewise.
10795 (read_full_die_1): Change implementation to reprocess attributes that
10796 need str_offsets_base and addr_base.
10797 (partial_die_info::read): Likewise.
10798 (read_attribute_reprocess): New function definition.
10799 (read_attribute_value): Change API to take an additional out parameter,
10800 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10801 when a non-dwo compile unit has index based attributes.
10802 (read_attribute): Reflect API changes.
10803 (read_addr_index_1): Reflect API changes. Update comments.
10804 (dwarf2_read_addr_index_data): Reflect API changes.
10805 (dwarf2_read_addr_index): Likewise.
10806 (read_str_index): Change API and implementation. This becomes a helper
10807 to be used by the new string index related methods. Update error
10808 message and comments.
10809 (read_dwo_str_index): New function definition.
10810 (read_stub_str_index): Likewise.
10811 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10812 * symfile.h (dwarf2_debug_sections): Likewise.
10813 * xcoffread.c (dwarf2_debug_sections): Likewise.
10814
10815 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10818 core_reg_sect type to gdb_byte *.
10819 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10820 * cris-tdep.c (fetch_core_registers): Likewise.
10821 * corelow.c (core_target::get_core_register_section): Change
10822 type of `contents` to gdb::byte_vector.
10823
10824 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * tui/tui-wingeneral.c (box_win): Position the title in the center
10827 of the border.
10828
10829 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10830
10831 * corelow.c (core_target::get_core_register_section): Use
10832 std::vector instead of alloca.
10833
10834 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * warning.m4: Add -Wmissing-declarations to build_warnings.
10837 * configure: Re-generate.
10838
10839 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * python/python.c (init__gdb_module): Add declaration.
10842
10843 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10844
10845 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10846 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10847 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10848 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10849 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10850 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10851 * ada-exp.y (_initialize_ada_exp): Add declaration.
10852 * ada-lang.c (_initialize_ada_language): Add declaration.
10853 * ada-tasks.c (_initialize_tasks): Add declaration.
10854 * agent.c (_initialize_agent): Add declaration.
10855 * aix-thread.c (_initialize_aix_thread): Add declaration.
10856 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10857 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10858 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10859 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10860 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10861 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10862 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10863 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10864 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10865 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10866 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10867 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10868 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10869 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10870 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10871 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10872 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10873 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10874 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10875 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10876 * annotate.c (_initialize_annotate): Add declaration.
10877 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10878 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10879 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10880 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10881 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10882 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10883 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10884 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10885 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10886 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10887 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10888 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10889 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10890 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10891 * auto-load.c (_initialize_auto_load): Add declaration.
10892 * auxv.c (_initialize_auxv): Add declaration.
10893 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10894 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10895 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10896 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10897 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10898 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10899 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10900 * breakpoint.c (_initialize_breakpoint): Add declaration.
10901 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10902 * btrace.c (_initialize_btrace): Add declaration.
10903 * charset.c (_initialize_charset): Add declaration.
10904 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10905 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10906 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10907 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10908 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10909 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10910 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10911 * coffread.c (_initialize_coffread): Add declaration.
10912 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10913 * compile/compile.c (_initialize_compile): Add declaration.
10914 * complaints.c (_initialize_complaints): Add declaration.
10915 * completer.c (_initialize_completer): Add declaration.
10916 * copying.c (_initialize_copying): Add declaration.
10917 * corefile.c (_initialize_core): Add declaration.
10918 * corelow.c (_initialize_corelow): Add declaration.
10919 * cp-abi.c (_initialize_cp_abi): Add declaration.
10920 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10921 * cp-support.c (_initialize_cp_support): Add declaration.
10922 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10923 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10924 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10925 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10926 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10927 * ctfread.c (_initialize_ctfread): Add declaration.
10928 * d-lang.c (_initialize_d_language): Add declaration.
10929 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10930 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10931 * dbxread.c (_initialize_dbxread): Add declaration.
10932 * dcache.c (_initialize_dcache): Add declaration.
10933 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10934 * disasm.c (_initialize_disasm): Add declaration.
10935 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10936 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10937 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10938 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10939 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10940 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10941 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10942 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10943 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10944 * elfread.c (_initialize_elfread): Add declaration.
10945 * exec.c (_initialize_exec): Add declaration.
10946 * extension.c (_initialize_extension): Add declaration.
10947 * f-lang.c (_initialize_f_language): Add declaration.
10948 * f-valprint.c (_initialize_f_valprint): Add declaration.
10949 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10950 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10951 * filesystem.c (_initialize_filesystem): Add declaration.
10952 * findcmd.c (_initialize_mem_search): Add declaration.
10953 * findvar.c (_initialize_findvar): Add declaration.
10954 * fork-child.c (_initialize_fork_child): Add declaration.
10955 * frame-base.c (_initialize_frame_base): Add declaration.
10956 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10957 * frame.c (_initialize_frame): Add declaration.
10958 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10959 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10960 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10961 * gcore.c (_initialize_gcore): Add declaration.
10962 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10963 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10964 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10965 * gdbarch.c (_initialize_gdbarch): Add declaration.
10966 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10967 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10968 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10969 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10970 * go-lang.c (_initialize_go_language): Add declaration.
10971 * go32-nat.c (_initialize_go32_nat): Add declaration.
10972 * guile/guile.c (_initialize_guile): Add declaration.
10973 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10974 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10975 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10976 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10977 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10978 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10979 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10980 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10981 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10982 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10983 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10984 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10985 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10986 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10987 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10988 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10989 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10990 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10991 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10992 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10993 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10994 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10995 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10996 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10997 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10998 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10999 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11000 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11001 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11002 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11003 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11004 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11005 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11006 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11007 * infcall.c (_initialize_infcall): Add declaration.
11008 * infcmd.c (_initialize_infcmd): Add declaration.
11009 * inflow.c (_initialize_inflow): Add declaration.
11010 * infrun.c (_initialize_infrun): Add declaration.
11011 * interps.c (_initialize_interpreter): Add declaration.
11012 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11013 * jit.c (_initialize_jit): Add declaration.
11014 * language.c (_initialize_language): Add declaration.
11015 * linux-fork.c (_initialize_linux_fork): Add declaration.
11016 * linux-nat.c (_initialize_linux_nat): Add declaration.
11017 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11018 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11019 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11020 * m2-lang.c (_initialize_m2_language): Add declaration.
11021 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11022 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11023 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11024 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11025 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11026 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11027 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11028 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11029 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11030 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11031 * machoread.c (_initialize_machoread): Add declaration.
11032 * macrocmd.c (_initialize_macrocmd): Add declaration.
11033 * macroscope.c (_initialize_macroscope): Add declaration.
11034 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11035 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11036 * maint.c (_initialize_maint_cmds): Add declaration.
11037 * mdebugread.c (_initialize_mdebugread): Add declaration.
11038 * memattr.c (_initialize_mem): Add declaration.
11039 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11040 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11041 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11042 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11043 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11044 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11045 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11046 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11047 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11048 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11049 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11050 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11051 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11052 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11053 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11054 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11055 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11056 * mipsread.c (_initialize_mipsread): Add declaration.
11057 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11058 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11059 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11060 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11061 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11062 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11063 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11064 * nto-procfs.c (_initialize_procfs): Add declaration.
11065 * objc-lang.c (_initialize_objc_language): Add declaration.
11066 * observable.c (_initialize_observer): Add declaration.
11067 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11068 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11069 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11070 * osabi.c (_initialize_gdb_osabi): Add declaration.
11071 * osdata.c (_initialize_osdata): Add declaration.
11072 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11073 * parse.c (_initialize_parse): Add declaration.
11074 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11075 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11076 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11077 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11078 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11079 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11080 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11081 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11082 * printcmd.c (_initialize_printcmd): Add declaration.
11083 * probe.c (_initialize_probe): Add declaration.
11084 * proc-api.c (_initialize_proc_api): Add declaration.
11085 * proc-events.c (_initialize_proc_events): Add declaration.
11086 * proc-service.c (_initialize_proc_service): Add declaration.
11087 * procfs.c (_initialize_procfs): Add declaration.
11088 * producer.c (_initialize_producer): Add declaration.
11089 * psymtab.c (_initialize_psymtab): Add declaration.
11090 * python/python.c (_initialize_python): Add declaration.
11091 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11092 * record-btrace.c (_initialize_record_btrace): Add declaration.
11093 * record-full.c (_initialize_record_full): Add declaration.
11094 * record.c (_initialize_record): Add declaration.
11095 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11096 * regcache.c (_initialize_regcache): Add declaration.
11097 * reggroups.c (_initialize_reggroup): Add declaration.
11098 * remote-notif.c (_initialize_notif): Add declaration.
11099 * remote-sim.c (_initialize_remote_sim): Add declaration.
11100 * remote.c (_initialize_remote): Add declaration.
11101 * reverse.c (_initialize_reverse): Add declaration.
11102 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11103 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11104 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11105 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11106 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11107 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11108 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11109 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11110 Add declaration.
11111 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11112 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11113 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11114 * rust-exp.y (_initialize_rust_exp): Add declaration.
11115 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11116 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11117 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11118 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11119 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11120 * score-tdep.c (_initialize_score_tdep): Add declaration.
11121 * ser-go32.c (_initialize_ser_dos): Add declaration.
11122 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11123 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11124 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11125 * ser-uds.c (_initialize_ser_socket): Add declaration.
11126 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11127 * serial.c (_initialize_serial): Add declaration.
11128 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11129 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11130 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11131 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11132 * skip.c (_initialize_step_skip): Add declaration.
11133 * sol-thread.c (_initialize_sol_thread): Add declaration.
11134 * solib-aix.c (_initialize_solib_aix): Add declaration.
11135 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11136 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11137 * solib-frv.c (_initialize_frv_solib): Add declaration.
11138 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11139 * solib-target.c (_initialize_solib_target): Add declaration.
11140 * solib.c (_initialize_solib): Add declaration.
11141 * source-cache.c (_initialize_source_cache): Add declaration.
11142 * source.c (_initialize_source): Add declaration.
11143 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11144 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11145 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11146 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11147 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11148 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11149 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11150 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11151 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11152 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11153 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11154 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11155 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11156 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11157 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11158 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11159 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11160 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11161 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11162 * stabsread.c (_initialize_stabsread): Add declaration.
11163 * stack.c (_initialize_stack): Add declaration.
11164 * stap-probe.c (_initialize_stap_probe): Add declaration.
11165 * std-regs.c (_initialize_frame_reg): Add declaration.
11166 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11167 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11168 * symfile.c (_initialize_symfile): Add declaration.
11169 * symmisc.c (_initialize_symmisc): Add declaration.
11170 * symtab.c (_initialize_symtab): Add declaration.
11171 * target.c (_initialize_target): Add declaration.
11172 * target-connection.c (_initialize_target_connection): Add
11173 declaration.
11174 * target-dcache.c (_initialize_target_dcache): Add declaration.
11175 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11176 * thread.c (_initialize_thread): Add declaration.
11177 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11178 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11179 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11180 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11181 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11182 * tracectf.c (_initialize_ctf): Add declaration.
11183 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11184 * tracefile.c (_initialize_tracefile): Add declaration.
11185 * tracepoint.c (_initialize_tracepoint): Add declaration.
11186 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11187 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11188 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11189 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11190 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11191 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11192 * tui/tui.c (_initialize_tui): Add declaration.
11193 * typeprint.c (_initialize_typeprint): Add declaration.
11194 * ui-style.c (_initialize_ui_style): Add declaration.
11195 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11196 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11197 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11198 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11199 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11200 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11201 * unittests/filtered_iterator-selftests.c
11202 (_initialize_filtered_iterator_selftests): Add declaration.
11203 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11204 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11205 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11206 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11207 * unittests/main-thread-selftests.c
11208 (_initialize_main_thread_selftests): Add declaration.
11209 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11210 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11211 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11212 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11213 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11214 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11215 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11216 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11217 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11218 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11219 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11220 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11221 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11222 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11223 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11224 declaration.
11225 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11226 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11227 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11228 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11229 * user-regs.c (_initialize_user_regs): Add declaration.
11230 * utils.c (_initialize_utils): Add declaration.
11231 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11232 * valops.c (_initialize_valops): Add declaration.
11233 * valprint.c (_initialize_valprint): Add declaration.
11234 * value.c (_initialize_values): Add declaration.
11235 * varobj.c (_initialize_varobj): Add declaration.
11236 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11237 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11238 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11239 * windows-nat.c (_initialize_windows_nat): Add declaration.
11240 (_initialize_check_for_gdb_ini): Add declaration.
11241 (_initialize_loadable): Add declaration.
11242 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11243 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11244 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11245 * xcoffread.c (_initialize_xcoffread): Add declaration.
11246 * xml-support.c (_initialize_xml_support): Add declaration.
11247 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11248 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11249 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11250 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11251
11252 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11253
11254 * regformats/regdat.sh: Generate declaration for init function.
11255
11256 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11257
11258 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11259 up.
11260 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11261 close_one_inferior>: New methods.
11262 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11263 pass down target to find_inferior_pid.
11264 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11265 Pass down target to find_inferior_ptid.
11266 (gdbsim_target::create_inferior): Pass down target to
11267 add_thread_silent.
11268 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11269 target down to find_inferior_ptid and switch_to_thread.
11270 (gdbsim_target::close): Update to call close_one_inferior.
11271 (struct resume_data): Remove.
11272 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11273 directly, rather than through a void pointer.
11274 (gdbsim_target::resume): Update to call resume_one_inferior.
11275
11276 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11277
11278 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11279
11280 2020-01-12 Pedro Alves <palves@redhat.com>
11281
11282 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11283 directly for the current inferior instead of
11284 discard_all_inferiors.
11285 (discard_all_inferiors): Delete.
11286
11287 2020-01-11 Tom Tromey <tom@tromey.com>
11288
11289 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11290 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11291 deprecated_safe_get_selected_frame.
11292
11293 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11294
11295 * inferior.c (print_inferior): Switch inferior before printing it.
11296
11297 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11298 Pedro Alves <palves@redhat.com>
11299
11300 * progspace-and-thread.c (switch_to_program_space_and_thread):
11301 Assert there's an inferior for PSPACE. Use
11302 switch_to_inferior_no_thread to switch the inferior too.
11303 * progspace.c (program_space::~program_space): Call
11304 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11305 (program_space::free_all_objfiles): Don't call clear_symtab_users
11306 here.
11307 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11308
11309 2020-01-10 Pedro Alves <palves@redhat.com>
11310
11311 * NEWS: Mention multi-target debugging, "info connections", and
11312 "add-inferior -no-connection".
11313
11314 2020-01-10 Pedro Alves <palves@redhat.com>
11315
11316 * infrun.c: Include "target-connection.h".
11317 (check_multi_target_resumption): New.
11318 (proceed): Call it.
11319 * target-connection.c (make_target_connection_string): Make
11320 extern.
11321 * target-connection.h (make_target_connection_string): Declare.
11322
11323 2020-01-10 Pedro Alves <palves@redhat.com>
11324
11325 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11326 * inferior.c (uiout_field_connection): New function.
11327 (print_inferior): Add new "connection-id" column.
11328 (add_inferior_command): Show connection number/string of added
11329 inferior.
11330 * process-stratum-target.h
11331 (process_stratum_target::connection_string): New virtual method.
11332 (process_stratum_target::connection_number): New field.
11333 * remote.c (remote_target::connection_string): New override.
11334 * target-connection.c: New file.
11335 * target-connection.h: New file.
11336 * target.c (decref_target): Remove process_stratum targets from
11337 the connection list.
11338 (target_stack::push): Add process_stratum targets to the
11339 connection list.
11340
11341 2020-01-10 Pedro Alves <palves@redhat.com>
11342
11343 Revert:
11344 2016-04-12 Pedro Alves <palves@redhat.com>
11345 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11346 Remove references to name.
11347 * serial.h (struct serial) <name>: Delete.
11348
11349 2020-01-10 Pedro Alves <palves@redhat.com>
11350
11351 * gdbarch-selftests.c (register_to_value_test): Remove "target
11352 already pushed" check.
11353
11354 2020-01-10 Pedro Alves <palves@redhat.com>
11355 John Baldwin <jhb@FreeBSD.org>
11356
11357 * aarch64-linux-nat.c
11358 (aarch64_linux_nat_target::thread_architecture): Adjust.
11359 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11360 (task_command_1): Likewise.
11361 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11362 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11363 (aix_thread_target::store_registers)
11364 (aix_thread_target::thread_alive): Adjust.
11365 * amd64-fbsd-tdep.c: Include "inferior.h".
11366 (amd64fbsd_get_thread_local_address): Pass down target.
11367 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11368 thread's gdbarch instead of target_gdbarch.
11369 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11370 get_last_target_status.
11371 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11372 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11373 inferiors.
11374 (update_inserted_breakpoint_locations): Skip if inferiors with no
11375 execution.
11376 (update_global_location_list): When handling moribund locations,
11377 find representative inferior for location's pspace, and use thread
11378 count of its process_stratum target.
11379 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11380 * bsd-uthread.c (bsd_uthread_target::wait): Use
11381 as_process_stratum_target and adjust thread_change_ptid and
11382 add_thread calls.
11383 (bsd_uthread_target::update_thread_list): Use
11384 as_process_stratum_target and adjust find_thread_ptid,
11385 thread_change_ptid and add_thread calls.
11386 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11387 find_thread_ptid call.
11388 * corelow.c (add_to_thread_list): Adjust add_thread call.
11389 (core_target_open): Adjust add_thread_silent and thread_count
11390 calls.
11391 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11392 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11393 * event-top.c (async_disconnect): Pop targets from all inferiors.
11394 * exec.c (add_target_sections): Push exec target on all inferiors
11395 sharing the program space.
11396 (remove_target_sections): Remove the exec target from all
11397 inferiors sharing the program space.
11398 (exec_on_vfork): New.
11399 * exec.h (exec_on_vfork): Declare.
11400 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11401 Pass it down.
11402 (fbsd_nat_target::update_thread_list): Adjust.
11403 (fbsd_nat_target::resume): Adjust.
11404 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11405 down.
11406 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11407 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11408 get_thread_arch_regcache call.
11409 * fork-child.c (gdb_startup_inferior): Pass target down to
11410 startup_inferior and set_executing.
11411 * gdbthread.h (struct process_stratum_target): Forward declare.
11412 (add_thread, add_thread_silent, add_thread_with_info)
11413 (in_thread_list): Add process_stratum_target parameter.
11414 (find_thread_ptid(inferior*, ptid_t)): New overload.
11415 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11416 parameter.
11417 (all_threads()): Delete overload.
11418 (all_threads, all_non_exited_threads): Add process_stratum_target
11419 parameter.
11420 (all_threads_safe): Use brace initialization.
11421 (thread_count): Add process_stratum_target parameter.
11422 (set_resumed, set_running, set_stop_requested, set_executing)
11423 (threads_are_executing, finish_thread_state): Add
11424 process_stratum_target parameter.
11425 (switch_to_thread): Use is_current_thread.
11426 * i386-fbsd-tdep.c: Include "inferior.h".
11427 (i386fbsd_get_thread_local_address): Pass down target.
11428 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11429 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11430 have_inferiors check.
11431 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11432 (inf_ptrace_target::attach): Adjust.
11433 * infcall.c (run_inferior_call): Adjust.
11434 * infcmd.c (run_command_1): Pass target to
11435 scoped_finish_thread_state.
11436 (proceed_thread_callback): Skip inferiors with no execution.
11437 (continue_command): Rename 'all_threads' local to avoid hiding
11438 'all_threads' function. Adjust get_last_target_status call.
11439 (prepare_one_step): Adjust set_running call.
11440 (signal_command): Use user_visible_resume_target. Compare thread
11441 pointers instead of inferior_ptid.
11442 (info_program_command): Adjust to pass down target.
11443 (attach_command): Mark target's 'thread_executing' flag.
11444 (stop_current_target_threads_ns): New, factored out from ...
11445 (interrupt_target_1): ... this. Switch inferior before making
11446 target calls.
11447 * inferior-iter.h
11448 (struct all_inferiors_iterator, struct all_inferiors_range)
11449 (struct all_inferiors_safe_range)
11450 (struct all_non_exited_inferiors_range): Filter on
11451 process_stratum_target too. Remove explicit.
11452 * inferior.c (inferior::inferior): Push dummy target on target
11453 stack.
11454 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11455 Add process_stratum_target parameter, and pass it down.
11456 (have_live_inferiors): Adjust.
11457 (switch_to_inferior_and_push_target): New.
11458 (add_inferior_command, clone_inferior_command): Handle
11459 "-no-connection" parameter. Use
11460 switch_to_inferior_and_push_target.
11461 (_initialize_inferior): Mention "-no-connection" option in
11462 the help of "add-inferior" and "clone-inferior" commands.
11463 * inferior.h: Include "process-stratum-target.h".
11464 (interrupt_target_1): Use bool.
11465 (struct inferior) <push_target, unpush_target, target_is_pushed,
11466 find_target_beneath, top_target, process_target, target_at,
11467 m_stack>: New.
11468 (discard_all_inferiors): Delete.
11469 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11470 (all_inferiors, all_non_exited_inferiors): Add
11471 process_stratum_target parameter.
11472 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11473 (target_last_proc_target): New global.
11474 (follow_fork_inferior): Push target on new inferior. Pass target
11475 to add_thread_silent. Call exec_on_vfork. Handle target's
11476 reference count.
11477 (follow_fork): Adjust get_last_target_status call. Also consider
11478 target.
11479 (follow_exec): Push target on new inferior.
11480 (struct execution_control_state) <target>: New field.
11481 (user_visible_resume_target): New.
11482 (do_target_resume): Call target_async.
11483 (resume_1): Set target's threads_executing flag. Consider resume
11484 target.
11485 (commit_resume_all_targets): New.
11486 (proceed): Also consider resume target. Skip threads of inferiors
11487 with no execution. Commit resumtion in all targets.
11488 (start_remote): Pass current inferior to wait_for_inferior.
11489 (infrun_thread_stop_requested): Consider target as well. Pass
11490 thread_info pointer to clear_inline_frame_state instead of ptid.
11491 (infrun_thread_thread_exit): Consider target as well.
11492 (random_pending_event_thread): New inferior parameter. Use it.
11493 (do_target_wait): Rename to ...
11494 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11495 down.
11496 (threads_are_resumed_pending_p, do_target_wait): New.
11497 (prepare_for_detach): Adjust calls.
11498 (wait_for_inferior): New inferior parameter. Handle it. Use
11499 do_target_wait_1 instead of do_target_wait.
11500 (fetch_inferior_event): Adjust. Switch to representative
11501 inferior. Pass target down.
11502 (set_last_target_status): Add process_stratum_target parameter.
11503 Save target in global.
11504 (get_last_target_status): Add process_stratum_target parameter and
11505 handle it.
11506 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11507 (context_switch): Check inferior_ptid == null_ptid before calling
11508 inferior_thread().
11509 (get_inferior_stop_soon): Pass down target.
11510 (wait_one): Rename to ...
11511 (poll_one_curr_target): ... this.
11512 (struct wait_one_event): New.
11513 (wait_one): New.
11514 (stop_all_threads): Adjust.
11515 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11516 event's target.
11517 (switch_back_to_stepped_thread): Also consider target.
11518 (print_stop_event): Update.
11519 (normal_stop): Update. Also consider the resume target.
11520 * infrun.h (wait_for_inferior): Remove declaration.
11521 (user_visible_resume_target): New declaration.
11522 (get_last_target_status, set_last_target_status): New
11523 process_stratum_target parameter.
11524 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11525 process_stratum_target parameter, and use it.
11526 (clear_inline_frame_state (thread_info*)): New.
11527 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11528 process_stratum_target parameter.
11529 (clear_inline_frame_state (thread_info*)): Declare.
11530 * linux-fork.c (delete_checkpoint_command): Pass target down to
11531 find_thread_ptid.
11532 (checkpoint_command): Adjust.
11533 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11534 instead of just tweaking inferior_ptid.
11535 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11536 (exit_lwp): Pass target down to find_thread_ptid.
11537 (attach_proc_task_lwp_callback): Pass target down to
11538 add_thread/set_running/set_executing.
11539 (linux_nat_target::attach): Pass target down to
11540 thread_change_ptid.
11541 (get_detach_signal): Pass target down to find_thread_ptid.
11542 Consider last target status's target.
11543 (linux_resume_one_lwp_throw, resume_lwp)
11544 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11545 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11546 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11547 (linux_nat_target::async_wait_fd): New.
11548 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11549 target down.
11550 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11551 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11552 * linux-thread-db.c (struct thread_db_info::process_target): New
11553 field.
11554 (add_thread_db_info): Save target.
11555 (get_thread_db_info): New process_stratum_target parameter. Also
11556 match target.
11557 (delete_thread_db_info): New process_stratum_target parameter.
11558 Also match target.
11559 (thread_from_lwp): Adjust to pass down target.
11560 (thread_db_notice_clone): Pass down target.
11561 (check_thread_db_callback): Pass down target.
11562 (try_thread_db_load_1): Always push the thread_db target.
11563 (try_thread_db_load, record_thread): Pass target down.
11564 (thread_db_target::detach): Pass target down. Always unpush the
11565 thread_db target.
11566 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11567 target down. Always unpush the thread_db target.
11568 (find_new_threads_callback, thread_db_find_new_threads_2)
11569 (thread_db_target::update_thread_list): Pass target down.
11570 (thread_db_target::pid_to_str): Pass current inferior down.
11571 (thread_db_target::get_thread_local_address): Pass target down.
11572 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11573 target down.
11574 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11575 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11576 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11577 (procfs_init_inferior): Rename to ...
11578 (procfs_target::procfs_init_inferior): ... this and adjust.
11579 (procfs_target::create_inferior, procfs_notice_thread)
11580 (procfs_do_thread_registers): Adjust.
11581 * ppc-fbsd-tdep.c: Include "inferior.h".
11582 (ppcfbsd_get_thread_local_address): Pass down target.
11583 * proc-service.c (ps_xfer_memory): Switch current inferior and
11584 program space as well.
11585 (get_ps_regcache): Pass target down.
11586 * process-stratum-target.c
11587 (process_stratum_target::thread_address_space)
11588 (process_stratum_target::thread_architecture): Pass target down.
11589 * process-stratum-target.h
11590 (process_stratum_target::threads_executing): New field.
11591 (as_process_stratum_target): New.
11592 * ravenscar-thread.c
11593 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11594 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11595 down.
11596 * record-btrace.c (record_btrace_target::info_record): Adjust.
11597 (record_btrace_target::record_method)
11598 (record_btrace_target::record_is_replaying)
11599 (record_btrace_target::fetch_registers)
11600 (get_thread_current_frame_id, record_btrace_target::resume)
11601 (record_btrace_target::wait, record_btrace_target::stop): Pass
11602 target down.
11603 * record-full.c (record_full_wait_1): Switch to event thread.
11604 Pass target down.
11605 * regcache.c (regcache::regcache)
11606 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11607 process_stratum_target parameter and handle it.
11608 (current_thread_target): New global.
11609 (get_thread_regcache): Add process_stratum_target parameter and
11610 handle it. Switch inferior before calling target method.
11611 (get_thread_regcache): Pass target down.
11612 (get_thread_regcache_for_ptid): Pass target down.
11613 (registers_changed_ptid): Add process_stratum_target parameter and
11614 handle it.
11615 (registers_changed_thread, registers_changed): Pass target down.
11616 (test_get_thread_arch_aspace_regcache): New.
11617 (current_regcache_test): Define a couple local test_target_ops
11618 instances and use them for testing.
11619 (readwrite_regcache): Pass process_stratum_target parameter.
11620 (cooked_read_test, cooked_write_test): Pass mock_target down.
11621 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11622 (get_thread_arch_aspace_regcache): Add process_stratum_target
11623 parameter.
11624 (regcache::target): New method.
11625 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11626 (regcache::registers_changed_ptid): Add process_stratum_target
11627 parameter.
11628 (regcache::m_target): New field.
11629 (registers_changed_ptid): Add process_stratum_target parameter.
11630 * remote.c (remote_state::supports_vCont_probed): New field.
11631 (remote_target::async_wait_fd): New method.
11632 (remote_unpush_and_throw): Add remote_target parameter.
11633 (get_current_remote_target): Adjust.
11634 (remote_target::remote_add_inferior): Push target.
11635 (remote_target::remote_add_thread)
11636 (remote_target::remote_notice_new_inferior)
11637 (get_remote_thread_info): Pass target down.
11638 (remote_target::update_thread_list): Skip threads of inferiors
11639 bound to other targets. (remote_target::close): Don't discard
11640 inferiors. (remote_target::add_current_inferior_and_thread)
11641 (remote_target::process_initial_stop_replies)
11642 (remote_target::start_remote)
11643 (remote_target::remote_serial_quit_handler): Pass down target.
11644 (remote_target::remote_unpush_target): New remote_target
11645 parameter. Unpush the target from all inferiors.
11646 (remote_target::remote_unpush_and_throw): New remote_target
11647 parameter. Pass it down.
11648 (remote_target::open_1): Check whether the current inferior has
11649 execution instead of checking whether any inferior is live. Pass
11650 target down.
11651 (remote_target::remote_detach_1): Pass down target. Use
11652 remote_unpush_target.
11653 (extended_remote_target::attach): Pass down target.
11654 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11655 (remote_target::append_resumption): Pass down target.
11656 (remote_target::append_pending_thread_resumptions)
11657 (remote_target::remote_resume_with_hc, remote_target::resume)
11658 (remote_target::commit_resume): Pass down target.
11659 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11660 (remote_target::interrupt_query)
11661 (remote_target::remove_new_fork_children)
11662 (remote_target::check_pending_events_prevent_wildcard_vcont)
11663 (remote_target::remote_parse_stop_reply)
11664 (remote_target::process_stop_reply): Pass down target.
11665 (first_remote_resumed_thread): New remote_target parameter. Pass
11666 it down.
11667 (remote_target::wait_as): Pass down target.
11668 (unpush_and_perror): New remote_target parameter. Pass it down.
11669 (remote_target::readchar, remote_target::remote_serial_write)
11670 (remote_target::getpkt_or_notif_sane_1)
11671 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11672 down target.
11673 (remote_target::mourn_inferior): Pass down target. Use
11674 remote_unpush_target.
11675 (remote_target::core_of_thread)
11676 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11677 (remote_target::pid_to_exec_file)
11678 (remote_target::thread_handle_to_thread_info): Pass down target.
11679 (remote_target::async_wait_fd): New.
11680 * riscv-fbsd-tdep.c: Include "inferior.h".
11681 (riscv_fbsd_get_thread_local_address): Pass down target.
11682 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11683 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11684 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11685 Adjust.
11686 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11687 * solib-svr4.c (enable_break): Pass down target.
11688 * spu-multiarch.c (parse_spufs_run): Pass down target.
11689 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11690 * target-delegates.c: Regenerate.
11691 * target.c (g_target_stack): Delete.
11692 (current_top_target): Return the current inferior's top target.
11693 (target_has_execution_1): Refer to the passed-in inferior's top
11694 target.
11695 (target_supports_terminal_ours): Check whether the initial
11696 inferior was already created.
11697 (decref_target): New.
11698 (target_stack::push): Incref/decref the target.
11699 (push_target, push_target, unpush_target): Adjust.
11700 (target_stack::unpush): Defref target.
11701 (target_is_pushed): Return bool. Adjust to refer to the current
11702 inferior's target stack.
11703 (dispose_inferior): Delete, and inline parts ...
11704 (target_preopen): ... here. Only dispose of the current inferior.
11705 (target_detach): Hold strong target reference while detaching.
11706 Pass target down.
11707 (target_thread_name): Add assertion.
11708 (target_resume): Pass down target.
11709 (target_ops::beneath, find_target_at): Adjust to refer to the
11710 current inferior's target stack.
11711 (get_dummy_target): New.
11712 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11713 has a thread running.
11714 (initialize_targets): Rename to ...
11715 (_initialize_target): ... this.
11716 * target.h: Include "gdbsupport/refcounted-object.h".
11717 (struct target_ops): Inherit refcounted_object.
11718 (target_ops::shortname, target_ops::longname): Make const.
11719 (target_ops::async_wait_fd): New method.
11720 (decref_target): Declare.
11721 (struct target_ops_ref_policy): New.
11722 (target_ops_ref): New typedef.
11723 (get_dummy_target): Declare function.
11724 (target_is_pushed): Return bool.
11725 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11726 (all_matching_threads_iterator::all_matching_threads_iterator):
11727 Handle filter target.
11728 * thread-iter.h (struct all_matching_threads_iterator, struct
11729 all_matching_threads_range, class all_non_exited_threads_range):
11730 Filter by target too. Remove explicit.
11731 * thread.c (threads_executing): Delete.
11732 (inferior_thread): Pass down current inferior.
11733 (clear_thread_inferior_resources): Pass down thread pointer
11734 instead of ptid_t.
11735 (add_thread_silent, add_thread_with_info, add_thread): Add
11736 process_stratum_target parameter. Use it for thread and inferior
11737 searches.
11738 (is_current_thread): New.
11739 (thread_info::deletable): Use it.
11740 (find_thread_ptid, thread_count, in_thread_list)
11741 (thread_change_ptid, set_resumed, set_running): New
11742 process_stratum_target parameter. Pass it down.
11743 (set_executing): New process_stratum_target parameter. Pass it
11744 down. Adjust reference to 'threads_executing'.
11745 (threads_are_executing): New process_stratum_target parameter.
11746 Adjust reference to 'threads_executing'.
11747 (set_stop_requested, finish_thread_state): New
11748 process_stratum_target parameter. Pass it down.
11749 (switch_to_thread): Also match inferior.
11750 (switch_to_thread): New process_stratum_target parameter. Pass it
11751 down.
11752 (update_threads_executing): Reimplement.
11753 * top.c (quit_force): Pop targets from all inferior.
11754 (gdb_init): Don't call initialize_targets.
11755 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11756 Declare.
11757 (windows_add_thread, windows_delete_thread): Adjust.
11758 (get_windows_debug_event): Rename to ...
11759 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11760 * tracefile-tfile.c (tfile_target_open): Pass down target.
11761 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11762 Forward declare.
11763 (switch_to_thread): Add process_stratum_target parameter.
11764 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11765 parameter. Use it.
11766 (mi_on_resume): Pass target down.
11767 * nat/fork-inferior.c (startup_inferior): Add
11768 process_stratum_target parameter. Pass it down.
11769 * nat/fork-inferior.h (startup_inferior): Add
11770 process_stratum_target parameter.
11771 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11772
11773 2020-01-10 Pedro Alves <palves@redhat.com>
11774
11775 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11776 directly. Instead find the first thread in the thread list and
11777 use switch_to_thread.
11778
11779 2020-01-10 Pedro Alves <palves@redhat.com>
11780
11781 * remote.c (remote_target::remote_add_inferior): Don't bind a
11782 process to the current inferior if the current inferior is already
11783 bound to a process.
11784
11785 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11786 Pedro Alves <palves@redhat.com>
11787
11788 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11789 If no process is specified, return null_ptid instead of
11790 inferior_ptid.
11791 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11792 TARGET_WAITKIND_SIGNALLED with no pid.
11793
11794 2020-01-10 Pedro Alves <palves@redhat.com>
11795
11796 * remote.c (first_remote_resumed_thread): New.
11797 (remote_target::wait_as): Use it as default event_ptid instead of
11798 inferior_ptid.
11799
11800 2020-01-10 Pedro Alves <palves@redhat.com>
11801
11802 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11803
11804 2020-01-10 Pedro Alves <palves@redhat.com>
11805
11806 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11807 not -1.
11808
11809 2020-01-10 Pedro Alves <palves@redhat.com>
11810
11811 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11812 ptid to get_last_target_status.
11813 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11814 ptid to get_last_target_status.
11815 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11816 get_last_target_status.
11817 (info_program_command): Don't pass a target_waitstatus to
11818 get_last_target_status.
11819 * infrun.c (init_wait_for_inferior): Use
11820 nullify_last_target_wait_ptid.
11821 (get_last_target_status): Handle nullptr arguments.
11822 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11823 (print_stop_event): Don't pass a ptid to get_last_target_status.
11824 (normal_stop): Don't pass a ptid to get_last_target_status.
11825 * infrun.h (get_last_target_status, set_last_target_status): Move
11826 comments here and update.
11827 (nullify_last_target_wait_ptid): Declare.
11828 * linux-fork.c (fork_load_infrun_state): Remove local extern
11829 declaration of nullify_last_target_wait_ptid.
11830 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11831 to get_last_target_status.
11832
11833 2020-01-10 Pedro Alves <palves@redhat.com>
11834
11835 * gdbthread.h (scoped_restore_current_thread)
11836 <dont_restore, restore, m_dont_restore>: Declare.
11837 * thread.c (thread_alive): Add assertion. Return bool.
11838 (switch_to_thread_if_alive): New.
11839 (prune_threads): Switch inferior/thread.
11840 (print_thread_info_1): Switch thread before calling target methods.
11841 (scoped_restore_current_thread::restore): New, factored out from
11842 ...
11843 (scoped_restore_current_thread::~scoped_restore_current_thread):
11844 ... this.
11845 (scoped_restore_current_thread::scoped_restore_current_thread):
11846 Add assertion.
11847 (thread_apply_all_command, thread_select): Use
11848 switch_to_thread_if_alive.
11849 * infrun.c (proceed, restart_threads, handle_signal_stop)
11850 (switch_back_to_stepped_thread): Switch current thread before
11851 calling target methods.
11852
11853 2020-01-10 Pedro Alves <palves@redhat.com>
11854
11855 * inferior.c (switch_to_inferior_no_thread): New function,
11856 factored out from ...
11857 (inferior_command): ... here.
11858 * inferior.h (switch_to_inferior_no_thread): Declare.
11859 * mi/mi-main.c (run_one_inferior): Use
11860 switch_to_inferior_no_thread.
11861
11862 2020-01-10 Pedro Alves <palves@redhat.com>
11863
11864 * infcmd.c (kill_command): Remove dead code.
11865
11866 2020-01-10 Pedro Alves <palves@redhat.com>
11867
11868 * remote.c (remote_target::mourn_inferior): No longer check
11869 whether the target is running.
11870
11871 2020-01-10 Pedro Alves <palves@redhat.com>
11872
11873 * corelow.c (core_target::has_execution): Change parameter type to
11874 inferior pointer.
11875 * inferior.c (number_of_live_inferiors): Use
11876 inferior::has_execution instead of target_has_execution_1.
11877 * inferior.h (inferior::has_execution): New.
11878 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11879 inferior::has_execution instead of target_has_execution_1.
11880 * process-stratum-target.c
11881 (process_stratum_target::has_execution): Change parameter type to
11882 inferior pointer. Check the inferior's PID instead of
11883 inferior_ptid.
11884 * process-stratum-target.h
11885 (process_stratum_target::has_execution): Change parameter type to
11886 inferior pointer.
11887 * record-full.c (record_full_core_target::has_execution): Change
11888 parameter type to inferior pointer.
11889 * target.c (target_has_execution_1): Change parameter type to
11890 inferior pointer.
11891 (target_has_execution_current): Adjust.
11892 * target.h (target_ops::has_execution): Change parameter type to
11893 inferior pointer.
11894 (target_has_execution_1): Change parameter type to inferior
11895 pointer. Change return type to bool.
11896 * tracefile.h (tracefile_target::has_execution): Change parameter
11897 type to inferior pointer.
11898
11899 2020-01-10 Pedro Alves <palves@redhat.com>
11900
11901 * exceptions.c (print_flush): Remove current_top_target() check.
11902
11903 2020-01-10 Pedro Alves <palves@redhat.com>
11904
11905 * remote.c (show_remote_exec_file): Show the current inferior's
11906 exec-file instead of the command variable's value.
11907
11908 2020-01-10 Pedro Alves <palves@redhat.com>
11909
11910 * record-full.c (record_full_resume_ptid): New global.
11911 (record_full_target::resume): Set it.
11912 (record_full_wait_1): Use record_full_resume_ptid instead of
11913 inferior_ptid.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916
11917 * gdbthread.h (scoped_restore_current_thread)
11918 <dont_restore, restore, m_dont_restore>: Declare.
11919 * thread.c (thread_alive): Add assertion. Return bool.
11920 (switch_to_thread_if_alive): New.
11921 (prune_threads): Switch inferior/thread.
11922 (print_thread_info_1): Switch thread before calling target methods.
11923 (scoped_restore_current_thread::restore): New, factored out from
11924 ...
11925 (scoped_restore_current_thread::~scoped_restore_current_thread):
11926 ... this.
11927 (scoped_restore_current_thread::scoped_restore_current_thread):
11928 Add assertion.
11929 (thread_apply_all_command, thread_select): Use
11930 switch_to_thread_if_alive.
11931
11932 2020-01-10 George Barrett <bob@bob131.so>
11933
11934 * stap-probe.c (stap_modify_semaphore): Don't check for null
11935 semaphores.
11936 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11937 for null semaphores.
11938
11939 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11940
11941 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11942 all source windows, and maintain horizontal scroll status while
11943 doing so.
11944
11945 2020-01-09 Tom Tromey <tom@tromey.com>
11946
11947 PR tui/18932:
11948 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11949 update_source_window, not print_source_lines.
11950
11951 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11952
11953 * tui/tui.c (tui_enable): Register tui hooks after calling
11954 tui_display_main.
11955
11956 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11957
11958 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11959
11960 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11961
11962 * thread.c (print_thread_info_1): Fix indentation.
11963
11964 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11965
11966 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11967 unique_xmalloc_ptr outside the if to always free the demangled name.
11968
11969 2020-01-08 Tom Tromey <tromey@adacore.com>
11970
11971 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11972 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11973 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11974 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11975 Remove.
11976 (section_offsets): New typedef.
11977 * symtab.c (fixup_section, get_msymbol_address): Update.
11978 * symmisc.c (dump_msymbols): Update.
11979 * symfile.h (relative_addr_info_to_section_offsets)
11980 (symfile_map_offsets_to_segments): Update.
11981 * symfile.c (build_section_addr_info_from_objfile)
11982 (init_objfile_sect_indices): Update.
11983 (struct place_section_arg): Change type of "offsets".
11984 (place_section): Update.
11985 (relative_addr_info_to_section_offsets): Change type of
11986 "section_offsets". Remove "num_sections" parameter.
11987 (default_symfile_offsets, syms_from_objfile_1)
11988 (set_objfile_default_section_offset): Update.
11989 (reread_symbols): No need to preserve section offsets by hand.
11990 (symfile_map_offsets_to_segments): Change type of "offsets".
11991 * stap-probe.c (relocate_address): Update.
11992 * stabsread.h (process_one_symbol): Update.
11993 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11994 (solib_target_relocate_section_addresses): Update.
11995 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11996 Update.
11997 * solib-frv.c (frv_relocate_main_executable): Update.
11998 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11999 * solib-aix.c (solib_aix_get_section_offsets): Change return
12000 type.
12001 (solib_aix_solib_create_inferior_hook): Update.
12002 * remote.c (remote_target::get_offsets): Update.
12003 * psymtab.c (find_pc_sect_psymtab): Update.
12004 * psympriv.h (struct partial_symbol) <address, text_low,
12005 text_high>: Update.
12006 * objfiles.h (obj_section_offset): Update.
12007 (struct objfile) <section_offsets>: Change type.
12008 <num_sections>: Remove.
12009 (objfile_relocate): Update.
12010 * objfiles.c (entry_point_address_query): Update
12011 (relocate_one_symbol): Change type of "section_offsets".
12012 (objfile_relocate1, objfile_relocate1): Change type of
12013 "new_offsets".
12014 (objfile_rebase1): Update.
12015 * mipsread.c (mipscoff_symfile_read): Update.
12016 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12017 parameter.
12018 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12019 (parse_external, psymtab_to_symtab_1): Update.
12020 * machoread.c (macho_symfile_offsets): Update.
12021 * ia64-tdep.c (ia64_find_unwind_table): Update.
12022 * hppa-tdep.c (read_unwind_info): Update.
12023 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12024 * dwarf2read.c (create_addrmap_from_index)
12025 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12026 (process_psymtab_comp_unit_reader, add_partial_symbol)
12027 (add_partial_subprogram, process_full_comp_unit)
12028 (read_file_scope, read_func_scope, read_lexical_block_scope)
12029 (read_call_site_scope, dwarf2_rnglists_process)
12030 (dwarf2_ranges_process, dwarf2_ranges_read)
12031 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12032 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12033 Update.
12034 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12035 Update.
12036 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12037 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12038 (process_one_symbol): Change type of "section_offsets".
12039 * ctfread.c (get_objfile_text_range): Update.
12040 * coffread.c (coff_symtab_read, enter_linenos)
12041 (process_coff_symbol): Update.
12042 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12043 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12044
12045 2020-01-08 Tom Tromey <tromey@adacore.com>
12046
12047 * dwarf2read.c (parse_macro_definition): Use std::string.
12048 (parse_macro_definition): Likewise.
12049
12050 2020-01-08 Tom Tromey <tromey@adacore.com>
12051
12052 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12053 (ATTR_ALLOC_CHUNK): Remove.
12054
12055 2020-01-08 Tom Tromey <tromey@adacore.com>
12056
12057 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12058
12059 2020-01-08 Tom Tromey <tromey@adacore.com>
12060
12061 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12062 (dwarf2_compute_name, open_dwo_file): Likewise.
12063 (process_enumeration_scope): Use std::vector.
12064 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12065 (partial_die_info::fixup, dwarf2_start_subfile)
12066 (guess_full_die_structure_name, dwarf2_name): Likewise.
12067 (determine_prefix): Update.
12068 (guess_full_die_structure_name): Make return type const.
12069 (partial_die_full_name): Return unique_xmalloc_ptr.
12070 (DW_FIELD_ALLOC_CHUNK): Remove.
12071
12072 2020-01-07 Tom Tromey <tromey@adacore.com>
12073
12074 PR build/24937:
12075 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12076
12077 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12078
12079 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12080
12081 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12082
12083 * stack.c (print_frame_info): Move disassemble_next_line code
12084 inside source_print block.
12085
12086 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12087
12088 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12089 gdb/signals.h, as we are now using native signal symbols.
12090
12091 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12092
12093 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12094 overflow by an early check of content vs threshold.
12095 * tui/tui-source.c (tui_source_window::line_is_displayed):
12096 Likewise.
12097
12098 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12099
12100 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12101
12102 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12103
12104 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12105 export table if no section contains it's RVA.
12106
12107 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12108
12109 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12110
12111 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12112
12113 * source.c (print_source_lines_base): Set last_line_listed.
12114
12115 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12116
12117 * tui/tui-disasm.c: Remove trailing spaces.
12118
12119 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12120 Pedro Alves <palves@redhat.com>
12121
12122 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12123 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12124 (windows_gdb_signal_to_target): New function, uses the above
12125 enumeration to convert GDB internal signal codes to equivalent
12126 Windows codes.
12127 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12128 * windows-nat.c: Include "gdb_wait.h".
12129 (get_windows_debug_event): Extract the fatal exception from the
12130 exit status and convert to the equivalent Posix signal number.
12131 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12132 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12133 * gdbsupport/gdb_wait.c: New file, implements
12134 windows_status_to_termsig.
12135 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12136 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12137
12138 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12139
12140 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12141 show_layout.
12142
12143 2020-01-05 Luis Machado <luis.machado@linaro.org>
12144
12145 * aarch64-linux-nat.c
12146 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12147 and bfd_mach_aarch64.
12148
12149 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12150
12151 * ui-file.c (stdio_file::can_emit_style_escape)
12152 (tee_file::can_emit_style_escape): Ensure style is used also on
12153 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12154 to gdb_stdout.
12155 * main.c (set_gdb_data_directory): Use file style to output the
12156 warning that the given pathname is not a directory.
12157 * top.c (show_history_filename, gdb_safe_append_history)
12158 (show_gdb_datadir): Use file style.
12159
12160 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12161
12162 * solib-target.c (struct lm_info_target):
12163 Change offsets to be a unique_xmalloc_ptr.
12164 (solib_target_relocate_section_addresses): Update.
12165
12166 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12167
12168 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12169
12170 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12171
12172 * MAINTAINERS (Write After Approval): Add myself.
12173
12174 2020-01-02 Luis Machado <luis.machado@linaro.org>
12175
12176 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12177 Cell BE architecture.
12178 * target.h (struct target_ops) <thread_architecture>: Likewise.
12179
12180 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12181
12182 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12183
12184 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12185
12186 * MAINTAINERS (Write After Approval): Add myself.
12187
12188 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12189
12190 * gdbarch.sh: Update copyright year range of generated files.
12191
12192 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12193
12194 Update copyright year range in all GDB files.
12195
12196 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12197
12198 * copyright.py: Convert to Python 3.
12199
12200 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12201
12202 * copyright.py: Adapt after move of gnulib directory from gdb
12203 directory to toplevel directory.
12204
12205 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12206
12207 * copyright.py (main): Exit if run from the wrong directory.
12208
12209 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12210
12211 * top.c (print_gdb_version): Change copyright year to 2020.
12212
12213 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12214
12215 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12216
12217 For older changes see ChangeLog-2019.
12218 \f
12219 Local Variables:
12220 mode: change-log
12221 left-margin: 8
12222 fill-column: 74
12223 version-control: never
12224 coding: utf-8
12225 End: