Fix MI crash with Ada string access
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-17 Tom Tromey <tromey@adacore.com>
2
3 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4 ada_get_decoded_value returns NULL.
5
6 2020-08-17 Tom Tromey <tromey@adacore.com>
7
8 * python/py-inferior.c (infpy_search_memory): Use
9 gdb_py_object_from_ulongest.
10 * python/py-infevents.c (create_inferior_call_event_object)
11 (create_memory_changed_event_object): Use
12 gdb_py_object_from_ulongest.
13 * python/py-linetable.c (ltpy_entry_get_pc): Use
14 gdb_py_object_from_ulongest.
15
16 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * loc.c (class symbol_needs_eval_context): Fix indentation.
19
20 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
23 bool.
24
25 2020-08-17 Tom de Vries <tdevries@suse.de>
26
27 PR gdb/26393
28 * gdbtypes.c (dump_dynamic_prop): New function.
29 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
30
31 2020-08-15 Tom de Vries <tdevries@suse.de>
32
33 PR backtrace/26390
34 * stack.c (print_frame_args): Temporarily set the selected
35 frame to FRAME while printing the frame's arguments.
36
37 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
38
39 PR breakpoints/26385
40 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
41 Always clear watchpoint with PTRACE_SET_DEBUGREG.
42
43 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
44
45 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
46 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
47 and >= to check return value instead of == -1 and != -1.
48
49 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * utils.h (class gdb_argv) <as_array_view>: New method.
52 * utils.c (gdb_argv_as_array_view_test): New.
53 (_initialize_utils): Register selftest.
54 * maint.c (maintenance_selftest): Use the new method.
55
56 2020-08-13 Kamil Rytarowski <n54@gmx.com>
57
58 * target.h (supports_dumpcore, dumpcore): New
59 function declarations.
60 * target.c (supports_dumpcore, dumpcore): New
61 functions.
62 * target-delegates.c: Rebuild.
63 * gcore.c (gcore_command): Use target_supports_dumpcore ()
64 and target_dumpcore ().
65
66 2020-08-13 Aaron Merey <amerey@redhat.com>
67
68 * debuginfod-support.c: Replace global variables with user_data.
69
70 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * maint.c (maintenance_selftest): Split args and pass array_view
73 to run_tests.
74
75 2020-08-12 Luis Machado <luis.machado@linaro.org>
76
77 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
78 type's length.
79 Use %s and pulongest to print the length.
80
81 2020-08-12 Pedro Alves <palves@redhat.com>
82
83 * NEWS: Move "Multi-target debugging support" item to the
84 "Changes since GDB 9" section.
85
86 2020-08-12 Pedro Alves <palves@redhat.com>
87
88 PR gdb/26336
89 * progspace.c (program_space::remove_objfile): Invalidate the
90 frame cache.
91
92 2020-08-11 Tom de Vries <tdevries@suse.de>
93
94 * MAINTAINERS: Mark ms1 as deleted.
95
96 2020-08-10 Luis Machado <luis.machado@linaro.org>
97
98 PR gdb/26310
99
100 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
101 act accordingly.
102 (aarch64_analyze_prologue_test): Add more unit tests to exercise
103 movz/str/stur/stp skipping behavior.
104
105 2020-08-10 Luis Machado <luis.machado@linaro.org>
106
107 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
108 struct user_sve_header instead of struct sve_context.
109
110 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * read.h (dwarf2_fetch_die_loc_sect_off,
113 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
114 `void *` parameter with function_view.
115 * read.c (dwarf2_fetch_die_loc_sect_off,
116 dwarf2_fetch_die_loc_cu_off): Likewise.
117 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
118 (per_cu_dwarf_call): Adjust.
119 (get_frame_address_in_block_wrapper): Remove.
120 (indirect_synthetic_pointer): Adjust.
121 (get_ax_pc): Remove.
122 (dwarf2_compile_expr_to_ax): Adjust.
123
124 2020-08-08 Tom de Vries <tdevries@suse.de>
125
126 PR build/26344
127 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
128 constructor.
129 * regcache.c (get_thread_arch_aspace_regcache): Same.
130
131 2020-08-07 Tom Tromey <tromey@adacore.com>
132
133 * ravenscar-thread.c
134 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
135 New method.
136 (ravenscar_thread_target::wait): Check
137 runtime_initialized.
138 (ravenscar_thread_target::prepare_to_store)
139 (ravenscar_thread_target::stopped_by_sw_breakpoint)
140 (ravenscar_thread_target::stopped_by_hw_breakpoint)
141 (ravenscar_thread_target::stopped_by_watchpoint)
142 (ravenscar_thread_target::stopped_data_address)
143 (ravenscar_thread_target::core_of_thread): Use
144 scoped_restore_current_thread and
145 set_base_thread_from_ravenscar_task.
146
147 2020-08-07 Tom Tromey <tromey@adacore.com>
148
149 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
150
151 2020-08-07 Tom Tromey <tromey@adacore.com>
152
153 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
154 update_inferior_ptid before update_thread_list.
155 (temporarily_change_regcache_ptid): New class.
156 (ravenscar_thread_target::fetch_registers)
157 (ravenscar_thread_target::store_registers)
158 (ravenscar_thread_target::prepare_to_store): Use base thread when
159 forwarding operation.
160
161 2020-08-07 Tom Tromey <tromey@adacore.com>
162
163 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
164 "is_pid" case.
165
166 2020-08-07 Tom Tromey <tromey@adacore.com>
167
168 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
169 New methods.
170 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
171 first.
172 (ravenscar_thread_target::add_thread): Rename from
173 ravenscar_add_thread.
174 (ravenscar_thread_target::update_thread_list): Use a lambda.
175 (ravenscar_thread_target::xfer_partial): New method.
176
177 2020-08-07 Tom Tromey <tromey@adacore.com>
178
179 * ada-lang.h (ada_task_list_iterator_ftype): Now a
180 gdb::function_view.
181 (iterate_over_live_ada_tasks): Change type of argument.
182 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
183 of argument.
184
185 2020-08-07 Tom Tromey <tromey@adacore.com>
186
187 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
188 Remove.
189 (ravenscar_thread_target::extra_thread_info): Remove.
190 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
191 defer to target beneath for non-Ravenscar threads.
192
193 2020-08-07 Tom Tromey <tromey@adacore.com>
194
195 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
196 get_base_thread_from_ravenscar_task>: Now methods.
197 <m_cpu_map>: New member.
198 (ravenscar_thread_target::get_thread_base_cpu): Rename from
199 ravenscar_get_thread_base_cpu. Check m_cpu_map.
200 (ravenscar_thread_target::task_is_currently_active): Update.
201 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
202 Now a method.
203 (ravenscar_thread_target::add_active_thread): Put initial thread
204 into the m_cpu_map.
205
206 2020-08-07 Tom Tromey <tromey@adacore.com>
207
208 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
209 event_ptid.
210
211 2020-08-07 Tom Tromey <tromey@adacore.com>
212
213 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
214 runtime_initialized.
215
216 2020-08-07 Tom Tromey <tromey@adacore.com>
217
218 * ravenscar-thread.c (ravenscar_thread_target): Don't call
219 add_active_thread.
220 (ravenscar_thread_target::add_active_thread): Now public.
221 (ravenscar_inferior_created): Call add_active_thread after pushing
222 the target.
223
224 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * regcache.c (ptid_regcache_map): New type.
227 (target_ptid_regcache_map): New type.
228 (regcaches): Change type to target_ptid_regcache_map.
229 (get_thread_arch_aspace_regcache): Update to regcaches' new
230 type.
231 (regcache_thread_ptid_changed): Likewise.
232 (registers_changed_ptid): Likewise.
233 (regcaches_size): Likewise.
234 (regcaches_test): Update.
235 (regcache_thread_ptid_changed): Update.
236 * regcache.h (regcache_up): New type.
237 * gdbsupport/ptid.h (hash_ptid): New struct.
238
239 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
240
241 * observable.h (thread_ptid_changed): Add parameter
242 `process_stratum_target *`.
243 * infrun.c (infrun_thread_ptid_changed): Add parameter
244 `process_stratum_target *` and use it.
245 (selftests): New namespace.
246 (infrun_thread_ptid_changed): New function.
247 (_initialize_infrun): Register selftest.
248 * regcache.c (regcache_thread_ptid_changed): Add parameter
249 `process_stratum_target *` and use it.
250 (regcache_thread_ptid_changed): New function.
251 (_initialize_regcache): Register selftest.
252 * thread.c (thread_change_ptid): Pass target to
253 thread_ptid_changed observable.
254
255 2020-08-06 Caroline Tice <cmtice@google.com>
256
257 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
258 (struct dwp_sections): Update field comments. Add loclists and
259 rnglists fields.
260 (struct virtual_v2_dwo_sections): Rename struct to
261 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
262 size & offset fields for loclists and rnglists.
263 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
264 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
265 skipping dummy type units.
266 (create_dwp_hash_table): Update the large comment above the function to
267 discuss Version 5 DWP files as well, with references. Update all the
268 version checks in the function to check for version 5 as well. Add new
269 section at the end to create dwp hash table for version 5.
270 (create_dwp_v2_section): Rename function to
271 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
272 Add V5 to error message text.
273 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
274 into calls to create_dwp_v2_or_v5_section.
275 (create_dwo_unit_in_dwp_v5): New function.
276 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
277 check for version2; add else clause to handle version 5.
278 (open_and_init_dwo_file): Add code to check dwarf version & only call
279 create_debug_types_hash_table (with sections.types) if version is not 5;
280 else call create_debug_type_hash_table, with sections.info.
281 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
282 version 5.
283 (dwarf2_locate_v5_dwp_sections): New function.
284 (open_and_init_dwp_file): Add else-if clause for version 5 to call
285 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
286
287 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
288
289 * regcache.h (class regcache): Remove friend
290 registers_changed_ptid.
291 <regcache_thread_ptid_changed>: Remove.
292 <regcaches>: Remove.
293 * regcache.c (regcache::regcaches): Rename to...
294 (regcaches): ... this. Make static.
295 (get_thread_arch_aspace_regcache): Update.
296 (regcache::regcache_thread_ptid_changed): Rename to...
297 (regcache_thread_ptid_changed): ... this. Update.
298 (class regcache_access): Remove.
299 (regcaches_test): Update.
300 (_initialize_regcache): Update.
301 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
302 <forward_list>.
303
304 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
305
306 * regcache.h (class regcache) <current_regcache>: Rename to...
307 <regcaches>: ... this. Move doc here.
308 * regcache.c (regcache::current_regcache) Rename to...
309 (regcache::regcaches): ... this. Move doc to header.
310 (get_thread_arch_aspace_regcache): Update.
311 (regcache::regcache_thread_ptid_changed): Update.
312 (registers_changed_ptid): Update.
313 (class regcache_access) <current_regcache_size>: Rename to...
314 <regcaches_size>: ... this.
315 (current_regcache_test): Rename to...
316 (regcaches_test): ... this.
317 (_initialize_regcache): Update.
318
319 2020-08-06 Victor Collod <vcollod@nvidia.com>
320
321 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
322
323 2020-08-05 Kevin Buettner <kevinb@redhat.com>
324
325 * corelow.c (core_target::build_file_mappings): Don't output
326 null pathname in warning.
327
328 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
331 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
332 gdb.dwarf2/dw2-single-line-discriminators.exp,
333 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
334
335 2020-08-05 Tom Tromey <tromey@adacore.com>
336
337 PR rust/26197:
338 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
339 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
340 Fix off-by-one and type size errors in ordinary case.
341
342 2020-08-05 Tom de Vries <tdevries@suse.de>
343
344 * gdbtypes.c (type_not_allocated, type_not_associated): Use
345 "prop->const_val () == 0" instead of "prop->const_val () != 0".
346
347 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
348
349 * frame.h (frame_id_p): Return bool.
350 (frame_id_artificial_p): Return bool.
351 (frame_id_eq): Return bool.
352 (has_stack_frames): Return bool.
353 (get_selected_frame): Fix typo in comment.
354 (get_frame_pc_if_available): Return bool.
355 (get_frame_address_in_block_if_available): Return bool.
356 (get_frame_func_if_available): Return bool.
357 (read_frame_register_unsigned): Return bool.
358 (get_frame_register_bytes): Return bool.
359 (safe_frame_unwind_memory): Return bool.
360 (deprecated_frame_register_read): Return bool.
361 (frame_unwinder_is): Return bool.
362 * frame.c (struct frame_info) <prev_arch::p>: Change type to
363 bool.
364 <this_id::p>: Likewise.
365 <prev_p>: Likewise.
366 (frame_stash_add): Return bool.
367 (get_frame_id): Use bool.
368 (frame_id_build_special) Use bool.
369 (frame_id_build_unavailable_stack): Use bool.
370 (frame_id_build): Use bool.
371 (frame_id_p): Return bool, use true/false instead of 1/0.
372 (frame_id_artificial_p): Likewise.
373 (frame_id_eq): Likewise.
374 (frame_id_inner): Likewise.
375 (get_frame_func_if_available): Likewise.
376 (read_frame_register_unsigned): Likewise.
377 (deprecated_frame_register_read): Likewise.
378 (get_frame_register_bytes): Likewise.
379 (has_stack_frames): Likewise.
380 (inside_main_func): Likewise.
381 (inside_entry_func): Likewise.
382 (get_frame_pc_if_available): Likewise.
383 (get_frame_address_in_block_if_available): Likewise.
384 (frame_unwinder_is): Likewise.
385 (safe_frame_unwind_memory): Likewise.
386 (frame_unwind_arch): Likewise.
387
388 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
389
390 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
391 type to cached_copy_status.
392 (fprintf_frame): Adjust.
393 (get_frame_func_if_available): Adjust.
394 (frame_cleanup_after_sniffer): Adjust.
395
396 2020-08-04 Mark Wielaard <mark@klomp.org>
397
398 * MAINTAINERS (Write After Approval): Update email address.
399
400 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
403 dynamic_prop::const_val.
404
405 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
408 dynamic_prop::kind.
409
410 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
413
414 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
415
416 * configure.tgt: Set gdb_sim for bpf-*-* targets.
417
418 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
419 Jose E. Marchesi <jose.marchesi@oracle.com>
420
421 * configure.tgt: Add entry for bpf-*-*.
422 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
423 (ALLDEPFILES): Add bpf-tdep.c.
424 * bpf-tdep.c: New file.
425 * MAINTAINERS: Add bpf target and maintainer.
426 * NEWS: Mention the support for the new target.
427
428 2020-08-04 Tom de Vries <tdevries@suse.de>
429
430 PR symtab/23270
431 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
432 Error.
433
434 2020-08-03 John Baldwin <jhb@FreeBSD.org>
435
436 * syscalls/freebsd.xml: Regenerate.
437
438 2020-08-03 John Baldwin <jhb@FreeBSD.org>
439
440 * syscalls/update-freebsd.sh: Fix usage and year range.
441
442 2020-08-03 Tom de Vries <tdevries@suse.de>
443
444 PR symtab/26333
445 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
446 DW_LNE_lo_user/DW_LNE_hi_user range.
447
448 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
449
450 PR ada/26318
451 * ada-lang.c (ada_modulus): Return 0 if property is not of const
452 kind.
453
454 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
455
456 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
457
458 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
459
460 * breakpoint.c (set_breakpoint_condition): Update the condition
461 expressions after checking that the input condition string parses
462 successfully and does not contain junk at the end.
463
464 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465
466 * breakpoint.c (set_breakpoint_condition): Update the
467 condition string after parsing the new condition successfully.
468
469 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
470
471 * proc-api.c (_STRUCTURED_PROC): Don't define.
472 * proc-events.c: Likewise.
473 * proc-flags.c: Likewise.
474 * proc-why.c: Likewise.
475 * procfs.c: Likewise.
476
477 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
478 * configure, config.in: Regenerate.
479
480 2020-07-30 Tom de Vries <tdevries@suse.de>
481
482 PR build/26320
483 * ui-style.h (struct ui_file_style::color): Wrap m_value and
484 m_red/m_green/m_blue in a union.
485
486 2020-07-29 Tom de Vries <tdevries@suse.de>
487
488 PR tdep/26280
489 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
490
491 2020-07-28 Tom Tromey <tromey@adacore.com>
492
493 PR symtab/26270:
494 * symtab.h (find_pc_partial_function_sym): Declare.
495 * cli/cli-cmds.c (disassemble_command): Use
496 find_pc_partial_function_sym. Check asm_demangle.
497 * blockframe.c (cache_pc_function_sym): New global.
498 (cache_pc_function_name): Remove.
499 (clear_pc_function_cache): Update.
500 (find_pc_partial_function_sym): New function, from
501 find_pc_partial_function.
502 (find_pc_partial_function): Rewrite using
503 find_pc_partial_function_sym.
504
505 2020-07-28 Tom Tromey <tromey@adacore.com>
506
507 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
508 help. Add usage.
509
510 2020-07-28 Tom Tromey <tromey@adacore.com>
511
512 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
513 <DW_OP_GNU_variable_value>: Cast to address type.
514
515 2020-07-28 Kamil Rytarowski <n54@gmx.com>
516
517 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
518 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
519 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
520 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
521 (nbsd_get_siginfo_type): New.
522 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
523 (_initialize_nbsd_tdep): New.
524
525 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
526
527 PR binutils/26301
528 * configure: Regenerated.
529
530 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR binutils/26301
533 * configure: Regenerated.
534
535 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * python/py-frame.c: Remove 'user-regs.h' include.
538 (frapy_read_register): Rewrite to make use of
539 gdbpy_parse_register_id.
540 * python/py-registers.c (gdbpy_parse_register_id): New function,
541 moved here from python/py-unwind.c. Updated the return type, and
542 also accepts register descriptor objects.
543 * python/py-unwind.c: Remove 'user-regs.h' include.
544 (pyuw_parse_register_id): Moved to python/py-registers.c.
545 (unwind_infopy_add_saved_register): Update to use
546 gdbpy_parse_register_id.
547 (pending_framepy_read_register): Likewise.
548 * python/python-internal.h (gdbpy_parse_register_id): Declare.
549
550 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * python/py-registers.c: Add 'user-regs.h' include.
553 (register_descriptor_iter_find): New function.
554 (register_descriptor_iterator_object_methods): New static global
555 methods array.
556 (register_descriptor_iterator_object_type): Add pointer to methods
557 array.
558
559 2020-07-27 John Baldwin <jhb@FreeBSD.org>
560
561 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
562 for all architectures on FreeBSD 11.3 and later.
563
564 2020-07-27 Tom Tromey <tromey@adacore.com>
565
566 * gcore.h (load_corefile): Don't declare.
567
568 2020-07-27 Tom de Vries <tdevries@suse.de>
569
570 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
571 * config.in: Regenerate.
572 * configure: Regenerate.
573
574 2020-07-26 Eli Zaretskii <eliz@gnu.org>
575
576 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
577 ws2tcpip.h. When checking whether socklen_t type is defined, use
578 ws2tcpip.h if it is available and sys/socket.h isn't.
579 * configure: Regenerate.
580 * config.in: Regenerate.
581
582 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 PR fortran/23051
585 PR fortran/26139
586 * valops.c (value_ind): Pass address to
587 readjust_indirect_value_type.
588 * value.c (readjust_indirect_value_type): Make parameter
589 non-const, and add extra address parameter. Resolve original type
590 before using it.
591 * value.h (readjust_indirect_value_type): Update function
592 signature and comment.
593
594 2020-07-25 Tom de Vries <tdevries@suse.de>
595
596 PR symtab/26243
597 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
598 entries.
599
600 2020-07-24 Aaron Merey <amerey@redhat.com>
601
602 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
603 * configure: Rebuild.
604
605 2020-07-23 Kevin Buettner <kevinb@redhat.com>
606
607 PR corefiles/26294
608 * corelow.c (_initialize_corelow): Add period to help text
609 for "maintenance print core-file-backed-mappings".
610
611 2020-07-23 Pedro Alves <pedro@palves.net>
612
613 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
614 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
615 meanwhile.
616 * frame.c (frame_cache_generation, get_frame_cache_generation):
617 New.
618 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
619 (get_prev_frame_if_no_cycle): On exception, don't touch
620 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
621 * frame.h (get_frame_cache_generation): Declare.
622
623 2020-07-23 Tom de Vries <tdevries@suse.de>
624
625 PR tui/26282
626 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
627 New default constructor.
628
629 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
632 exclude non-statement entries.
633
634 2020-07-22 Kevin Buettner <kevinb@redhat.com>
635
636 * NEWS (New commands): Mention new command
637 "maintenance print core-file-backed-mappings".
638
639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
640
641 * corelow.c (gdbcmd.h): Include.
642 (core_target::info_proc_mappings): New method.
643 (get_current_core_target): New function.
644 (maintenance_print_core_file_backed_mappings): New function.
645 (_initialize_corelow): Add core-file-backed-mappings to
646 "maint print" commands.
647
648 2020-07-22 Kevin Buettner <kevinb@redhat.com>
649
650 * linux-tdep.c (dump_note_entry_p): New function.
651 (linux_dump_mapping_p_ftype): New typedef.
652 (linux_find_memory_regions_full): Add new parameter,
653 should_dump_mapping_p.
654 (linux_find_memory_regions): Adjust call to
655 linux_find_memory_regions_full.
656 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
657 call to linux_find_memory_regions_full.
658
659 2020-07-22 Kevin Buettner <kevinb@redhat.com>
660
661 * corelow.c (solist.h, unordered_map): Include.
662 (class core_target): Add field m_core_file_mappings and
663 method build_file_mappings.
664 (core_target::core_target): Call build_file_mappings.
665 (core_target::~core_target): Free memory associated with
666 m_core_file_mappings.
667 (core_target::build_file_mappings): New method.
668 (core_target::xfer_partial): Use m_core_file_mappings
669 for memory transfers.
670 * linux-tdep.c (linux_read_core_file_mappings): New
671 function.
672 (linux_core_info_proc_mappings): Rewrite to use
673 linux_read_core_file_mappings.
674 (linux_init_abi): Register linux_read_core_file_mappings.
675
676 2020-07-22 Kevin Buettner <kevinb@redhat.com>
677
678 * arch-utils.c (default_read_core_file_mappings): New function.
679 * arch-utils.c (default_read_core_file_mappings): Declare.
680 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
681 * gdbarch.h, gdbarch.c: Regenerate.
682
683 2020-07-22 Kevin Buettner <kevinb@redhat.com>
684
685 PR corefiles/25631
686 * corelow.c (core_target:xfer_partial): Revise
687 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
688 case after first checking the stratum beneath the core
689 target.
690 (has_all_memory): Return true.
691 * target.c (raw_memory_xfer_partial): Revise comment
692 regarding use of has_all_memory.
693
694 2020-07-22 Kevin Buettner <kevinb@redhat.com>
695
696 * exec.h (section_table_xfer_memory): Revise declaration,
697 replacing section name parameter with an optional callback
698 predicate.
699 * exec.c (section_table_xfer_memory): Likewise.
700 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
701 of section_table_xfer_memory.
702
703 2020-07-22 Tom Tromey <tromey@adacore.com>
704
705 * mi/mi-cmd-stack.c (list_args_or_locals): Use
706 lookup_symbol_search_name.
707
708 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
709
710 * python/py-registers.c (gdbpy_register_object_data_init): Remove
711 redundant local variable.
712 (gdbpy_get_register_descriptor): Extract descriptor vector as a
713 reference, not pointer, update code accordingly.
714
715 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
716 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
717
718 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
719 * jit.c (jit_breakpoint_re_set_internal): Use the
720 `skip_jit_symbol_lookup` field.
721
722 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
723 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
724
725 * jit.c (jit_read_descriptor): Define the descriptor address once,
726 use twice.
727 (jit_breakpoint_deleted): Move the declaration of the loop variable
728 `iter` into the loop header.
729 (jit_breakpoint_re_set_internal): Move the declaration of the local
730 variable `objf_data` to the first point of definition.
731 (jit_event_handler): Move the declaration of local variables
732 `code_entry`, `entry_addr`, and `objf` to their first point of use.
733 Rename `objf` to `jited`.
734
735 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
738 Remove.
739 * jit.c (get_jiter_objfile_data): Update.
740
741 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
742 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * jit.c (struct jit_program_space_data): Remove.
745 (jit_program_space_key): Remove.
746 (jiter_objfile_data::~jiter_objfile_data): Remove program space
747 stuff.
748 (get_jit_program_space_data): Remove.
749 (jit_breakpoint_deleted): Iterate on all of the program space's
750 objfiles.
751 (jit_inferior_init): Likewise.
752 (jit_breakpoint_re_set_internal): Likewise. Also change return
753 type to void.
754 (jit_breakpoint_re_set): Pass current_program_space to
755 jit_breakpoint_re_set_internal.
756
757 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * jit.h (struct jiter_objfile_data) <cached_code_address,
760 jit_breakpoint>: Move to here from ...
761 * jit.c (jit_program_space_data): ... here.
762 (jiter_objfile_data::~jiter_objfile_data): Update.
763 (jit_breakpoint_deleted): Update.
764 (jit_breakpoint_re_set_internal): Update.
765
766 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
769 checks.
770 (jit_read_descriptor): Remove NULL check.
771 (jit_event_handler): Add an assertion.
772
773 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * jit.h (struct jit_objfile_data): Split into...
776 (struct jiter_objfile_data): ... this ...
777 (struct jited_objfile_data): ... and this.
778 * objfiles.h (struct objfile) <jit_data>: Remove.
779 <jiter_data, jited_data>: New fields.
780 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
781 (jiter_objfile_data::~jiter_objfile_data): ... this.
782 (get_jit_objfile_data): Rename to ...
783 (get_jiter_objfile_data): ... this.
784 (add_objfile_entry): Update.
785 (jit_read_descriptor): Use get_jiter_objfile_data.
786 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
787 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
788 (jit_inferior_exit_hook): Use objfile's jited_data field.
789
790 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * jit.h: Forward-declare `struct minimal_symbol`.
793 (struct jit_objfile_data): Migrate to here from jit.c; also add a
794 constructor, destructor, and an objfile* field.
795 * jit.c (jit_objfile_data): Remove.
796 (struct jit_objfile_data): Migrate from here to jit.h.
797 (jit_objfile_data::~jit_objfile_data): New destructor
798 implementation with code moved from free_objfile_data.
799 (free_objfile_data): Delete.
800 (get_jit_objfile_data): Update to use the jit_data field of objfile.
801 (jit_find_objf_with_entry_addr): Ditto.
802 (jit_inferior_exit_hook): Ditto.
803 (_initialize_jit): Remove the call to
804 register_objfile_data_with_cleanup.
805 * objfiles.h (struct objfile) <jit_data>: New field.
806
807 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808
809 * jit.h: Forward-declare `struct objfile`.
810 (jit_event_handler): Add a second parameter, the JITer objfile.
811 * jit.c (jit_read_descriptor): Change the signature to take the
812 JITer objfile as an argument instead of the jit_program_space_data.
813 (jit_inferior_init): Update the call to jit_read_descriptor.
814 (jit_event_handler): Use the new JITer objfile argument when calling
815 jit_read_descriptor.
816 * breakpoint.c (handle_jit_event): Update the call to
817 jit_event_handler to pass the JITer objfile.
818
819 2020-07-21 John Baldwin <jhb@FreeBSD.org>
820
821 * gdbarch.c: Regenerate.
822 * gdbarch.h: Regenerate.
823 * gdbarch.sh (handle_segmentation_fault): Remove method.
824 * infrun.c (handle_segmentation_fault): Remove.
825 (print_signal_received_reason): Remove call to
826 handle_segmentation_fault.
827
828 2020-07-21 John Baldwin <jhb@FreeBSD.org>
829
830 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
831 Rename to sparc64_linux_report_signal_info and add siggnal
832 argument.
833 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
834 instead of sparc64_linux_handle_segmentation_fault.
835
836 2020-07-21 John Baldwin <jhb@FreeBSD.org>
837
838 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
839 i386_linux_report_signal_info instead of
840 i386_linux_handle_segmentation_fault.
841 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
842 to i386_linux_report_signal_info and add siggnal argument.
843 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
844 of i386_linux_handle_segmentation_fault.
845 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
846 to i386_linux_report_signal_info and add siggnal argument.
847
848 2020-07-21 John Baldwin <jhb@FreeBSD.org>
849
850 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
851 hook if present.
852
853 2020-07-21 John Baldwin <jhb@FreeBSD.org>
854
855 * gdbarch.c: Regenerate.
856 * gdbarch.h: Regenerate.
857 * gdbarch.sh (report_signal_info): New method.
858 * infrun.c (print_signal_received_reason): Invoke gdbarch
859 report_signal_info hook if present.
860
861 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * python/py-registers.c : Add 'unordered_map' include.
864 (gdbpy_new_reggroup): Renamed to...
865 (gdbpy_get_reggroup): ...this. Update to only create register
866 group descriptors when needed.
867 (gdbpy_reggroup_iter_next): Update.
868
869 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
870
871 * python/py-registers.c (gdbpy_register_object_data): New static
872 global.
873 (gdbpy_register_object_data_init): New function.
874 (gdbpy_new_register_descriptor): Renamed to...
875 (gdbpy_get_register_descriptor): ...this, and update to reuse
876 existing register descriptors where possible.
877 (gdbpy_register_descriptor_iter_next): Update.
878 (gdbpy_initialize_registers): Register new gdbarch data.
879
880 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
881
882 * linux-nat.c (stopped_pids): Make static.
883
884 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
885
886 PR ada/26235
887 * gdbtypes.c (ada_discrete_type_low_bound,
888 ada_discrete_type_high_bound): Handle undefined bounds.
889
890 2020-07-21 Kamil Rytarowski <n54@gmx.com>
891
892 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
893 declaration.
894 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
895 function.
896
897 2020-07-20 John Baldwin <jhb@FreeBSD.org>
898
899 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
900 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
901 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
902 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
903 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
904 method.
905
906 2020-07-20 Ludovic Courtès <ludo@gnu.org>
907
908 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
909 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
910 which are deprecated in Guile 3.0.
911 * configure.ac (try_guile_versions): Add "guile-3.0".
912 * configure (try_guile_versions): Regenerate.
913 * NEWS: Update entry.
914
915 2020-07-20 Ludovic Courtès <ludo@gnu.org>
916 Doug Evans <dje@google.com>
917
918 PR gdb/21104
919 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
920 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
921 USING_GUILE_BEFORE_2_2.
922 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
923 Change type to 'scm_t_port_type *'.
924 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
925 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
926 parameter and honor it. Update callers.
927 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
928 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
929 functions.
930 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
931 USING_GUILE_BEFORE_2_2.
932 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
933 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
934 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
935 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
936 and 'SCM_PORT_TYPE'.
937 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
938 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
939 (gdbscm_memory_port_read, gdbscm_memory_port_write)
940 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
941 [!USING_GUILE_BEFORE_2_2]: New functions.
942 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
943 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
944 'gdbscm_memory_port_read'.
945 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
946 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
947 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
948 function.
949 (ioscm_init_memory_port): Remove.
950 (ioscm_init_memory_port_stream): New function
951 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
952 function.
953 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
954 Return scm_from_uint (0).
955 (gdbscm_set_memory_port_read_buffer_size_x)
956 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
957 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
958 Return scm_from_uint (0).
959 (gdbscm_set_memory_port_write_buffer_size_x)
960 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
961 * configure.ac (try_guile_versions): Add "guile-2.2".
962 * configure: Regenerate.
963 * NEWS: Add entry.
964
965 2020-07-18 Tom Tromey <tom@tromey.com>
966
967 * linux-nat.c (linux_multi_process): Remove.
968 (linux_nat_target::supports_multi_process): Return true.
969
970 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * arch/riscv.c (riscv_tdesc_cache): Change map type.
973 (riscv_lookup_target_description): Return pointer out of
974 unique_ptr.
975 * target-descriptions.c (allocate_target_description): Add
976 comment.
977 (target_desc_deleter::operator()): Likewise.
978 * target-descriptions.h (struct target_desc_deleter): Moved to
979 gdbsupport/tdesc.h.
980 (target_desc_up): Likewise.
981
982 2020-07-17 Tom Tromey <tromey@adacore.com>
983
984 * linux-nat.c (linux_nat_target::supports_non_stop)
985 (linux_nat_target::always_non_stop_p): Use "true".
986 (linux_nat_target::supports_disable_randomization): Use "true" and
987 "false".
988
989 2020-07-16 Caroline Tice <cmtice@google.com>
990
991 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
992 (RNGLIST_HEADER_SIZE64): New constant definition.
993 (struct dwop_section_names): Add rnglists_dwo.
994 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
995 (struct loclist_header): Rename to 'loclists_rnglists_header'.
996 (struct dwo_sections): Add rnglists field.
997 (read_attribut_reprocess): Add tag parameter.
998 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
999 (cu_debug_rnglists_section): New function (decl & definition).
1000 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1001 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1002 die whose range is being checked; get rnglist section from
1003 cu_debug_rnglists_section, to get from either objfile or dwo file as
1004 appropriate. Add cases for DW_RLE_base_addressx,
1005 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1006 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1007 test inside if-condition and updating complaint message.
1008 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1009 dwarf2_rnglists_process.
1010 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1011 dwarf2_ranges_process.
1012 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1013 need_ranges_base and update comment appropriately. Also pass die tag
1014 to dwarf2_ranges_read.
1015 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1016 need_ranges_base and update comment appropriately. Also pass die tag
1017 to dwarf2_ranges_process.
1018 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1019 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1020 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1021 need_ranges_base and update comment appropriately. Also pass die tag
1022 to read_attribute_reprocess and dwarf2_ranges_read.
1023 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1024 and update function comment appropriately.
1025 (read_loclist_index): Call read_loclists_rnglists_header instead of
1026 read_loclist_header.
1027 (read_rnglist_index): New function.
1028 (read_attribute_reprocess): Add tag parameter. Add code for
1029 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1030 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1031
1032 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1035 being resolved.
1036
1037 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * arch-utils.c (show_architecture): Update formatting of messages.
1040
1041 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1042
1043 * gdbtypes.h (struct type) <bounds>: Handle array and string
1044 types.
1045 * ada-lang.c (assign_aggregate): Use type::bounds on
1046 array/string type.
1047 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1048 * c-varobj.c (c_number_of_children): Likewise.
1049 (c_describe_child): Likewise.
1050 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1051 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1052 (f_type_print_base): Likewise.
1053 * f-valprint.c (f77_array_offset_tbl): Likewise.
1054 (f77_get_upperbound): Likewise.
1055 (f77_print_array_1): Likewise.
1056 * guile/scm-type.c (gdbscm_type_range): Likewise.
1057 * m2-typeprint.c (m2_array): Likewise.
1058 (m2_is_long_set_of_type): Likewise.
1059 * m2-valprint.c (get_long_set_bounds): Likewise.
1060 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1061 * python/py-type.c (typy_range): Likewise.
1062 * rust-lang.c (rust_internal_print_type): Likewise.
1063 * type-stack.c (type_stack::follow_types): Likewise.
1064 * valarith.c (value_subscripted_rvalue): Likewise.
1065 * valops.c (value_cast): Likewise.
1066
1067 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1068
1069 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1070 callers to use the equivalent accessor methods.
1071
1072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1073
1074 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1075 (struct type) <bit_stride>: New method.
1076 (TYPE_BIT_STRIDE): Remove.
1077 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1078
1079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1082 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1083 callers to use the equivalent accessor methods instead.
1084
1085 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1088 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1089 callers to use the equivalent accessor methods instead.
1090
1091 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1094 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1095 to use dynamic_prop::kind.
1096
1097 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1100 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1101 to get the bound property's kind and check against
1102 PROP_UNDEFINED.
1103
1104 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1107 all callers to use type::range_bounds followed by
1108 dynamic_prop::{low,high}.
1109
1110 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1113 const_val, set_const_val, baton, set_locexpr, set_loclist,
1114 set_addr_offset, variant_parts, set_variant_parts,
1115 original_type, set_original_type>: New methods.
1116 <kind>: Rename to...
1117 <m_kind>: ... this. Update all users to use the new methods
1118 instead.
1119 <data>: Rename to...
1120 <m_data>: ... this. Update all users to use the new methods
1121 instead.
1122
1123 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * gdbtypes.c (get_discrete_bounds): Return failure if
1126 the range type's bounds are not both defined and constant
1127 values.
1128 (get_array_bounds): Update comment. Remove undefined bound check.
1129
1130 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1131
1132 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1133 the type::bounds method directly.
1134
1135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1136
1137 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1138 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1139 are used to set the range type's bounds to use set_bounds.
1140
1141 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1142
1143 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1144
1145 2020-07-10 Pedro Alves <pedro@palves.net>
1146
1147 * gdbthread.h (inferior_ref): Define.
1148 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1149 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1150 * thread.c
1151 (scoped_restore_current_thread::restore):
1152 Adjust to gdb::ref_ptr.
1153 (scoped_restore_current_thread::~scoped_restore_current_thread):
1154 Remove manual decref handling.
1155 (scoped_restore_current_thread::scoped_restore_current_thread):
1156 Adjust to use
1157 inferior_ref::new_reference/thread_info_ref::new_reference.
1158 Incref the thread before calling get_frame_id instead of after.
1159 Let TARGET_CLOSE_ERROR propagate.
1160
1161 2020-07-10 Pedro Alves <pedro@palves.net>
1162
1163 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1164 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1165 NOT_AVAILABLE_ERROR.
1166 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1167 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1168
1169 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1170 Pedro Alves <pedro@palves.net>
1171
1172 PR gdb/26199
1173 * infrun.c (threads_are_resumed_pending_p): Delete.
1174 (do_target_wait): Remove threads_are_executing and
1175 threads_are_resumed_pending_p checks from the inferior_matches
1176 lambda. Update comments.
1177
1178 2020-07-10 Pedro Alves <pedro@palves.net>
1179
1180 PR gdb/26199
1181 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1182 executing threads.
1183
1184 2020-07-10 Pedro Alves <pedro@palves.net>
1185
1186 PR gdb/26199
1187 * infrun.c (handle_no_resumed): Handle multiple targets.
1188
1189 2020-07-10 Pedro Alves <pedro@palves.net>
1190
1191 PR gdb/26199
1192 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1193 target_is_async_p.
1194
1195 2020-07-10 Pedro Alves <pedro@palves.net>
1196
1197 PR gdb/26199
1198 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1199 threads, not all threads.
1200
1201 2020-07-10 Pedro Alves <pedro@palves.net>
1202
1203 PR gdb/26199
1204 * remote.c (remote_target::open_1): Pass remote target pointer as
1205 data to create_async_event_handler.
1206 (remote_async_inferior_event_handler): Mark async event handler
1207 before returning if the remote target still has either pending
1208 events or unacknowledged notifications.
1209
1210 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1211
1212 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1213 declaration.
1214 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1215 function.
1216
1217 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1218
1219 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1220 inferior_ptid.
1221
1222 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1223
1224 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1225 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1226 AT_FREEBSD_PS_STRINGS.
1227
1228 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1229
1230 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1231 of debugfile path on Windows.
1232
1233 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1234
1235 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1236 argument to 'data'.
1237
1238 2020-07-08 Tom Tromey <tromey@adacore.com>
1239
1240 * ada-lang.c (ada_exception_message_1): Use read_memory.
1241
1242 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 PR python/22748
1245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1246 special handling for inline frames.
1247 * findvar.c (value_of_register_lazy): Skip inline frames when
1248 creating lazy register values.
1249 * frame.c (frame_id_computed_p): Delete definition.
1250 * frame.h (frame_id_computed_p): Delete declaration.
1251
1252 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * NEWS: Mention additions to Python API.
1255 * python/py-arch.c (archpy_register_groups): New function.
1256 (arch_object_methods): Add 'register_groups' method.
1257 * python/py-registers.c (reggroup_iterator_object): New struct.
1258 (reggroup_object): New struct.
1259 (gdbpy_new_reggroup): New function.
1260 (gdbpy_reggroup_to_string): New function.
1261 (gdbpy_reggroup_name): New function.
1262 (gdbpy_reggroup_iter): New function.
1263 (gdbpy_reggroup_iter_next): New function.
1264 (gdbpy_new_reggroup_iterator): New function
1265 (gdbpy_initialize_registers): Register new types.
1266 (reggroup_iterator_object_type): Define new Python type.
1267 (gdbpy_reggroup_getset): New static global.
1268 (reggroup_object_type): Define new Python type.
1269 * python/python-internal.h
1270
1271 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1274 * python/py-arch.c (archpy_registers): New function.
1275 (arch_object_methods): Add 'registers' method.
1276 * python/py-registers.c: New file.
1277 * python/python-internal.h
1278 (gdbpy_new_register_descriptor_iterator): Declare.
1279 (gdbpy_initialize_registers): Declare.
1280 * python/python.c (do_start_initialization): Call
1281 gdbpy_initialize_registers.
1282 * NEWS: Mention additions to the Python API.
1283
1284 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * NEWS: Mention new Python API method.
1287 * python/py-unwind.c (pending_framepy_architecture): New function.
1288 (pending_frame_object_methods): Add architecture method.
1289
1290 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * gdbarch.c: Regenerate.
1293 * gdbarch.h: Regenerate.
1294 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1295 (gdbarch_data): Use internal_error for the case where
1296 deprecated_set_gdbarch_data was originally needed.
1297 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1298 and use passed in obstack.
1299 (libunwind_frame_set_descr): Should no longer get back NULL from
1300 gdbarch_data.
1301 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1302 type.
1303 * user-regs.c (user_regs_init): Update parameters, and use passed
1304 in obstack.
1305 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1306 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1307
1308 2020-07-06 Tom de Vries <tdevries@suse.de>
1309
1310 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1311 End-Of-Sequence in lte_is_less_than.
1312 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1313 "gdb: Don't reorder line table entries too much when sorting".
1314
1315 2020-07-06 Tom de Vries <tdevries@suse.de>
1316
1317 PR tui/26205
1318 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1319
1320 2020-07-05 Tom de Vries <tdevries@suse.de>
1321
1322 PR build/26187
1323 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1324 std::uncaught_exceptions instead of deprecated
1325 std::uncaught_exception.
1326
1327 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1328
1329 * macroexp.h (macro_stringify): Return
1330 gdb::unique_xmalloc_ptr<char>.
1331 * macroexp.c (macro_stringify): Likewise.
1332 * macrotab.c (fixup_definition): Update.
1333
1334 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1337 (lex_one_token): Update.
1338 * macroexp.c (struct macro_buffer) <release>: Return
1339 gdb::unique_xmalloc_ptr<char>.
1340 (macro_stringify): Update.
1341 (macro_expand): Update.
1342 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1343 * macroexp.h (macro_expand_next): Likewise.
1344
1345 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * macroexp.h (macro_lookup_ftype): Remove.
1348 (macro_expand, macro_expand_once, macro_expand_next): Remove
1349 lookup function parameters, add scope parameter.
1350 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1351 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1352 * macroscope.h (standard_macro_lookup): Change parameter type
1353 to macro_scope.
1354 * macroscope.c (standard_macro_lookup): Likewise.
1355 * c-exp.y (lex_one_token): Update.
1356 * macrocmd.c (macro_expand_command): Likewise.
1357 (macro_expand_once_command): Likewise.
1358
1359 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * inf-loop.c (inferior_event_handler): Remove client_data param.
1362 * inf-loop.h (inferior_event_handler): Likewise.
1363 * infcmd.c (step_1): Adjust.
1364 * infrun.c (proceed): Adjust.
1365 (fetch_inferior_event): Remove client_data param.
1366 (infrun_async_inferior_event_handler): Adjust.
1367 * infrun.h (fetch_inferior_event): Remove `void *` param.
1368 * linux-nat.c (handle_target_event): Adjust.
1369 * record-btrace.c (record_btrace_handle_async_inferior_event):
1370 Adjust.
1371 * record-full.c (record_full_async_inferior_event_handler):
1372 Adjust.
1373 * remote.c (remote_async_inferior_event_handler): Adjust.
1374
1375 2020-07-01 Tom Tromey <tom@tromey.com>
1376
1377 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1378 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1379
1380 2020-07-01 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1383 tui_gen_win_info.
1384 (tui_win_info::make_window): Merge with
1385 tui_gen_win_info::make_window.
1386 (tui_win_info::make_visible): Move from tui_gen_win_info.
1387 * tui/tui-win.c (tui_win_info::max_width): Move from
1388 tui_gen_win_info.
1389 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1390 type.
1391 <window_factory>: Likewise.
1392 * tui/tui-layout.c (tui_win_info::resize): Move from
1393 tui_gen_win_info.
1394 (make_standard_window): Change return type.
1395 (get_locator_window, tui_get_window_by_name): Likewise.
1396 (tui_layout_window::apply): Remove a cast.
1397 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1398 (struct tui_win_info): Merge with tui_gen_win_info.
1399 (struct tui_gen_win_info): Remove.
1400
1401 2020-07-01 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-stack.h (struct tui_locator_window): Derive from
1404 tui_win_info.
1405 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1406 <can_box>: New method.
1407
1408 2020-07-01 Tom Tromey <tom@tromey.com>
1409
1410 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1411
1412 2020-07-01 Tom Tromey <tom@tromey.com>
1413
1414 * tui/tui-regs.c (tui_data_window::display_registers_from)
1415 (tui_data_window::display_registers_from)
1416 (tui_data_window::first_data_item_displayed)
1417 (tui_data_window::delete_data_content_windows): Update.
1418 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1419 Remove.
1420 (tui_data_window::check_register_values): Update.
1421 (tui_data_item_window::rerender): Add parameters. Update.
1422 (tui_data_item_window::refresh_window): Remove.
1423 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1424 virtual.
1425 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1426 tui_gen_win_info.
1427 <refresh_window, max_height, min_height>: Remove.
1428 <rerender>: Add parameters.
1429 <x, y, visible>: New members.
1430 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1431 <m_item_width>: New member.
1432
1433 2020-07-01 Tom Tromey <tom@tromey.com>
1434
1435 * tui/tui-regs.c (tui_data_window::show_register_group)
1436 (tui_data_window::check_register_values): Update.
1437 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1438 from item_no.
1439
1440 2020-07-01 Tom Tromey <tom@tromey.com>
1441
1442 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1443 useless "if".
1444
1445 2020-07-01 Tom Tromey <tom@tromey.com>
1446
1447 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1448 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1449
1450 2020-07-01 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1453 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1454 (struct tui_line_or_address): Move from tui-data.h.
1455 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1456 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1457 (tui_cmd_window, tui_source_window_base, tui_source_window)
1458 (tui_disasm_window): Don't declare.
1459 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1460 to tui-winsource.h.
1461 (SINGLE_KEY): Move to tui-stack.c.
1462
1463 2020-07-01 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1466 std::string.
1467 * tui/tui-regs.c (class tab_expansion_file): New.
1468 (tab_expansion_file::write): New method.
1469 (tui_register_format): Change return type. Use
1470 tab_expansion_file.
1471 (tui_get_register, tui_data_window::display_registers_from)
1472 (tui_data_item_window::rerender): Update.
1473 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1474 * tui/tui-io.c (tui_expand_tabs): Remove.
1475
1476 2020-07-01 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1479
1480 2020-07-01 Fangrui Song <maskray@google.com>
1481
1482 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1483
1484 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1485
1486 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1487 forms for DW_AT_associated and DW_AT_allocated attributes,
1488 which is already checked in function attr_to_dynamic_prop.
1489
1490 2020-06-30 Tom Tromey <tromey@adacore.com>
1491
1492 * dwarf2/read.c (quirk_rust_enum): Correctly call
1493 alloc_rust_variant for default-less enum.
1494
1495 2020-06-30 Tom Tromey <tromey@adacore.com>
1496
1497 PR build/26183:
1498 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1499 gdb::to_string.
1500
1501 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1504 * gdbarch.h: Re-generate.
1505
1506 2020-06-28 Tom Tromey <tom@tromey.com>
1507
1508 * command.h (cmd_types): Remove.
1509 (cmd_type): Don't declare.
1510 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1511 typedef.
1512 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1513 * cli/cli-decode.c (cmd_type): Remove.
1514
1515 2020-06-27 Pedro Alves <palves@redhat.com>
1516
1517 * fork-child.c (prefork_hook): Adjust.
1518 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1519 Delete.
1520 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1521 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1522 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1523 Remove declarations.
1524 (struct inferior) <set_tty, tty>: New methods.
1525 (struct inferior) <terminal>: Rename to ...
1526 (struct inferior) <m_terminal>: ... this and make private.
1527 * main.c (captured_main_1): Adjust.
1528 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1529 (mi_cmd_inferior_tty_show): Adjust.
1530 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1531 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1532
1533 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1534
1535 * configure.ac: Add --enable-libctf: handle --disable-static
1536 properly.
1537 * acinclude.m4: sinclude ../config/enable.m4.
1538 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1539 (LIBCTF): Substitute in.
1540 (CTF_DEPS): New, likewise.
1541 (CLIBS): libctf needs symbols from libbfd: move earlier.
1542 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1543 flags.
1544 * ctfread.c: Surround in ENABLE_LIBCTF.
1545 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1546 * configure: Regenerate.
1547 * config.in: Likewise.
1548
1549 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1552
1553 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * inferior.h (struct inferior) <terminal>: Change type to
1556 gdb::unique_xmalloc_ptr<char>.
1557 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1558 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1559 field, adjust to unique pointer.
1560 (get_inferior_io_terminal): Adjust to unique pointer.
1561
1562 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1565 registers, not just the known core set of registers.
1566
1567 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1570 fflags, frm, and fcsr registers.
1571 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1572 restore groups.
1573 (riscv_tdesc_unknown_reg): New function.
1574 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1575 tdesc_use_registers.
1576 * riscv-tdep.h (struct gdbarch_tdep): Add
1577 unknown_csrs_first_regnum, unknown_csrs_count,
1578 duplicate_fflags_regnum, duplicate_frm_regnum, and
1579 duplicate_fcsr_regnum fields.
1580
1581 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1584 callback, use the callback (when not null) to help number unknown
1585 registers.
1586 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1587 (tdesc_use_registers): Add extra parameter to declaration.
1588
1589 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1592 in the file.
1593 (class riscv_pending_register_alias): Likewise.
1594 (riscv_register_feature::register_info): Change 'required_p' field
1595 to 'required', and change its type. Add 'check' member function.
1596 (riscv_register_feature::register_info::check): Define new member
1597 function.
1598 (riscv_xreg_feature): Change initialisation of 'required' field.
1599 (riscv_freg_feature): Likewise.
1600 (riscv_virtual_feature): Likewise.
1601 (riscv_csr_feature): Likewise.
1602 (riscv_check_tdesc_feature): Take extra parameter, the csr
1603 tdesc_feature, rewrite the function to use the new
1604 riscv_register_feature::register_info::check function.
1605 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1606
1607 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * features/Makefile: Remove all references to the deleted files
1610 below.
1611 * features/riscv/32bit-csr.c: Deleted.
1612 * features/riscv/32bit-csr.xml: Deleted.
1613 * features/riscv/64bit-csr.c: Deleted.
1614 * features/riscv/64bit-csr.xml: Deleted.
1615 * features/riscv/rebuild-csr-xml.sh: Deleted.
1616
1617 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1620 whitespace error for declaration of names member variable.
1621 (struct riscv_register_feature): Add new prefer_first_name member
1622 variable, and fix whitespace error in declaration of registers.
1623 (riscv_xreg_feature): Initialize prefer_first_name field.
1624 (riscv_freg_feature): Likewise.
1625 (riscv_virtual_feature): Likewise.
1626 (riscv_csr_feature): Likewise.
1627 (riscv_register_name): Expand on comments. Remove register name
1628 modifications for CSR and virtual registers.
1629
1630 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1631
1632 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1633 errors.
1634
1635 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1638 riscv-opc.h.
1639 (class riscv_pending_register_alias): New class.
1640 (riscv_check_tdesc_feature): Take vector of pending aliases and
1641 populate it as appropriate.
1642 (riscv_setup_register_aliases): Delete.
1643 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1644 to riscv_check_tdesc_feature in all cases. Use the vector to
1645 create the register aliases.
1646
1647 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * sol2-tdep.c (sol2_static_transform_name): Remove.
1650 (sol2_init_abi): Don't register it.
1651 * gdbarch.sh (static_transform_name): Remove.
1652 * gdbarch.c, gdbarch.h: Regenerate.
1653
1654 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1655 gdbarch_static_transform_name.
1656 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1657 * stabsread.c (define_symbol) <'X'>: Remove.
1658 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1659 handling.
1660 <'V'>: Likewise.
1661 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1662 <'S'>: Remove call to gdbarch_static_transform_name.
1663
1664 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1665
1666 * procfs.c (procfs_pre_trace): New function.
1667 (procfs_target::create_inferior): Pass it to fork_inferior.
1668
1669 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1670
1671 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1672 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1673 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1674 sol2-tdep.o, sparc-sol2-tdep.o.
1675 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1676 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1677 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1678 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1679
1680 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1681
1682 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1683 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1684 Call sol2_init_abi.
1685 Remove calls to set_gdbarch_skip_solib_resolver,
1686 set_gdbarch_core_pid_to_str.
1687 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1688 (i386_sol2_static_transform_name): Remove.
1689 (i386_sol2_init_abi): Call sol2_init_abi.
1690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1691 set_gdbarch_static_transform_name,
1692 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1693 Use sol2_sigtramp_p.
1694 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1695 (sol2_sigtramp_p): New function.
1696 (sol2_static_transform_name): New function.
1697 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1698 (sol2_init_abi): New function.
1699 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1700 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1701 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1702 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1703 (sparc_sol2_static_transform_name): Remove.
1704 (sparc32_sol2_init_abi): Call sol2_init_abi.
1705 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1706 set_gdbarch_static_transform_name,
1707 set_gdbarch_skip_solib_resolver,
1708 set_gdbarch_core_pid_to_str.
1709 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1710 (sparc_sol2_static_transform_name): Remove
1711 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1712 call sol2_sigtramp_p.
1713 (sparc64_sol2_init_abi): Call sol2_init_abi.
1714 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1715 set_gdbarch_static_transform_name,
1716 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1717
1718 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1719
1720 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1721 * exec.c (validate_exec_file): If from_tty, set both
1722 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1723 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1724 and from_tty, unconditionally ask a confirmation.
1725
1726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * target-descriptions.c (tdesc_architecture_name): Protect against
1729 NULL pointer dereference.
1730 (maint_print_xml_tdesc_cmd): New function.
1731 (_initialize_target_descriptions): Register new 'maint print
1732 xml-tdesc' command and give it the filename completer.
1733 * NEWS: Mention new 'maint print xml-tdesc' command.
1734
1735 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * target-descriptions.c (class tdesc_compatible_info): New class.
1738 (struct target_desc): Change type of compatible vector.
1739 (tdesc_compatible_p): Update for change in type of
1740 target_desc::compatible.
1741 (tdesc_compatible_info_list): New function.
1742 (tdesc_compatible_info_arch_name): New function.
1743 (tdesc_add_compatible): Update for change in type of
1744 target_desc::compatible.
1745 (print_c_tdesc::visit_pre): Likewise.
1746
1747 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1750 whitespace to underscore.
1751 (maint_print_c_tdesc_cmd): Use fake filename for target
1752 descriptions that came from the target.
1753 (_initialize_target_descriptions): Add filename command completion
1754 for 'maint print c-tdesc'.
1755
1756 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1759 lines.
1760
1761 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1762
1763 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1764 lines.
1765 (dwarf2_find_location_expression): Likewise.
1766 (call_site_parameter_matches): Likewise.
1767 (dwarf2_compile_expr_to_ax): Likewise.
1768 (disassemble_dwarf_expression): Likewise.
1769 (loclist_describe_location): Likewise.
1770
1771 2020-06-23 Pedro Alves <palves@redhat.com>
1772
1773 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1774 progspace-and-thread.h. Include scoped-mock-context.h instead.
1775 (register_to_value_test): Use scoped_mock_context.
1776 * regcache.c: Include "scoped-mock-context.h".
1777 (cooked_read_test): Don't error out if a target is already pushed.
1778 Use scoped_mock_context. Adjust.
1779 * scoped-mock-context.h: New file.
1780
1781 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1784 initializer.
1785 (ada_language::is_string_type_p): New member function.
1786 * c-lang.c (c_language_data): Delete la_is_string_type_p
1787 initializer.
1788 (cplus_language_data): Likewise.
1789 (asm_language_data): Likewise.
1790 (minimal_language_data): Likewise.
1791 * d-lang.c (d_language_data): Likewise.
1792 * f-lang.c (f_is_string_type_p): Delete function, implementation
1793 moved to f_language::is_string_type_p.
1794 (f_language_data): Delete la_is_string_type_p initializer.
1795 (f_language::is_string_type_p): New member function,
1796 implementation from f_is_string_type_p.
1797 * go-lang.c (go_is_string_type_p): Delete function, implementation
1798 moved to go_language::is_string_type_p.
1799 (go_language_data): Delete la_is_string_type_p initializer.
1800 (go_language::is_string_type_p): New member function,
1801 implementation from go_is_string_type_p.
1802 * language.c (language_defn::is_string_type_p): Define new member
1803 function.
1804 (default_is_string_type_p): Make static, add comment copied from
1805 header file.
1806 (unknown_language_data): Delete la_is_string_type_p initializer.
1807 (unknown_language::is_string_type_p): New member function.
1808 (auto_language_data): Delete la_is_string_type_p initializer.
1809 (auto_language::is_string_type_p): New member function.
1810 * language.h (language_data): Delete la_is_string_type_p field.
1811 (language_defn::is_string_type_p): Declare new function.
1812 (default_is_string_type_p): Delete desclaration, move comment to
1813 definition.
1814 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1815 moved to m2_language::is_string_type_p.
1816 (m2_language_data): Delete la_is_string_type_p initializer.
1817 (m2_language::is_string_type_p): New member function,
1818 implementation from m2_is_string_type_p.
1819 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1820 initializer.
1821 * opencl-lang.c (opencl_language_data): Likewise.
1822 * p-lang.c (pascal_is_string_type_p): Delete function,
1823 implementation moved to pascal_language::is_string_type_p.
1824 (pascal_language_data): Delete la_is_string_type_p initializer.
1825 (pascal_language::is_string_type_p): New member function,
1826 implementation from pascal_is_string_type_p.
1827 * rust-lang.c (rust_is_string_type_p): Delete function,
1828 implementation moved to rust_language::is_string_type_p.
1829 (rust_language_data): Delete la_is_string_type_p initializer.
1830 (rust_language::is_string_type_p): New member function,
1831 implementation from rust_is_string_type_p.
1832 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1833 is_string_type_p.
1834
1835 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * ada-lang.c (ada_language_data): Delete la_print_typedef
1838 initializer.
1839 (ada_language::print_typedef): New member function.
1840 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1841 (cplus_language_data): Likewise.
1842 (asm_language_data): Likewise.
1843 (minimal_language_data): Likewise.
1844 * d-lang.c (d_language_data): Likewise.
1845 * f-lang.c (f_language_data): Likewise.
1846 (f_language::print_typedef): New member function.
1847 * go-lang.c (go_language_data): Delete la_print_typedef
1848 initializer.
1849 * language.c (language_defn::print_typedef): Define member
1850 function.
1851 (unknown_language_data): Delete la_print_typedef initializer.
1852 (unknown_language::print_typedef): New member function.
1853 (auto_language_data): Delete la_print_typedef initializer.
1854 (auto_language::print_typedef): New member function.
1855 * language.h (language_data): Delete la_print_typedef field.
1856 (language_defn::print_typedef): Declare new member function.
1857 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1858 (default_print_typedef): Delete declaration.
1859 * m2-lang.c (m2_language_data): Delete la_print_typedef
1860 initializer.
1861 (m2_language::print_typedef): New member function.
1862 * objc-lang.c (objc_language_data): Delete la_print_typedef
1863 initializer.
1864 * opencl-lang.c (opencl_language_data): Likewise.
1865 * p-lang.c (pascal_language_data): Likewise.
1866 (pascal_language::print_typedef): New member function.
1867 * rust-lang.c (rust_print_typedef): Delete function,
1868 implementation moved to rust_language::print_typedef.
1869 (rust_language): Delete la_print_typedef initializer.
1870 (rust_language::print_typedef): New member function,
1871 implementation from rust_print_typedef.
1872 * typeprint.c (default_print_typedef): Delete.
1873
1874 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1877 (ada_language::printstr): New member function.
1878 * c-lang.c (c_language_data): Delete la_printstr initializer.
1879 (cplus_language_data): Likewise.
1880 (asm_language_data): Likewise.
1881 (minimal_language_data): Likewise.
1882 * d-lang.c (d_language_data): Likewise.
1883 * f-lang.c (f_printstr): Rename to f_language::printstr.
1884 (f_language_data): Delete la_printstr initializer.
1885 (f_language::printstr): New member function, implementation from
1886 f_printstr.
1887 * go-lang.c (go_language_data): Delete la_printstr initializer.
1888 * language.c (language_defn::printstr): Define new member
1889 function.
1890 (unk_lang_printstr): Delete.
1891 (unknown_language_data): Delete la_printstr initializer.
1892 (unknown_language::printstr): New member function.
1893 (auto_language_data): Delete la_printstr initializer.
1894 (auto_language::printstr): New member function.
1895 * language.h (language_data): Delete la_printstr field.
1896 (language_defn::printstr): Declare new member function.
1897 (LA_PRINT_STRING): Update call to printstr.
1898 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1899 (m2_language_data): Delete la_printstr initializer.
1900 (m2_language::printstr): New member function, implementation from
1901 m2_printstr.
1902 * objc-lang.c (objc_language_data): Delete la_printstr
1903 initializer.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1906 (pascal_language_data): Delete la_printstr initializer.
1907 (pascal_language::printstr): New member function, implementation
1908 from pascal_printstr.
1909 * p-lang.h (pascal_printstr): Delete declaration.
1910 * rust-lang.c (rust_printstr): Update header comment.
1911 (rust_language_data): Delete la_printstr initializer.
1912 (rust_language::printstr): New member function.
1913
1914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1917 (ada_language::printchar): New member function.
1918 * c-lang.c (c_language_data): Delete la_printchar initializer.
1919 (cplus_language_data): Likewise.
1920 (asm_language_data): Likewise.
1921 (minimal_language_data): Likewise.
1922 * d-lang.c (d_language_data): Likewise.
1923 * f-lang.c (f_printchar): Rename to f_language::printchar.
1924 (f_language_data): Delete la_printchar initializer.
1925 (f_language::printchar): New member function, implementation from
1926 f_printchar.
1927 * go-lang.c (go_language_data): Delete la_printchar initializer.
1928 * language.c (unk_lang_printchar): Delete.
1929 (language_defn::printchar): Define new member function.
1930 (unknown_language_data): Delete la_printchar initializer.
1931 (unknown_language::printchar): New member function.
1932 (auto_language_data): Delete la_printchar initializer.
1933 (auto_language::printchar): New member function.
1934 * language.h (language_data): Delete la_printchar field.
1935 (language_defn::printchar): Declare new member function.
1936 (LA_PRINT_CHAR): Update call to printchar.
1937 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1938 (m2_language::printchar): New member function.
1939 * objc-lang.c (objc_language_data): Delete la_printchar
1940 initializer.
1941 * opencl-lang.c (opencl_language_data): Likewise.
1942 * p-lang.c (pascal_language_data): Delete la_printchar
1943 initializer.
1944 (pascal_language::printchar): New member function.
1945 * rust-lang.c (rust_printchar): Rename to
1946 rust_language::printchar.
1947 (rust_language_data): Delete la_printchar initializer.
1948 (rust_language::printchar): New member function, implementation
1949 from rust_printchar.
1950
1951 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1954 (ada_language_data): Delete la_emitchar initializer.
1955 (ada_language::emitchar): New member function, implementation from
1956 emit_char.
1957 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1958 (cplus_language_data): Likewise.
1959 (asm_language_data): Likewise.
1960 (minimal_language_data): Likewise.
1961 * d-lang.c (d_language_data): Likewise.
1962 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1963 (f_language_data): Delete la_emitchar initializer.
1964 (f_language::emitchar): New member function, implementation from
1965 f_emit_char.
1966 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1967 * language.c (unk_lang_emit_char): Delete.
1968 (language_defn::emitchar): New member function definition.
1969 (unknown_language_data): Delete la_emitchar initializer.
1970 (unknown_language::emitchar): New member function.
1971 (auto_language_data): Delete la_emitchar initializer.
1972 (auto_language::emitchar): New member function.
1973 * language.h (language_data): Delete la_emitchar field.
1974 (language_defn::emitchar): New member field declaration.
1975 (LA_EMIT_CHAR): Update call to emitchar.
1976 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1977 (m2_language_data): Delete la_emitchar initializer.
1978 (m2_language::emitchar): New member function, implementation from
1979 m2_emit_char.
1980 * objc-lang.c (objc_language_data): Delete la_emitchar
1981 initializer.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1984 (pascal_language_data): Delete la_emitchar initializer.
1985 (pascal_language::emitchar): New member function, implementation
1986 from pascal_emit_char.
1987 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1988 (rust_language_data): Delete la_emitchar initializer.
1989 (rust_language::emitchar): New member function, implementation
1990 from rust_emitchar.
1991
1992 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1995 (ada_language_data): Delete la_post_parser initializer.
1996 (ada_language::post_parser): New member function.
1997 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1998 (cplus_language_data): Likewise.
1999 (asm_language_data): Likewise.
2000 (minimal_language_data): Likewise.
2001 * d-lang.c (d_language_data): Likewise.
2002 * f-lang.c (f_language_data): Likewise.
2003 * go-lang.c (go_language_data): Likewise.
2004 * language.c (unknown_language_data): Likewise.
2005 (auto_language_data): Likewise.
2006 * language.h (language_data): Delete la_post_parser field.
2007 (language_defn::post_parser): New member function.
2008 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2009 * objc-lang.c (objc_language_data): Likewise.
2010 * opencl-lang.c (opencl_language_data): Likewise.
2011 * p-lang.c (pascal_language_data): Likewise.
2012 * parse.c (parse_exp_in_context): Update call to post_parser.
2013 (null_post_parser): Delete definition.
2014 * parser-defs.h (null_post_parser): Delete declaration.
2015 * rust-lang.c (rust_language_data): Delete la_post_parser
2016 initializer.
2017
2018 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (parse): Rename to ada_language::parser.
2021 (ada_language_data): Delete la_parser initializer.
2022 (ada_language::parser): New member function, implementation from
2023 parse.
2024 * c-lang.c (c_language_data): Delete la_parser initializer.
2025 (cplus_language_data): Likewise.
2026 (asm_language_data): Likewise.
2027 (minimal_language_data): Likewise.
2028 * d-lang.c (d_language_data): Likewise.
2029 (d_language::parser): New member function.
2030 * f-lang.c (f_language_data): Delete la_parser initializer.
2031 (f_language::parser): New member function.
2032 * go-lang.c (go_language_data): Delete la_parser initializer.
2033 (go_language::parser): New member function.
2034 * language.c (unk_lang_parser): Delete.
2035 (language_defn::parser): Define new member function.
2036 (unknown_language_data): Delete la_parser initializer.
2037 (unknown_language::parser): New member function.
2038 (auto_language_data): Delete la_parser initializer.
2039 (auto_language::parser): New member function.
2040 * language.h (language_data): Delete la_parser field.
2041 (language_defn::parser): Declare new member function.
2042 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2043 (m2_language::parser): New member function.
2044 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2045 * opencl-lang.c (opencl_language_data): Likewise.
2046 * p-lang.c (pascal_language_data): Likewise.
2047 (pascal_language::parser): New member function.
2048 * parse.c (parse_exp_in_context): Update call to parser.
2049 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2050 (rust_language::parser): New member function.
2051
2052 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * top.c (print_gdb_configuration): Print --with-python-libdir
2055 configuration value.
2056
2057 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2058
2059 * NEWS: Mention change to the alias command.
2060
2061 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2062
2063 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2064 (alias_command_completer)
2065 (make_alias_options_def_group): New functions.
2066 (alias_opts, alias_option_defs): New struct and array.
2067 (alias_usage_error): Update usage.
2068 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2069 Use option framework.
2070 (_initialize_cli_cmds): Update alias command help.
2071 Update aliases command help.
2072 (show_user):
2073 Add NULL for new default_args lookup_cmd argument.
2074 (valid_command_p): Rename to validate_aliased_command.
2075 Add NULL for new default_args lookup_cmd argument. Verify that the
2076 aliased_command has no default args.
2077 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2078 (lookup_cmd_1, lookup_cmd): New argument default_args.
2079 (add_alias_cmd):
2080 Add NULL for new default_args lookup_cmd argument.
2081 (print_help_for_command): Show default args under the layout
2082 alias some_alias = some_aliased_cmd some_alias_default_arg.
2083 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2084 xfree default_args in destructor.
2085 * cli/cli-script.c (process_next_line, do_define_command):
2086 Add NULL for new default_args lookup_cmd argument.
2087 * command.h: Declare new default_args argument in lookup_cmd
2088 and lookup_cmd_1.
2089 * completer.c (complete_line_internal_1):
2090 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2091 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2092 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2093 Likewise.
2094 * infcmd.c (_initialize_infcmd): Likewise.
2095 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2096 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2097 * python/py-param.c (add_setshow_generic): Likewise.
2098 * remote.c (_initialize_remote): Likewise.
2099 * top.c (execute_command): Prepend default_args if command has some.
2100 (set_verbose):
2101 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2102 * tracepoint.c (validate_actionline, encode_actions_1):
2103 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2104
2105 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2106
2107 * jit.c (jit_read_descriptor): Use bool as the return type.
2108 (jit_breakpoint_re_set_internal): Use bool as the return type.
2109 Invert the return value logic; return true if the jit breakpoint
2110 has been successfully initialized.
2111 (jit_inferior_init): Update the call to
2112 jit_breakpoint_re_set_internal.
2113
2114 2020-06-22 Pedro Alves <palves@redhat.com>
2115
2116 PR gdb/25939
2117 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2118 Use the current inferior instead. Don't return
2119 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2120 wait again.
2121 * sol-thread.c (sol_thread_target::wait): Don't reference
2122 inferior_ptid.
2123 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2124 (sol_update_thread_list_callback): Use the current inferior's pid
2125 instead of inferior_ptid.
2126
2127 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128
2129 * procfs.c: Cleanup many comments.
2130
2131 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2132 (AFTER_WATCHFLAG): Replace by value.
2133
2134 (MAIN_PROC_NAME_FORMAT): Inline ...
2135 (create_procinfo): ... here.
2136
2137 (procfs_debug_inferior): Remove SYS_exec handling.
2138 (syscall_is_exec): Likewise.
2139 (procfs_set_exec_trap): Likewise.
2140
2141 (syscall_is_lwp_exit): Inline in callers.
2142 (syscall_is_exit): Likewise.
2143 (syscall_is_exec): Likewise.
2144 (syscall_is_lwp_create): Likewise.
2145
2146 (invalidate_cache): Remove #if 0 code.
2147
2148 (make_signal_thread_runnable): Remove.
2149 (procfs_target::resume): Remove #if 0 code.
2150
2151 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2152
2153 PR gdb/25939
2154 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2155 call ...
2156 (procfs_target::create_inferior): ... here.
2157
2158 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2159
2160 * exec.c (validate_exec_file): Ensure the build-id is up to
2161 date by calling reopen_exec_file (that checks file timestamp
2162 to decide to re-read the file).
2163
2164 2020-06-18 Pedro Alves <palves@redhat.com>
2165
2166 PR gdb/25412
2167 * gdbthread.h (delete_thread, delete_thread_silent)
2168 (find_thread_ptid): Update comments.
2169 * thread.c (current_thread_): New global.
2170 (is_current_thread): Move higher, and reimplement.
2171 (inferior_thread): Reimplement.
2172 (set_thread_exited): Use bool. Add assertions.
2173 (add_thread_silent): Simplify thread-reuse handling by always
2174 calling delete_thread.
2175 (delete_thread): Remove intro comment.
2176 (find_thread_ptid): Skip exited threads.
2177 (switch_to_thread_no_regs): Write to current_thread_.
2178 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2179 INFERIOR_PTID. Clear current_thread_.
2180
2181 2020-06-18 Pedro Alves <palves@redhat.com>
2182
2183 * aix-thread.c (pd_update): Use switch_to_thread.
2184
2185 2020-06-18 Pedro Alves <palves@redhat.com>
2186
2187 * ravenscar-thread.c (ravenscar_thread_target): Update.
2188 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2189 (ravenscar_thread_target::add_active_thread): ... this. Don't
2190 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2191 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2192
2193 2020-06-18 Pedro Alves <palves@redhat.com>
2194
2195 * nat/windows-nat.c (current_windows_thread): Remove.
2196 * nat/windows-nat.h (current_windows_thread): Remove.
2197 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2198 Adjust.
2199 (display_selectors): Adjust to fetch the current
2200 windows_thread_info based on inferior_ptid.
2201 (fake_create_process): No longer write to current_windows_thread.
2202 (windows_nat_target::get_windows_debug_event):
2203 Don't set inferior_ptid or current_windows_thread.
2204 (windows_nat_target::wait): Adjust to not rely on
2205 current_windows_thread.
2206 (do_initial_windows_stuff): Now a method of windows_nat_target.
2207 Switch to the last_ptid thread.
2208 (windows_nat_target::attach): Adjust.
2209 (windows_nat_target::detach): Use switch_to_no_thread instead of
2210 writing to inferior_ptid directly.
2211 (windows_nat_target::create_inferior): Adjust.
2212
2213 2020-06-18 Pedro Alves <palves@redhat.com>
2214
2215 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2216
2217 2020-06-18 Pedro Alves <palves@redhat.com>
2218
2219 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2220 after creating it, instead of writing to inferior_ptid. Don't
2221 write to inferior_ptid.
2222
2223 2020-06-18 Pedro Alves <palves@redhat.com>
2224
2225 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2226
2227 2020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2230 it, instead of writing to inferior_ptid.
2231
2232 2020-06-18 Pedro Alves <palves@redhat.com>
2233
2234 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2235 to inferior_ptid.
2236
2237 2020-06-18 Pedro Alves <palves@redhat.com>
2238
2239 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2240 instead of writing to inferior_ptid directly.
2241
2242 2020-06-18 Pedro Alves <palves@redhat.com>
2243
2244 * corelow.c (core_target::close): Use switch_to_no_thread instead
2245 of writing to inferior_ptid directly.
2246 (add_to_thread_list, core_target_open): Use switch_to_thread
2247 instead of writing to inferior_ptid directly.
2248
2249 2020-06-18 Pedro Alves <palves@redhat.com>
2250
2251 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2252 inferior_ptid.
2253 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2254 inferior_ptid.
2255 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2256 inferior_ptid directly.
2257 (darwin_nat_target::init_thread_list): Switch to thread, instead
2258 of writing to inferior_ptid.
2259 (darwin_nat_target::attach): Don't write to inferior_ptid.
2260 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2261
2262 2020-06-18 Pedro Alves <palves@redhat.com>
2263
2264 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2265 thread.
2266 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2267 Instead use switch_to_thread.
2268 (gnu_nat_target::detach): Use switch_to_no_thread
2269 instead of writing to inferior_ptid directly. Used passed-in
2270 inferior instead of looking up the inferior by pid.
2271
2272 2020-06-18 Pedro Alves <palves@redhat.com>
2273
2274 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2275 inferior_ptid.
2276
2277 2020-06-18 Pedro Alves <palves@redhat.com>
2278
2279 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2280 inferior_ptid.
2281 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2282 thread.
2283 (nto_procfs_target::detach): Avoid referencing
2284 inferior_ptid. Use switch_to_no_thread instead of writing to
2285 inferior_ptid directly.
2286 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2287 instead of writing to inferior_ptid directly.
2288 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2289 to thread.
2290
2291 2020-06-18 Pedro Alves <palves@redhat.com>
2292
2293 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2294 after creating it, instead of writing to inferior_ptid.
2295 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2296 to inferior_ptid directly.
2297 (gdbsim_target::wait): Don't write to inferior_ptid.
2298
2299 2020-06-18 Pedro Alves <palves@redhat.com>
2300
2301 * remote.c (remote_target::remote_notice_new_inferior): Use
2302 switch_to_thread instead of writing to inferior_ptid directly.
2303 (remote_target::add_current_inferior_and_thread): Use
2304 switch_to_no_thread instead of writing to inferior_ptid directly.
2305 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2306 and switch_to_thread instead of using set_current_inferior or
2307 writing to inferior_ptid directly.
2308
2309 2020-06-18 Pedro Alves <palves@redhat.com>
2310
2311 * tracectf.c (ctf_target_open): Switch to added thread instead of
2312 writing to inferior_ptid directly.
2313 (ctf_target::close): Use switch_to_no_thread instead of writing to
2314 inferior_ptid directly.
2315
2316 2020-06-18 Pedro Alves <palves@redhat.com>
2317
2318 * tracefile-tfile.c (tfile_target_open): Don't write to
2319 inferior_ptid directly, instead switch to added thread.
2320 (tfile_target::close): Use switch_to_no_thread instead of writing
2321 to inferior_ptid directly.
2322
2323 2020-06-18 Pedro Alves <palves@redhat.com>
2324
2325 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2326 (procfs_target::detach): Use switch_to_no_thread
2327 instead of writing to inferior_ptid directly.
2328 (do_attach): Change return type to void. Switch to the added
2329 thread.
2330 (procfs_target::create_inferior): Switch to the added thread.
2331 (procfs_do_thread_registers): Don't write to inferior_ptid.
2332
2333 2020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2336 of writing to inferior_ptid.
2337 (scoped_restore_exited_inferior): Delete.
2338 (handle_vfork_child_exec_or_exit): Simplify using
2339 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2340 instead of writing to inferior_ptid.
2341 (THREAD_STOPPED_BY): Delete.
2342 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2343 (thread_stopped_by_hw_breakpoint): Delete.
2344 (save_waitstatus): Use
2345 scoped_restore_current_thread+switch_to_thread, and call
2346 target_stopped_by_watchpoint instead of
2347 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2348 instead of thread_stopped_by_sw_breakpoint, and
2349 target_stopped_by_hw_breakpoint instead of
2350 thread_stopped_by_hw_breakpoint.
2351 (handle_inferior_event)
2352 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2353 inferior_ptid directly, nor
2354 set_current_inferior/set_current_program_space. Use
2355 switch_to_thread / switch_to_inferior_no_thread instead.
2356
2357 2020-06-18 Pedro Alves <palves@redhat.com>
2358
2359 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2360 instead of writing to inferior_ptid.
2361
2362 2020-06-18 Pedro Alves <palves@redhat.com>
2363
2364 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2365 added thread.
2366 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2367 to the added thread.
2368 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2369 instead of writing to inferior_ptid.
2370
2371 2020-06-18 Pedro Alves <palves@redhat.com>
2372
2373 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2374 (register_to_value_test): Mock a program_space too. Heap-allocate
2375 the address space. Don't write to inferior_ptid. Use
2376 switch_to_thread instead.
2377
2378 2020-06-18 Pedro Alves <palves@redhat.com>
2379
2380 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2381 Delete.
2382 (find_signalled_thread()): New, factored out from
2383 linux_make_corefile_notes and adjusted to handle exited threads.
2384 (linux_make_corefile_notes): Adjust to use the new
2385 find_signalled_thread.
2386
2387 2020-06-18 Pedro Alves <palves@redhat.com>
2388
2389 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2390 of saving/restoring inferior_ptid.
2391
2392 2020-06-17 Tom Tromey <tom@tromey.com>
2393
2394 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2395 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2396 declare.
2397 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2398
2399 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2402 of partial symtabs.
2403
2404 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * regformats/reg-arm.dat: Remove.
2407 * regformats/reg-bfin.dat: Remove.
2408 * regformats/reg-cris.dat: Remove.
2409 * regformats/reg-crisv32.dat: Remove.
2410 * regformats/reg-m32r.dat: Remove.
2411 * regformats/reg-tilegx.dat: Remove.
2412 * regformats/reg-tilegx32.dat: Remove.
2413
2414 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * features/Makefile (WHICH): Remove arm files.
2417 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2418 * regformats/arm/arm-with-neon.dat: Remove.
2419 * regformats/arm/arm-with-vfpv2.dat: Remove.
2420 * regformats/arm/arm-with-vfpv3.dat: Remove.
2421
2422 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * features/Makefile (XMLTOC): Remove rx.xml.
2425
2426 2020-06-17 Pedro Alves <palves@redhat.com>
2427
2428 * gdbthread.h (thread_control_state) <trap_expected> Update
2429 comments.
2430
2431 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2434 ada_language::lookup_symbol_nonlocal.
2435 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2436 (ada_language::lookup_symbol_nonlocal): New member function,
2437 implementation from ada_lookup_symbol_nonlocal.
2438 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2439 initializer.
2440 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2441 initializer.
2442 (cplus_language::lookup_symbol_nonlocal): New member function.
2443 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2444 (minimal_language_data) Likewise.
2445 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2446 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2447 initializer.
2448 (d_language::lookup_symbol_nonlocal): New member function.
2449 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2450 initializer.
2451 (f_language::lookup_symbol_nonlocal): New member function.
2452 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2453 initializer.
2454 * language.c (unknown_language_data): Likewise.
2455 (auto_language_data): Likewise.
2456 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2457 field.
2458 (language_defn::lookup_symbol_nonlocal): New member function.
2459 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2460 initializer.
2461 * objc-lang.c (objc_language_data): Likewise.
2462 * opencl-lang.c (opencl_language_data): Likewise.
2463 * p-lang.c (pascal_language_data): Likewise.
2464 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2465 rust_language::lookup_symbol_nonlocal.
2466 (rust_language_data): Delete la_lookup_symbol_nonlocal
2467 initializer.
2468 (rust_language::lookup_symbol_nonlocal): New member function,
2469 implementation from rust_lookup_symbol_nonlocal.
2470 * symtab.c (lookup_symbol_aux): Update call to
2471 lookup_symbol_nonlocal.
2472 (basic_lookup_symbol_nonlocal): Rename to...
2473 (language_defn::lookup_symbol_nonlocal): ...this, and update
2474 header comment. Remove language_defn parameter, and replace with
2475 uses of `this'.
2476 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2477
2478 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2481 initializer.
2482 (ada_language::value_print_inner): New member function.
2483 * c-lang.c (c_language_data): Delete la_value_print_inner
2484 initializer.
2485 (cplus_language_data): Likewise.
2486 (asm_language_data): Likewise.
2487 (minimal_language_data): Likewise.
2488 * d-lang.c (d_language_data): Likewise.
2489 (d_language::value_print_inner): New member function.
2490 * f-lang.c (f_language_data): Delete la_value_print_inner
2491 initializer.
2492 (f_language::value_print_inner): New member function.
2493 * f-lang.h (f_value_print_innner): Rename to...
2494 (f_value_print_inner): ...this (note spelling of 'inner').
2495 * f-valprint.c (f_value_print_innner): Rename to...
2496 (f_value_print_inner): ...this (note spelling of 'inner').
2497 * go-lang.c (go_language_data): Delete la_value_print_inner
2498 initializer.
2499 (go_language::value_print_inner): New member function.
2500 * language.c (language_defn::value_print_inner): Define new member
2501 function.
2502 (unk_lang_value_print_inner): Delete.
2503 (unknown_language_data): Delete la_value_print_inner initializer.
2504 (unknown_language::value_print_inner): New member function.
2505 (auto_language_data): Delete la_value_print_inner initializer.
2506 (auto_language::value_print_inner): New member function.
2507 * language.h (language_data): Delete la_value_print_inner field.
2508 (language_defn::value_print_inner): Delcare new member function.
2509 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2510 initializer.
2511 (m2_language::value_print_inner): New member function.
2512 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2513 initializer.
2514 * opencl-lang.c (opencl_language_data): Likewise.
2515 * p-lang.c (pascal_language_data): Likewise.
2516 (pascal_language::value_print_inner): New member function.
2517 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2518 initializer.
2519 (rust_language::value_print_inner): New member function.
2520 * valprint.c (do_val_print): Update call to value_print_inner.
2521
2522 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (ada_language_data): Delete la_value_print
2525 initializer.
2526 (ada_language::value_print): New member function.
2527 * c-lang.c (c_language_data): Delete la_value_print initializer.
2528 (cplus_language_data): Likewise.
2529 (asm_language_data): Likewise.
2530 (minimal_language_data): Likewise.
2531 * d-lang.c (d_language_data): Likewise.
2532 * f-lang.c (f_language_data): Likewise.
2533 * go-lang.c (go_language_data): Likewise.
2534 * language.c (unk_lang_value_print): Delete.
2535 (language_defn::value_print): Define new member function.
2536 (unknown_language_data): Delete la_value_print initializer.
2537 (unknown_language::value_print): New member function.
2538 (auto_language_data): Delete la_value_print initializer.
2539 (auto_language::value_print): New member function.
2540 * language.h (language_data): Delete la_value_print field.
2541 (language_defn::value_print): Declare new member function.
2542 (LA_VALUE_PRINT): Update call to value_print.
2543 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2544 * objc-lang.c (objc_language_data): Likewise.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 (pascal_language::value_print): New member function.
2548 * rust-lang.c (rust_language_data): Delete la_value_print
2549 initializer.
2550
2551 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * ada-lang.c (ada_watch_location_expression): Rename to
2554 ada_language::watch_location_expression.
2555 (ada_language_data): Delete la_watch_location_expression
2556 initializer.
2557 (ada_language::watch_location_expression): New member function,
2558 implementation from ada_watch_location_expression.
2559 * breakpoint.c (watch_command_1): Update call to
2560 watch_location_expression.
2561 * c-lang.c (c_watch_location_expression): Rename to
2562 language_defn::watch_location_expression.
2563 (c_language_data): Delete la_watch_location_expression
2564 initializer.
2565 (cplus_language_data): Likewise.
2566 (asm_language_data): Likewise.
2567 (minimal_language_data): Likewise.
2568 * c-lang.h (c_watch_location_expression): Delete declaration.
2569 * d-lang.c (d_language_data): Delete la_watch_location_expression
2570 initializer.
2571 * f-lang.c (f_language_data): Likewise.
2572 * go-lang.c (go_language_data): Likewise.
2573 * language.c (language_defn::watch_location_expression): Member
2574 function implementation from c_watch_location_expression.
2575 (unknown_language_data): Delete la_watch_location_expression
2576 initializer.
2577 (auto_language_data): Likewise.
2578 * language.h (language_data): Delete la_watch_location_expression
2579 field.
2580 (language_defn::watch_location_expression): Declare new member
2581 function.
2582 * m2-lang.c (m2_language_data): Delete
2583 la_watch_location_expression initializer.
2584 * objc-lang.c (objc_language_data): Likewise.
2585 * opencl-lang.c (opencl_language_data): Likewise.
2586 * p-lang.c (pascal_language_data): Likewise.
2587 * rust-lang.c (rust_watch_location_expression): Rename to
2588 rust_language::watch_location_expression.
2589 (rust_language_data): Delete la_watch_location_expression
2590 initializer.
2591 (rust_language::watch_location_expression): New member function,
2592 implementation from rust_watch_location_expression.
2593
2594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2597 ada_language::collect_symbol_completion_matches.
2598 (ada_language_data): Delete la_collect_symbol_completion_matches
2599 initializer.
2600 (ada_language::collect_symbol_completion_matches): New member
2601 function, implementation from
2602 ada_collect_symbol_completion_matches.
2603 * c-lang.c (c_language_data): Delete
2604 la_collect_symbol_completion_matches initializer.
2605 (cplus_language_data): Likewise.
2606 (asm_language_data): Likewise.
2607 (minimal_language_data): Likewise.
2608 * d-lang.c (d_language_data): Likewise.
2609 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2610 f_language::collect_symbol_completion_matches.
2611 (f_language_data): Delete la_collect_symbol_completion_matches
2612 initializer.
2613 (f_language::collect_symbol_completion_matches) New member
2614 function, implementation from f_collect_symbol_completion_matches.
2615 * go-lang.c (go_language_data): Delete
2616 la_collect_symbol_completion_matches initializer.
2617 * language.c (unknown_language_data): Likewise.
2618 (auto_language_data): Likewise.
2619 * language.h (language_data): Delete
2620 la_collect_symbol_completion_matches field.
2621 (language_defn::collect_symbol_completion_matches): New member
2622 function.
2623 * m2-lang.c (m2_language_data): Delete
2624 la_collect_symbol_completion_matches initializer.
2625 * objc-lang.c (objc_language_data): Likewise.
2626 * opencl-lang.c (opencl_language_data): Likewise.
2627 * p-lang.c (pascal_language_data): Likewise.
2628 * rust-lang.c (rust_language_data): Likewise.
2629 * symtab.c (default_collect_symbol_completion_matches): Delete.
2630 (collect_symbol_completion_matches): Update call to
2631 collect_symbol_completion_matches.
2632 (collect_symbol_completion_matches_type): Likewise.
2633 * symtab.h (default_collect_symbol_completion_matches): Delete
2634 declaration.
2635
2636 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2639 (ada_language_data): Delete la_word_break_characters initializer.
2640 (ada_language::word_break_characters): New member function.
2641 * c-lang.c (c_language_data): Delete la_word_break_characters
2642 initializer.
2643 (cplus_language_data): Likewise.
2644 (asm_language_data): Likewise.
2645 (minimal_language_data): Likewise.
2646 * completer.c: Update global comment.
2647 (advance_to_expression_complete_word_point): Update call to
2648 word_break_characters.
2649 (complete_files_symbols): Likewise.
2650 (complete_line_internal_1): Likewise.
2651 (default_completer_handle_brkchars): Likewise.
2652 (skip_quoted_chars): Likewise.
2653 * d-lang.c (d_language_data): Delete la_word_break_characters
2654 initializer.
2655 * f-lang.c (f_word_break_characters): Delete.
2656 (f_language_data): Delete la_word_break_characters initializer.
2657 (f_language::word_break_characters): New member function.
2658 * go-lang.c (go_language_data): Delete la_word_break_characters
2659 initializer.
2660 * language.c (unknown_language_data): Likewise.
2661 (auto_language_data): Likewise.
2662 * language.h (default_word_break_characters): Move declaration to
2663 earlier in the file.
2664 (language_data): Delete la_word_break_characters field.
2665 (language_defn::word_break_characters): New member function.
2666 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2667 initializer.
2668 * objc-lang.c (objc_language_data): Likewise.
2669 * opencl-lang.c (opencl_language_data): Likewise.
2670 * p-lang.c (pascal_language_data): Likewise.
2671 * rust-lang.c (rust_language_data): Likewise.
2672
2673 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2676 (ada_language_data): Delete la_get_symbol_name_matcher
2677 initializer.
2678 (language_defn::get_symbol_name_matcher_inner): New member
2679 function.
2680 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2681 initializer.
2682 (cplus_language_data): Likewise.
2683 (cplus_language::get_symbol_name_matcher_inner): New member
2684 function.
2685 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2686 (minimal_language_data): Likewise.
2687 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2688 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2689 initializer.
2690 * dictionary.c (iter_match_first_hashed): Update call to
2691 get_symbol_name_matcher.
2692 (iter_match_next_hashed): Likewise.
2693 (iter_match_next_linear): Likewise.
2694 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2695 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2696 initializer.
2697 (f_language::get_symbol_name_matcher_inner): New member function.
2698 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2699 initializer.
2700 * language.c (default_symbol_name_matcher): Update header comment,
2701 make static.
2702 (language_defn::get_symbol_name_matcher): New definition.
2703 (language_defn::get_symbol_name_matcher_inner): Likewise.
2704 (get_symbol_name_matcher): Delete.
2705 (unknown_language_data): Delete la_get_symbol_name_matcher
2706 initializer.
2707 (auto_language_data): Likewise.
2708 * language.h (language_data): Delete la_get_symbol_name_matcher
2709 field.
2710 (language_defn::get_symbol_name_matcher): New member function.
2711 (language_defn::get_symbol_name_matcher_inner): Likewise.
2712 (default_symbol_name_matcher): Delete declaration.
2713 * linespec.c (find_methods): Update call to
2714 get_symbol_name_matcher.
2715 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2716 initializer.
2717 * minsyms.c (lookup_minimal_symbol): Update call to
2718 get_symbol_name_matcher.
2719 (iterate_over_minimal_symbols): Likewise.
2720 * objc-lang.c (objc_language_data): Delete
2721 la_get_symbol_name_matcher initializer.
2722 * opencl-lang.c (opencl_language_data): Likewise.
2723 * p-lang.c (pascal_language_data): Likewise.
2724 * psymtab.c (psymbol_name_matches): Update call to
2725 get_symbol_name_matcher.
2726 * rust-lang.c (rust_language_data): Delete
2727 la_get_symbol_name_matcher initializer.
2728 * symtab.c (symbol_matches_search_name): Update call to
2729 get_symbol_name_matcher.
2730 (compare_symbol_name): Likewise.
2731
2732 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * ada-lang.c (ada_language_data): Delete la_compute_program
2735 initializer.
2736 * c-lang.c (c_language_data): Likewise.
2737 (c_language::compute_program): New member function.
2738 (cplus_language_data): Delete la_compute_program initializer.
2739 (cplus_language::compute_program): New member function.
2740 (asm_language_data): Delete la_compute_program initializer.
2741 (minimal_language_data): Likewise.
2742 * c-lang.h (c_compute_program): Update comment.
2743 (cplus_compute_program): Likewise.
2744 * compile/compile-c-support.c (c_compute_program): Likewise.
2745 (cplus_compute_program): Likewise.
2746 * compile/compile.c (compile_to_object): Update call to
2747 la_compute_program.
2748 * d-lang.c (d_language_data): Delete la_compute_program
2749 initializer.
2750 * f-lang.c (f_language_data): Likewise.
2751 * go-lang.c (go_language_data): Likewise.
2752 * language.c (unknown_language_data): Likewise.
2753 (auto_language_data): Likewise.
2754 * language.h (language_data): Delete la_compute_program field.
2755 (language_defn::compute_program): New member function.
2756 * m2-lang.c (m2_language_data): Delete la_compute_program
2757 initializer.
2758 * objc-lang.c (objc_language_data): Likewise.
2759 * opencl-lang.c (opencl_language_data): Likewise.
2760 * p-lang.c (pascal_language_data): Likewise.
2761 * rust-lang.c (rust_language_data): Likewise.
2762
2763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * ada-lang.c (ada_language_data) Delete
2766 la_class_name_from_physname initializer.
2767 * c-lang.c (c_language_data): Likewise.
2768 (cplus_language_data): Likewise.
2769 (cplus_language::class_name_from_physname): New member function.
2770 (asm_language_data): Delete la_class_name_from_physname
2771 initializer.
2772 (minimal_language_data): Likewise.
2773 * d-lang.c (d_language_data): Likewise.
2774 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2775 method on language_defn class.
2776 (guess_full_die_structure_name): Likewise.
2777 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2778 initializer.
2779 * go-lang.c (go_language_data): Likewise.
2780 * language.c (language_class_name_from_physname): Delete.
2781 (unk_lang_class_name): Delete.
2782 (unknown_language_data): Delete la_class_name_from_physname
2783 initializer.
2784 (auto_language_data): Likewise.
2785 * language.h (language_data): Delete la_class_name_from_physname
2786 field.
2787 (language_defn::class_name_from_physname): New function.
2788 (language_class_name_from_physname): Delete declaration.
2789 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2790 initializer.
2791 * objc-lang.c (objc_language_data): Likewise.
2792 * opencl-lang.c (opencl_language_data): Likewise.
2793 * p-lang.c (pascal_language_data): Likewise.
2794 * rust-lang.c (rust_language_data): Likewise.
2795
2796 2020-06-16 Tom Tromey <tom@tromey.com>
2797
2798 * tui/tui-data.h (STATUS_NAME): New macro.
2799 * tui/tui-layout.c (tui_remove_some_windows)
2800 (initialize_known_windows, tui_register_window)
2801 (tui_layout_split::remove_windows, initialize_layouts)
2802 (tui_new_layout_command): Don't use hard-coded window names.
2803
2804 2020-06-16 Tom Tromey <tom@tromey.com>
2805
2806 PR tui/25348:
2807 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2808 tui_initialize_readline. Only run once. Call rl_initialize.
2809 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2810 tui_initialize_readline.
2811 * tui/tui-io.c (tui_setup_io): Call
2812 tui_ensure_readline_initialized.
2813 * tui/tui-interp.c (tui_interp::init): Update.
2814
2815 2020-06-16 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2818 Also preserve the status window.
2819
2820 2020-06-16 Tom Tromey <tom@tromey.com>
2821
2822 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2823 where m_window==nullptr.
2824
2825 2020-06-15 Tom Tromey <tromey@adacore.com>
2826
2827 * windows-nat.c (windows_nat::handle_output_debug_string):
2828 Update.
2829 (windows_nat::handle_ms_vc_exception): Update.
2830 * target.h (target_read_string): Change API.
2831 * target.c (target_read_string): Change API.
2832 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2833 Update.
2834 * solib-frv.c (frv_current_sos): Update.
2835 * solib-dsbt.c (dsbt_current_sos): Update.
2836 * solib-darwin.c (darwin_current_sos): Update.
2837 * linux-thread-db.c (inferior_has_bug): Update.
2838 * expprint.c (print_subexp_standard): Update.
2839 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2840 (ada_exception_message_1): Update.
2841
2842 2020-06-15 Tom Tromey <tromey@adacore.com>
2843
2844 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2845
2846 2020-06-15 Tom Tromey <tromey@adacore.com>
2847
2848 * valprint.c (read_string): Update comment.
2849 * target.c (MIN): Remove.
2850 (target_read_string): Rewrite.
2851
2852 2020-06-15 Tom Tromey <tromey@adacore.com>
2853
2854 * corefile.c (read_memory_string): Remove.
2855 * ada-valprint.c (ada_value_print_ptr): Update.
2856 * ada-lang.h (ada_tag_name): Change return type.
2857 * ada-lang.c (type_from_tag): Update.
2858 (ada_tag_name_from_tsd): Change return type. Use
2859 target_read_string.
2860 (ada_tag_name): Likewise.
2861 * gdbcore.h (read_memory_string): Don't declare.
2862
2863 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2864
2865 * symtab.c (rbreak_command): Ignore Windows drive colon.
2866
2867 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * NEWS: Mention removed GDBserver host support.
2870
2871 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2872
2873 * features/riscv/rebuild-csr-xml.sh: Updated.
2874
2875 2020-06-11 Tom Tromey <tom@tromey.com>
2876
2877 PR gdb/18318:
2878 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2879
2880 2020-06-09 Jonny Grant <jg@jguk.org>
2881 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2882
2883 * main.c (captured_main_1): Don't print new line after help.
2884 (print_gdb_help): add mailing list and IRC channel information
2885 to --help. Add new lines between items in the footer. Remove
2886 quotes around bug url.
2887
2888 2020-06-11 Keith Seitz <keiths@redhat.com>
2889
2890 PR gdb/21356
2891 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2892 Resolve typedefs for type length calculations.
2893
2894 2020-06-10 Tom de Vries <tdevries@suse.de>
2895
2896 PR ada/24713
2897 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2898 (write_psymbols): Enable .gdb_index for ada.
2899 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2900 ada.
2901
2902 2020-06-10 Tom de Vries <tdevries@suse.de>
2903
2904 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2905 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2906 namei" instead of "const char *name" argument.
2907 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2908 dw2_symtab_iter_init.
2909
2910 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2913 to use type::field and field::type instead.
2914
2915 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2916
2917 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2918 to use field::type instead.
2919
2920 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * gdbtypes.h (struct field) <type, set_type>: New methods.
2923 Rename `type` field to...
2924 <m_type>: ... this. Change references throughout to use type or
2925 set_type methods.
2926 (FIELD_TYPE): Use field::type. Change call sites that modify
2927 the field's type to use field::set_type instead.
2928
2929 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2932 to use type::index_type instead.
2933
2934 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2937 methods.
2938 (TYPE_INDEX_TYPE): Use type::index_type.
2939 * gdbtypes.c (create_array_type_with_stride): Likewise.
2940
2941 2020-06-07 Tom Tromey <tom@tromey.com>
2942
2943 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2944 parameter.
2945 (generic_value_print): Update.
2946
2947 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 Revert commit 982a38f60b0.
2950 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2951
2952 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2955 avoid use after free.
2956
2957 2020-06-05 Tom de Vries <tdevries@suse.de>
2958
2959 * NEWS: Fix typos.
2960
2961 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2964 the per_bfd object.
2965 (dwarf2_read_debug_names): Likewise.
2966 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2967 object when re-using a per_bfd object with an index.
2968
2969 2020-06-03 Tom de Vries <tdevries@suse.de>
2970
2971 PR symtab/26046
2972 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2973 children for C++.
2974 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2975 DW_TAG_subprogram.
2976
2977 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * ada-lang.c (ada_language_data): Delete skip_trampoline
2980 initializer.
2981 * c-lang.c (c_language_data): Likewise.
2982 (cplus_language_data): Likewise.
2983 (cplus_language::skip_trampoline): New member function.
2984 (asm_language_data): Delete skip_trampoline initializer.
2985 (minimal_language_data): Likewise.
2986 * d-lang.c (d_language_data): Likewise.
2987 * f-lang.c (f_language_data): Likewise.
2988 * go-lang.c (go_language_data): Likewise.
2989 * language.c (unk_lang_trampoline): Delete function.
2990 (skip_language_trampoline): Update.
2991 (unknown_language_data): Delete skip_trampoline initializer.
2992 (auto_language_data): Likewise.
2993 * language.h (language_data): Delete skip_trampoline field.
2994 (language_defn::skip_trampoline): New function.
2995 * m2-lang.c (m2_language_data): Delete skip_trampoline
2996 initializer.
2997 * objc-lang.c (objc_skip_trampoline): Delete function, move
2998 implementation to objc_language::skip_trampoline.
2999 (objc_language_data): Delete skip_trampoline initializer.
3000 (objc_language::skip_trampoline): New member function with
3001 implementation from objc_skip_trampoline.
3002 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3003 initializer.
3004 * p-lang.c (pascal_language_data): Likewise.
3005 * rust-lang.c (rust_language_data): Likewise.
3006
3007 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3010 (ada_language::demangle): New member function.
3011 * c-lang.c (c_language_data): Delete la_demangle initializer.
3012 (cplus_language_data): Delete la_demangle initializer.
3013 (cplus_language::demangle): New member function.
3014 (asm_language_data): Delete la_demangle initializer.
3015 (minimal_language_data): Delete la_demangle initializer.
3016 * d-lang.c (d_language_data): Delete la_demangle initializer.
3017 (d_language::demangle): New member function.
3018 * f-lang.c (f_language_data): Delete la_demangle initializer.
3019 (f_language::demangle): New member function.
3020 * go-lang.c (go_language_data): Delete la_demangle initializer.
3021 (go_language::demangle): New member function.
3022 * language.c (language_demangle): Update.
3023 (unk_lang_demangle): Delete.
3024 (unknown_language_data): Delete la_demangle initializer.
3025 (unknown_language::demangle): New member function.
3026 (auto_language_data): Delete la_demangle initializer.
3027 (auto_language::demangle): New member function.
3028 * language.h (language_data): Delete la_demangle field.
3029 (language_defn::demangle): New function.
3030 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3031 * objc-lang.c (objc_language_data): Delete la_demangle
3032 initializer.
3033 (objc_language::demangle): New member function.
3034 * opencl-lang.c (opencl_language_data): Delete la_demangle
3035 initializer.
3036 * p-lang.c (pascal_language_data): Likewise.
3037 * rust-lang.c (rust_language_data): Likewise.
3038 (rust_language::demangle): New member function.
3039
3040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_language_data): Delete la_print_type
3043 initializer.
3044 (ada_language::print_type): New member function.
3045 * c-lang.c (c_language_data): Delete la_print_type initializer.
3046 (c_language::print_type): New member function.
3047 (cplus_language_data): Delete la_print_type initializer.
3048 (cplus_language::print_type): New member function.
3049 (asm_language_data): Delete la_print_type initializer.
3050 (asm_language::print_type): New member function.
3051 (minimal_language_data): Delete la_print_type initializer.
3052 (minimal_language::print_type): New member function.
3053 * d-lang.c (d_language_data): Delete la_print_type initializer.
3054 (d_language::print_type): New member function.
3055 * f-lang.c (f_language_data): Delete la_print_type initializer.
3056 (f_language::print_type): New member function.
3057 * go-lang.c (go_language_data): Delete la_print_type initializer.
3058 (go_language::print_type): New member function.
3059 * language.c (unk_lang_print_type): Delete.
3060 (unknown_language_data): Delete la_print_type initializer.
3061 (unknown_language::print_type): New member function.
3062 (auto_language_data): Delete la_print_type initializer.
3063 (auto_language::print_type): New member function.
3064 * language.h (language_data): Delete la_print_type field.
3065 (language_defn::print_type): New function.
3066 (LA_PRINT_TYPE): Update.
3067 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3068 (m2_language::print_type): New member function.
3069 * objc-lang.c (objc_language_data): Delete la_print_type
3070 initializer.
3071 (objc_language::print_type): New member function.
3072 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3073 to opencl_language::print_type.
3074 (opencl_language_data): Delete la_print_type initializer.
3075 (opencl_language::print_type): New member function, implementation
3076 from opencl_print_type.
3077 * p-lang.c (pascal_language_data): Delete la_print_type
3078 initializer.
3079 (pascal_language::print_type): New member function.
3080 * rust-lang.c (rust_print_type): Delete, implementation moved to
3081 rust_language::print_type.
3082 (rust_language_data): Delete la_print_type initializer.
3083 (rust_language::print_type): New member function, implementation
3084 from rust_print_type.
3085
3086 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3089 implementation moves to...
3090 (ada_language::sniff_from_mangled_name): ...here. Update return
3091 type.
3092 (ada_language_data): Delete la_sniff_from_mangled_name
3093 initializer.
3094 * c-lang.c (c_language_data): Likewise.
3095 (cplus_language_data): Likewise.
3096 (cplus_language::sniff_from_mangled_name): New member function,
3097 implementation taken from gdb_sniff_from_mangled_name.
3098 (asm_language_data): Delete la_sniff_from_mangled_name
3099 initializer.
3100 (minimal_language_data): Likewise.
3101 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3102 implementation moves to cplus_language::sniff_from_mangled_name.
3103 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3104 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3105 moves to...
3106 (d_language::sniff_from_mangled_name): ...here.
3107 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3108 * f-lang.c (f_language_data): Likewise.
3109 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3110 moves to...
3111 (go_language::sniff_from_mangled_name): ...here.
3112 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3113 * language.c (language_sniff_from_mangled_name): Delete.
3114 (unknown_language_data): Delete la_sniff_from_mangled_name
3115 initializer.
3116 (auto_language_data): Likewise.
3117 * language.h (language_data): Delete la_sniff_from_mangled_name
3118 field.
3119 (language_defn::sniff_from_mangled_name): New function.
3120 (language_sniff_from_mangled_name): Delete declaration.
3121 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3122 field.
3123 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3124 implementation moves to...
3125 (objc_language::sniff_from_mangled_name): ...here.
3126 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3127 * opencl-lang.c (opencl_language_data): Likewise.
3128 * p-lang.c (pascal_language_data): Likewise.
3129 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3130 implementation moves to...
3131 (rust_language::sniff_from_mangled_name): ...here.
3132 (rust_language_data): Delete la_sniff_from_mangled_name
3133 initializer.
3134 * symtab.c (symbol_find_demangled_name): Call
3135 sniff_from_mangled_name member function.
3136
3137 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3140 initializer.
3141 * c-lang.c (c_language_data): Likewise.
3142 (cplus_language_data): Likewise.
3143 (cplus_language::search_name_hash): New member function.
3144 (asm_language_data): Delete la_search_name_hash initializer.
3145 (minimal_language_data): Likewise.
3146 * d-lang.c (d_language_data): Likewise.
3147 * dictionary.c (default_search_name_hash): Rename to...
3148 (language_defn::search_name_hash): ...this.
3149 * f-lang.c (f_language_data): Likewise.
3150 (f_language::search_name_hash): New member function.
3151 * go-lang.c (go_language_data): Delete la_search_name_hash
3152 initializer.
3153 * language.c (unknown_language_data): Likewise.
3154 (auto_language_data): Likewise.
3155 * language.h (struct language_data): Delete la_search_name_hash
3156 field.
3157 (language_defn::search_name_hash): Declare new member function.
3158 (default_search_name_hash): Delete declaration.
3159 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3160 initializer.
3161 * objc-lang.c (objc_language_data): Likewise.
3162 * opencl-lang.c (opencl_language_data): Likewise.
3163 * p-lang.c (pascal_language_data): Likewise.
3164 * rust-lang.c (rust_language_data): Likewise.
3165 * symtab.c (search_name_hash): Update call.
3166
3167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3170 initializer.
3171 * c-lang.c (class compile_instance): Declare.
3172 (c_language_data): Delete la_get_compile_instance initializer.
3173 (c_language::get_compile_instance): New member function.
3174 (cplus_language_data): Delete la_get_compile_instance initializer.
3175 (cplus_language::get_compile_instance): New member function.
3176 (asm_language_data): Delete la_get_compile_instance initializer.
3177 (minimal_language_data): Likewise.
3178 * c-lang.h (c_get_compile_context): Update comment.
3179 (cplus_get_compile_context): Update comment.
3180 * compile/compile.c (compile_to_object): Update calls, don't rely
3181 on function pointer being NULL.
3182 * d-lang.c (d_language_data): Delete la_get_compile_instance
3183 initializer.
3184 * f-lang.c (f_language_data): Likewise.
3185 * go-lang.c (go_language_data): Likewise.
3186 * language.c (unknown_language_data): Likewise.
3187 (auto_language_data): Likewise.
3188 * language.h (language_data): Delete la_get_compile_instance field.
3189 (language_defn::get_compile_instance): New member function.
3190 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3191 initializer.
3192 * objc-lang.c (objc_language_data): Likewise.
3193 * opencl-lang.c (opencl_language_data): Likewise.
3194 * p-lang.c (pascal_language_data): Likewise.
3195 * rust-lang.c (rust_language_data): Likewise.
3196
3197 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_add_all_symbols): Update comment.
3200 (ada_iterate_over_symbols): Delete, move implementation to...
3201 (ada_language::iterate_over_symbols): ...here, a new member
3202 function, rewrite to use range based for loop.
3203 (ada_language_data): Delete la_iterate_over_symbols initializer.
3204 * c-lang.c (c_language_data): Likewise.
3205 (cplus_language_data): Likewise.
3206 (asm_language_data): Likewise.
3207 (minimal_language_data): Likewise.
3208 * d-lang.c (d_language_data): Likewise.
3209 * f-lang.c (f_language_data): Likewise.
3210 * go-lang.c (go_language_data): Likewise.
3211 * language.c (unknown_language_data): Likewise.
3212 (auto_language_data): Likewise.
3213 * language.h (language_data): Delete la_iterate_over_symbols field.
3214 (language_defn::iterate_over_symbols): New member function.
3215 (LA_ITERATE_OVER_SYMBOLS): Update.
3216 * linespec.c (iterate_over_all_matching_symtabs): Update.
3217 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3218 initializer.
3219 * objc-lang.c (objc_language_data): Likewise.
3220 * opencl-lang.c (opencl_language_data): Likewise.
3221 * p-lang.c (pascal_language_data): Likewise.
3222 * rust-lang.c (rust_language_data): Likewise.
3223
3224 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * ada-lang.c (ada_language_data): Delete
3227 la_lookup_transparent_type initializer.
3228 * c-lang.c (c_language_data): Likewise.
3229 (cplus_language_data): Likewise.
3230 (cplus_language::lookup_transparent_type): New member function.
3231 (asm_language_data): Delete la_lookup_transparent_type
3232 initializer.
3233 (minimal_language_data): Likewise.
3234 * d-lang.c (d_language_data): Likewise.
3235 * f-lang.c (f_language_data): Likewise.
3236 * go-lang.c (go_language_data): Likewise.
3237 * language.c (unknown_language_data): Likewise.
3238 (auto_language_data): Likewise.
3239 * language.h (struct language_data): Delete
3240 la_lookup_transparent_type field.
3241 (language_defn::lookup_transparent_type): New member function.
3242 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3243 initializer.
3244 * objc-lang.c (objc_language_data): Likewise.
3245 * opencl-lang.c (opencl_language_data): Likewise.
3246 * p-lang.c (pascal_language_data): Likewise.
3247 * rust-lang.c (rust_language_data): Likewise.
3248 * symtab.c (symbol_matches_domain): Update call.
3249
3250 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * ada-lang.c (ada_language_arch_info): Delete function, move
3253 implementation to...
3254 (ada_language::language_arch_info): ...here, a new member
3255 function.
3256 (ada_language_data): Delete la_language_arch_info.
3257 * c-lang.c (c_language_data): Likewise.
3258 (c_language::language_arch_info): New member function.
3259 (cplus_language_arch_info): Delete function, move
3260 implementation to...
3261 (cplus_language::language_arch_info): ...here, a new member
3262 function.
3263 (cplus_language_data): Delete la_language_arch_info.
3264 (asm_language_data): Likewise.
3265 (asm_language::language_arch_info): New member function.
3266 (minimal_language_data): Delete la_language_arch_info.
3267 (minimal_language::language_arch_info): New member function.
3268 * d-lang.c (d_language_arch_info): Delete function, move
3269 implementation to...
3270 (d_language::language_arch_info): ...here, a new member
3271 function.
3272 (d_language_data): Delete la_language_arch_info.
3273 * f-lang.c (f_language_arch_info): Delete function, move
3274 implementation to...
3275 (f_language::language_arch_info): ...here, a new member
3276 function.
3277 (f_language_data): Delete la_language_arch_info.
3278 * go-lang.c (go_language_arch_info): Delete function, move
3279 implementation to...
3280 (go_language::language_arch_info): ...here, a new member
3281 function.
3282 (go_language_data): Delete la_language_arch_info.
3283 * language.c (unknown_language_data): Likewise.
3284 (unknown_language::language_arch_info): New member function.
3285 (auto_language_data): Delete la_language_arch_info.
3286 (auto_language::language_arch_info): New member function.
3287 (language_gdbarch_post_init): Update call to
3288 la_language_arch_info.
3289 * language.h (language_data): Delete la_language_arch_info
3290 function pointer.
3291 (language_defn::language_arch_info): New function.
3292 * m2-lang.c (m2_language_arch_info): Delete function, move
3293 implementation to...
3294 (m2_language::language_arch_info): ...here, a new member
3295 function.
3296 (m2_language_data): Delete la_language_arch_info.
3297 * objc-lang.c (objc_language_arch_info): Delete function, move
3298 implementation to...
3299 (objc_language::language_arch_info): ...here, a new member
3300 function.
3301 (objc_language_data): Delete la_language_arch_info.
3302 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3303 implementation to...
3304 (opencl_language::language_arch_info): ...here, a new member
3305 function.
3306 (opencl_language_data): Delete la_language_arch_info.
3307 * p-lang.c (pascal_language_arch_info): Delete function, move
3308 implementation to...
3309 (pascal_language::language_arch_info): ...here, a new member
3310 function.
3311 (pascal_language_data): Delete la_language_arch_info.
3312 * rust-lang.c (rust_language_arch_info): Delete function, move
3313 implementation to...
3314 (rust_language::language_arch_info): ...here, a new member
3315 function.
3316 (rust_language_data): Delete la_language_arch_info.
3317
3318 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3321 initializer.
3322 * c-lang.c (c_language_data): Likewise.
3323 (cplus_language_data): Likewise.
3324 (cplus_language::pass_by_reference_info): New method.
3325 (asm_language_data): Delete la_pass_by_reference initializer.
3326 (minimal_language_data): Likewise.
3327 * cp-abi.c (cp_pass_by_reference): Remove use of
3328 default_pass_by_reference.
3329 * d-lang.c (d_language_data): Likewise.
3330 * f-lang.c (f_language_data): Likewise.
3331 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3332 default_pass_by_reference.
3333 * go-lang.c (go_language_data): Likewise.
3334 * language.c (language_pass_by_reference): Update.
3335 (default_pass_by_reference): Delete.
3336 (unknown_language_data): Delete la_pass_by_reference
3337 initializer.
3338 (auto_language_data): Likewise.
3339 * language.h (struct language_data): Delete la_pass_by_reference
3340 field.
3341 (language_defn::pass_by_reference_info): New member function.
3342 (default_pass_by_reference): Delete declaration.
3343 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3344 initializer.
3345 * objc-lang.c (objc_language_data): Likewise.
3346 * opencl-lang.c (opencl_language_data): Likewise.
3347 * p-lang.c (pascal_language_data): Likewise.
3348 * rust-lang.c (rust_language_data): Likewise.
3349
3350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * ada-lang.c (ada_read_var_value): Delete function, move
3353 implementation to...
3354 (ada_language::read_var_value): ...here.
3355 (ada_language_data): Delete la_read_var_value initializer.
3356 * c-lang.c (c_language_data): Likewise.
3357 (cplus_language_data): Likewise.
3358 (minimal_language_data): Likewise.
3359 * d-lang.c (d_language_data): Likewise.
3360 * f-lang.c (f_language_data): Likewise.
3361 * findvar.c (default_read_var_value): Rename to...
3362 (language_defn::read_var_value): ...this.
3363 * findvar.c (read_var_value): Update header comment, and change to
3364 call member function instead of function pointer.
3365 * go-lang.c (go_language_data): Likewise.
3366 * language.c (unknown_language_data): Delete la_read_var_value
3367 initializer.
3368 (auto_language_data): Likewise.
3369 * language.h (struct language_data): Delete la_read_var_value
3370 field.
3371 (language_defn::read_var_value): New member function.
3372 (default_read_var_value): Delete declaration.
3373 * m2-lang.c (m2_language_data): Delete la_read_var_value
3374 initializer.
3375 * objc-lang.c (objc_language_data): Likewise.
3376 * opencl-lang.c (opencl_language_data): Likewise.
3377 * p-lang.c (pascal_language_data): Likewise.
3378 * rust-lang.c (rust_language_data): Likewise.
3379 * value.h (default_read_var_value): Delete declaration.
3380
3381 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * ada-lang.c (ada_print_array_index): Delete function, move
3384 implementation to...
3385 (ada_language::print_array_index): ...here.
3386 (ada_language_data): Delete la_print_array_index initializer.
3387 * c-lang.c (c_language_data): Likewise.
3388 (cplus_language_data): Likewise.
3389 (minimal_language_data): Likewise.
3390 * d-lang.c (d_language_data): Likewise.
3391 * f-lang.c (f_language_data): Likewise.
3392 * go-lang.c (go_language_data): Likewise.
3393 * language.c (default_print_array_index): Delete function, move
3394 implementation to...
3395 (language_defn::print_array_index): ...here.
3396 (unknown_language_data): Delete la_print_array_index initializer.
3397 (auto_language_data): Likewise.
3398 * language.h (struct language_data): Delete la_print_array_index
3399 field.
3400 (language_defn::print_array_index): New member function.
3401 (LA_PRINT_ARRAY_INDEX): Update.
3402 (default_print_array_index): Delete declaration.
3403 * m2-lang.c (m2_language_data): Delete la_print_array_index
3404 initializer.
3405 * objc-lang.c (objc_language_data): Likewise.
3406 * opencl-lang.c (opencl_language_data): Likewise.
3407 * p-lang.c (pascal_language_data): Likewise.
3408 * rust-lang.c (rust_language_data): Likewise.
3409
3410 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * gdb/ada-lang.c (ada_language_defn): Convert to...
3413 (ada_language_data): ...this.
3414 (class ada_language): New class.
3415 (ada_language_defn): New static global.
3416 * gdb/c-lang.c (c_language_defn): Convert to...
3417 (c_language_data): ...this.
3418 (class c_language): New class.
3419 (c_language_defn): New static global.
3420 (cplus_language_defn): Convert to...
3421 (cplus_language_data): ...this.
3422 (class cplus_language): New class.
3423 (cplus_language_defn): New static global.
3424 (asm_language_defn): Convert to...
3425 (asm_language_data): ...this.
3426 (class asm_language): New class.
3427 (asm_language_defn): New static global.
3428 (minimal_language_defn): Convert to...
3429 (minimal_language_data): ...this.
3430 (class minimal_language): New class.
3431 (minimal_language_defn): New static global.
3432 * gdb/d-lang.c (d_language_defn): Convert to...
3433 (d_language_data): ...this.
3434 (class d_language): New class.
3435 (d_language_defn): New static global.
3436 * gdb/f-lang.c (f_language_defn): Convert to...
3437 (f_language_data): ...this.
3438 (class f_language): New class.
3439 (f_language_defn): New static global.
3440 * gdb/go-lang.c (go_language_defn): Convert to...
3441 (go_language_data): ...this.
3442 (class go_language): New class.
3443 (go_language_defn): New static global.
3444 * gdb/language.c (unknown_language_defn): Remove declaration.
3445 (current_language): Initialize to nullptr, real initialization is
3446 moved to _initialize_language.
3447 (languages): Delete global.
3448 (language_defn::languages): Define.
3449 (set_language_command): Use language_defn::languages.
3450 (set_language): Likewise.
3451 (range_error): Likewise.
3452 (language_enum): Likewise.
3453 (language_def): Likewise.
3454 (add_set_language_command): Use language_def::languages for the
3455 language list, and language_def to lookup language pointers.
3456 (skip_language_trampoline): Use language_defn::languages.
3457 (unknown_language_defn): Convert to...
3458 (unknown_language_data): ...this.
3459 (class unknown_language): New class.
3460 (unknown_language_defn): New static global.
3461 (auto_language_defn): Convert to...
3462 (auto_language_data): ...this.
3463 (class auto_language): New class.
3464 (auto_language_defn): New static global.
3465 (language_gdbarch_post_init): Use language_defn::languages.
3466 (_initialize_language): Initialize current_language.
3467 * gdb/language.h (struct language_defn): Rename to...
3468 (struct language_data): ...this.
3469 (struct language_defn): New.
3470 (auto_language_defn): Delete.
3471 (unknown_language_defn): Delete.
3472 (minimal_language_defn): Delete.
3473 (ada_language_defn): Delete.
3474 (asm_language_defn): Delete.
3475 (c_language_defn): Delete.
3476 (cplus_language_defn): Delete.
3477 (d_language_defn): Delete.
3478 (f_language_defn): Delete.
3479 (go_language_defn): Delete.
3480 (m2_language_defn): Delete.
3481 (objc_language_defn): Delete.
3482 (opencl_language_defn): Delete.
3483 (pascal_language_defn): Delete.
3484 (rust_language_defn): Delete.
3485 * gdb/m2-lang.c (m2_language_defn): Convert to...
3486 (m2_language_data): ...this.
3487 (class m2_language): New class.
3488 (m2_language_defn): New static global.
3489 * gdb/objc-lang.c (objc_language_defn): Convert to...
3490 (objc_language_data): ...this.
3491 (class objc_language): New class.
3492 (objc_language_defn): New static global.
3493 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3494 (opencl_language_data): ...this.
3495 (class opencl_language): New class.
3496 (opencl_language_defn): New static global.
3497 * gdb/p-lang.c (pascal_language_defn): Convert to...
3498 (pascal_language_data): ...this.
3499 (class pascal_language): New class.
3500 (pascal_language_defn): New static global.
3501 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3502 language pointer, update comment format.
3503 * gdb/rust-lang.c (rust_language_defn): Convert to...
3504 (rust_language_data): ...this.
3505 (class rust_language): New class.
3506 (rust_language_defn): New static global.
3507
3508 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3509
3510 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3511 member variable.
3512 <m_stmt_at_address>: New member variable.
3513 (lnp_state_machine::record_line): Don't record some lines, update
3514 tracking of is_stmt at the same address.
3515 (lnp_state_machine::lnp_state_machine): Initialise new member
3516 variables.
3517
3518 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3519
3520 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3521 "-include gnu-nat-mig.h".
3522 * gnu-nat-mig.h: New file.
3523 * gnu-nat.c: Include "gnu-nat-mig.h".
3524 (exc_server, msg_reply_server, notify_server,
3525 process_reply_server): Remove declarations.
3526
3527 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3528
3529 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3530 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3531 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3532 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3533 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3534 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3535 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3536 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3537 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3538 to gnu_nat_target class.
3539 * gnu-nat.c: Likewise.
3540 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3541 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3542 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3543 object.
3544 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3545 instead of `gnu_target'.
3546
3547 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3548
3549 * i386-gnu-tdep.c: Include "gdbcore.h"
3550 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3551 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3552 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3553 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3554 i386_gnu_sigcontext_addr): New functions
3555 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3556 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3557 tdep.
3558
3559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3560
3561 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3562 before fork_inferior call. Avoid calling it if target_is_pushed returns
3563 true.
3564
3565 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3566
3567 * gnu-nat.h (gnu_target): New variable declaration.
3568 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3569 gnu_target.
3570 * gnu-nat.c (gnu_target): New variable.
3571 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3572 add_thread_silent, and add_thread calls.
3573 (gnu_nat_target::create_inferior): Pass gnu_target to
3574 add_thread_silent, thread_change_ptid call.
3575 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3576 call.
3577
3578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3579
3580 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3581 (gnu_nat_target::find_memory_regions): Remove unused
3582 `old_address' variable.
3583
3584 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3585
3586 * gnu-nat.c: Include "gdbarch.h".
3587
3588 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3589
3590 * reply_mig_hack.awk (Error return): Cast function through
3591 void *, to bypass compiler function call check.
3592
3593 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3594
3595 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3596 $(srcdir)/reply_mig_hack.awk.
3597
3598 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3599
3600 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3601
3602 2020-05-30 Jonny Grant <jg@jguk.org>
3603
3604 * configure.ac (ACX_BUGURL): change bug URL to https.
3605
3606 2020-05-30 Pedro Alves <palves@redhat.com>
3607
3608 * cp-support.c (replace_typedefs_template): New.
3609 (replace_typedefs_qualified_name): Handle
3610 DEMANGLE_COMPONENT_TEMPLATE.
3611
3612 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3615 dwarf2/index-cache.h, dwarf2/index-write.c,
3616 dwarf2/index-write.h, dwarf2/line-header.c,
3617 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3618 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3619 variables and fields from `dwarf2_per_objfile` to just
3620 `per_objfile` throughout.
3621
3622 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3623
3624 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3625 <push_dwarf_reg_entry_value>: Add comment.
3626
3627 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3628 Keith Seitz <keiths@redhat.com>
3629
3630 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3631 instead of PyEval_ReleaseLock.
3632 (class gdbpy_gil): Move to earlier in file.
3633 (finalize_python): Set gdb_python_initialized.
3634 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3635 when not initialized.
3636
3637 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3638
3639 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3640 <push_dwarf_reg_entry_value>: Remove assert. Override
3641 per_objfile with caller_per_objfile.
3642
3643 2020-05-28 Tom de Vries <tdevries@suse.de>
3644
3645 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3646 PR gold/15646 workaround to symbol kind "type".
3647
3648 2020-05-27 Tom Tromey <tromey@adacore.com>
3649
3650 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3651
3652 2020-05-27 Tom Tromey <tromey@adacore.com>
3653
3654 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3655 Use htab_find_with_hash.
3656 <add_abbrev>: Remove "abbrev_number" parameter.
3657 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3658 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3659 (hash_abbrev): Add comment.
3660 (abbrev_table::lookup_abbrev): Move to header file.
3661 (abbrev_table::read): Update.
3662
3663 2020-05-27 Tom Tromey <tromey@adacore.com>
3664
3665 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3666 method.
3667 <canonical_name>: New member.
3668 <raw_name>: Rename from "name".
3669 (partial_die_info): Initialize canonical_name.
3670 (scan_partial_symbols): Check raw_name.
3671 (partial_die_parent_scope, partial_die_full_name)
3672 (add_partial_symbol, add_partial_subprogram)
3673 (add_partial_enumeration, load_partial_dies): Use "name" method.
3674 (partial_die_info::name): New method.
3675 (partial_die_info::read, guess_partial_die_structure_name)
3676 (partial_die_info::fixup): Update.
3677
3678 2020-05-27 Tom Tromey <tromey@adacore.com>
3679
3680 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3681 <get_ref_die_offset>: Inline.
3682 <get_ref_die_offset_complaint>: New method.
3683 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3684 (attribute::get_ref_die_offset_complaint): Rename from
3685 get_ref_die_offset. Just issue complaint.
3686
3687 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3688
3689 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3690
3691 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3692
3693 * exec.c (exec_file_attach): Use errno value of first openp failure.
3694
3695 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3696
3697 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3698 Don't close thread handle.
3699
3700 2020-05-27 Tom Tromey <tom@tromey.com>
3701 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3704 shared_ptr.
3705 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3706 member.
3707 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3708 dwarf2_per_bfd_objfile_data_key>: New globals.
3709 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3710 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3711 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3712 shared.
3713 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3714 short-circuit when sharing.
3715 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3716 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3717
3718 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3721 to...
3722 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3723 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3724
3725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3728 build_name_components, find_name_components_bounds>:
3729 Add per_objfile parameter.
3730 (struct mapped_index) <symbol_name_at>: Likewise.
3731 (struct mapped_debug_names): Remove constructor.
3732 <dwarf2_per_objfile>: Remove field.
3733 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3734 (mapped_index_base::find_name_components_bounds,
3735 mapped_index_base::build_name_components,
3736 dw2_expand_symtabs_matching_symbol): Likewise.
3737 (class mock_mapped_index) <symbol_name_at>: Likewise.
3738 (check_match): Likewise.
3739 (check_find_bounds_finds): Likewise.
3740 (test_mapped_index_find_name_component_bounds): Update.
3741 (CHECK_MATCH): Update.
3742 (dw2_expand_symtabs_matching): Update.
3743 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3744 per_objfile parameter.
3745 <find_vec_in_debug_names>: Likewise.
3746 <m_per_objfile>: New field.
3747 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3748 parameter.
3749 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3750 (dw2_debug_names_iterator::next): Update.
3751 (dw2_debug_names_lookup_symbol): Update.
3752 (dw2_debug_names_expand_symtabs_for_function): Update.
3753 (dw2_debug_names_map_matching_symbols): Update.
3754 (dw2_debug_names_expand_symtabs_matching): Update.
3755 (dwarf2_read_debug_names): Update.
3756
3757 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3760 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3761 move to dwarf2_per_objfile.
3762 <read_in_chain>: Remove.
3763 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3764 remove_all_cus, age_comp_units>: New methods.
3765 <m_dwarf2_cus>: New member.
3766 (struct dwarf2_per_cu_data) <cu>: Remove.
3767 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3768 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3769 moved to methods of dwarf2_per_objfile.
3770 (dwarf2_clear_marks): Remove.
3771 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3772 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3773 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3774 (dwarf2_per_objfile::remove_all_cus): New.
3775 (class free_cached_comp_units) <~free_cached_comp_units>:
3776 Update.
3777 (load_cu): Update.
3778 (dw2_do_instantiate_symtab): Adjust.
3779 (fill_in_sig_entry_from_dwo_entry): Adjust.
3780 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3781 (cutu_reader::cutu_reader): Likewise.
3782 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3783 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3784 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3785 and dwarf2_per_objfile::age_comp_units.
3786 (load_partial_comp_unit): Update.
3787 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3788 (process_queue): Likewise.
3789 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3790 backlink.
3791 (dwarf2_read_addr_index): Likewise.
3792 (follow_die_offset): Likewise.
3793 (dwarf2_fetch_die_loc_sect_off): Likewise.
3794 (dwarf2_fetch_constant_bytes): Likewise.
3795 (dwarf2_fetch_die_type_sect_off): Likewise.
3796 (follow_die_sig_1): Likewise.
3797 (load_full_type_unit): Likewise.
3798 (read_signatured_type): Likewise.
3799 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3800 (dwarf2_cu::~dwarf2_cu): Remove.
3801 (dwarf2_per_objfile::get_cu): New.
3802 (dwarf2_per_objfile::set_cu): New.
3803 (age_cached_comp_units): Rename to...
3804 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3805 to std::unordered_map.
3806 (free_one_cached_comp_unit): Rename to...
3807 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3808 to std::unordered_map.
3809 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3810 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3811 a dwarf2_per_objfile in data.
3812 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3813 (dwarf2_clear_marks): Remove.
3814
3815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3818 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3819 (init_tu_and_read_dwo_dies): Likewise.
3820 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3821 (cutu_reader::cutu_reader): Likewise.
3822 (load_partial_comp_unit): Likewise.
3823 (process_psymtab_comp_unit): Update.
3824 (build_type_psymtabs_1): Update.
3825 (process_skeletonless_type_unit): Update.
3826 (load_full_comp_unit): Update.
3827 (find_partial_die): Update.
3828 (dwarf2_read_addr_index): Update.
3829 (read_signatured_type): Update.
3830
3831 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3832
3833 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3834 m_header_read_in>: New fields.
3835 <get_header>: New method.
3836 * dwarf2/read.c (per_cu_header_read_in): Remove.
3837 (dwarf2_per_cu_data::get_header): New.
3838 (dwarf2_per_cu_data::addr_size): Update.
3839 (dwarf2_per_cu_data::offset_size): Update.
3840 (dwarf2_per_cu_data::ref_addr_size): Update.
3841
3842 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3843
3844 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3845 (dw2_do_instantiate_symtab): Update.
3846 (queue_and_load_all_dwo_tus): Change parameter from
3847 dwarf2_per_cu_data to dwarf2_cu.
3848 (dwarf2_fetch_die_loc_sect_off): Update.
3849 (dwarf2_fetch_constant_bytes): Update.
3850 (dwarf2_fetch_die_type_sect_off): Update.
3851
3852 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * dwarf2/read.c (process_full_comp_unit,
3855 process_full_type_unit): Remove per_cu, per_objfile paramters.
3856 Add dwarf2_cu parameter.
3857 (process_queue): Update.
3858
3859 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * dwarf2/read.c (create_cu_from_index_list): Replace
3862 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3863 (create_cus_from_index_list): Likewise.
3864 (create_cus_from_index): Likewise.
3865 (create_signatured_type_table_from_index): Likewise.
3866 (create_cus_from_debug_names_list): Likewise.
3867 (create_cus_from_debug_names): Likewise.
3868 (dwarf2_read_gdb_index): Update.
3869 (dwarf2_read_debug_names): Update.
3870
3871 2020-05-27 Tom Tromey <tom@tromey.com>
3872 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * dwarf2/read.h (struct dwarf2_per_objfile)
3875 <get_type_for_signatured_type, set_type_for_signatured_type>:
3876 New methods.
3877 <m_type_map>: New member.
3878 (struct signatured_type) <type>: Remove.
3879 * dwarf2/read.c
3880 (dwarf2_per_objfile::get_type_for_signatured_type,
3881 dwarf2_per_objfile::set_type_for_signatured_type): New.
3882 (get_signatured_type): Use new methods.
3883
3884 2020-05-27 Tom Tromey <tom@tromey.com>
3885 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3888 (struct dwarf2_per_objfile) <type_units>: New member.
3889 <get_type_unit_group_unshareable>: New method.
3890 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3891 num_symtabs, symtabs>: Remove; move to
3892 type_unit_group_unshareable.
3893 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3894 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3895 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3896
3897 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * dwarf2/read.h (struct dwarf2_per_cu_data):
3900 <dwarf2_per_objfile>: Remove.
3901 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3902 dwarf2_per_objfile.
3903 (create_signatured_type_table_from_index): Likewise.
3904 (create_signatured_type_table_from_debug_names): Likewise.
3905 (create_debug_type_hash_table): Likewise.
3906 (fill_in_sig_entry_from_dwo_entry): Likewise.
3907 (create_type_unit_group): Likewise.
3908 (read_comp_units_from_section): Likewise.
3909 (create_cus_hash_table): Likewise.
3910
3911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3914 dwarf2_per_cu_data::dwarf2_per_objfile.
3915 (compute_compunit_symtab_includes): Likewise.
3916 (dwarf2_cu::start_symtab): Likewise.
3917
3918 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3919
3920 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3921 parameter.
3922 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3923 (read_namespace_alias): Update.
3924 (lookup_die_type): Update.
3925 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3927 Update.
3928 (disassemble_dwarf_expression): Update.
3929
3930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2/read.h (struct dwarf2_queue_item): Add
3933 dwarf2_per_objfile parameter, assign new parameter.
3934 <per_objfile>: New field.
3935 * dwarf2/read.c (free_one_cached_comp_unit): Add
3936 dwarf2_per_objfile parameter.
3937 (queue_comp_unit): Likewise.
3938 (dw2_do_instantiate_symtab): Update.
3939 (process_psymtab_comp_unit): Update.
3940 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3941 (process_imported_unit_die): Update.
3942 (queue_and_load_dwo_tu): Update.
3943 (follow_die_offset): Update.
3944 (follow_die_sig_1): Update.
3945
3946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3949 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3950 (read_call_site_scope): Assign per_objfile.
3951 (dwarf2_per_cu_data::objfile): Remove.
3952 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3953 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3954 dwarf2_per_objfile parameter.
3955 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3956 dwarf2_per_objfile parameter.
3957 (dwarf_expr_reg_to_entry_parameter): Add output
3958 dwarf2_per_objfile parameter.
3959 (locexpr_get_frame_base): Update.
3960 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3961 <push_dwarf_reg_entry_value>: Update.
3962 <call_site_to_target_addr>: Update.
3963 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3964 parameter.
3965 (value_of_dwarf_reg_entry): Update.
3966 (rw_pieced_value): Update.
3967 (indirect_synthetic_pointer): Update.
3968 (dwarf2_evaluate_property): Update.
3969 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3970 parameter.
3971 (locexpr_read_variable): Update.
3972 (locexpr_get_symbol_read_needs): Update.
3973 (loclist_read_variable): Update.
3974
3975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3978 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3979 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3980 parameter.
3981 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3982 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3983 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3984 parameter.
3985 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3986 sect_variable_value): Add dwarf2_per_objfile parameter.
3987 (class dwarf_evaluate_loc_desc) <dwarf_call,
3988 dwarf_variable_value>: Update.
3989 (fetch_const_value_from_synthetic_pointer): Add
3990 dwarf2_per_objfile parameter.
3991 (fetch_const_value_from_synthetic_pointer): Update.
3992 (coerced_pieced_ref): Update.
3993 (class symbol_needs_eval_context) <dwarf_call,
3994 dwarf_variable_value>: Update.
3995 (dwarf2_compile_expr_to_ax): Update.
3996
3997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4000 parameter.
4001 (dwarf2_evaluate_loc_desc_full): Update.
4002
4003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4006 parameter.
4007 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4008 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4009 dwarf2_per_objfile parameter.
4010 (decode_debug_loc_dwo_addresses): Likewise.
4011 (dwarf2_find_location_expression): Update.
4012 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4013 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4014 parameter.
4015 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4016 parameter.
4017 (locexpr_describe_location_1): Likewise.
4018 (locexpr_describe_location): Update.
4019
4020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4023 Remove.
4024 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4025 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4026 (dwarf2_compile_property_to_c): Update.
4027 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4028 use text offset from objfile.
4029 (locexpr_tracepoint_var_ref): Update.
4030 (locexpr_generate_c_location): Update.
4031 (loclist_describe_location): Update.
4032 (loclist_tracepoint_var_ref): Update.
4033 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4034 dwarf2_per_objfile parameter.
4035 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4036 use text offset from objfile.
4037 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4038
4039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/expr.h (struct dwarf_expr_context)
4042 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4043 <offset>: Remove.
4044 <per_objfile>: New member.
4045 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4046 dwarf2_per_objfile parameter. Don't set offset, set
4047 per_objfile.
4048 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4049 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4050 a dwarf2_per_objfile object instead of an offset.
4051 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4052 constructor.
4053 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4054 to dwarf2_expr_executor constructor. Don't set offset.
4055 (dwarf2_fetch_cfa_info): Update.
4056 (struct dwarf2_frame_cache) <text_offset>: Remove.
4057 <per_objfile>: New field.
4058 (dwarf2_frame_cache): Update.
4059 (dwarf2_frame_prev_register): Update.
4060 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4061 <dwarf_evaluate_loc_desc>: Add constructor.
4062 (dwarf2_evaluate_loc_desc_full): Update.
4063 (dwarf2_locexpr_baton_eval): Update.
4064 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4065 Add constructor.
4066 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4067
4068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4071 addr_sized_int_type>: Move to dwarf2_cu.
4072 <int_type>: Move to dwarf2_per_objfile.
4073 (struct dwarf2_per_objfile) <int_type>: Move here.
4074 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4075 addr_sized_int_type>: Move here.
4076 (read_func_scope): Update.
4077 (read_array_type): Update.
4078 (read_tag_string_type): Update.
4079 (attr_to_dynamic_prop): Update.
4080 (dwarf2_per_cu_data::int_type): Rename to...
4081 (dwarf2_per_objfile::int_type): ... this.
4082 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4083 (dwarf2_cu::addr_sized_int_type): ... this.
4084 (read_subrange_type): Update.
4085 (dwarf2_per_cu_data::addr_type): Rename to...
4086 (dwarf2_cu::addr_type): ... this.
4087 (set_die_type): Update.
4088
4089 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4092 data through per_cu->cu.
4093
4094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4097 dwarf2_per_cu_data parameter fo dwarf2_cu.
4098 (lookup_dwo_type_unit): Likewise.
4099 (read_cutu_die_from_dwo): Likewise.
4100 (lookup_dwo_unit): Likewise.
4101 (open_and_init_dwo_file): Likewise.
4102 (lookup_dwo_cutu): Likewise.
4103 (lookup_dwo_comp_unit): Likewise.
4104 (lookup_dwo_type_unit): Likewise.
4105 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4106 (cutu_reader::cutu_reader): Update.
4107
4108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4111 parameter.
4112 (process_full_type_unit): Likewise.
4113 (process_queue): Update.
4114
4115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * dwarf2/read.c (recursively_compute_inclusions): Add
4118 dwarf2_per_objfile parameter.
4119 (compute_compunit_symtab_includes): Likewise.
4120 (process_cu_includes): Update.
4121
4122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4125 parameter.
4126 (create_type_unit_group): Update.
4127 (process_psymtab_comp_unit_reader): Update.
4128 (build_type_psymtabs_reader): Update.
4129
4130 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4133 object through m_this_cu->cu.
4134
4135 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4136
4137 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4138 the info parameter.
4139 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4140
4141 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4144 per_objfile parameter.
4145 (load_full_type_unit): Add per_objfile parameter.
4146 (read_signatured_type): Likewise.
4147 (load_full_comp_unit): Likewise.
4148 (load_cu): Likewise.
4149 (dw2_do_instantiate_symtab): Likewise.
4150 (dw2_get_file_names): Likewise.
4151 (dw2_map_symtabs_matching_filename): Update.
4152 (dw_expand_symtabs_matching_file_matcher): Update.
4153 (dw2_map_symbol_filenames): Update.
4154 (process_psymtab_comp_unit): Add per_objfile parameter.
4155 (build_type_psymtabs_1): Update.
4156 (process_skeletonless_type_unit): Update.
4157 (dwarf2_build_psymtabs_hard): Update.
4158 (load_partial_comp_unit): Add per_objfile parameter.
4159 (scan_partial_symbols): Update.
4160 (load_full_comp_unit): Add per_objfile parameter.
4161 (process_imported_unit_die): Update.
4162 (create_cus_hash_table): Update.
4163 (find_partial_die): Update.
4164 (dwarf2_read_addr_index): Update.
4165 (follow_die_offset): Update.
4166 (dwarf2_fetch_die_loc_sect_off): Update.
4167 (dwarf2_fetch_constant_bytes): Update.
4168 (dwarf2_fetch_die_type_sect_off): Update.
4169 (follow_die_sig_1): Update.
4170 (load_full_type_unit): Add per_objfile parameter.
4171 (read_signatured_type): Likewise.
4172
4173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4176 of objfile_name.
4177
4178 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4179
4180 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4181 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4182 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4183 field.
4184 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4185 (create_cus_from_index): Update.
4186 (dwarf2_read_gdb_index): Update.
4187 (create_cus_from_debug_names): Update.
4188 (dwarf2_read_debug_names): Update.
4189 (get_abbrev_section_for_cu): Update.
4190 (create_all_comp_units): Update.
4191 (read_attribute_value): Update.
4192 (get_debug_line_section): Update.
4193 * dwarf2/index-cache.c (index_cache::store): Update.
4194 * dwarf2/index-write.c (save_gdb_index_command): Update.
4195 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4196
4197 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4198
4199 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4200 member.
4201 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4202 dwarf2_per_cu_data::per_bfd.
4203 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4204 (create_type_unit_group): Likewise.
4205 (queue_comp_unit): Remove reference to
4206 per_cu->dwarf2_per_objfile.
4207 (maybe_queue_comp_unit): Likewise.
4208 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4209 (create_cus_hash_table): Assign new field.
4210
4211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * dwarf2/read.c: Replace
4214 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4215 dwarf2_cu->per_objfile throughout.
4216
4217 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4220 parameter, don't use per_cu->dwarf2_per_objfile.
4221 (dw2_instantiate_symtab): Likewise.
4222 (dw2_find_last_source_symtab): Update.
4223 (dw2_map_expand_apply): Update.
4224 (dw2_lookup_symbol): Update.
4225 (dw2_expand_symtabs_for_function): Update.
4226 (dw2_expand_all_symtabs): Update.
4227 (dw2_expand_symtabs_with_fullname): Update.
4228 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4229 don't use per_cu->dwarf2_per_objfile.
4230 (dw2_expand_marked_cus): Update.
4231 (dw2_find_pc_sect_compunit_symtab): Update.
4232 (dw2_debug_names_lookup_symbol): Update.
4233 (dw2_debug_names_expand_symtabs_for_function): Update.
4234 (dw2_debug_names_map_matching_symbols): Update.
4235 (dwarf2_psymtab::expand_psymtab): Update.
4236
4237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4240 <per_objfile>: New member.
4241 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4242 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4243 call to dwarf2_cu.
4244 (cutu_reader::cutu_reader): Update.
4245 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4246
4247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4250 struct dwarf2_per_objfile.
4251 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4252 dwarf2_per_bfd.
4253 * dwarf2/read.c (set_die_type): Update.
4254 (get_die_type_at_offset): Update.
4255
4256 2020-05-27 Tom Tromey <tom@tromey.com>
4257 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4260 method.
4261 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4262 get_symtab, set_symtab>: New methods.
4263 <m_symtabs>: New field.
4264 (struct dwarf2_psymtab): Derive from partial_symtab.
4265 <readin_p, get_compunit_symtab>: Declare methods.
4266 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4267 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4268 New methods.
4269 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4270 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4271 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4272 (dw2_symtab_iter_next, dw2_print_stats)
4273 (dw2_expand_symtabs_with_fullname)
4274 (dw2_expand_symtabs_matching_one)
4275 (dw_expand_symtabs_matching_file_matcher)
4276 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4277 (dw2_debug_names_iterator::next)
4278 (dw2_debug_names_map_matching_symbols)
4279 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4280 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4281 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4282 New methods.
4283 (get_compunit_symtab, process_full_comp_unit)
4284 (process_full_type_unit): Update.
4285 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4286
4287 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4290 then introduce a new dwarf2_per_objfile type.
4291 <read_line_string>: Move to the new dwarf2_per_objfile type.
4292 <objfile>: Likewise.
4293 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4294 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4295 dwarf2_per_objfile->per_bfd.
4296 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4297 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4298 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4299 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4300 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4301 (dwarf2_per_objfile::locate_sections): Rename to...
4302 (dwarf2_per_bfd::locate_sections): ... this.
4303 (dwarf2_per_objfile::get_cutu): Rename to...
4304 (dwarf2_per_bfd::get_cutu): ... this.
4305 (dwarf2_per_objfile::get_cu): Rename to...
4306 (dwarf2_per_bfd::get_cu): ... this.
4307 (dwarf2_per_objfile::get_tu): Rename to...
4308 (dwarf2_per_bfd::get_tu): ... this.
4309 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4310 (dwarf2_per_bfd::allocate_per_cu): ... this.
4311 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4312 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4313 (get_gdb_index_contents_ftype): Change parameter from
4314 dwarf2_per_objfile to dwarf2_per_bfd.
4315 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4316 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4317
4318 2020-05-27 Tom Tromey <tom@tromey.com>
4319 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4322 (allocate_piece_closure): Set "per_objfile" member.
4323 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4324 (locexpr_describe_location, loclist_describe_location): Use new
4325 member.
4326 * dwarf2/read.c (read_call_site_scope)
4327 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4328 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4329 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4330 handle_data_member_location): Set per_objfile member.
4331 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4332 member.
4333 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4334
4335 2020-05-27 Tom Tromey <tom@tromey.com>
4336
4337 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4338 allocate_signatured_type>: Declare new methods.
4339 <m_num_psymtabs>: New member.
4340 (struct dwarf2_per_cu_data) <index>: New member.
4341 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4342 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4343 (create_cu_from_index_list): Use allocate_per_cu.
4344 (create_signatured_type_table_from_index)
4345 (create_signatured_type_table_from_debug_names)
4346 (create_debug_type_hash_table, add_type_unit)
4347 (read_comp_units_from_section): Use allocate_signatured_type.
4348
4349 2020-05-27 Tom Tromey <tom@tromey.com>
4350
4351 * psymtab.c (partial_map_expand_apply)
4352 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4353 (psym_lookup_global_symbol_language)
4354 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4355 (psym_print_stats, psym_expand_symtabs_for_function)
4356 (psym_map_symbol_filenames, psym_map_matching_symbols)
4357 (psym_expand_symtabs_matching)
4358 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4359 (maintenance_check_psymtabs): Update.
4360 * psympriv.h (struct partial_symtab) <readin_p,
4361 get_compunit_symtab>: Add objfile parameter.
4362 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4363 Likewise.
4364 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4365 get_compunit_symtab>: Likewise.
4366 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4367
4368 2020-05-27 Tom Tromey <tom@tromey.com>
4369
4370 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4371 member.
4372 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4373 (create_cu_from_index_list)
4374 (create_signatured_type_table_from_index)
4375 (create_signatured_type_table_from_debug_names)
4376 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4377 (dwarf2_create_include_psymtab)
4378 (create_debug_type_hash_table, add_type_unit)
4379 (create_type_unit_group, read_comp_units_from_section)
4380 (dwarf2_compute_name, create_cus_hash_table)
4381 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4382 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4383 obstack.
4384 (dw2_get_real_path): Likewise. Change argument to
4385 dwarf2_per_objfile.
4386
4387 2020-05-27 Luis Machado <luis.machado@linaro.org>
4388
4389 PR tdep/26000
4390 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4391 for ldrd (immediate).
4392
4393 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4394
4395 * command.h: Add comment giving the name of class_tui.
4396 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4397 create the fake command for the help for class_tui.
4398
4399 2020-05-26 Tom Tromey <tromey@adacore.com>
4400
4401 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4402 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4403 (val_atr): New function.
4404 (value_val_atr): Use it.
4405 * ada-valprint.c (print_optional_low_bound): Change low bound
4406 handling for enums.
4407 (val_print_packed_array_elements): Don't call discrete_position.
4408 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4409 discrete_position for enum types.
4410 * language.c (default_print_array_index): Change type.
4411 * language.h (struct language_defn) <la_print_array_index>: Add
4412 index_type parameter, change type of index_value.
4413 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4414 (default_print_array_index): Update.
4415 * valprint.c (maybe_print_array_index): Don't call
4416 value_from_longest. Update.
4417 (value_print_array_elements): Don't call discrete_position.
4418
4419 2020-05-26 Tom Tromey <tromey@adacore.com>
4420
4421 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4422 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4423
4424 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4425
4426 PR gdb/13519
4427 * avr-tdep.c (avr_integer_to_address): Return data or code
4428 address accordingly to the second 'type' argument of the
4429 function.
4430
4431 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4432
4433 * infcmd.c, inferior.h: (construct_inferior_arguments):
4434 Moved function from here to gdbsupport/common-inferior.{h,cc}
4435
4436 2020-05-23 Tom Tromey <tom@tromey.com>
4437
4438 Revert commit eca1f90c:
4439 * NEWS: Remove entry for completion styling.
4440 * completer.c (_rl_completion_prefix_display_length): Move
4441 declaration later.
4442 (gdb_fnprint): Revert.
4443 (gdb_display_match_list_1): Likewise.
4444 * cli/cli-style.c (completion_prefix_style)
4445 (completion_difference_style, completion_suffix_style): Remove.
4446 (_initialize_cli_style): Revert.
4447 * cli/cli-style.h (completion_prefix_style)
4448 (completion_difference_style, completion_suffix_style): Don't
4449 declare.
4450
4451 2020-05-24 Pedro Alves <palves@redhat.com>
4452
4453 * symtab.c (completion_list_add_name): Return boolean indication
4454 of whether the symbol matched.
4455 (completion_list_add_symbol): Don't try to remove C++ aliases if
4456 the symbol didn't match in the first place.
4457 * symtab.h (completion_list_add_name): Return bool.
4458
4459 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4462 type::field.
4463
4464 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4465
4466 GDB 9.2 released.
4467
4468 2020-05-23 Tom Tromey <tom@tromey.com>
4469
4470 * NEWS: Add entry for completion styling.
4471 * completer.c (_rl_completion_prefix_display_length): Move
4472 declaration earlier.
4473 (gdb_fnprint): Use completion_style.
4474 (gdb_display_match_list_1): Likewise.
4475 * cli/cli-style.c (completion_prefix_style)
4476 (completion_difference_style, completion_suffix_style): New
4477 globals.
4478 (_initialize_cli_style): Register new globals.
4479 * cli/cli-style.h (completion_prefix_style)
4480 (completion_difference_style, completion_suffix_style): Declare.
4481
4482 2020-05-23 Pedro Alves <palves@redhat.com>
4483
4484 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4485 (parse_escape): Use ISDIGIT instead of isdigit.
4486 (puts_debug): Use gdb_isprint instead of isprint.
4487 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4488 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4489 ISSPACE instead of isspace.
4490 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4491 instead of isspace.
4492 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4493 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4494 instead of isxdigit and ISDIGIT instead of isdigit.
4495
4496 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (struct type) <field>: New method.
4499 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4500 or type::field.
4501
4502 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4505 (TYPE_FIELDS): Use type::fields. Change all call sites that
4506 modify the propery to use type::set_fields instead.
4507
4508 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4511 type::num_fields instead.
4512
4513 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4516 methods.
4517 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4518 that modify the number of fields to use type::set_num_fields
4519 instead.
4520
4521 2020-05-22 Tom Tromey <tromey@adacore.com>
4522
4523 * compile/compile-object-load.h (munmap_list_free): Don't
4524 declare.
4525
4526 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * annotate.c (annotate_source_line): Update return type, add call
4529 to update current symtab and line.
4530 * annotate.h (annotate_source_line): Update return type, and
4531 extend header comment.
4532 * source.c (info_line_command): Check annotation_level before
4533 calling annotate_source_line.
4534 * stack.c (print_frame_info): If calling annotate_source_line
4535 returns true, then don't print any other source line information.
4536
4537 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4538
4539 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4540
4541 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * coffread.c (patch_type): Remove NULL check before xfree.
4544 * corefile.c (set_gnutarget): Likewise.
4545 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4546 * exec.c (build_section_table): Likewise.
4547 * remote.c (remote_target::pass_signals): Likewise.
4548 * utils.c (n_spaces): Likewise.
4549 * cli/cli-script.c (document_command): Likewise.
4550 * i386-windows-tdep.c (core_process_module_section): Likewise.
4551 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4552
4553 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * symfile.c (reread_symbols): Clear objfile's section_offsets
4556 vector and section indices, re-compute them by calling
4557 sym_offsets.
4558
4559 2020-05-20 Tom Tromey <tromey@adacore.com>
4560
4561 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4562 (desc_one_bound, desc_index_type): Compute field name.
4563
4564 2020-05-20 Tom de Vries <tdevries@suse.de>
4565
4566 PR symtab/25833
4567 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4568
4569 2020-05-20 Alan Modra <amodra@gmail.com>
4570
4571 PR 25993
4572 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4573 bfd_set_filename.
4574 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4575 passed to bfd_set_filename.
4576 * symfile-mem.c (add_vsyscall_page): Likewise for string
4577 passed to symbol_file_add_from_memory.
4578 (symbol_file_add_from_memory): Make name param a const char* and
4579 don't strdup.
4580
4581 2020-05-20 Alan Modra <amodra@gmail.com>
4582
4583 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4584 rather than accessing bfd->filename directly.
4585 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4586 and use bfd_section_name.
4587 * dwarf2/frame.c (decode_frame_entry): Likewise.
4588 * exec.c (exec_set_section_address): Likewise.
4589 * solib-aix.c (solib_aix_bfd_open): Likewise.
4590 * stap-probe.c (get_stap_base_address): Likewise.
4591 * symfile.c (reread_symbols): Likewise.
4592
4593 2020-05-19 Tom Tromey <tromey@adacore.com>
4594
4595 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4596
4597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4600
4601 2020-05-19 Pedro Alves <palves@redhat.com>
4602
4603 * NEWS (set exec-file-mismatch): Adjust entry.
4604 * exec.c: Include "build-id.h".
4605 (validate_exec_file): Try to match build IDs instead of filenames.
4606 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4607 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4608 and pass down 'warn_if_slow'.
4609 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4610 gdb_bfd_open_closure to pass it down.
4611 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4612
4613 2020-05-19 Pedro Alves <palves@redhat.com>
4614
4615 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4616 * target.c (target_fileio_open_1): Rename to target_fileio_open
4617 and make extern. Use bool.
4618 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4619 (target_fileio_read_alloc_1): Adjust.
4620 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4621 (target_fileio_open_warn_if_slow): Delete declaration.
4622
4623 2020-05-19 Pedro Alves <palves@redhat.com>
4624
4625 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4626 Adjust all callers.
4627
4628 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4629
4630 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4631 whether disp is negative.
4632
4633 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * symfile.h (struct symfile_segment_data)
4636 <~symfile_segment_data>: Remove.
4637 <segment_info>: Change to std::vector.
4638 * symfile.c (default_symfile_segments): Update.
4639 * elfread.c (elf_symfile_segments): Update.
4640
4641 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4644 <segments>: New.
4645 <segment_bases, segment_sizes>: Remove.
4646 * symfile.c (default_symfile_segments): Update.
4647 * elfread.c (elf_symfile_segments): Update.
4648 * remote.c (remote_target::get_offsets): Update.
4649 * solib-target.c (solib_target_relocate_section_addresses):
4650 Update.
4651
4652 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * symfile.h (struct symfile_segment_data): Initialize fields.
4655 <~symfile_segment_data>: Add.
4656 (symfile_segment_data_up): New.
4657 (struct sym_fns) <sym_segments>: Return a
4658 symfile_segment_data_up.
4659 (default_symfile_segments): Return a symfile_segment_data_up.
4660 (free_symfile_segment_data): Remove.
4661 (get_symfile_segment_data): Return a symfile_segment_data_up.
4662 * symfile.c (default_symfile_segments): Likewise.
4663 (get_symfile_segment_data): Likewise.
4664 (free_symfile_segment_data): Remove.
4665 (symfile_find_segment_sections): Update.
4666 * elfread.c (elf_symfile_segments): Return a
4667 symfile_segment_data_up.
4668 * remote.c (remote_target::get_offsets): Update.
4669 * solib-target.c (solib_target_relocate_section_addresses):
4670 Update.
4671 * symfile-debug.c (debug_sym_segments): Return a
4672 symfile_segment_data_up.
4673
4674 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4675
4676 PR build/25981
4677 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4678 Hardcode register numbers.
4679
4680 PR build/25981
4681 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4682 procfs_find_LDT_entry): Remove.
4683 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4684 procfs_find_LDT_entry): Remove.
4685 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4686 Remove.
4687
4688 2020-05-17 Pedro Alves <palves@redhat.com>
4689 Andrew Burgess <andrew.burgess@embecosm.com>
4690 Keno Fischer <keno@juliacomputing.com>
4691
4692 PR gdb/25741
4693 * breakpoint.c (build_target_condition_list): Update comments.
4694 (build_target_command_list): Update comments and skip matching
4695 locations.
4696 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4697 a separate function. Simplify "set breakpoint auto-hw off"
4698 handling.
4699 (insert_breakpoints): Update comment.
4700 (tracepoint_locations_match): New parameter. For breakpoints,
4701 compare location types too, if the caller wants to.
4702 (handle_automatic_hardware_breakpoints): New functions.
4703 (bp_location_is_less_than): Also sort by location type and
4704 hardware breakpoint length.
4705 (update_global_location_list): Handle "set breakpoint auto-hw on"
4706 here.
4707 (update_breakpoint_locations): Ask breakpoint_locations_match to
4708 ignore location types.
4709
4710 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4713 type::name instead.
4714
4715 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * gdbtypes.h (struct type) <name, set_name>: New methods.
4718 (TYPE_CODE): Use type::name. Change all call sites used to set
4719 the name to use type::set_name instead.
4720
4721 2020-05-16 Tom Tromey <tom@tromey.com>
4722
4723 * top.c (quit_force): Update.
4724 * infrun.c (handle_no_resumed): Update.
4725 * top.h (all_uis): New function.
4726 (ALL_UIS): Remove.
4727
4728 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4731
4732 2020-05-16 Pedro Alves <palves@redhat.com>
4733
4734 * ia64-linux-nat.c
4735 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4736 Declare method.
4737 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4738
4739 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4742 (sparc64_adi_info): Likewise.
4743
4744 2020-05-15 Tom Tromey <tom@tromey.com>
4745
4746 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4747 block_objfile.
4748 (lookup_objfile_from_block): Remove.
4749 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4750 (lookup_global_symbol): Use block_objfile.
4751 * symtab.h (lookup_objfile_from_block): Don't declare.
4752 * printcmd.c (clear_dangling_display_expressions): Use
4753 block_objfile.
4754 * parse.c (operator_check_standard): Use block_objfile.
4755
4756 2020-05-15 Tom Tromey <tom@tromey.com>
4757
4758 * language.c (language_alloc_type_symbol): Set
4759 SYMBOL_SECTION.
4760 * symtab.c (initialize_objfile_symbol): Remove.
4761 (allocate_symbol): Remove.
4762 (allocate_template_symbol): Remove.
4763 * dwarf2/read.c (fixup_go_packaging): Use "new".
4764 (new_symbol): Use "new".
4765 (read_variable): Don't call initialize_objfile_symbol. Use
4766 "new".
4767 (read_func_scope): Use "new".
4768 * xcoffread.c (process_xcoff_symbol): Don't call
4769 initialize_objfile_symbol.
4770 (SYMBOL_DUP): Remove.
4771 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4772 "new".
4773 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4774 (allocate_template_symbol): Don't declare.
4775 (struct symbol): Add copy constructor. Change defaults.
4776 * jit.c (finalize_symtab): Use "new".
4777 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4778 Use "new".
4779 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4780 (common_block_end): Use "new".
4781 * mdebugread.c (parse_symbol): Use "new".
4782 (new_symbol): Likewise.
4783
4784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785
4786 * NEWS: Mention changes to help and apropos.
4787
4788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4789
4790 * command.h (enum command_class): Improve comments, document
4791 that class_alias is for user-defined aliases, give the class
4792 name for each class, remove unused class_xdb.
4793 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4794 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4795 by a precise class.
4796 * infcmd.c (_initialize_infcmd): Likewise.
4797 * reverse.c (_initialize_reverse): Likewise.
4798 * stack.c (_initialize_stack): Likewise.
4799 * symfile.c (_initialize_symfile): Likewise.
4800 * tracepoint.c (_initialize_tracepoint): Likewise.
4801
4802 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4803
4804 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4805 when their aliased command is traversed.
4806 (help_cmd): Add fput_command_names_styled call to
4807 output command name and aliases when command has an alias.
4808
4809 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4810
4811 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4812 * cli/cli-decode.c (help_cmd_list): Declare as static,
4813 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4814 a command together with the command.
4815 (fput_command_name_styled, fput_command_names_styled): New functions.
4816 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4817 fput_command_name_styled.
4818 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4819 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4820
4821 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4822
4823 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4824 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4825 * command.h (cmd_show_list): Likewise.
4826 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4827 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4828
4829 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * unittests/command-def-selftests.c (traverse_command_structure):
4832 Verify all commands of a list have the same prefix command and
4833 that only the top cmdlist commands have a null prefix.
4834
4835 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4836
4837 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4838 as prefix, not one of its aliases.
4839 (set_cmd_prefix): Remove.
4840 (do_add_cmd): Centralize the setting of the prefix of a command, when
4841 command is defined after its full chain of prefix commands.
4842 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4843 (add_setshow_cmd_full): Likewise.
4844 (update_prefix_field_of_prefixed_commands): New function.
4845 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4846 update_prefix_field_of_prefixed_commands.
4847 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4848 addresses of remote_set_cmdlist and remote_show_cmdlist given
4849 as argument, not the address of an argument.
4850 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4851 * gdb/remote.c (_initialize_remote): Likewise.
4852
4853 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4854
4855 * cli/cli-cmds.c (alias_command): Check for an existing alias
4856 using lookup_cmd_composition, as valid_command_p is too strict
4857 and forbids aliases that are the prefix of an existing alias
4858 or command.
4859 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4860 command is properly recognised as a valid command.
4861
4862 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4863
4864 * unittests/help-doc-selftests.c: Rename to
4865 unittests/command-def-selftests.c
4866 * unittests/command-def-selftests.c (help_doc_tests): Update some
4867 comments.
4868 (command_structure_tests, traverse_command_structure): New namespace
4869 and function.
4870 (command_structure_invariants_tests): New function.
4871 (_initialize_command_def_selftests) Renamed from
4872 _initialize_help_doc_selftests, register command_structure_invariants
4873 selftest.
4874
4875 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4876
4877 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4878 an alias of 'show'.
4879
4880 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4881
4882 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4883 ada_is_fixed_point_type. Update all callers.
4884 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4885 all callers.
4886 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4887 Update all callers.
4888 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4889 print_fixed_point_type. Update all callers.
4890 * ada-valprint.c (ada_value_print_num): Replace call to
4891 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4892
4893 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4894
4895 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4896 processors.
4897 (cpu_supports_bts): Add CV_AMD case.
4898
4899 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4900 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * infrun.c (stop_all_threads): Collect multiple wait events at
4903 each pass.
4904
4905 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4906
4907 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4908 type::code instead.
4909
4910 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * gdbtypes.h (struct type) <code, set_code>: New methods.
4913 (TYPE_CODE): Use type::code. Change all call sites used to set
4914 the code to use type::set_code instead.
4915
4916 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4917 Tom de Vries <tdevries@suse.de>
4918 Pedro Alves <palves@redhat.com>
4919
4920 PR threads/25478
4921 * infrun.c (stop_all_threads): Do NOT ignore
4922 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4923 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4924 received.
4925 (handle_no_resumed): Remove code handling a live inferior with no
4926 threads.
4927 * remote.c (has_single_non_exited_thread): New.
4928 (remote_target::update_thread_list): Do not delete a thread if is
4929 the last thread of the process.
4930 * thread.c (thread_select): Call delete_exited_threads instead of
4931 prune_threads.
4932
4933 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4934
4935 * infrun.c (stop_all_threads): Enable/disable thread events of all
4936 targets. Move a debug message denoting the end of the function
4937 into the SCOPED_EXIT block.
4938
4939 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4940
4941 * process-stratum-target.h: Include <set>.
4942 (all_non_exited_process_targets, switch_to_target_no_thread): New
4943 function declarations.
4944 * process-stratum-target.c (all_non_exited_process_targets)
4945 (switch_to_target_no_thread): New function implementations.
4946
4947 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4948
4949 * infrun.c (handle_inferior_event): Extract out a piece of code
4950 into...
4951 (mark_non_executing_threads): ...this new function.
4952
4953 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4954
4955 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4956 use.
4957
4958 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4959
4960 * regcache.c (regcache_read_pc_protected): New function
4961 implementation that returns 0 if the PC cannot read via
4962 'regcache_read_pc'.
4963 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4964 instead of 'regcache_read_pc'.
4965 (keep_going_pass_signal): Ditto.
4966
4967 2020-05-13 Tom Tromey <tromey@adacore.com>
4968
4969 * ada-lang.c (align_value): Remove.
4970 (ada_template_to_fixed_record_type_1): Use align_up.
4971
4972 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4973
4974 * async-event.c: Update the copyright year.
4975 * async-event.h: Update the copyright year.
4976
4977 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * objfiles.h (is_addr_in_objfile,
4980 shared_objfile_contains_address_p): Return bool.
4981 * objfile.c (is_addr_in_objfile,
4982 shared_objfile_contains_address_p): Return bool.
4983
4984 2020-05-11 Tom Tromey <tromey@adacore.com>
4985
4986 * cli/cli-cmds.c (info_command): Restore.
4987 (_initialize_cli_cmds): Use add_prefix_command for "info".
4988 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4989
4990 2020-05-11 Tom Tromey <tromey@adacore.com>
4991
4992 * ada-lang.c (ada_value_primitive_field): Now public.
4993 * ada-lang.h (ada_value_primitive_field): Declare.
4994 * ada-valprint.c (print_field_values): Use
4995 ada_value_primitive_field for wrapper fields.
4996
4997 2020-05-11 Tom de Vries <tdevries@suse.de>
4998
4999 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5000 MODULE_DOMAIN.
5001
5002 2020-05-11 Tom de Vries <tdevries@suse.de>
5003
5004 PR symtab/25941
5005 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5006 with length 0, if not gdb-produced.
5007 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5008
5009 2020-05-09 Tom de Vries <tdevries@suse.de>
5010
5011 PR gdb/25955
5012 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5013 calculation.
5014
5015 2020-05-09 Tom Tromey <tom@tromey.com>
5016
5017 * top.c (server_command): Now bool.
5018 * top.h (server_command): Now bool.
5019
5020 2020-05-08 Tom Tromey <tromey@adacore.com>
5021
5022 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5023 already being processed.
5024
5025 2020-05-08 Tom Tromey <tom@tromey.com>
5026
5027 * printcmd.c (struct display) <next>: Remove.
5028 <display>: New constructor.
5029 <exp_string>: Now a std::string.
5030 <enabled_p>: Now a bool.
5031 (display_number): Move definition earlier.
5032 (displays): Rename from display_chain. Now a std::vector.
5033 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5034 (display_command): Update.
5035 (do_one_display, disable_display)
5036 (enable_disable_display_command, do_enable_disable_display):
5037 Update.
5038 (free_display): Remove.
5039 (clear_displays): Rewrite.
5040 (delete_display): Update.
5041 (map_display_numbers): Use function_view. Remove "data"
5042 parameter. Update.
5043 (do_delete_display): Remove.
5044 (undisplay_command): Update.
5045 (do_one_display, do_displays, disable_display)
5046 (info_display_command): Update.
5047 (do_enable_disable_display): Remove.
5048 (enable_disable_display_command)
5049 (clear_dangling_display_expressions): Update.
5050
5051 2020-05-08 Tom Tromey <tom@tromey.com>
5052
5053 * symtab.c (set_symbol_cache_size)
5054 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5055 (maintenance_print_symbol_cache_statistics): Update.
5056 * symmisc.c (print_symbol_bcache_statistics)
5057 (print_objfile_statistics, maintenance_print_objfiles)
5058 (maintenance_info_symtabs, maintenance_check_symtabs)
5059 (maintenance_expand_symtabs, maintenance_info_line_tables):
5060 Update.
5061 * symfile-debug.c (set_debug_symfile): Update.
5062 * source.c (forget_cached_source_info): Update.
5063 * python/python.c (gdbpy_progspaces): Update.
5064 * psymtab.c (maintenance_info_psymtabs): Update.
5065 * probe.c (parse_probes): Update.
5066 * linespec.c (iterate_over_all_matching_symtabs)
5067 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5068 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5069 * exec.c (exec_target::close): Update.
5070 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5071 * breakpoint.c (print_one_breakpoint_location)
5072 (create_longjmp_master_breakpoint)
5073 (create_std_terminate_master_breakpoint): Update.
5074 * progspace.c (program_spaces): Now a std::vector.
5075 (maybe_new_address_space): Update.
5076 (add_program_space): Remove.
5077 (program_space::program_space): Update.
5078 (remove_program_space): Update.
5079 (number_of_program_spaces): Remove.
5080 (print_program_space, update_address_spaces): Update.
5081 * progspace.h (program_spaces): Change type.
5082 (ALL_PSPACES): Remove.
5083 (number_of_program_spaces): Don't declare.
5084 (struct program_space) <next>: Remove.
5085
5086 2020-05-08 Tom Tromey <tom@tromey.com>
5087
5088 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5089 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5090 (enable_break): Update.
5091 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5092 (frv_fdpic_find_canonical_descriptor): Update.
5093 (frv_fetch_objfile_link_map): Update.
5094 * progspace.c (program_space::free_all_objfiles): Update.
5095 (program_space::solibs): New method.
5096 * progspace.h (struct program_space) <solibs>: New method.
5097 * solist.h (master_so_list): Don't declare.
5098 (ALL_SO_LIBS): Remove.
5099 * solib.h (so_list_head): Remove.
5100 (update_solib_list): Update comment.
5101 * solib.c (master_so_list): Remove.
5102 (solib_used, update_solib_list, solib_add)
5103 (info_sharedlibrary_command, clear_solib)
5104 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5105
5106 2020-05-08 Tom Tromey <tom@tromey.com>
5107
5108 * extension.c (extension_languages): Now a std::array.
5109 (ALL_EXTENSION_LANGUAGES): Remove.
5110 (get_ext_lang_defn, get_ext_lang_of_file)
5111 (eval_ext_lang_from_control_command): Update.
5112 (finish_ext_lang_initialization)
5113 (auto_load_ext_lang_scripts_for_objfile)
5114 (ext_lang_type_printers::ext_lang_type_printers)
5115 (apply_ext_lang_type_printers)
5116 (ext_lang_type_printers::~ext_lang_type_printers)
5117 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5118 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5119 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5120 (get_matching_xmethod_workers, ext_lang_colorize)
5121 (ext_lang_before_prompt): Update.
5122 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5123
5124 2020-05-08 Tom Tromey <tom@tromey.com>
5125
5126 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5127 overload.
5128 <swap_string, m_string>: Remove.
5129 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5130 Update.
5131 * stabsread.c (define_symbol, read_type): Update.
5132 * linespec.c (find_linespec_symbols): Update.
5133 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5134 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5135 * dbxread.c (read_dbx_symtab): Update.
5136 * cp-support.h (cp_canonicalize_string_full)
5137 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5138 Return unique_xmalloc_ptr.
5139 * cp-support.c (inspect_type): Update.
5140 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5141 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5142 Likewise.
5143 * c-typeprint.c (print_name_maybe_canonical): Update.
5144 * break-catch-throw.c (check_status_exception_catchpoint):
5145 Update.
5146
5147 2020-05-08 Tom de Vries <tdevries@suse.de>
5148
5149 * infrun.c (follow_fork): Copy current_line and current_symtab to
5150 child thread.
5151
5152 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * async-event.c (struct async_signal_handler, struct
5155 async_event_handler): Reformat, remove typedef.
5156
5157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5160 access thistype->main_type->dyn_prop_list directly.
5161
5162 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5165 (remove_dyn_prop): Remove. Update all users to use
5166 type::remove_dyn_prop.
5167 * gdbtypes.c (remove_dyn_prop): Rename to...
5168 (type::remove_dyn_prop): ... this.
5169
5170 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5171
5172 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5173 (add_dyn_prop): Remove. Update all users to use
5174 type::add_dyn_prop.
5175 * gdbtypes.c (add_dyn_prop): Rename to...
5176 (type::add_dyn_prop): ... this.
5177
5178 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5181 (get_dyn_prop): Remove. Update all users to use
5182 type::dyn_prop.
5183 * gdbtypes.c (get_dyn_prop): Rename to...
5184 (type::dyn_prop): ... this.
5185
5186 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5189
5190 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5193 instruction, skip it if it's there.
5194
5195 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5198
5199 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5202 * gdbtypes.c (recursive_dump_type): Remove use of
5203 TYPE_INCOMPLETE.
5204
5205 2020-05-03 Tom Tromey <tom@tromey.com>
5206
5207 * breakpoint.c (catch_command, tcatch_command): Remove.
5208 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5209 add_show_prefix_cmd.
5210 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5211 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5212 Remove.
5213 (add_internal_problem_command): Use add_basic_prefix_cmd,
5214 add_show_prefix_cmd.
5215 * mips-tdep.c (set_mipsfpu_command): Remove.
5216 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5217 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5218 (_initialize_index_cache): Use add_basic_prefix_cmd.
5219 * memattr.c (dummy_cmd): Remove.
5220 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5221 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5222 (_initialize_tui_win): Use add_basic_prefix_cmd,
5223 add_show_prefix_cmd.
5224 * cli/cli-logging.c (set_logging_command): Remove.
5225 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5226 add_show_prefix_cmd.
5227 (show_logging_command): Remove.
5228 * target.c (target_command): Remove.
5229 (add_target): Use add_basic_prefix_cmd.
5230
5231 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5232
5233 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5234
5235 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5238 info_command.
5239
5240 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5241
5242 * nbsd-nat.c (nbsd_enable_proc_events)
5243 (nbsd_nat_target::post_startup_inferior): Add.
5244 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5245 (nbsd_nat_target::update_thread_list): Rewrite.
5246 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5247 "PTRACE_LWP_CREATE".
5248 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5249
5250 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251
5252 * stack.c (_initialize_stack): Remove duplicated creation
5253 of "frame" command and "f" alias.
5254
5255 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5256
5257 PR gdb/18706
5258 * gdbtypes.c (check_typedef): Calculate size of array of
5259 stubbed type.
5260
5261 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5262
5263 PR gdb/15559
5264 * i386-tdep.c (i386_push_dummy_call): Call
5265 i386_thiscall_push_dummy_call.
5266 (i386_thiscall_push_dummy_call): New function.
5267 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5268 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5269 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5270
5271 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * gdbarch.sh (do_read): Add shellcheck disable directive for
5274 warning SC2162.
5275
5276 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5279 "referenced but not assigned" warning.
5280
5281 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * gdbarch.sh: Remove code that sets fallbackdefault.
5284
5285 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbarch.sh: Use shell operators && and || instead of
5288 -a and -o.
5289
5290 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbarch.sh: Use $(...) instead of `...`.
5293
5294 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * gdbarch.sh: Use double quotes around variables.
5297
5298 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * gdbarch.sh: Use %s with printf, instead of variables in the
5301 format string.
5302
5303 2020-04-29 Tom Tromey <tromey@adacore.com>
5304
5305 PR ada/25875:
5306 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5307 type fields here.
5308 (read_enumeration_type): Call
5309 update_enumeration_type_from_children later. Update comments.
5310 (process_enumeration_scope): Don't create type fields.
5311
5312 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5313
5314 * nbsd-tdep.c: Include "xml-syscall.h".
5315 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5316
5317 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5318
5319 * nbsd-nat.c: Include "sys/wait.h".
5320 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5321 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5322 (nbsd_nat_target::remove_exec_catchpoint)
5323 (nbsd_nat_target::set_syscall_catchpoint): Add.
5324 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5325 (nbsd_nat_target::insert_exec_catchpoint)
5326 (nbsd_nat_target::remove_exec_catchpoint)
5327 (nbsd_nat_target::set_syscall_catchpoint): Add.
5328 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5329 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5330 `nbsd_get_syscall_number'.
5331
5332 2020-04-29 Tom Tromey <tom@tromey.com>
5333
5334 * stack.c (print_block_frame_labels): Remove.
5335
5336 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5337
5338 PR gdb/17320
5339 * ada-valprint.c (val_print_packed_array_elements): Move array
5340 end bracket to new line.
5341 (ada_val_print_string): Remove extra spaces before first array
5342 element.
5343 * c-valprint.c (c_value_print_array): Likewise.
5344 * m2-valprint.c (m2_print_array_contents): Likewise.
5345 (m2_value_print_inner): Likewise.
5346 * p-valprint.c (pascal_value_print_inner): Likewise.
5347 * valprint.c (generic_val_print_array): Likewise.
5348 (value_print_array_elements): Move first array element and array
5349 end bracket to new line.
5350
5351 2020-04-29 Tom de Vries <tdevries@suse.de>
5352
5353 PR symtab/25889
5354 * linespec.c (find_method): Fix ix calculation.
5355
5356 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5357
5358 * syscalls/update-netbsd.sh: New file.
5359 * syscalls/netbsd.xml: Regenerate.
5360 * data-directory/Makefile.in: Register `netbsd.xml' in
5361 `SYSCALLS_FILES'.
5362
5363 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * syscalls/update-freebsd.sh: Add double quotes.
5366
5367 2020-04-28 Tom Tromey <tom@tromey.com>
5368
5369 * NEWS: Update.
5370 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5371 (cmdpy_init): Allow class_tui.
5372
5373 2020-04-28 Mark Williams <mark@myosotissp.com>
5374
5375 PR gdb/24480
5376 * dwarf2read.c: Add missing assingments to list_in_scope when
5377 start_symtab was already called.
5378
5379 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5380
5381 PR gdb/25881
5382 * dwarf2/read.c (offset_map_type): Use
5383 gdb:hash_enum<sect_offset> as hash function.
5384
5385 2020-04-28 Tom de Vries <tdevries@suse.de>
5386
5387 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5388 with DW_AT_signature.
5389
5390 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5391
5392 * configure.ac: Remove check for fs_base/gs_base in
5393 user_regs_struct.
5394 * configure: Re-generate.
5395 * config.in: Re-generate.
5396 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5397 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5398 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5399
5400 2020-04-27 Luis Machado <luis.machado@linaro.org>
5401
5402 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5403 problematic inline frame unwinding situation.
5404 * frame.c (frame_id_computed_p): New function.
5405 * frame.h (frame_id_computed_p): New prototype.
5406
5407 2020-04-26 Tom Tromey <tom@tromey.com>
5408
5409 * command.h (enum command_class) <class_pseudo>: Remove.
5410
5411 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5412
5413 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5414 and whitespace.
5415
5416 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5417
5418 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5419 `PT_GET_PROCESS_STATE' block.
5420
5421 2020-04-24 Tom Tromey <tom@tromey.com>
5422
5423 * symtab.h (symbol_get_demangled_name): Don't declare.
5424 * symtab.c (symbol_get_demangled_name): Remove.
5425 (general_symbol_info::natural_name)
5426 (general_symbol_info::demangled_name): Update.
5427
5428 2020-04-24 Tom Tromey <tom@tromey.com>
5429
5430 PR rust/25025:
5431 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5432
5433 2020-04-24 Tom Tromey <tom@tromey.com>
5434
5435 PR symtab/12707:
5436 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5437 exists.
5438 (new_symbol): Likewise.
5439 * compile/compile-object-load.c (get_out_value_type): Use
5440 symbol_matches_search_name.
5441
5442 2020-04-24 Tom Tromey <tom@tromey.com>
5443
5444 * dwarf2/read.c (add_partial_symbol): Do not call
5445 compute_and_set_names.
5446
5447 2020-04-24 Tom Tromey <tom@tromey.com>
5448
5449 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5450 overload.
5451
5452 2020-04-24 Tom Tromey <tom@tromey.com>
5453
5454 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5455 (add_psymbol_to_list): New overload. Make old overload call new
5456 one.
5457 * psympriv.h (add_psymbol_to_list): New overload.
5458
5459 2020-04-24 Tom Tromey <tom@tromey.com>
5460
5461 * dwarf2/read.c (partial_die_info::read) <case
5462 DW_AT_linkage_name>: Use value_as_string.
5463 (dwarf2_string_attr): Use value_as_string.
5464 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5465 method.
5466 * dwarf2/attribute.c (attribute::value_as_string): New method.
5467
5468 2020-04-24 Tom Tromey <tom@tromey.com>
5469
5470 * symtab.c (general_symbol_info::natural_name)
5471 (general_symbol_info::demangled_name): Check for language_rust.
5472
5473 2020-04-24 Tom Tromey <tom@tromey.com>
5474
5475 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5476 (dwarf2_physname): ... from here.
5477 (partial_die_info::read): Add Rust "{" hack.
5478
5479 2020-04-24 Tom Tromey <tom@tromey.com>
5480
5481 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5482 method.
5483 (symbol_set_demangled_name): Don't declare.
5484 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5485 symbol_set_demangled_name.
5486 (general_symbol_info::set_language)
5487 (general_symbol_info::compute_and_set_names): Update.
5488 * minsyms.c (minimal_symbol_reader::install): Update.
5489 * dwarf2/read.c (new_symbol): Update.
5490
5491 2020-04-24 Tom Tromey <tromey@adacore.com>
5492
5493 PR python/23662:
5494 * python/py-type.c (convert_field): Handle
5495 FIELD_LOC_KIND_DWARF_BLOCK.
5496 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5497 (typy_get_dynamic): Nw function.
5498 (type_object_getset): Add "dynamic".
5499 * NEWS: Add entry.
5500
5501 2020-04-24 Tom Tromey <tromey@adacore.com>
5502
5503 * ada-typeprint.c (print_choices, print_variant_part)
5504 (print_record_field_types_dynamic): New functions.
5505 (print_record_field_types): Use print_record_field_types_dynamic.
5506
5507 2020-04-24 Tom Tromey <tromey@adacore.com>
5508
5509 * dwarf2/read.c (handle_data_member_location): New overload.
5510 (dwarf2_add_field): Use it.
5511 (decode_locdesc): Add "computed" parameter. Update comment.
5512 * gdbtypes.c (is_dynamic_type_internal): Also look for
5513 FIELD_LOC_KIND_DWARF_BLOCK.
5514 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5515 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5516 virtual base classes.
5517 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5518 FIELD_LOC_KIND_DWARF_BLOCK.
5519
5520 2020-04-24 Tom Tromey <tromey@adacore.com>
5521
5522 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5523 * gdbtypes.c (is_dynamic_type_internal): Check
5524 TYPE_HAS_DYNAMIC_LENGTH.
5525 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5526 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5527 New macros.
5528 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5529 constant.
5530
5531 2020-04-24 Tom Tromey <tromey@adacore.com>
5532
5533 * dwarf2/read.c (struct variant_field): Rewrite.
5534 (struct variant_part_builder): New.
5535 (struct nextfield): Remove "variant" field. Add "offset".
5536 (struct field_info): Add "current_variant_part" and
5537 "variant_parts".
5538 (alloc_discriminant_info): Remove.
5539 (alloc_rust_variant): New function.
5540 (quirk_rust_enum): Update.
5541 (dwarf2_add_field): Set "offset" member. Don't handle
5542 DW_TAG_variant_part.
5543 (offset_map_type): New typedef.
5544 (convert_variant_range, create_one_variant)
5545 (create_one_variant_part, create_variant_parts)
5546 (add_variant_property): New functions.
5547 (dwarf2_attach_fields_to_type): Call add_variant_property.
5548 (read_structure_type): Don't handle DW_TAG_variant_part.
5549 (handle_variant_part, handle_variant): New functions.
5550 (handle_struct_member_die): Use them.
5551 (process_structure_scope): Don't handle variant parts.
5552 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5553 (struct discriminant_info): Remove.
5554 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5555 (struct main_type) <flag_discriminated_union>: Remove.
5556 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5557 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5558 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5559 Update.
5560 * valops.c (value_union_variant): Remove.
5561 * value.h (value_union_variant): Don't declare.
5562
5563 2020-04-24 Tom Tromey <tromey@adacore.com>
5564
5565 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5566 (ada_value_primitive_packed_val): Update.
5567 * ada-valprint.c (ada_value_print_1): Update.
5568 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5569 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5570 just an address. Use evaluate_for_locexpr_baton.
5571 (dwarf2_evaluate_property): Update.
5572 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5573 array_view.
5574 * findvar.c (default_read_var_value): Update.
5575 * gdbtypes.c (compute_variant_fields_inner)
5576 (resolve_dynamic_type_internal): Update.
5577 (resolve_dynamic_type): Change type of valaddr parameter.
5578 * gdbtypes.h (resolve_dynamic_type): Update.
5579 * valarith.c (value_subscripted_rvalue): Update.
5580 * value.c (value_from_contents_and_address): Update.
5581
5582 2020-04-24 Tom Tromey <tromey@adacore.com>
5583
5584 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5585 "push_initial_value" parameter.
5586 (dwarf2_evaluate_property): Likewise.
5587 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5588
5589 2020-04-24 Tom Tromey <tromey@adacore.com>
5590
5591 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5592 (variant::matches, compute_variant_fields_recurse)
5593 (compute_variant_fields_inner, compute_variant_fields): New
5594 functions.
5595 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5596 Use resolved_type after type is made.
5597 (operator==): Add new cases.
5598 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5599 (struct discriminant_range, struct variant, struct variant_part):
5600 New.
5601 (union dynamic_prop_data) <variant_parts, original_type>: New
5602 members.
5603 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5604 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5605 constants.
5606 * value.c (unpack_bits_as_long): Now public.
5607 * value.h (unpack_bits_as_long): Declare.
5608
5609 2020-04-24 Tom Tromey <tromey@adacore.com>
5610
5611 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5612 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5613
5614 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5615
5616 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5617
5618 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5619
5620 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5621 (remove_fork_catchpoint, post_startup_inferior)
5622 (post_attach): Move...
5623 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5624 (remove_fork_catchpoint, post_startup_inferior)
5625 (post_attach): ...here.
5626 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5627 (remove_fork_catchpoint, post_startup_inferior)
5628 (post_attach): Move...
5629 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5630 (remove_fork_catchpoint, post_startup_inferior)
5631 (post_attach): ...here.
5632
5633 2020-04-24 Tom Tromey <tromey@adacore.com>
5634
5635 * nat/windows-nat.h (struct windows_thread_info)
5636 <pc_adjusted>: New member.
5637 * windows-nat.c (windows_fetch_one_register): Check
5638 pc_adjusted.
5639 (windows_nat_target::get_windows_debug_event)
5640 (windows_nat_target::wait): Set pc_adjusted.
5641
5642 2020-04-24 Tom de Vries <tdevries@suse.de>
5643
5644 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5645 Run gdb-add-index inside temp dir.
5646
5647 2020-04-23 Tom Tromey <tromey@adacore.com>
5648
5649 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5650 in loop.
5651
5652 2020-04-23 Luis Machado <luis.machado@linaro.org>
5653
5654 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5655 get_frame_register instead of gdbarch_unwind_pc.
5656
5657 2020-04-23 Tom de Vries <tdevries@suse.de>
5658
5659 * symtab.c (lookup_global_symbol): Prefer def over decl.
5660
5661 2020-04-23 Tom de Vries <tdevries@suse.de>
5662
5663 PR symtab/25807
5664 * block.c (best_symbol, better_symbol): Promote to external.
5665 * block.h (best_symbol, better_symbol): Declare.
5666 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5667 decl.
5668
5669 2020-04-23 Tom Tromey <tromey@adacore.com>
5670
5671 PR ada/25837:
5672 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5673 "const char *", not a "const std::string &".
5674 <name_and_matcher::operator==>: Update.
5675 * unittests/lookup_name_info-selftests.c: Change type of
5676 "result".
5677
5678 2020-04-23 Tom Tromey <tom@tromey.com>
5679
5680 * inferior.h (iterate_over_inferiors): Don't declare.
5681 * inferior.c (iterate_over_inferiors): Remove.
5682 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5683 Remove.
5684 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5685 use iterate_over_inferiors.
5686 (darwin_resume_inferior_it)
5687 (struct resume_inferior_threads_param)
5688 (darwin_resume_inferior_threads_it): Remove.
5689 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5690
5691 2020-04-23 Tom de Vries <tdevries@suse.de>
5692
5693 * blockframe.c (find_pc_partial_function): Use
5694 find_pc_sect_compunit_symtab rather than
5695 objfile->sf->qf->find_pc_sect_compunit_symtab.
5696
5697 2020-04-22 Tom de Vries <tdevries@suse.de>
5698
5699 PR symtab/25764
5700 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5701 in psymtabs.
5702
5703 2020-04-22 Tom de Vries <tdevries@suse.de>
5704
5705 PR symtab/25801
5706 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5707 symtabs.
5708
5709 2020-04-22 Tom de Vries <tdevries@suse.de>
5710
5711 PR symtab/25700
5712 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5713 CU if already created.
5714
5715 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5716
5717 * infrun.c (displaced_step_fixup): Switch to the event_thread
5718 before calling displaced_step_restore, not after.
5719
5720 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5721
5722 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5723 its inferior is not recorded by us.
5724 (record_btrace_target_open): Replace call to
5725 all_non_exited_threads () with call to current_inferior
5726 ()->non_exited_threads ().
5727 (record_btrace_target::stop_recording): Likewise.
5728 (record_btrace_target::close): Likewise.
5729 (record_btrace_target::wait): Likewise.
5730 (record_btrace_target::record_stop_replaying): Likewise.
5731
5732 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5733
5734 * btrace.c (btrace_enable): Throw an error on double enables and
5735 when enabling recording fails.
5736 (btrace_disable): Throw an error if the thread is not recorded.
5737
5738 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5739
5740 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5741 request if we do not have a thread_info.
5742
5743 2020-04-21 Tom de Vries <tdevries@suse.de>
5744
5745 PR gdb/25471
5746 * thread.c
5747 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5748 exception in get_frame_id.
5749
5750 2020-04-20 Tom Tromey <tromey@adacore.com>
5751
5752 * python/python.c (struct gdbpy_event): Mark move constructor as
5753 noexcept.
5754 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5755 constructor as noexcept.
5756 * completer.h (struct completion_result): Mark move constructor as
5757 noexcept.
5758 * completer.c (completion_result::completion_result): Use
5759 initialization style. Don't call reset_match_list.
5760
5761 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5762
5763 * MAINTAINERS (Write After Approval): Add myself.
5764
5765 2020-04-18 Tom Tromey <tom@tromey.com>
5766
5767 * windows-tdep.c (init_w32_command_list)
5768 (w32_prefix_command_valid): Restore.
5769 (_initialize_windows_tdep): Call init_w32_command_list.
5770
5771 2020-04-18 Tom Tromey <tom@tromey.com>
5772
5773 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5774 * value.c (value_fn_field): Update.
5775 * valops.c (find_function_in_inferior)
5776 (value_allocate_space_in_inferior): Update.
5777 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5778 Update.
5779 * tui/tui-source.c (tui_source_window::set_contents): Update.
5780 * symtab.c (lookup_global_or_static_symbol)
5781 (find_function_start_sal_1, skip_prologue_sal)
5782 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5783 * symmisc.c (dump_msymbols, dump_symtab_1)
5784 (maintenance_print_one_line_table): Update.
5785 * symfile.c (init_entry_point_info, section_is_mapped)
5786 (list_overlays_command, simple_read_overlay_table)
5787 (simple_overlay_update_1): Update.
5788 * stap-probe.c (handle_stap_probe): Update.
5789 * stabsread.c (dbx_init_float_type, define_symbol)
5790 (read_one_struct_field, read_enum_type, read_range_type): Update.
5791 * source.c (info_line_command): Update.
5792 * python/python.c (gdbpy_source_objfile_script)
5793 (gdbpy_execute_objfile_script): Update.
5794 * python/py-type.c (save_objfile_types): Update.
5795 * python/py-objfile.c (py_free_objfile): Update.
5796 * python/py-inferior.c (python_new_objfile): Update.
5797 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5798 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5799 (maintenance_check_psymtabs): Update.
5800 * printcmd.c (info_address_command): Update.
5801 * objfiles.h (struct objfile) <arch>: New method, from
5802 get_objfile_arch.
5803 (get_objfile_arch): Don't declare.
5804 * objfiles.c (get_objfile_arch): Remove.
5805 (filter_overlapping_sections): Update.
5806 * minsyms.c (msymbol_is_function): Update.
5807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5808 (output_nondebug_symbol): Update.
5809 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5810 (mdebug_expand_psymtab): Update.
5811 * machoread.c (macho_add_oso_symfile): Update.
5812 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5813 Update.
5814 * linux-fork.c (checkpoint_command): Update.
5815 * linespec.c (convert_linespec_to_sals): Update.
5816 * jit.c (finalize_symtab): Update.
5817 * infrun.c (insert_exception_resume_from_probe): Update.
5818 * ia64-tdep.c (ia64_find_unwind_table): Update.
5819 * hppa-tdep.c (internalize_unwinds): Update.
5820 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5821 Update.
5822 * gcore.c (call_target_sbrk): Update.
5823 * elfread.c (record_minimal_symbol, elf_symtab_read)
5824 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5825 (elf_gnu_ifunc_resolve_by_got): Update.
5826 * dwarf2/read.c (create_addrmap_from_index)
5827 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5828 (read_debug_names_from_section)
5829 (process_psymtab_comp_unit_reader, add_partial_symbol)
5830 (add_partial_subprogram, process_full_comp_unit)
5831 (read_file_scope, read_func_scope, read_lexical_block_scope)
5832 (read_call_site_scope, dwarf2_ranges_read)
5833 (dwarf2_record_block_ranges, dwarf2_add_field)
5834 (mark_common_block_symbol_computed, read_tag_pointer_type)
5835 (read_tag_string_type, dwarf2_init_float_type)
5836 (dwarf2_init_complex_target_type, read_base_type)
5837 (partial_die_info::read, partial_die_info::read)
5838 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5839 (dwarf2_fetch_die_loc_sect_off): Update.
5840 * dwarf2/loc.c (dwarf2_find_location_expression)
5841 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5842 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5843 (dwarf2_loc_desc_get_symbol_read_needs)
5844 (locexpr_describe_location_piece, locexpr_describe_location_1)
5845 (loclist_describe_location): Update.
5846 * dwarf2/index-write.c (write_debug_names): Update.
5847 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5848 * dtrace-probe.c (dtrace_process_dof): Update.
5849 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5850 (process_one_symbol): Update.
5851 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5852 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5853 (coff_read_enum_type): Update.
5854 * cli/cli-cmds.c (edit_command, list_command): Update.
5855 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5856 * breakpoint.c (create_overlay_event_breakpoint)
5857 (create_longjmp_master_breakpoint)
5858 (create_std_terminate_master_breakpoint)
5859 (create_exception_master_breakpoint, get_sal_arch): Update.
5860 * block.c (block_gdbarch): Update.
5861 * annotate.c (annotate_source_line): Update.
5862
5863 2020-04-17 Tom Tromey <tromey@adacore.com>
5864
5865 * auto-load.c (show_auto_load_cmd): Remove.
5866 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5867 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5868 (maintenance_print_arc_command): Remove.
5869 * tui/tui-win.c (tui_command): Remove.
5870 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5871 * tui/tui-layout.c (tui_layout_command): Remove.
5872 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5873 * python/python.c (user_set_python, user_show_python): Remove.
5874 (_initialize_python): Use add_basic_prefix_cmd,
5875 add_show_prefix_cmd.
5876 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5877 (install_gdb_commands): Use add_basic_prefix_cmd,
5878 add_show_prefix_cmd.
5879 (info_guile_command): Remove.
5880 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5881 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5882 add_show_prefix_cmd.
5883 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5884 Remove do_set and do_show parameters.
5885 * cli/cli-style.c (set_style, show_style): Remove.
5886 (_initialize_cli_style): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 (cli_style_option::add_setshow_commands): Remove do_set and
5889 do_show parameters.
5890 (cli_style_option::add_setshow_commands): Use
5891 add_basic_prefix_cmd, add_show_prefix_cmd.
5892 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5893 (set_style_name): Remove.
5894 * cli/cli-dump.c (dump_command, append_command): Remove.
5895 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5896 (tekhex_dump_command, binary_dump_command)
5897 (binary_append_command): Remove.
5898 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5899 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5900 (init_w32_command_list): Remove; move into ...
5901 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5902 * valprint.c (set_print, show_print, set_print_raw)
5903 (show_print_raw): Remove.
5904 (_initialize_valprint): Use add_basic_prefix_cmd,
5905 add_show_prefix_cmd.
5906 * typeprint.c (set_print_type, show_print_type): Remove.
5907 (_initialize_typeprint): Use add_basic_prefix_cmd,
5908 add_show_prefix_cmd.
5909 * record.c (set_record_command, show_record_command): Remove.
5910 (_initialize_record): Use add_basic_prefix_cmd,
5911 add_show_prefix_cmd.
5912 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5913 add_show_prefix_cmd.
5914 (info_command, show_command, set_debug, show_debug): Remove.
5915 * top.h (set_history, show_history): Don't declare.
5916 * top.c (set_history, show_history): Remove.
5917 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5918 (unset_tdesc_cmd): Remove.
5919 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5920 add_show_prefix_cmd.
5921 * symtab.c (info_module_command): Remove.
5922 (_initialize_symtab): Use add_basic_prefix_cmd.
5923 * symfile.c (overlay_command): Remove.
5924 (_initialize_symfile): Use add_basic_prefix_cmd.
5925 * sparc64-tdep.c (info_adi_command): Remove.
5926 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5927 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5928 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5929 add_show_prefix_cmd.
5930 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5931 (_initialize_serial): Use add_basic_prefix_cmd,
5932 add_show_prefix_cmd.
5933 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5934 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5935 add_show_prefix_cmd.
5936 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5937 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5938 add_show_prefix_cmd.
5939 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5940 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5941 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5942 add_show_prefix_cmd.
5943 * remote.c (remote_command, set_remote_cmd): Remove.
5944 (_initialize_remote): Use add_basic_prefix_cmd.
5945 * record-full.c (set_record_full_command)
5946 (show_record_full_command): Remove.
5947 (_initialize_record_full): Use add_basic_prefix_cmd,
5948 add_show_prefix_cmd.
5949 * record-btrace.c (cmd_set_record_btrace)
5950 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5951 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5952 (cmd_show_record_btrace_pt): Remove.
5953 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5954 add_show_prefix_cmd.
5955 * ravenscar-thread.c (set_ravenscar_command)
5956 (show_ravenscar_command): Remove.
5957 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5958 add_show_prefix_cmd.
5959 * mips-tdep.c (show_mips_command, set_mips_command)
5960 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 * maint.c (maintenance_command, maintenance_info_command)
5963 (maintenance_check_command, maintenance_print_command)
5964 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5965 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5966 add_show_prefix_cmd.
5967 (show_per_command_cmd): Remove.
5968 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5969 Remove.
5970 (maintenance_show_test_settings_cmd): Remove.
5971 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5972 add_show_prefix_cmd.
5973 * maint-test-options.c (maintenance_test_options_command):
5974 Remove.
5975 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5976 * macrocmd.c (macro_command): Remove
5977 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5978 * language.c (set_check, show_check): Remove.
5979 (_initialize_language): Use add_basic_prefix_cmd,
5980 add_show_prefix_cmd.
5981 * infcmd.c (unset_command): Remove.
5982 (_initialize_infcmd): Use add_basic_prefix_cmd.
5983 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5984 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5985 add_show_prefix_cmd.
5986 * go32-nat.c (go32_info_dos_command): Remove.
5987 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5988 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5989 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5990 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5991 (_initialize_frame): Use add_basic_prefix_cmd,
5992 add_show_prefix_cmd.
5993 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5994 (_initialize_dcache): Use add_basic_prefix_cmd,
5995 add_show_prefix_cmd.
5996 * cp-support.c (maint_cplus_command): Remove.
5997 (_initialize_cp_support): Use add_basic_prefix_cmd.
5998 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5999 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6000 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6001 add_basic_prefix_cmd, add_show_prefix_cmd.
6002 * breakpoint.c (save_command): Remove.
6003 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6004 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6005 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6006 add_show_prefix_cmd.
6007 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6008 (set_ada_command, show_ada_command): Remove.
6009 (_initialize_ada_language): Use add_basic_prefix_cmd,
6010 add_show_prefix_cmd.
6011 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6012
6013 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6014
6015 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6016 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6017
6018 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6021 warning messages.
6022
6023 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6026 import table is not at beginning of .idata section.
6027
6028 2020-04-16 Pedro Alves <palves@redhat.com>
6029
6030 * inferior.c (delete_inferior): Use delete operator directly
6031 instead of delete_program_space.
6032 * progspace.c (add_program_space): New, factored out from
6033 program_space::program_space.
6034 (remove_program_space): New, factored out from
6035 delete_program_space.
6036 (program_space::program_space): Remove intro comment. Rewrite.
6037 (program_space::~program_space): Remove intro comment. Call
6038 remove_program_space.
6039 (delete_program_space): Delete.
6040 * progspace.h (program_space::program_space): Make explicit. Move
6041 intro comment here, adjusted.
6042 (program_space::~program_space): Move intro comment here,
6043 adjusted.
6044 (delete_program_space): Remove.
6045
6046 2020-04-16 Tom Tromey <tromey@adacore.com>
6047
6048 * windows-nat.c (windows_nat::handle_access_violation): New
6049 function.
6050 * nat/windows-nat.h (handle_access_violation): Declare.
6051 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6052 windows-nat.c. Call handle_access_violation.
6053
6054 2020-04-16 Tom de Vries <tdevries@suse.de>
6055
6056 PR symtab/25791
6057 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6058 CUs without psymtab.
6059
6060 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6061
6062 * python/python.c (do_start_initialization): Don't call
6063 PyEval_InitThreads for Python 3.9 and beyond.
6064
6065 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6066
6067 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6068 thread functions.
6069 (obsd_nat_target::wait): Likewise.
6070
6071 2020-04-15 Tom Tromey <tromey@adacore.com>
6072
6073 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6074 (DEBUG_EXCEPT): Use debug_printf.
6075
6076 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6077
6078 * completer.c (class completion_tracker::completion_hash_entry)
6079 <hash_name>: New member function.
6080 (completion_tracker::discard_completions): New callback to hash a
6081 completion_hash_entry, pass this to htab_create_alloc.
6082
6083 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6084
6085 * windows-nat.c (windows_make_so): Warn rather than stopping with
6086 an error if realpath() fails.
6087
6088 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6089
6090 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6091 (nbsd_nat_target::info_proc): Add do_status.
6092
6093 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6094 Tom de Vries <tdevries@suse.de>
6095
6096 PR symtab/25718
6097 * psympriv.h (struct partial_symtab::read_symtab)
6098 (struct partial_symtab::expand_psymtab)
6099 (struct partial_symtab::read_dependencies): Update comments.
6100 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6101 read_symtab for includer.
6102 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6103 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6104 (struct dwarf2_include_psymtab::m_readin): Remove.
6105 (struct dwarf2_include_psymtab::includer): New member function.
6106 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6107
6108 2020-04-14 Tom de Vries <tdevries@suse.de>
6109
6110 PR symtab/25720
6111 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6112 with NULL symbol_matcher and lookup_name.
6113 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6114 and lookup_name.
6115 * dwarf2/read.c (dw2_expand_symtabs_matching)
6116 (dw2_debug_names_expand_symtabs_matching): Same.
6117 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6118 Make lookup_name a pointer. Update comment.
6119 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6120 lookup_name being a pointer.
6121 * symfile.c (expand_symtabs_matching): Same.
6122 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6123 * linespec.c (iterate_over_all_matching_symtabs): Same.
6124
6125 2020-04-13 Tom Tromey <tom@tromey.com>
6126
6127 * run-on-main-thread.c: Update include.
6128 * unittests/main-thread-selftests.c: Update include.
6129 * tui/tui-win.c: Update include.
6130 * tui/tui-io.c: Update include.
6131 * tui/tui-interp.c: Update include.
6132 * tui/tui-hooks.c: Update include.
6133 * top.h: Update include.
6134 * top.c: Update include.
6135 * ser-base.c: Update include.
6136 * remote.c: Update include.
6137 * remote-notif.c: Update include.
6138 * remote-fileio.c: Update include.
6139 * record-full.c: Update include.
6140 * record-btrace.c: Update include.
6141 * python/python.c: Update include.
6142 * posix-hdep.c: Update include.
6143 * mingw-hdep.c: Update include.
6144 * mi/mi-main.c: Update include.
6145 * mi/mi-interp.c: Update include.
6146 * main.c: Update include.
6147 * linux-nat.c: Update include.
6148 * interps.c: Update include.
6149 * infrun.c: Update include.
6150 * inf-loop.c: Update include.
6151 * event-top.c: Update include.
6152 * event-loop.c: Move to ../gdbsupport/.
6153 * event-loop.h: Move to ../gdbsupport/.
6154 * async-event.h: Update include.
6155 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6156
6157 2020-04-13 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-win.c: Include async-event.h.
6160 * remote.c: Include async-event.h.
6161 * remote-notif.c: Include async-event.h.
6162 * record-full.c: Include async-event.h.
6163 * record-btrace.c: Include async-event.h.
6164 * infrun.c: Include async-event.h.
6165 * event-top.c: Include async-event.h.
6166 * event-loop.h: Move some declarations to async-event.h.
6167 * event-loop.c: Don't include ser-event.h or top.h. Move some
6168 code to async-event.c.
6169 * async-event.h: New file.
6170 * async-event.c: New file.
6171 * Makefile.in (COMMON_SFILES): Add async-event.c.
6172 (HFILES_NO_SRCDIR): Add async-event.h.
6173
6174 2020-04-13 Tom Tromey <tom@tromey.com>
6175
6176 * utils.c (flush_streams): New function.
6177 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6178
6179 2020-04-13 Tom Tromey <tom@tromey.com>
6180
6181 * event-loop.c (handle_file_event): Use warning, not
6182 printf_unfiltered.
6183
6184 2020-04-13 Tom Tromey <tom@tromey.com>
6185
6186 * event-loop.c: Include <chrono>.
6187
6188 2020-04-13 Tom Tromey <tom@tromey.com>
6189
6190 * gdb_select.h: Move to ../gdbsupport/.
6191 * event-loop.c: Update include path.
6192 * top.c: Update include path.
6193 * ser-base.c: Update include path.
6194 * ui-file.c: Update include path.
6195 * ser-tcp.c: Update include path.
6196 * guile/scm-ports.c: Update include path.
6197 * posix-hdep.c: Update include path.
6198 * ser-unix.c: Update include path.
6199 * gdb_usleep.c: Update include path.
6200 * mingw-hdep.c: Update include path.
6201 * inflow.c: Update include path.
6202 * infrun.c: Update include path.
6203 * event-top.c: Update include path.
6204
6205 2020-04-13 Tom Tromey <tom@tromey.com>
6206
6207 * configure: Rebuild.
6208 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6209
6210 2020-04-13 Tom Tromey <tom@tromey.com>
6211
6212 * event-loop.h (start_event_loop): Don't declare.
6213 * event-loop.c (start_event_loop): Move...
6214 * main.c (start_event_loop): ...here. Now static.
6215
6216 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6217
6218 * MAINTAINERS: Update my email address.
6219
6220 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6221
6222 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6223 IP_ALL.
6224
6225 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6226
6227 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6228 (nbsd_nat_target::info_proc): Add do_cmdline.
6229
6230 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6231
6232 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6233 (nbsd_nat_target::info_proc): Add do_cwd.
6234
6235 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6236
6237 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6238
6239 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6240
6241 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6242 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6243 (nbsd_nat_target::info_proc): New functions.
6244 * nbsd-nat.c (kinfo_get_vmmap): New function.
6245 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6246 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6247 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6248 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6249 functions.
6250 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6251 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6252 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6253 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6254 (KINFO_VME_FLAG_GROWS_DOWN): New.
6255
6256 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6257
6258 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6259 bit shift.
6260
6261 2020-04-10 Tom Tromey <tromey@adacore.com>
6262
6263 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6264
6265 2020-04-10 Tom Tromey <tromey@adacore.com>
6266
6267 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6268 separate debug files.
6269
6270 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6271
6272 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6273 Move to...
6274 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6275 ... here.
6276 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6277 Check for STATUS_WX86_BREAKPOINT.
6278 (windows_nat_target::wait): Same.
6279
6280 2020-04-10 Tom de Vries <tdevries@suse.de>
6281
6282 PR cli/25808
6283 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6284
6285 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6288 (Write After Approval): Remove Tom de Vries.
6289
6290 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6291
6292 revert partially:
6293 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6294
6295 * buildsym.c (record_line): Fix undefined behavior and preserve
6296 lines at eof.
6297
6298 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6299
6300 * auxv.h (svr4_auxv_parse): New.
6301 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6302 and generic_auxv_parse.
6303 (svr4_auxv_parse): Add.
6304 * obsd-tdep.c: Include "auxv.h".
6305 (obsd_auxv_parse): Remove.
6306 (obsd_init_abi): Remove comment.
6307 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6308 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6309 * nbsd-tdep.c: Include "auxv.h".
6310 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6311
6312 2020-04-08 Tom Tromey <tromey@adacore.com>
6313
6314 * nat/windows-nat.h (last_wait_event): Don't declare.
6315 (wait_for_debug_event): Update comment.
6316 * nat/windows-nat.c (last_wait_event): Now static.
6317
6318 2020-04-08 Tom Tromey <tromey@adacore.com>
6319
6320 * windows-nat.c (wait_for_debug_event): Move to
6321 nat/windows-nat.c.
6322 * nat/windows-nat.h (wait_for_debug_event): Declare.
6323 * nat/windows-nat.c (wait_for_debug_event): Move from
6324 windows-nat.c. No longer static.
6325
6326 2020-04-08 Tom Tromey <tromey@adacore.com>
6327
6328 * windows-nat.c (get_windows_debug_event): Use
6329 fetch_pending_stop.
6330 * nat/windows-nat.h (fetch_pending_stop): Declare.
6331 * nat/windows-nat.c (fetch_pending_stop): New function.
6332
6333 2020-04-08 Tom Tromey <tromey@adacore.com>
6334
6335 * windows-nat.c (windows_continue): Use matching_pending_stop and
6336 continue_last_debug_event.
6337 * nat/windows-nat.h (matching_pending_stop)
6338 (continue_last_debug_event): Declare.
6339 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6340 (matching_pending_stop, continue_last_debug_event): New
6341 functions.
6342
6343 2020-04-08 Tom Tromey <tromey@adacore.com>
6344
6345 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6346 (handle_exception_result): Move to nat/windows-nat.h.
6347 (DEBUG_EXCEPTION_SIMPLE): Remove.
6348 (windows_nat::handle_ms_vc_exception): New function.
6349 (handle_exception): Move to nat/windows-nat.c.
6350 (get_windows_debug_event): Update.
6351 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6352 nat/windows-nat.c.
6353 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6354 (handle_exception_result): Move from windows-nat.c.
6355 (handle_exception): Declare.
6356 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6357 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6358 windows-nat.c.
6359
6360 2020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (exception_count, event_count): Remove.
6363 (handle_exception, get_windows_debug_event)
6364 (do_initial_windows_stuff): Update.
6365
6366 2020-04-08 Tom Tromey <tromey@adacore.com>
6367
6368 * windows-nat.c (windows_nat::handle_load_dll)
6369 (windows_nat::handle_unload_dll): Rename. No longer static.
6370 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6371 Declare.
6372
6373 2020-04-08 Tom Tromey <tromey@adacore.com>
6374
6375 * complaints.h (stop_whining): Declare at top-level.
6376 (complaint): Don't declare stop_whining.
6377
6378 2020-04-08 Tom Tromey <tromey@adacore.com>
6379
6380 * windows-nat.c (windows_nat::handle_output_debug_string):
6381 Rename. No longer static.
6382 * nat/windows-nat.h (handle_output_debug_string): Declare.
6383
6384 2020-04-08 Tom Tromey <tromey@adacore.com>
6385
6386 * windows-nat.c (current_process_handle, current_process_id)
6387 (main_thread_id, last_sig, current_event, last_wait_event)
6388 (current_windows_thread, desired_stop_thread_id, pending_stops)
6389 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6390 (display_selectors, fake_create_process)
6391 (get_windows_debug_event): Update.
6392 * nat/windows-nat.h (current_process_handle, current_process_id)
6393 (main_thread_id, last_sig, current_event, last_wait_event)
6394 (current_windows_thread, desired_stop_thread_id, pending_stops)
6395 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6396 * nat/windows-nat.c (current_process_handle, current_process_id)
6397 (main_thread_id, last_sig, current_event, last_wait_event)
6398 (current_windows_thread, desired_stop_thread_id, pending_stops)
6399 (siginfo_er): New globals. Move from windows-nat.c.
6400
6401 2020-04-08 Tom Tromey <tromey@adacore.com>
6402
6403 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6404 (handle_load_dll): Update.
6405 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6406
6407 2020-04-08 Tom Tromey <tromey@adacore.com>
6408
6409 * windows-nat.c (enum thread_disposition_type): Move to
6410 nat/windows-nat.h.
6411 (windows_nat::thread_rec): Rename from thread_rec. No longer
6412 static.
6413 (windows_add_thread, windows_nat_target::fetch_registers)
6414 (windows_nat_target::store_registers, handle_exception)
6415 (windows_nat_target::resume, get_windows_debug_event)
6416 (windows_nat_target::get_tib_address)
6417 (windows_nat_target::thread_name)
6418 (windows_nat_target::thread_alive): Update.
6419 * nat/windows-nat.h (enum thread_disposition_type): Move from
6420 windows-nat.c.
6421 (thread_rec): Declare.
6422
6423 2020-04-08 Tom Tromey <tromey@adacore.com>
6424
6425 * windows-nat.c: Add "using namespace".
6426 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6427 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6428
6429 2020-04-08 Tom Tromey <tromey@adacore.com>
6430
6431 * nat/windows-nat.h (struct windows_thread_info): Declare
6432 destructor.
6433 * nat/windows-nat.c (~windows_thread_info): New.
6434
6435 2020-04-08 Tom Tromey <tromey@adacore.com>
6436
6437 PR gdb/22992
6438 * windows-nat.c (current_event): Update comment.
6439 (last_wait_event, desired_stop_thread_id): New globals.
6440 (struct pending_stop): New.
6441 (pending_stops): New global.
6442 (windows_nat_target) <stopped_by_sw_breakpoint>
6443 <supports_stopped_by_sw_breakpoint>: New methods.
6444 (windows_fetch_one_register): Add assertions. Adjust PC.
6445 (windows_continue): Handle pending stops. Suspend other threads
6446 when stepping. Use last_wait_event
6447 (wait_for_debug_event): New function.
6448 (get_windows_debug_event): Use wait_for_debug_event. Handle
6449 pending stops. Queue spurious stops.
6450 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6451 (windows_nat_target::kill): Use wait_for_debug_event.
6452 * nat/windows-nat.h (struct windows_thread_info)
6453 <stopped_at_software_breakpoint>: New field.
6454 * nat/windows-nat.c (windows_thread_info::resume): Clear
6455 stopped_at_software_breakpoint.
6456
6457 2020-04-08 Tom Tromey <tromey@adacore.com>
6458
6459 * windows-nat.c (enum thread_disposition_type): New.
6460 (thread_rec): Replace "get_context" parameter with "disposition";
6461 change type.
6462 (windows_add_thread, windows_nat_target::fetch_registers)
6463 (windows_nat_target::store_registers, handle_exception)
6464 (windows_nat_target::resume, get_windows_debug_event)
6465 (windows_nat_target::get_tib_address)
6466 (windows_nat_target::thread_name)
6467 (windows_nat_target::thread_alive): Update.
6468
6469 2020-04-08 Tom Tromey <tromey@adacore.com>
6470
6471 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6472 (windows_continue): Use windows_continue::resume.
6473 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6474 resume>: Declare new methods.
6475 * nat/windows-nat.c: New file.
6476 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6477
6478 2020-04-08 Tom Tromey <tromey@adacore.com>
6479
6480 * windows-nat.c (windows_add_thread, windows_delete_thread)
6481 (windows_nat_target::fetch_registers)
6482 (windows_nat_target::store_registers, fake_create_process)
6483 (windows_nat_target::resume, windows_nat_target::resume)
6484 (get_windows_debug_event, windows_nat_target::wait)
6485 (windows_nat_target::pid_to_str)
6486 (windows_nat_target::get_tib_address)
6487 (windows_nat_target::get_ada_task_ptid)
6488 (windows_nat_target::thread_name)
6489 (windows_nat_target::thread_alive): Use lwp, not tid.
6490
6491 2020-04-08 Tom Tromey <tromey@adacore.com>
6492
6493 * windows-nat.c (handle_exception)
6494 (windows_nat_target::thread_name): Update.
6495 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6496 <name>: Now unique_xmalloc_ptr.
6497
6498 2020-04-08 Tom Tromey <tromey@adacore.com>
6499
6500 * windows-nat.c (thread_rec)
6501 (windows_nat_target::fetch_registers): Update.
6502 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6503 Update comment.
6504 <debug_registers_changed, reload_context>: Now bool.
6505
6506 2020-04-08 Tom Tromey <tromey@adacore.com>
6507
6508 * windows-nat.c (windows_add_thread): Use new.
6509 (windows_init_thread_list, windows_delete_thread): Use delete.
6510 (get_windows_debug_event): Update.
6511 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6512 destructor, and initializers.
6513
6514 2020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (struct windows_thread_info): Remove.
6517 * nat/windows-nat.h: New file.
6518
6519 2020-04-08 Tom Tromey <tromey@adacore.com>
6520
6521 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6522 (thread_rec, windows_add_thread, windows_delete_thread)
6523 (windows_continue): Update.
6524
6525 2020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (struct windows_thread_info): Remove typedef.
6528 (thread_head): Remove.
6529 (thread_list): New global.
6530 (thread_rec, windows_add_thread, windows_init_thread_list)
6531 (windows_delete_thread, windows_continue): Update.
6532
6533 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * windows-tdep.h (windows_init_abi): Add comment.
6536 (cygwin_init_abi): New declaration.
6537 * windows-tdep.c: Split signal enumeration in two, one for
6538 Windows and one for Cygwin.
6539 (windows_gdb_signal_to_target): Only deal with signal of the
6540 Windows OS ABI.
6541 (cygwin_gdb_signal_to_target): New function.
6542 (windows_init_abi): Rename to windows_init_abi_common, don't set
6543 gdb_signal_to_target gdbarch method. Add new new function with
6544 this name.
6545 (cygwin_init_abi): New function.
6546 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6547 comment. Don't call windows_init_abi.
6548 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6549 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6550 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6551 i386_windows_init_abi_common, don't call windows_init_abi. Add
6552 a new function of this name.
6553 (i386_cygwin_init_abi): New function.
6554 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6555 OS ABI Cygwin.
6556
6557 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6560 parameter.c.
6561 (dwarf2_read_gdb_index): Update.
6562
6563 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6564
6565 * nbsd-tdep.c: Include "objfiles.h".
6566 (nbsd_skip_solib_resolver): New.
6567 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6568
6569 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6570
6571 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6572 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6573 with DW_LLE_base_addressx are being emitted in DWARFv5.
6574 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6575 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6576 unsigned integer.
6577
6578 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6579
6580 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6581 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6582 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6583 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6584 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6585 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6586 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6587
6588
6589 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6590
6591 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6592 (read_loclist_index): New function definition.
6593 (lookup_loclist_base): New function definition.
6594 (read_loclist_header): New function definition.
6595 (dwarf2_cu): Add loclist_base and loclist_header field.
6596 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6597 (read_full_die_1): Read the value of DW_AT_loclists_base.
6598 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6599 (read_attribute_value): Handle DW_FORM_loclistx.
6600 (skip_one_die): Handle DW_FORM_loclistx.
6601 (loclist_header): New structure declaration.
6602 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6603
6604 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6607 constructor. Remove `addr` parameter from other constructor and
6608 add `per_cu` parameter.
6609 * dwarf2/read.c (create_partial_symtab): Update.
6610
6611 2020-04-07 Tom de Vries <tdevries@suse.de>
6612
6613 PR symtab/25796
6614 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6615 (partial_die_info::fixup): Inherit has_const_value.
6616
6617 2020-04-07 Tom de Vries <tdevries@suse.de>
6618
6619 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6620 symbols without address.
6621
6622 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6623
6624 * nbsd-nat.h (struct thread_info): Add forward declaration.
6625 (nbsd_nat_target::thread_alive): Add.
6626 (nbsd_nat_target::thread_name): Likewise.
6627 (nbsd_nat_target::update_thread_list): Likewise.
6628 (update_thread_list::post_attach): Likewise.
6629 (post_attach::pid_to_str): Likewise.
6630 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6631 (nbsd_thread_lister): Add.
6632 (nbsd_nat_target::thread_alive): Likewise.
6633 (nbsd_nat_target::thread_name): Likewise.
6634 (nbsd_add_threads): Likewise.
6635 (update_thread_list::post_attach): Likewise.
6636 (nbsd_nat_target::update_thread_list): Likewise.
6637 (post_attach::pid_to_str): Likewise.
6638
6639 2020-04-06 Tom Tromey <tromey@adacore.com>
6640
6641 * ada-valprint.c (print_variant_part): Extract the variant field.
6642 (print_field_values): Use the field as the outer value when
6643 recursing.
6644
6645 2020-04-06 Tom Tromey <tromey@adacore.com>
6646
6647 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6648 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6649 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6650 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6651 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6652
6653 2020-04-06 Tom Tromey <tromey@adacore.com>
6654
6655 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6656 TYPE_CODE_ERROR.
6657
6658 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6659
6660 * nbsd-tdep.c: Include "gdbarch.h".
6661 Define enum with NetBSD signal numbers.
6662 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6663 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6664 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6665 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6666 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6667 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6668 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6669 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6670 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6671 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6672 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6673 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6674
6675 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6676
6677 PR gdb/25325
6678 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6679
6680 2020-04-03 Tom Tromey <tromey@adacore.com>
6681
6682 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6683 Read constant block.
6684
6685 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6686
6687 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6688 (gdb_bfd_get_full_section_contents): New declaration.
6689 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6690 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6691 gdb_bfd_get_full_section_contents.
6692
6693 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6694
6695 * exec.c (build_section_table): Replace internal_error with
6696 gdb_assert.
6697 (section_table_xfer_memory_partial): Likewise.
6698 * mdebugread.c (parse_partial_symbols): Likewise.
6699 * psymtab.c (lookup_partial_symbol): Likewise.
6700 * utils.c (wrap_here): Likewise.
6701
6702 2020-04-02 Tom Tromey <tromey@adacore.com>
6703
6704 * f-lang.c (build_fortran_types): Use arch_type to initialize
6705 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6706
6707 2020-04-02 Tom Tromey <tromey@adacore.com>
6708
6709 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6710 of attributes.
6711
6712 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6713 Bernd Edlinger <bernd.edlinger@hotmail.de>
6714 Tom Tromey <tromey@adacore.com>
6715
6716 * buildsym.c (buildsym_compunit::record_line): Remove
6717 deduplication code.
6718
6719 2020-04-02 Tom de Vries <tdevries@suse.de>
6720
6721 PR ada/24671
6722 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6723
6724 2020-04-02 Tom de Vries <tdevries@suse.de>
6725
6726 * dwarf2/read.c (dwarf2_gdb_index_functions,
6727 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6728 NULL.
6729 * psymtab.c (psym_lookup_global_symbol_language): New function.
6730 (psym_functions): Init psym_lookup_global_symbol_language with
6731 psym_lookup_global_symbol_language.
6732 * symfile-debug.c (debug_sym_quick_functions): Init
6733 lookup_global_symbol_language with NULL.
6734 * symfile.c (set_initial_language): Remove fixme comment.
6735 * symfile.h (struct quick_symbol_functions): Add
6736 lookup_global_symbol_language.
6737 * symtab.c (find_quick_global_symbol_language): New function.
6738 (find_main_name): Use find_quick_global_symbol_language.
6739
6740 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6741
6742 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6743
6744 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6745
6746 * buildsym.c (record_line): Fix undefined behavior and preserve
6747 lines at eof.
6748
6749 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6750
6751 * buildsym.c (record_line): Fix the resizing condition.
6752
6753 2020-04-01 Tom Tromey <tom@tromey.com>
6754
6755 * value.h (value_literal_complex): Add comment.
6756 * valops.c (value_literal_complex): Refer to value.h.
6757
6758 2020-04-01 Tom Tromey <tom@tromey.com>
6759
6760 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6761 (scalar_type): New rule, from typebase.
6762 (typebase): Use scalar_type. Recognize complex types.
6763 (field_name): Handle FLOAT_KEYWORD.
6764 (ident_tokens): Add _Complex and __complex__.
6765
6766 2020-04-01 Tom Tromey <tom@tromey.com>
6767
6768 PR exp/25299:
6769 * valarith.c (promotion_type, complex_binop): New functions.
6770 (scalar_binop): Handle complex numbers. Use promotion_type.
6771 (value_pos, value_neg, value_complement): Handle complex numbers.
6772
6773 2020-04-01 Tom Tromey <tom@tromey.com>
6774
6775 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6776 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6777 (parse_number): Handle complex numbers.
6778
6779 2020-04-01 Tom Tromey <tom@tromey.com>
6780
6781 * c-valprint.c (c_decorations): Change complex suffix to "i".
6782
6783 2020-04-01 Tom Tromey <tom@tromey.com>
6784
6785 * valprint.c (generic_value_print_complex): Use accessors.
6786 * value.h (value_real_part, value_imaginary_part): Declare.
6787 * valops.c (value_real_part, value_imaginary_part): New
6788 functions.
6789 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6790
6791 2020-04-01 Tom Tromey <tom@tromey.com>
6792
6793 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6794 (read_range_type): Update.
6795 * mdebugread.c (basic_type): Update.
6796 * go-lang.c (build_go_types): Use init_complex_type.
6797 * gdbtypes.h (struct main_type) <complex_type>: New member.
6798 (init_complex_type): Update.
6799 (arch_complex_type): Don't declare.
6800 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6801 Make name if none given. Use alloc_type_copy. Look for cached
6802 complex type.
6803 (arch_complex_type): Remove.
6804 (gdbtypes_post_init): Use init_complex_type.
6805 * f-lang.c (build_fortran_types): Use init_complex_type.
6806 * dwarf2/read.c (read_base_type): Update.
6807 * d-lang.c (build_d_types): Use init_complex_type.
6808 * ctfread.c (read_base_type): Update.
6809
6810 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6811
6812 * infrun.c (stop_all_threads): Update assertion, plus when
6813 stopping threads, take into account that we might be trying
6814 to stop an all-stop target.
6815 (stop_waiting): Call 'stop_all_threads' if there exists a
6816 non-stop target.
6817
6818 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6819
6820 * target.h (exists_non_stop_target): New function declaration.
6821 * target.c (exists_non_stop_target): New function.
6822
6823 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6824
6825 PR gdb/24789
6826 * eval.c (is_integral_or_integral_reference): New function.
6827 (evaluate_subexp_standard): Allow integer references in
6828 pointer arithmetic.
6829
6830 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6831
6832 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6833 check for no ptid in the stop reply when the target is non-stop.
6834
6835 2020-04-01 Tom Tromey <tromey@adacore.com>
6836
6837 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6838 "name" parameter to rvalue reference. Initialize m_name_holder.
6839 <lookup_name_info>: New overloads.
6840 <name>: Return gdb::string_view.
6841 <c_str>: New method.
6842 <make_ignore_params>: Update.
6843 <search_name_hash>: Update.
6844 <language_lookup_name>: Return const char *.
6845 <m_name>: Change type.
6846 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6847 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6848 (lookup_name_info::match_any): Update.
6849 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6850 Update.
6851 * minsyms.c (linkage_name_str): Update.
6852 * language.c (default_symbol_name_matcher): Update.
6853 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6854 Update.
6855 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6856 (ada_lookup_name_info::ada_lookup_name_info): Update.
6857 (literal_symbol_name_matcher): Update.
6858
6859 2020-04-01 Tom Tromey <tromey@adacore.com>
6860
6861 * psymtab.c (psymtab_search_name): Remove function.
6862 (psym_lookup_symbol): Create search name and lookup name here.
6863 (lookup_partial_symbol): Remove "name" parameter; add
6864 lookup_name.
6865 (psym_expand_symtabs_for_function): Update.
6866
6867 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6868
6869 PR tui/25597:
6870 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6871
6872 2020-03-31 Tom Tromey <tromey@adacore.com>
6873
6874 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6875 memcpy.
6876
6877 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6878
6879 * features/riscv/32bit-csr.xml: Regenerated.
6880 * features/riscv/64bit-csr.xml: Regenerated.
6881
6882 2020-03-30 Tom Tromey <tromey@adacore.com>
6883
6884 * ada-valprint.c (print_variant_part): Update.
6885 * ada-lang.h (ada_which_variant_applies): Update.
6886 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6887 outer_valaddr parameters; replace with "outer" value parameter.
6888 (to_fixed_variant_branch_type): Update.
6889
6890 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6891
6892 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6893 <list>. Remove inclusion of observable.h.
6894 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6895 (struct arch_lwp_info): New struct.
6896 (class ppc_linux_dreg_interface): New class.
6897 (struct ppc_linux_process_info): New struct.
6898 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6899 <low_new_clone, low_forget_process, low_prepare_to_resume>
6900 <copy_thread_dreg_state, mark_thread_stale>
6901 <mark_debug_registers_changed, register_hw_breakpoint>
6902 <clear_hw_breakpoint, register_wp, clear_wp>
6903 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6904 <num_memory_accesses, get_trigger_type>
6905 <create_watchpoint_request, hwdebug_point_cmp>
6906 <init_arch_lwp_info, get_arch_lwp_info>
6907 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6908 methods.
6909 <struct ptid_hash>: New inner struct.
6910 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6911 members.
6912 (saved_dabr_value, hwdebug_info, max_slots_number)
6913 (struct hw_break_tuple, struct thread_points, ppc_threads)
6914 (have_ptrace_hwdebug_interface)
6915 (hwdebug_find_thread_points_by_tid)
6916 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6917 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6918 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6919 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6920 use m_dreg_interface.
6921 (hwdebug_point_cmp): Change to...
6922 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6923 reference arguments instead of pointers.
6924 (ppc_linux_nat_target::ranged_break_num_registers): Use
6925 m_dreg_interface.
6926 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6927 m_dreg_interface. Call register_hw_breakpoint.
6928 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6929 m_dreg_interface. Call clear_hw_breakpoint.
6930 (get_trigger_type): Change to...
6931 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6932 comment.
6933 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6934 use m_dreg_interface. Call register_hw_breakpoint.
6935 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6936 use m_dreg_interface. Call clear_hw_breakpoint.
6937 (can_use_watchpoint_cond_accel): Change to...
6938 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6939 method. Update comment, use m_dreg_interface and
6940 m_process_info.
6941 (calculate_dvc): Change to...
6942 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6943 m_dreg_interface.
6944 (num_memory_accesses): Change to...
6945 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6946 (check_condition): Change to...
6947 (ppc_linux_nat_target::check_condition): ...this method.
6948 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6949 comment, use m_dreg_interface.
6950 (create_watchpoint_request): Change to...
6951 (ppc_linux_nat_target::create_watchpoint_request): ...this
6952 method. Use m_dreg_interface.
6953 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6954 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6955 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6956 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6957 (ppc_linux_nat_target::low_forget_process)
6958 (ppc_linux_nat_target::low_new_fork)
6959 (ppc_linux_nat_target::low_new_clone)
6960 (ppc_linux_nat_target::low_delete_thread)
6961 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6962 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6963 only call mark_thread_stale.
6964 (ppc_linux_thread_exit): Remove.
6965 (ppc_linux_nat_target::stopped_data_address): Change to...
6966 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6967 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6968 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6969 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6970 comment. Call low_stopped_data_address.
6971 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6972 m_dreg_interface.
6973 (ppc_linux_nat_target::masked_watch_num_registers): Use
6974 m_dreg_interface.
6975 (ppc_linux_nat_target::copy_thread_dreg_state)
6976 (ppc_linux_nat_target::mark_thread_stale)
6977 (ppc_linux_nat_target::mark_debug_registers_changed)
6978 (ppc_linux_nat_target::register_hw_breakpoint)
6979 (ppc_linux_nat_target::clear_hw_breakpoint)
6980 (ppc_linux_nat_target::register_wp)
6981 (ppc_linux_nat_target::clear_wp)
6982 (ppc_linux_nat_target::init_arch_lwp_info)
6983 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6984 (_initialize_ppc_linux_nat): Remove observer callback.
6985
6986 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6987
6988 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6989 (ppc_linux_nat_target::auxv_parse)
6990 (ppc_linux_nat_target::read_description)
6991 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6992 Move up.
6993
6994 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6995
6996 * linux-nat.h (low_new_clone): New method.
6997 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6998
6999 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7000
7001 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7002 (dbx_expand_psymtab): ... this.
7003 (start_psymtab): Update.
7004 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7005 (mdebug_expand_psymtab): ... this.
7006 (parse_partial_symbols): Update.
7007 (new_psymtab): Update.
7008 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7009 (xcoff_expand_psymtab): ... this.
7010 (xcoff_start_psymtab): Update.
7011
7012 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7013
7014 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7015 <expand_dependencies>: ... this.
7016 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7017 (partial_symtab::expand_dependencies): ... this.
7018 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7019 Update.
7020 (dwarf2_psymtab::expand_psymtab): Update.
7021 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7022 * mdebugread.c (psymtab_to_symtab_1): Update.
7023 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7024
7025 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * psympriv.h (discard_psymtab): Remove.
7028 * dbxread.c (dbx_end_psymtab): Update.
7029 * xcoffread.c (xcoff_end_psymtab): Update.
7030
7031 2020-03-28 Tom Tromey <tom@tromey.com>
7032
7033 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7034 comment.
7035
7036 2020-03-28 Tom Tromey <tom@tromey.com>
7037
7038 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7039
7040 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7041
7042 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7043
7044 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7045
7046 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7047
7048 2020-03-26 Tom Tromey <tom@tromey.com>
7049
7050 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7051 (mark_common_block_symbol_computed, read_tag_string_type)
7052 (attr_to_dynamic_prop, read_subrange_type): Update.
7053 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7054 to be methods on struct attribute.
7055 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7056 (read_call_site_scope, partial_die_info::read)
7057 (partial_die_info::read, lookup_die_type, follow_die_ref):
7058 Update.
7059 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7060 from dwarf2_get_ref_die_offset.
7061 (attribute::constant_value): New method, from
7062 dwarf2_get_attr_constant_value.
7063 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7064 Declare method.
7065 <constant_value>: New method.
7066
7067 2020-03-26 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7070 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7071 (dwarf_type_encoding_name): Move to stringify.c.
7072 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7073 * dwarf2/stringify.c: New file.
7074 * dwarf2/stringify.h: New file.
7075
7076 2020-03-26 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7079 Rewrite.
7080
7081 2020-03-26 Tom Tromey <tom@tromey.com>
7082
7083 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7084 methods.
7085 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7086 (lookup_ranges_base): Likewise.
7087 (read_cutu_die_from_dwo, read_full_die_1): Update.
7088
7089 2020-03-26 Tom Tromey <tom@tromey.com>
7090
7091 * dwarf2/read.c (read_import_statement, read_file_scope)
7092 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7093 (read_lexical_block_scope, read_call_site_scope)
7094 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7095 (handle_struct_member_die, process_structure_scope)
7096 (update_enumeration_type_from_children)
7097 (process_enumeration_scope, read_array_type, read_common_block)
7098 (read_namespace, read_module, read_subroutine_type): Update.
7099 (sibling_die): Remove.
7100
7101 2020-03-26 Tom Tromey <tom@tromey.com>
7102
7103 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7104 (build_type_psymtabs_reader, read_structure_type)
7105 (read_enumeration_type, read_full_die_1): Update.
7106 (dwarf2_attr_no_follow): Move to die.h.
7107 * dwarf2/die.h (struct die_info) <attr>: New method.
7108
7109 2020-03-26 Tom Tromey <tom@tromey.com>
7110
7111 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7112 <base_address>: Now an optional.
7113 (dwarf2_find_base_address, dwarf2_rnglists_process)
7114 (dwarf2_ranges_process, fill_in_loclist_baton)
7115 (dwarf2_symbol_mark_computed): Update.
7116
7117 2020-03-26 Tom Tromey <tom@tromey.com>
7118
7119 * dwarf2/read.c (struct die_info): Move to die.h.
7120 * dwarf2/die.h: New file.
7121
7122 2020-03-26 Tom Tromey <tom@tromey.com>
7123
7124 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7125 * dwarf2/read.c
7126 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7127 Move to line-header.c.
7128 (read_checked_initial_length_and_offset, read_formatted_entries):
7129 Likewise.
7130 (dwarf_decode_line_header): Split into two.
7131 * dwarf2/line-header.c
7132 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7133 Move from read.c.
7134 (read_checked_initial_length_and_offset, read_formatted_entries):
7135 Likewise.
7136 (dwarf_decode_line_header): New function, split from read.c.
7137
7138 2020-03-26 Tom Tromey <tom@tromey.com>
7139
7140 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7141 Declare method.
7142 * dwarf2/read.c (read_attribute_value): Update.
7143 (dwarf2_per_objfile::read_line_string): Rename from
7144 read_indirect_line_string.
7145 (read_formatted_entries): Update.
7146
7147 2020-03-26 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7150 variable.
7151
7152 2020-03-26 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7155 const.
7156 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7157 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7158 parameter const.
7159
7160 2020-03-26 Tom Tromey <tom@tromey.com>
7161
7162 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7163 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7164 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7165 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7166
7167 2020-03-26 Tom Tromey <tom@tromey.com>
7168
7169 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7170 file_names_size, file_full_name, file_file_name>: Use const.
7171 <file_name_at, file_names>: Add const overload.
7172 * dwarf2/line-header.c (line_header::file_file_name)
7173 (line_header::file_full_name): Update.
7174
7175 2020-03-26 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7178 (macro_start_file, consume_improper_spaces)
7179 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7180 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7181 (dwarf_decode_macros): Move to macro.c.
7182 * dwarf2/macro.c: New file.
7183 * dwarf2/macro.h: New file.
7184 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7185
7186 2020-03-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7189 method.
7190 * dwarf2/section.c: New method. From
7191 read_indirect_string_at_offset_from.
7192 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7193 (read_indirect_string_at_offset_from): Move to section.c.
7194 (read_indirect_string_at_offset): Rewrite.
7195 (read_indirect_line_string_at_offset): Remove.
7196 (read_indirect_string, read_indirect_line_string)
7197 (dwarf_decode_macro_bytes): Update.
7198
7199 2020-03-26 Tom Tromey <tom@tromey.com>
7200
7201 * dwarf2/section.h (struct dwarf2_section_info)
7202 <overload_complaint>: Declare.
7203 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7204 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7205 Rename from dwarf2_section_buffer_overflow_complaint.
7206 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7207 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7208
7209 2020-03-26 Tom Tromey <tom@tromey.com>
7210
7211 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7212 Declare.
7213 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7214 Move from read.c.
7215 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7216 to section.c.
7217
7218 2020-03-26 Tom Tromey <tom@tromey.com>
7219
7220 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7221
7222 2020-03-26 Tom Tromey <tom@tromey.com>
7223
7224 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7225 "builder".
7226 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7227 parameter.
7228 (dwarf_decode_macros): Update.
7229
7230 2020-03-26 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2/read.c (read_attribute_value): Update.
7233 (read_indirect_string_from_dwz): Move to dwz.c; change into
7234 method.
7235 (dwarf_decode_macro_bytes): Update.
7236 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7237 * dwarf2/dwz.c: New file.
7238 * Makefile.in (COMMON_SFILES): Add dwz.c.
7239
7240 2020-03-26 Tom Tromey <tom@tromey.com>
7241
7242 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7243 * dwarf2/read.c: Add include.
7244 * dwarf2/index-write.c: Add include.
7245 * dwarf2/index-cache.c: Add include.
7246 * dwarf2/dwz.h: New file.
7247
7248 2020-03-25 Tom Tromey <tom@tromey.com>
7249
7250 * compile/compile-object-load.c (get_out_value_type): Mention
7251 correct symbol name in error message.
7252
7253 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7254
7255 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7256
7257 2020-03-25 Tom de Vries <tdevries@suse.de>
7258
7259 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7260 * symmisc.c (dump_symtab_1): Print user and includes fields.
7261 (maintenance_info_symtabs): Same.
7262
7263 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 PR gdb/25534
7266 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7267 (riscv_regcache_cooked_write): New function.
7268 (riscv_push_dummy_call): Use new function.
7269 (riscv_return_value): Likewise.
7270
7271 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7274 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7275 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7276 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7277 * infrun.c (follow_fork): Likewise.
7278 (follow_fork_inferior): Likewise.
7279 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7280 * linux-nat.h (class linux_nat_target): Likewise.
7281 * remote.c (class remote_target) <follow_fork>: Likewise.
7282 (remote_target::follow_fork): Likewise.
7283 * target-delegates.c: Re-generate.
7284 * target.c (default_follow_fork): Likewise.
7285 (target_follow_fork): Likewise.
7286 * target.h (struct target_ops) <follow_fork>: Likewise.
7287 (target_follow_fork): Likewise.
7288
7289 2020-03-24 Tom de Vries <tdevries@suse.de>
7290
7291 * psymtab.c (maintenance_info_psymtabs): Print user field.
7292
7293 2020-03-20 Tom Tromey <tromey@adacore.com>
7294
7295 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7296 const.
7297 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7298 const.
7299
7300 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7301
7302 * ptrace.m4: Don't check for ptrace declaration.
7303 * config.in: Re-generate.
7304 * configure: Re-generate.
7305 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7306 not defined.
7307
7308 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7309
7310 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7311 `PTRACE_TYPE_RET'.
7312 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7313 * sparc-nat.c (gdb_ptrace): Likewise.
7314 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7315
7316 2020-03-20 Tom Tromey <tromey@adacore.com>
7317
7318 * c-exp.y (lex_one_token): Fix assert.
7319
7320 2020-03-20 Tom Tromey <tromey@adacore.com>
7321
7322 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7323 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7324 strncpy call.
7325
7326 2020-03-20 Tom Tromey <tromey@adacore.com>
7327
7328 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7329
7330 2020-03-20 Tom Tromey <tromey@adacore.com>
7331
7332 * ada-valprint.c (print_variant_part): Remove parameters; switch
7333 to value-based API.
7334 (print_field_values): Likewise.
7335 (ada_val_print_struct_union): Likewise.
7336 (ada_value_print_1): Update.
7337
7338 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7339
7340 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7341 nbsd_nat_target instead of inf_ptrace_target.
7342 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7343 nbsd_nat_target.
7344
7345 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7346
7347 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7348 it to the ptrace call.
7349 * (store_registers): Likewise.
7350
7351 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7352
7353 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7354 it to the ptrace call.
7355 * (store_registers): Likewise.
7356
7357 2020-03-19 Luis Machado <luis.machado@linaro.org>
7358
7359 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7360 valid, fetch vg value from ptrace.
7361
7362 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7363 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7364 * inf-ptrace.c: Likewise.
7365 * (gdb_ptrace): Add.
7366 * (inf_ptrace_target::resume): Update.
7367 * (inf_ptrace_target::xfer_partial): Likewise.
7368 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7369 * (inf_ptrace_peek_poke): Update.
7370
7371 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7372
7373 * x86-bsd-nat.c (gdb_ptrace): New.
7374 * (x86bsd_dr_set): Add new argument `ptid'.
7375 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7376 x86bsd_dr_set_addr): Update.
7377
7378 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * remote.c (remote_target::process_stop_reply): Handle events for
7381 all threads differently.
7382
7383 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 * completer.c (completion_tracker::remove_completion): Define new
7386 function.
7387 * completer.h (completion_tracker::remove_completion): Declare new
7388 function.
7389 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7390 when adding a C++ function symbol.
7391
7392 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7393
7394 * completer.c (completion_tracker::completion_hash_entry): Define
7395 new class.
7396 (advance_to_filename_complete_word_point): Call
7397 recompute_lowest_common_denominator.
7398 (completion_tracker::completion_tracker): Call discard_completions
7399 to setup the hash table.
7400 (completion_tracker::discard_completions): Allow for being called
7401 from the constructor, pass new equal function, and element deleter
7402 when constructing the hash table. Initialise new class member
7403 variables.
7404 (completion_tracker::maybe_add_completion): Remove use of
7405 m_entries_vec, and store more information into m_entries_hash.
7406 (completion_tracker::recompute_lcd_visitor): New function, most
7407 content taken from...
7408 (completion_tracker::recompute_lowest_common_denominator):
7409 ...here, this now just visits each item in the hash calling the
7410 above visitor.
7411 (completion_tracker::build_completion_result): Remove use of
7412 m_entries_vec, call recompute_lowest_common_denominator.
7413 * completer.h (completion_tracker::have_completions): Remove use
7414 of m_entries_vec.
7415 (completion_tracker::completion_hash_entry): Declare new class.
7416 (completion_tracker::recompute_lowest_common_denominator): Change
7417 function signature.
7418 (completion_tracker::recompute_lcd_visitor): Declare new function.
7419 (completion_tracker::m_entries_vec): Delete.
7420 (completion_tracker::m_entries_hash): Initialize to NULL.
7421 (completion_tracker::m_lowest_common_denominator_valid): New
7422 member variable.
7423 (completion_tracker::m_lowest_common_denominator_max_length): New
7424 member variable.
7425
7426 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7427
7428 * regformats/regdef.h: Put reg in gdb namespace.
7429
7430 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7431
7432 * i386-bsd-nat.c (gdb_ptrace): New.
7433 * (i386bsd_fetch_inferior_registers,
7434 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7435 * (i386bsd_fetch_inferior_registers,
7436 i386bsd_store_inferior_registers) Use gdb_ptrace.
7437
7438 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7439
7440 * amd64-bsd-nat.c (gdb_ptrace): New.
7441 * (amd64bsd_fetch_inferior_registers,
7442 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7443 * (amd64bsd_fetch_inferior_registers,
7444 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7445
7446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7447
7448 * user-regs.c (user_reg::read): Rename to...
7449 (user_reg::xread): ...this.
7450 * (append_user_reg): Rename argument `read' to `xread'.
7451 * (user_reg_add_builtin): Likewise.
7452 * (user_reg_add): Likewise.
7453 * (value_of_user_reg): Likewise.
7454
7455 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7456
7457 * sparc-nat.c (gdb_ptrace): New.
7458 * sparc-nat.c (sparc_fetch_inferior_registers)
7459 (sparc_store_inferior_registers) Remove obsolete comment.
7460 * sparc-nat.c (sparc_fetch_inferior_registers)
7461 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7462 * sparc-nat.c (sparc_fetch_inferior_registers)
7463 (sparc_store_inferior_registers) Use gdb_ptrace.
7464
7465 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7466
7467 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7468 it to the ptrace call.
7469 * sh-nbsd-nat.c (store_registers): Likewise.
7470
7471 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7472
7473 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7474 nbsd_nat_target instead of inf_ptrace_target.
7475 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7476 nbsd_nat_target.
7477
7478 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7479
7480 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7481
7482 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7483
7484 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7485 <sys/sysctl.h>.
7486 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7487
7488 2020-03-17 Tom de Vries <tdevries@suse.de>
7489
7490 PR gdb/23710
7491 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7492 fields.
7493 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7494 fields.
7495 (process_imported_unit_die): Skip import of c++ CUs.
7496
7497 2020-03-16 Tom Tromey <tom@tromey.com>
7498
7499 * p-valprint.c (pascal_object_print_value): Initialize
7500 base_value.
7501
7502 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7503 Shahab Vahedi <shahab@synopsys.com>
7504
7505 * Makefile.in: Add arch/arc.o
7506 * configure.tgt: Likewise.
7507 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7508 (_initialize_arc_tdep): Don't initialize old target descriptions.
7509 (arc_read_description): New function to cache target descriptions.
7510 * arc-tdep.h (arc_read_description): Add proto type.
7511 * arch/arc.c: New file.
7512 * arch/arc.h: Likewise.
7513 * features/Makefile: Replace old target descriptions with new.
7514 * features/arc-arcompact.c: Remove.
7515 * features/arc-arcompact.xml: Likewise.
7516 * features/arc-v2.c: Likewise
7517 * features/arc-v2.xml: Likewise
7518 * features/arc/aux-arcompact.xml: New file.
7519 * features/arc/aux-v2.xml: Likewise.
7520 * features/arc/core-arcompact.xml: Likewise.
7521 * features/arc/core-v2.xml: Likewise.
7522 * features/arc/aux-arcompact.c: Generate.
7523 * features/arc/aux-v2.c: Likewise.
7524 * features/arc/core-arcompact.c: Likewise.
7525 * features/arc/core-v2.c: Likewise.
7526 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7527
7528 2020-03-16 Tom Tromey <tromey@adacore.com>
7529
7530 PR gdb/25663:
7531 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7532 putting value into bcache.
7533
7534 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7535
7536 PR gdb/21500
7537 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7538 to...
7539 (amd64_windows_init_abi_common): ... this. Don't set size of
7540 long type.
7541 (amd64_windows_init_abi): New function.
7542 (amd64_cygwin_init_abi): New function.
7543 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7544 the Cygwin OS ABI.
7545 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7546 comment.
7547
7548 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7551 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7552 (pe_import_directory_entry): New struct type.
7553 (is_linked_with_cygwin_dll): New function.
7554 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7555 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7556 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7557
7558 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7561 i386_cygwin_core_osabi_sniffer.
7562
7563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7564
7565 * i386-cygwin-tdep.c: Rename to...
7566 * i386-windows-tdep.c: ... this.
7567 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7568 i386-windows-tdep.c.
7569 * configure.tgt: Likewise.
7570
7571 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7572
7573 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7574 * osabi.c (gdb_osabi_names): Add "Windows".
7575 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7576 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7577 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7578 i386_cygwin_osabi_sniffer.
7579 (_initialize_i386_cygwin_tdep): Register OS ABI
7580 GDB_OSABI_WINDOWS for i386.
7581 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7582 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7583 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7584 for x86-64.
7585 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7586 when the target matches '*-*-mingw*'.
7587
7588 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * defs.h (enum gdb_osabi): Move to...
7591 * osabi.h (enum gdb_osabi): ... here.
7592 * gdbarch.sh: Include osabi.h in gdbarch.h.
7593 * gdbarch.h: Re-generate.
7594
7595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7598 function.
7599 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7600
7601 2020-03-14 Tom Tromey <tom@tromey.com>
7602
7603 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7604 for C++.
7605 (c_type_print_modifier): Likewise. Add "language" parameter.
7606 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7607 (c_type_print_base_1): Update.
7608 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7609 constants.
7610 * type-stack.c (type_stack::insert): Handle tp_atomic and
7611 tp_restrict.
7612 (type_stack::follow_type_instance_flags): Likewise.
7613 (type_stack::follow_types): Likewise. Merge type-following code.
7614 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7615 (space_identifier, cv_with_space_id)
7616 (const_or_volatile_or_space_identifier_noopt)
7617 (const_or_volatile_or_space_identifier): Remove.
7618 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7619 rules.
7620 (ptr_operator, typebase): Update.
7621 (enum token_flag) <FLAG_C>: New constant.
7622 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7623 "_Atomic".
7624 (lex_one_token): Handle FLAG_C.
7625
7626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7627
7628 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7629 it to the ptrace call.
7630 * m68k-bsd-nat.c (store_registers): Likewise.
7631
7632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7633
7634 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7635 gdb_byte *.
7636 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7637 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7638 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7639
7640 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7641
7642 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7643 nbsd_nat_target instead of inf_ptrace_target.
7644 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7645 nbsd_nat_target.
7646
7647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7648
7649 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7650 register_t.
7651
7652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7653
7654 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7655 it to the ptrace call.
7656 * alpha-bsd-nat.c (store_registers): Likewise.
7657
7658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7659
7660 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7661 includes.
7662 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7663 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7664 fill_fpregset): Likewise.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7669 nbsd_nat_target instead of inf_ptrace_target.
7670 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7671 nbsd_nat_target.
7672
7673 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7674
7675 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7676 register_t.
7677
7678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7681 it to the ptrace call.
7682 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7683 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7684 * arm-nbsd-nat.c (store_register): Likewise.
7685 * arm-nbsd-nat.c (store_regs): Likewise.
7686 * arm-nbsd-nat.c (store_fp_register): Likewise.
7687 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7688
7689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7690
7691 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7692 nbsd_nat_target instead of inf_ptrace_target.
7693 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7694 nbsd_nat_target.
7695
7696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7697
7698 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7699 it to the ptrace call.
7700 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7701
7702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7703
7704 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7705 it to the ptrace call.
7706 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7707
7708 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7709
7710 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7711 gdb_byte *.
7712 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7713
7714 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7715
7716 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7717 instead of inf_ptrace_target.
7718 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7719 nbsd_nat_target.
7720
7721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7722
7723 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7724 register_t.
7725
7726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7727
7728 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7729 register_t.
7730
7731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7732
7733 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7734 register_t.
7735
7736 2020-03-13 Tom Tromey <tom@tromey.com>
7737
7738 * value.h (val_print): Don't declare.
7739 * valprint.h (val_print_array_elements)
7740 (val_print_scalar_formatted, generic_val_print): Don't declare.
7741 * valprint.c (generic_val_print_array): Take a struct value.
7742 (generic_val_print_ptr, generic_val_print_memberptr)
7743 (generic_val_print_bool, generic_val_print_int)
7744 (generic_val_print_char, generic_val_print_complex)
7745 (generic_val_print): Remove.
7746 (generic_value_print): Update.
7747 (do_val_print): Remove unused parameters. Don't call
7748 la_val_print.
7749 (val_print): Remove.
7750 (common_val_print): Update. Don't call value_check_printable.
7751 (val_print_scalar_formatted, val_print_array_elements): Remove.
7752 * rust-lang.c (rust_val_print): Remove.
7753 (rust_language_defn): Update.
7754 * p-valprint.c (pascal_val_print): Remove.
7755 (pascal_value_print_inner): Update.
7756 (pascal_object_print_val_fields, pascal_object_print_val):
7757 Remove.
7758 (pascal_object_print_static_field): Update.
7759 * p-lang.h (pascal_val_print): Don't declare.
7760 * p-lang.c (pascal_language_defn): Update.
7761 * opencl-lang.c (opencl_language_defn): Update.
7762 * objc-lang.c (objc_language_defn): Update.
7763 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7764 * m2-lang.h (m2_val_print): Don't declare.
7765 * m2-lang.c (m2_language_defn): Update.
7766 * language.h (struct language_defn) <la_val_print>: Remove.
7767 * language.c (unk_lang_value_print_inner): Rename. Change
7768 argument types.
7769 (unknown_language_defn, auto_language_defn): Update.
7770 * go-valprint.c (go_val_print): Remove.
7771 * go-lang.h (go_val_print): Don't declare.
7772 * go-lang.c (go_language_defn): Update.
7773 * f-valprint.c (f_val_print): Remove.
7774 * f-lang.h (f_value_print): Don't declare.
7775 * f-lang.c (f_language_defn): Update.
7776 * d-valprint.c (d_val_print): Remove.
7777 * d-lang.h (d_value_print): Don't declare.
7778 * d-lang.c (d_language_defn): Update.
7779 * cp-valprint.c (cp_print_value_fields)
7780 (cp_print_value_fields_rtti, cp_print_value): Remove.
7781 (cp_print_static_field): Update.
7782 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7783 (c_val_print_struct, c_val_print_union, c_val_print_int)
7784 (c_val_print_memberptr, c_val_print): Remove.
7785 * c-lang.h (c_val_print_array, cp_print_value_fields)
7786 (cp_print_value_fields_rtti): Don't declare.
7787 * c-lang.c (c_language_defn, cplus_language_defn)
7788 (asm_language_defn, minimal_language_defn): Update.
7789 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7790 (ada_val_print_enum): Take a struct value.
7791 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7792 (ada_val_print): Remove.
7793 (ada_value_print_1): Update.
7794 (printable_val_type): Remove.
7795 * ada-lang.h (ada_val_print): Don't declare.
7796 * ada-lang.c (ada_language_defn): Update.
7797
7798 2020-03-13 Tom Tromey <tom@tromey.com>
7799
7800 * valprint.c (do_val_print): Update.
7801 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7802 a struct value.
7803 (value_to_value_object_no_release): Declare.
7804 * python/py-value.c (value_to_value_object_no_release): New
7805 function.
7806 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7807 struct value.
7808 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7809 function.
7810 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7811 a struct value.
7812 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7813 Declare.
7814 (gdbscm_apply_val_pretty_printer): Take a struct value.
7815 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7816 value.
7817 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7818 value.
7819 * extension-priv.h (struct extension_language_ops)
7820 <apply_val_pretty_printer>: Take a struct value.
7821 * cp-valprint.c (cp_print_value): Create a struct value.
7822 (cp_print_value): Update.
7823
7824 2020-03-13 Tom Tromey <tom@tromey.com>
7825
7826 * ada-valprint.c (print_field_values): Call common_val_print.
7827
7828 2020-03-13 Tom Tromey <tom@tromey.com>
7829
7830 * ada-valprint.c (val_print_packed_array_elements): Remove
7831 bitoffset and val parameters. Call common_val_print.
7832 (ada_val_print_string): Remove offset, address, and original_value
7833 parameters.
7834 (ada_val_print_array): Update.
7835 (ada_value_print_array): New function.
7836 (ada_value_print_1): Call it.
7837
7838 2020-03-13 Tom Tromey <tom@tromey.com>
7839
7840 * ada-valprint.c (ada_value_print): Use common_val_print.
7841
7842 2020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7845
7846 2020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * ada-valprint.c (ada_value_print_num): New function.
7849 (ada_value_print_1): Use it.
7850
7851 2020-03-13 Tom Tromey <tom@tromey.com>
7852
7853 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7854
7855 2020-03-13 Tom Tromey <tom@tromey.com>
7856
7857 * ada-valprint.c (ada_value_print_ptr): New function.
7858 (ada_value_print_1): Use it.
7859
7860 2020-03-13 Tom Tromey <tom@tromey.com>
7861
7862 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7863 call common_val_print.
7864 (ada_val_print_1): Update.
7865 (ada_value_print_1): New function.
7866 (ada_value_print_inner): Rewrite.
7867
7868 2020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * cp-valprint.c (cp_print_value_fields): Update.
7871 (cp_print_value): New function.
7872
7873 2020-03-13 Tom Tromey <tom@tromey.com>
7874
7875 * m2-valprint.c (m2_value_print_inner): Use
7876 cp_print_value_fields.
7877 * cp-valprint.c (cp_print_value_fields): New function.
7878 * c-valprint.c (c_value_print_struct): New function.
7879 (c_value_print_inner): Use c_value_print_struct.
7880 * c-lang.h (cp_print_value_fields): Declare.
7881
7882 2020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * c-valprint.c (c_value_print_array): New function.
7885 (c_value_print_inner): Use it.
7886
7887 2020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * c-valprint.c (c_value_print_memberptr): New function.
7890 (c_value_print_inner): Use it.
7891
7892 2020-03-13 Tom Tromey <tom@tromey.com>
7893
7894 * c-valprint.c (c_value_print_int): New function.
7895 (c_value_print_inner): Use it.
7896
7897 2020-03-13 Tom Tromey <tom@tromey.com>
7898
7899 * c-valprint.c (c_value_print_ptr): New function.
7900 (c_value_print_inner): Use it.
7901
7902 2020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * c-valprint.c (c_value_print_inner): Rewrite.
7905
7906 2020-03-13 Tom Tromey <tom@tromey.com>
7907
7908 * valprint.c (generic_value_print_complex): New function.
7909 (generic_value_print): Use it.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * valprint.c (generic_val_print_float): Don't call
7914 val_print_scalar_formatted.
7915 (generic_val_print, generic_value_print): Update.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * valprint.c (generic_value_print_char): New function
7920 (generic_value_print): Use it.
7921
7922 2020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * valprint.c (generic_value_print_int): New function.
7925 (generic_value_print): Use it.
7926
7927 2020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * valprint.c (generic_value_print_bool): New function.
7930 (generic_value_print): Use it.
7931
7932 2020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * valprint.c (generic_val_print_func): Simplify.
7935 (generic_val_print, generic_value_print): Update.
7936
7937 2020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * valprint.c (generic_val_print_flags): Remove.
7940 (generic_val_print, generic_value_print): Update.
7941 (val_print_type_code_flags): Add original_value parameter.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * valprint.c (generic_val_print): Update.
7946 (generic_value_print): Update.
7947 * valprint.c (generic_val_print_enum): Don't call
7948 val_print_scalar_formatted.
7949
7950 2020-03-13 Tom Tromey <tom@tromey.com>
7951
7952 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7953 * valprint.c (generic_value_print_ptr): New function.
7954
7955 2020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * valprint.c (generic_value_print): Rewrite.
7958
7959 2020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * p-valprint.c (pascal_object_print_value_fields)
7962 (pascal_object_print_value): New functions.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * p-valprint.c (pascal_value_print_inner): Rewrite.
7967
7968 2020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * f-valprint.c (f_value_print_innner): Rewrite.
7971
7972 2020-03-13 Tom Tromey <tom@tromey.com>
7973
7974 * m2-valprint.c (m2_print_unbounded_array): New overload.
7975 (m2_print_unbounded_array): Update.
7976 (m2_print_array_contents): Take a struct value.
7977 (m2_value_print_inner): Rewrite.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7982 (d_value_print_inner): New function.
7983 * d-lang.h (d_value_print_inner): Declare.
7984 * d-lang.c (d_language_defn): Use d_value_print_inner.
7985
7986 2020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * go-valprint.c (go_value_print_inner): New function.
7989 * go-lang.h (go_value_print_inner): Declare.
7990 * go-lang.c (go_language_defn): Use go_value_print_inner.
7991
7992 2020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7995 API.
7996 (rust_val_print): Rewrite.
7997 (rust_value_print_inner): New function, from rust_val_print.
7998 (rust_language_defn): Use rust_value_print_inner.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * ada-valprint.c (ada_value_print_inner): New function.
8003 * ada-lang.h (ada_value_print_inner): Declare.
8004 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8005
8006 2020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * f-valprint.c (f_value_print_innner): New function.
8009 * f-lang.h (f_value_print_innner): Declare.
8010 * f-lang.c (f_language_defn): Use f_value_print_innner.
8011
8012 2020-03-13 Tom Tromey <tom@tromey.com>
8013
8014 * p-valprint.c (pascal_value_print_inner): New function.
8015 * p-lang.h (pascal_value_print_inner): Declare.
8016 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * m2-valprint.c (m2_value_print_inner): New function.
8021 * m2-lang.h (m2_value_print_inner): Declare.
8022 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8027 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8028 * c-valprint.c (c_value_print_inner): New function.
8029 * c-lang.h (c_value_print_inner): Declare.
8030 * c-lang.c (c_language_defn, cplus_language_defn)
8031 (asm_language_defn, minimal_language_defn): Use
8032 c_value_print_inner.
8033
8034 2020-03-13 Tom Tromey <tom@tromey.com>
8035
8036 * p-valprint.c (pascal_object_print_value_fields): Now static.
8037 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8038
8039 2020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * c-valprint.c (c_val_print_array): Simplify.
8042
8043 2020-03-13 Tom Tromey <tom@tromey.com>
8044
8045 * valprint.c (value_print_array_elements): New function.
8046 * valprint.h (value_print_array_elements): Declare.
8047
8048 2020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8051 * mips-tdep.c (mips_print_register): Use
8052 value_print_scalar_formatted.
8053
8054 2020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * valprint.h (value_print_scalar_formatted): Declare.
8057 * valprint.c (value_print_scalar_formatted): New function.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * valprint.h (generic_value_print): Declare.
8062 * valprint.c (generic_value_print): New function.
8063
8064 2020-03-13 Tom Tromey <tom@tromey.com>
8065
8066 * valprint.c (do_val_print): Call la_value_print_inner, if
8067 available.
8068 * rust-lang.c (rust_language_defn): Update.
8069 * p-lang.c (pascal_language_defn): Update.
8070 * opencl-lang.c (opencl_language_defn): Update.
8071 * objc-lang.c (objc_language_defn): Update.
8072 * m2-lang.c (m2_language_defn): Update.
8073 * language.h (struct language_defn) <la_value_print_inner>: New
8074 member.
8075 * language.c (unknown_language_defn, auto_language_defn): Update.
8076 * go-lang.c (go_language_defn): Update.
8077 * f-lang.c (f_language_defn): Update.
8078 * d-lang.c (d_language_defn): Update.
8079 * c-lang.c (c_language_defn, cplus_language_defn)
8080 (asm_language_defn, minimal_language_defn): Update.
8081 * ada-lang.c (ada_language_defn): Update.
8082
8083 2020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * c-valprint.c (c_value_print): Use common_val_print.
8086
8087 2020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8090
8091 2020-03-13 Tom Tromey <tom@tromey.com>
8092
8093 * f-valprint.c (f77_print_array_1, f_val_print): Use
8094 common_val_print.
8095
8096 2020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * riscv-tdep.c (riscv_print_one_register_info): Use
8099 common_val_print.
8100
8101 2020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * mi/mi-main.c (output_register): Use common_val_print.
8104
8105 2020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * infcmd.c (default_print_one_register_info): Use
8108 common_val_print.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * valprint.h (common_val_print_checked): Declare.
8113 * valprint.c (common_val_print_checked): New function.
8114 * stack.c (print_frame_arg): Use common_val_print_checked.
8115
8116 2020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * valprint.c (do_val_print): New function, from val_print.
8119 (val_print): Use do_val_print.
8120 (common_val_print): Use do_val_print.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * valprint.c (value_print): Use scoped_value_mark.
8125
8126 2020-03-13 Tom de Vries <tdevries@suse.de>
8127
8128 PR symtab/25646
8129 * psymtab.c (partial_symtab::partial_symtab): Don't set
8130 globals_offset and statics_offset. Push element onto
8131 current_global_psymbols and current_static_psymbols stacks.
8132 (concat): New function.
8133 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8134 element from current_global_psymbols and current_static_psymbols
8135 stacks. Concat popped elements to global_psymbols and
8136 static_symbols.
8137 (add_psymbol_to_list): Use current_global_psymbols and
8138 current_static_psymbols stacks.
8139 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8140 current_static_psymbols fields.
8141
8142 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8143
8144 * corelow.c (sniff_core_bfd): Remove.
8145 (class core_target) <m_core_vec>: Remove.
8146 (core_target::core_target): Update.
8147 (core_file_fns): Remove.
8148 (deprecated_add_core_fns): Remove.
8149 (default_core_sniffer): Remove.
8150 (sniff_core_bfd): Remove.
8151 (default_check_format): Remove.
8152 (gdb_check_format): Remove.
8153 (core_target_open): Update.
8154 (core_target::get_core_register_section): Update.
8155 (get_core_registers_cb): Update.
8156 (core_target::fetch_registers): Update.
8157 * gdbcore.h (struct core_fns): Remove.
8158 (deprecated_add_core_fns): Remove.
8159 (default_core_sniffer): Remove.
8160 (default_check_format): Remove.
8161
8162 2020-03-12 Tom Tromey <tom@tromey.com>
8163
8164 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8165 CORE_ADDR.
8166 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8167
8168 2020-03-12 Tom Tromey <tom@tromey.com>
8169
8170 * remote.c (remote_target::download_tracepoint)
8171 (remote_target::enable_tracepoint)
8172 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8173 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8174 sprintf_vma.
8175
8176 2020-03-12 Tom Tromey <tom@tromey.com>
8177
8178 * symfile-mem.c: Update CORE_ADDR size assert.
8179
8180 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * selftest.m4: Move to gdbsupport/.
8183 * acinclude.m4: Update path to selftest.m4.
8184
8185 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8188 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8189 gdbarch-selfselftests.c and selftest-arch.c.
8190 (SUBDIR_UNITTESTS_OBS): Rename to...
8191 (SELFTESTS_OBS): ... this.
8192 (COMMON_SFILES): Remove disasm-selftests.c and
8193 gdbarch-selftests.c.
8194 * configure.ac: Don't add selftest-arch.{c,o} to
8195 CONFIG_{SRCS,OBS}.
8196 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8197 preprocessor conditions.
8198
8199 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * configure.ac: Don't source bfd/development.sh.
8202 * selftest.m4: Modify comment.
8203 * configure: Re-generate.
8204
8205 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8208 not "true" or "false".
8209 * configure: Re-generate.
8210
8211 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8212
8213 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8214 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8215 renamed to arm_nbsd_supply_gregset.
8216 (fetch_register): Update to call arm_nbsd_supply_gregset.
8217 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8218 (arm_netbsd_nat_target::fetch_registers): Update.
8219 (fetch_elfcore_registers): Removed.
8220 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8221 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8222 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8223 not require NetBSD system headers.
8224 (arm_nbsd_regset): New struct.
8225 (arm_nbsd_iterate_over_regset_sections): New function.
8226 (arm_netbsd_init_abi_common): Updated to call
8227 set_gdbarch_iterate_over_regset_sections.
8228 * arm-nbsd-tdep.h: New file.
8229
8230 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8231
8232 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8233 recursion.
8234
8235 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8236
8237 * configure: Re-generate.
8238
8239 2020-03-11 Tom Tromey <tromey@adacore.com>
8240
8241 * ada-typeprint.c (print_choices): Fix comment.
8242
8243 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8246 previous item in the list, when the list has no items.
8247
8248 2020-03-11 Tom de Vries <tdevries@suse.de>
8249
8250 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8251 PROP_LOCLIST handling code.
8252
8253 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * buildsym-legacy.c (record_line): Pass extra parameter to
8256 record_line.
8257 * buildsym.c (buildsym_compunit::record_line): Take an extra
8258 parameter, reduce duplication in the line table, and record the
8259 is_stmt flag in the line table.
8260 * buildsym.h (buildsym_compunit::record_line): Add extra
8261 parameter.
8262 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8263 non-statement lines.
8264 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8265 this to the symtab builder.
8266 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8267 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8268 through to dwarf_record_line_1.
8269 * infrun.c (process_event_stop_test): When stepping, don't stop at
8270 a non-statement instruction, and only refresh the step info when
8271 we land in the middle of a line's range. Also add an extra
8272 comment.
8273 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8274 field.
8275 * record-btrace.c (btrace_find_line_range): Only record lines
8276 marked as is-statement.
8277 * stack.c (frame_show_address): Show the frame address if we are
8278 in a non-statement sal.
8279 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8280 (maintenance_print_one_line_table): Print a header for the is_stmt
8281 column, and include is_stmt information in the output.
8282 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8283 preference to non-statements.
8284 (find_pcs_for_symtab_line): Prefer is-statement entries.
8285 (find_line_common): Likewise.
8286 * symtab.h (struct linetable_entry): Add is_stmt field.
8287 (struct symtab_and_line): Likewise.
8288 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8289 arranging the line table.
8290
8291 2020-03-07 Tom de Vries <tdevries@suse.de>
8292
8293 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8294 DIE.
8295
8296 2020-03-07 Tom Tromey <tom@tromey.com>
8297
8298 * valops.c (value_literal_complex): Remove obsolete comment.
8299 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8300 comment.
8301
8302 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8303
8304 * infrun.h: Forward-declare thread_info.
8305 (set_step_info): Add thread_info parameter, add doc.
8306 * infrun.c (set_step_info): Add thread_info parameter, move doc
8307 to header.
8308 * infrun.c (process_event_stop_test): Pass thread to
8309 set_step_info call.
8310 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8311 set_step_info.
8312 (prepare_one_step): Add thread_info parameter, pass it to
8313 set_step_frame and prepare_one_step (recursive) call.
8314 (step_1): Pass thread to prepare_one_step call.
8315 (step_command_fsm::should_stop): Pass thread to
8316 prepare_one_step.
8317 (until_next_fsm): Pass thread to set_step_frame call.
8318 (finish_command): Pass thread to set_step_info call.
8319
8320 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8321
8322 * windows-tdep.c (windows_solib_create_inferior_hook):
8323 Check if inferior is running.
8324
8325 2020-03-06 Tom de Vries <tdevries@suse.de>
8326
8327 * NEWS: Fix "the the".
8328 * ctfread.c: Same.
8329
8330 2020-03-06 Tom de Vries <tdevries@suse.de>
8331
8332 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8333
8334 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * .dir-locals.el: Add a comment referencing the other copies of
8337 this file.
8338
8339 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8340
8341 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8342 psargs.
8343
8344 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8345
8346 * .gitattributes: New file.
8347
8348 2020-03-04 Tom Tromey <tom@tromey.com>
8349
8350 * symmisc.c (print_symbol_bcache_statistics)
8351 (print_objfile_statistics): Update.
8352 * symfile.c (allocate_symtab): Use intern.
8353 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8354 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8355 macro_cache>: Remove.
8356 <string_cache>: New member.
8357 (struct objfile) <intern>: New methods.
8358 * elfread.c (elf_symtab_read): Use intern.
8359 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8360 (dwarf2_compute_name, dwarf2_physname)
8361 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8362 names.
8363 (guess_partial_die_structure_name): Update.
8364 (partial_die_info::fixup): Intern name.
8365 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8366 name.
8367 (dwarf2_name): Intern name. Update.
8368 * buildsym.c (buildsym_compunit::get_macro_table): Use
8369 string_cache.
8370
8371 2020-03-04 Tom Tromey <tom@tromey.com>
8372
8373 * jit.c (bfd_open_from_target_memory): Make "target" const.
8374 * corefile.c (gnutarget): Now const.
8375 * gdbcore.h (gnutarget): Now const.
8376
8377 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8378
8379 * NEWS: Mention support for WOW64 processes.
8380 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8381 (amd64_windows_segment_register_p): Remove static.
8382 (_initialize_amd64_windows_nat): Update.
8383 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8384 * i386-windows-nat.c (context_offset): Update.
8385 (i386_mappings): Rename and remove static.
8386 (i386_windows_segment_register_p): Remove static.
8387 (_initialize_i386_windows_nat): Update.
8388 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8389 (STATUS_WX86_SINGLE_STEP): New macro.
8390 (EnumProcessModulesEx): New macro.
8391 (Wow64SuspendThread): New macro.
8392 (Wow64GetThreadContext): New macro.
8393 (Wow64SetThreadContext): New macro.
8394 (Wow64GetThreadSelectorEntry): New macro.
8395 (windows_set_context_register_offsets): Add static.
8396 (windows_set_segment_register_p): Likewise.
8397 (windows_add_thread): Adapt for WOW64 processes.
8398 (windows_fetch_one_register): Likewise.
8399 (windows_nat_target::fetch_registers): Likewise.
8400 (windows_store_one_register): Likewise.
8401 (display_selector): Likewise.
8402 (display_selectors): Likewise.
8403 (handle_exception): Likewise.
8404 (windows_continue): Likewise.
8405 (windows_nat_target::resume): Likewise.
8406 (windows_add_all_dlls): Likewise.
8407 (do_initial_windows_stuff): Likewise.
8408 (windows_nat_target::attach): Likewise.
8409 (windows_get_exec_module_filename): Likewise.
8410 (windows_nat_target::create_inferior): Likewise.
8411 (windows_xfer_siginfo): Likewise.
8412 (_initialize_loadable): Initialize Wow64SuspendThread,
8413 Wow64GetThreadContext, Wow64SetThreadContext,
8414 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8415 * windows-nat.h (windows_set_context_register_offsets):
8416 Remove declaration.
8417 (windows_set_segment_register_p): Likewise.
8418 (i386_windows_segment_register_p): Add declaration.
8419 (amd64_windows_segment_register_p): Likewise.
8420
8421 2020-03-04 Luis Machado <luis.machado@linaro.org>
8422
8423 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8424 in "info registers" for AArch64/ARM.
8425
8426 The change caused "info registers" to not print GPR's.
8427
8428 gdb/ChangeLog:
8429
8430 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8431
8432 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8433 when reg->group is empty and reggroup is not.
8434
8435 2020-03-03 Tom Tromey <tromey@adacore.com>
8436
8437 * dwarf2/frame.c (struct dwarf2_frame_cache)
8438 <checked_tailcall_bottom, entry_cfa_sp_offset,
8439 entry_cfa_sp_offset_p>: Remove members.
8440 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8441 (dwarf2_frame_prev_register): Don't call
8442 dwarf2_tailcall_sniffer_first.
8443 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8444 * frame-unwind.c (add_unwinder): New fuction.
8445 (frame_unwind_init): Use it. Add tailcall unwinder.
8446
8447 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8448 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8449
8450 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8451 value should be printed as true.
8452
8453 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8454
8455 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8456 (windows_init_abi): Set and use windows_so_ops.
8457
8458 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8459
8460 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8461 when verifying if dealing with a convenience variable.
8462
8463 2020-03-03 Luis Machado <luis.machado@linaro.org>
8464
8465 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8466
8467 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8468
8469 * infrun.c (gdbarch_supports_displaced_stepping): New.
8470 (use_displaced_stepping): Break up conditions in smaller pieces.
8471 Use gdbarch_supports_displaced_stepping.
8472 (displaced_step_prepare_throw): Use
8473 gdbarch_supports_displaced_stepping.
8474
8475 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8476
8477 * NEWS: Mention new behaviour of the history filename.
8478 * top.c (write_history_p): Add comment.
8479 (show_write_history_p): Add header comment, give a different
8480 message when history writing is on, but the history filename is
8481 empty.
8482 (history_filename): Add comment.
8483 (history_filename_empty): New function.
8484 (show_history_filename): Add header comment, give a different
8485 message when the filename is empty.
8486 (init_history): Compare history_filename against nullptr, and only
8487 read history if the filename is not empty.
8488 (set_history_filename): Add header comment, and only make
8489 non-empty filenames absolute.
8490 (init_main): Make the filename argument to 'set history filename'
8491 optional.
8492
8493 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8494
8495 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8496 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8497 (fetch_fp_register): Update.
8498 (fetch_fp_regs): Update.
8499 (store_fp_register): Update.
8500 (store_fp_regs): Update.
8501 (arm_netbsd_nat_target::read_description): New function.
8502 (fetch_elfcore_registers): Update.
8503
8504 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8507 general_thread if the stop reply is missing a thread-id.
8508 (remote_target::process_stop_reply): Use the first non-exited
8509 thread if the target didn't pass a thread-id.
8510 * infrun.c (do_target_wait): Move call to
8511 switch_to_inferior_no_thread to ....
8512 (do_target_wait_1): ... here.
8513
8514 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8515
8516 * debuginfod-support.c: Include defs.h first.
8517
8518 2020-02-28 Tom de Vries <tdevries@suse.de>
8519
8520 * symfile.c (set_initial_language): Use default language for lookup.
8521
8522 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8525 reader variable, pass `this` to read_cutu_die_from_dwo.
8526
8527 2020-02-27 Aaron Merey <amerey@redhat.com>
8528
8529 * source.c (open_source_file): Check for nullptr when computing
8530 srcpath.
8531
8532 2020-02-27 Tom Tromey <tromey@adacore.com>
8533
8534 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8535 member.
8536 (dwarf2_add_field): Don't update nfields.
8537 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8538
8539 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8542 abs.
8543
8544 2020-02-26 Tom Tromey <tom@tromey.com>
8545
8546 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8547 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8548 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8549 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8550 per_cu_data.
8551
8552 2020-02-26 Tom Tromey <tom@tromey.com>
8553
8554 * dwarf2/index-write.c (psym_index_map): Change type.
8555 (add_address_entry_worker, write_one_signatured_type)
8556 (recursively_count_psymbols, recursively_write_psymbols)
8557 (class debug_names, psyms_seen_size, write_gdbindex)
8558 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8559
8560 2020-02-26 Aaron Merey <amerey@redhat.com>
8561
8562 * Makefile.in: Handle optional debuginfod support.
8563 * NEWS: Update.
8564 * README: Add --with-debuginfod summary.
8565 * config.in: Regenerate.
8566 * configure: Regenerate.
8567 * configure.ac: Handle optional debuginfod support.
8568 * debuginfod-support.c: debuginfod helper functions.
8569 * debuginfod-support.h: Ditto.
8570 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8571 summary.
8572 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8573 when a dwz file cannot be found.
8574 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8575 debuginfo file cannot be found.
8576 * source.c (open_source_file): Query debuginfod servers when a
8577 source file cannot be found.
8578 * top.c (print_gdb_configuration): Include
8579 --{with,without}-debuginfod in the output.
8580
8581 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8582
8583 * thread.c (thr_try_catch_cmd): Print thread name.
8584
8585 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8586
8587 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8588 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8589 dwarf2_fetch_die_type_sect_off): Move to...
8590 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8591 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8592 dwarf2_fetch_die_type_sect_off): ... here.
8593 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8594 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8595 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8596
8597 2020-02-26 Tom de Vries <tdevries@suse.de>
8598
8599 PR gdb/25603
8600 * symfile.c (set_initial_language): Exit-early if
8601 language_mode == language_mode_manual.
8602
8603 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8604
8605 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8606 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8607 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8608
8609 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * gdbtypes.c (create_array_type_with_stride): Handle negative
8612 array strides.
8613 * valarith.c (value_subscripted_rvalue): Likewise.
8614
8615 2020-02-25 Luis Machado <luis.machado@linaro.org>
8616
8617 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8618
8619 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8620
8621 * loc.h (dwarf2_get_die_type): Move to...
8622 * read.h (dwarf2_get_die_type): ... here.
8623 * read.c (dwarf2_get_die_type): Move doc to header.
8624
8625 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8626
8627 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8628 'gnulib/Makefile.in' to the list.
8629
8630 2020-02-24 Tom Tromey <tom@tromey.com>
8631
8632 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8633 Remove.
8634 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8635 XOBNEWVEC.
8636
8637 2020-02-24 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8640 New method.
8641 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8642 (dw2_do_instantiate_symtab, dw2_get_file_names)
8643 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8644
8645 2020-02-24 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8648 make_scoped_restore.
8649 (dwarf2_psymtab::read_symtab): Don't clear
8650 reading_partial_symbols.
8651
8652 2020-02-24 Tom de Vries <tdevries@suse.de>
8653
8654 PR gdb/25592
8655 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8656
8657 2020-02-24 Tom de Vries <tdevries@suse.de>
8658
8659 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8660 commands layout next/prev/regs.
8661
8662 2020-02-22 Tom Tromey <tom@tromey.com>
8663
8664 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8665 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8666
8667 2020-02-22 Tom Tromey <tom@tromey.com>
8668
8669 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8670
8671 2020-02-22 Tom Tromey <tom@tromey.com>
8672
8673 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8674 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8675 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8676 * tui/tui.c (_initialize_tui): Add usage text.
8677
8678 2020-02-22 Tom Tromey <tom@tromey.com>
8679
8680 * tui/tui-win.c (tui_set_focus_command)
8681 (tui_set_win_height_command): Use error_no_arg.
8682 (_initialize_tui_win): Update help text.
8683 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8684
8685 2020-02-22 Tom Tromey <tom@tromey.com>
8686
8687 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8688 * tui/tui-disasm.h (struct tui_disasm_window)
8689 <display_start_addr>: Declare.
8690 * tui/tui-source.h (struct tui_source_window)
8691 <display_start_addr>: Declare.
8692 * tui/tui-winsource.h (struct tui_source_window_base)
8693 <show_source_line, display_start_addr>: New methods.
8694 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8695 Rename and move to protected section.
8696 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8697 (tui_source_window_base::do_erase_source_content): Update.
8698 (tui_source_window_base::show_source_line): Now a method.
8699 (tui_source_window_base::show_source_content)
8700 (tui_source_window_base::tui_source_window_base)
8701 (tui_source_window_base::rerender)
8702 (tui_source_window_base::refill)
8703 (tui_source_window_base::do_scroll_horizontal)
8704 (tui_source_window_base::set_is_exec_point_at)
8705 (tui_source_window_base::update_breakpoint_info)
8706 (tui_source_window_base::update_exec_info): Update.
8707 * tui/tui-source.c (tui_source_window::set_contents)
8708 (tui_source_window::showing_source_p)
8709 (tui_source_window::do_scroll_vertical)
8710 (tui_source_window::location_matches_p)
8711 (tui_source_window::line_is_displayed): Update.
8712 (tui_source_window::display_start_addr): New method.
8713 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8714 (tui_disasm_window::do_scroll_vertical)
8715 (tui_disasm_window::location_matches_p): Update.
8716 (tui_disasm_window::display_start_addr): New method.
8717
8718 2020-02-22 Tom Tromey <tom@tromey.com>
8719
8720 * NEWS: Add entry for gdb.register_window_type.
8721 * tui/tui-layout.h (window_factory): New typedef.
8722 (tui_register_window): Declare.
8723 * tui/tui-layout.c (saved_tui_windows): New global.
8724 (tui_apply_current_layout): Use it.
8725 (tui_register_window): New function.
8726 * python/python.c (do_start_initialization): Call
8727 gdbpy_initialize_tui.
8728 (python_GdbMethods): Add "register_window_type" function.
8729 * python/python-internal.h (gdbpy_register_tui_window)
8730 (gdbpy_initialize_tui): Declare.
8731 * python/py-tui.c: New file.
8732 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8733
8734 2020-02-22 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8737
8738 2020-02-22 Tom Tromey <tom@tromey.com>
8739
8740 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8741 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8742 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8743 (tui_set_win_focus_to): Move from tui-win.c.
8744
8745 2020-02-22 Tom Tromey <tom@tromey.com>
8746
8747 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8748 functions.
8749 (known_window_types): New global.
8750 (tui_get_window_by_name): Reimplement.
8751 (initialize_known_windows): New function.
8752 (validate_window_name): Rewrite.
8753 (_initialize_tui_layout): Call initialize_known_windows.
8754
8755 2020-02-22 Tom Tromey <tom@tromey.com>
8756
8757 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8758 Remove constants.
8759 * tui/tui-winsource.h (struct tui_source_window_base)
8760 <tui_source_window_base>: Remove parameter.
8761 * tui/tui-winsource.c
8762 (tui_source_window_base::tui_source_window_base): Remove
8763 parameter.
8764 (tui_source_window_base::refill): Update.
8765 * tui/tui-stack.h (struct tui_locator_window)
8766 <tui_locator_window>: Update.
8767 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8768 Default the constructor.
8769 * tui/tui-regs.h (struct tui_data_item_window)
8770 <tui_data_item_window>: Default the constructor.
8771 (struct tui_data_window) <tui_data_window>: Likewise.
8772 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8773 Default the constructor.
8774 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8775 Default the constructor.
8776 <type>: Remove.
8777 (struct tui_win_info) <tui_win_info>: Default the constructor.
8778 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8779 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8780 Default the constructor.
8781
8782 2020-02-22 Tom Tromey <tom@tromey.com>
8783
8784 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8785 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8786 * tui/tui-win.c (tui_resize_all): Don't call
8787 tui_delete_invisible_windows.
8788 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8789 done.
8790 (tui_set_layout): Update.
8791 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8792 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8793 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8794
8795 2020-02-22 Tom Tromey <tom@tromey.com>
8796
8797 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8798 correctly.
8799
8800 2020-02-22 Tom Tromey <tom@tromey.com>
8801
8802 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8803
8804 2020-02-22 Tom Tromey <tom@tromey.com>
8805
8806 * tui/tui-winsource.h (struct tui_source_window_iterator)
8807 <inner_iterator>: New etytypedef.
8808 <tui_source_window_iterator>: Take "end" parameter.
8809 <tui_source_window_iterator>: Take iterator.
8810 <operator*, advance>: Update.
8811 <m_iter>: Change type.
8812 <m_end>: New field.
8813 (struct tui_source_windows) <begin, end>: Update.
8814 * tui/tui-layout.c (tui_windows): New global.
8815 (tui_apply_current_layout): Clear tui_windows.
8816 (tui_layout_window::apply): Update tui_windows.
8817 * tui/tui-data.h (tui_windows): Declare.
8818 (all_tui_windows): Now inline function.
8819 (class tui_window_iterator, struct all_tui_windows): Remove.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 PR tui/17850:
8824 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8825 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8826 "height" argument.
8827 (class tui_layout_window) <get_sizes>: Likewise.
8828 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8829 argument.
8830 <get_sizes>: Add "height" argument.
8831 <m_vertical>: New field.
8832 * tui/tui-layout.c (tui_layout_split::clone): Update.
8833 (tui_layout_split::get_sizes): Add "height" argument.
8834 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8835 (tui_new_layout_command): Parse "-horizontal".
8836 (_initialize_tui_layout): Update help string.
8837 (tui_layout_split::specification): Add "-horizontal" when needed.
8838 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8839 argument.
8840 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8841 New methods.
8842
8843 2020-02-22 Tom Tromey <tom@tromey.com>
8844
8845 * tui/tui-layout.h (enum tui_adjust_result): New.
8846 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8847 (class tui_layout_window) <adjust_size>: Return
8848 tui_adjust_result. Rewrite.
8849 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8850 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8851
8852 2020-02-22 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8855 parameter and return types.
8856 (class tui_layout_base) <specification>: Add "depth".
8857 (class tui_layout_window) <specification>: Add "depth".
8858 (class tui_layout_split) <specification>: Add "depth".
8859 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8860 and return types.
8861 (tui_new_layout_command): Parse sub-layouts.
8862 (_initialize_tui_layout): Update help string.
8863 (tui_layout_window::specification): Add "depth".
8864 (add_layout_command): Update.
8865
8866 2020-02-22 Tom Tromey <tom@tromey.com>
8867
8868 * NEWS: Add "tui new-layout" item.
8869 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8870 Add new-layout command to help text.
8871 (validate_window_name): New function.
8872 (tui_new_layout_command): New function.
8873 (_initialize_tui_layout): Register "new-layout".
8874 (tui_layout_window::specification): New method.
8875 (tui_layout_window::specification): New method.
8876 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8877 method.
8878 (class tui_layout_window) <specification>: New method.
8879 (class tui_layout_split) <specification>: New method.
8880
8881 2020-02-22 Tom Tromey <tom@tromey.com>
8882
8883 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8884 * tui/tui-win.c (window_name_completer): Update comment.
8885 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8886 Declare method.
8887 (class tui_layout_window) <replace_window>: Likewise.
8888 (class tui_layout_split) <replace_window>: Likewise.
8889 (tui_set_layout): Don't declare.
8890 (tui_set_initial_layout): Declare function.
8891 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8892 (asm_regs_layout): New globals.
8893 (tui_current_layout, show_layout): Remove.
8894 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8895 (find_layout, tui_apply_layout): New function.
8896 (layout_completer): Remove.
8897 (tui_next_layout): Reimplement.
8898 (tui_next_layout_command): New function.
8899 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8900 (tui_regs_layout): Reimplement.
8901 (tui_regs_layout_command): New function.
8902 (extract_display_start_addr): Rewrite.
8903 (next_layout, prev_layout): Remove.
8904 (tui_layout_window::replace_window): New method.
8905 (tui_layout_split::replace_window): New method.
8906 (destroy_layout): New function.
8907 (layout_list): New global.
8908 (add_layout_command): New function.
8909 (initialize_layouts): Update.
8910 (tui_layout_command): New function.
8911 (_initialize_tui_layout): Install "layout" commands.
8912 * tui/tui-data.h (enum tui_layout_type): Remove.
8913 (tui_current_layout): Don't declare.
8914
8915 2020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui-regs.c (tui_reg_layout): Remove.
8918 (tui_reg_command): Use tui_regs_layout.
8919 * tui/tui-layout.h (tui_reg_command): Declare.
8920 * tui/tui-layout.c (tui_reg_command): New function.
8921
8922 2020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui.c (tui_rl_delete_other_windows): Call
8925 tui_remove_some_windows.
8926 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8927 Declare method.
8928 (class tui_layout_window) <remove_windows>: New method.
8929 (class tui_layout_split) <remove_windows>: Declare.
8930 (tui_remove_some_windows): Declare.
8931 * tui/tui-layout.c (tui_remove_some_windows): New function.
8932 (tui_layout_split::remove_windows): New method.
8933
8934 2020-02-22 Tom Tromey <tom@tromey.com>
8935
8936 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8937 * tui/tui-layout.h (tui_next_layout): Declare.
8938 * tui/tui-layout.c (tui_next_layout): New function.
8939
8940 2020-02-22 Tom Tromey <tom@tromey.com>
8941
8942 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8943 correct coordinates.
8944
8945 2020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8948 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8949 DATA_WIN case.
8950
8951 2020-02-22 Tom Tromey <tom@tromey.com>
8952
8953 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8954 TUI_DISASM_WIN, not tui_win_list.
8955
8956 2020-02-22 Tom Tromey <tom@tromey.com>
8957
8958 * valprint.c (generic_val_print_enum_1)
8959 (val_print_type_code_flags): Style member names.
8960 * rust-lang.c (val_print_struct, rust_print_enum)
8961 (rust_print_struct_def, rust_internal_print_type): Style member
8962 names.
8963 * p-valprint.c (pascal_object_print_value_fields): Style member
8964 names. Only call fprintf_symbol_filtered for static members.
8965 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8966 * f-valprint.c (f_val_print): Style member names.
8967 * f-typeprint.c (f_type_print_base): Style member names.
8968 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8969 call fprintf_symbol_filtered for static members.
8970 (cp_print_class_member): Style member names.
8971 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8972 member names.
8973 * ada-valprint.c (ada_print_scalar): Style enum names.
8974 (ada_val_print_enum): Likewise.
8975 * ada-typeprint.c (print_enum_type): Style enum names.
8976
8977 2020-02-21 Tom Tromey <tom@tromey.com>
8978
8979 * psympriv.h (struct partial_symtab): Update comment.
8980
8981 2020-02-21 Tom Tromey <tromey@adacore.com>
8982
8983 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8984 type is CORE_ADDR.
8985
8986 2020-02-21 Tom de Vries <tdevries@suse.de>
8987
8988 PR gdb/25534
8989 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8990 if dependencies[i]->user != NULL.
8991
8992 2020-02-21 Ali Tamur <tamur@google.com>
8993
8994 * dwarf2/read.c (dwarf2_name): Add null check.
8995
8996 2020-02-20 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8999 ">=", in binary search.
9000 (dwarf2_find_containing_comp_unit): New overload.
9001 (run_test): New self-test.
9002 (_initialize_dwarf2_read): Register new test.
9003
9004 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9005
9006 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9007 * riscv-tdep.h: Likewise.
9008 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9009 rv32-only CSR.
9010 * features/riscv/64bit-csr.xml: Regenerated.
9011
9012 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9013 Tom Tromey <tom@tromey.com>
9014
9015 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9016 of 'fputc_unfiltered'.
9017 (putchar_unfiltered): Call 'fputc_unfiltered'.
9018 (fputc_unfiltered): Call 'fputs_unfiltered'.
9019
9020 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * config.in: Regenerate.
9023 * configure: Regenerate.
9024 * configure.ac: Add --with-python-libdir option.
9025 * main.c: Use WITH_PYTHON_LIBDIR.
9026
9027 2020-02-19 Tom Tromey <tom@tromey.com>
9028
9029 * symtab.c (general_symbol_info::compute_and_set_names): Use
9030 obstack_strndup. Simplify call to symbol_set_demangled_name.
9031
9032 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * dwarf2/read.c (allocate_signatured_type_table,
9035 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9036 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9037 Remove objfile parameter, update all callers.
9038
9039 2020-02-19 Doug Evans <dje@google.com>
9040
9041 PR rust/25535
9042 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9043 rust_enum_variant calculation.
9044
9045 2020-02-19 Tom Tromey <tromey@adacore.com>
9046
9047 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9048
9049 2020-02-19 Tom Tromey <tromey@adacore.com>
9050
9051 * ada-lang.c (cache_symbol): Use obstack_strdup.
9052
9053 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9054
9055 * configure: Regenerate.
9056
9057 2020-02-19 Tom Tromey <tromey@adacore.com>
9058
9059 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9060 NULL check.
9061
9062 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9063
9064 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9065
9066 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9067
9068 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9069 if GDBSERVER is not defined.
9070 (riscv_tdesc_cache): Likewise, also store const target_desc.
9071 (STATIC_IN_GDB): Define.
9072 (riscv_create_target_description): Update declaration with
9073 STATIC_IN_GDB.
9074 (riscv_lookup_target_description): New function, only define if
9075 GDBSERVER is not defined.
9076 * arch/riscv.h (riscv_create_target_description): Declare only
9077 when GDBSERVER is defined.
9078 (riscv_lookup_target_description): New declaration when GDBSERVER
9079 is not defined.
9080 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9081 (riscv_linux_read_features): ...this, and return
9082 riscv_gdbarch_features instead of target_desc.
9083 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9084 (riscv_linux_read_description): Rename to...
9085 (riscv_linux_read_features): ...this.
9086 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9087 Update to use riscv_gdbarch_features and
9088 riscv_lookup_target_description.
9089 * riscv-tdep.c (riscv_find_default_target_description): Use
9090 riscv_lookup_target_description instead of
9091 riscv_create_target_description.
9092
9093 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9094
9095 * valprint.c (generic_val_print_enum_1): When printing a flag
9096 enum with value 0 and there is no enumerator with value 0, print
9097 just "0" instead of "(unknown: 0x0)".
9098
9099 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * valprint.c (generic_val_print_enum_1): Print unknown part of
9102 flag enum in hex.
9103
9104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9107 flag enums to contain duplicate enumerators.
9108 * valprint.c (generic_val_print_enum_1): Update comment.
9109
9110 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * dwarf2/read.c: Include "count-one-bits.h".
9113 (update_enumeration_type_from_children): If an enumerator has
9114 multiple bits set, don't treat the enumeration as a "flag enum".
9115 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9116 of flag enums have 0 or 1 bit set.
9117
9118 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9119
9120 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9121 conversion.
9122 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9123 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9124 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9125 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9126 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9127
9128 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9131
9132 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9135 displaced_step_closure_up.
9136 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9137 (struct displaced_step_closure_up):
9138 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9139 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9140 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9141 Likewise.
9142 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9143 * gdbarch.c, gdbarch.h: Re-generate.
9144 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9145 displaced_step_closure_up.
9146 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9147 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9148 * infrun.h (displaced_step_closure_up): New type alias.
9149 (struct displaced_step_inferior_state) <step_closure>: Change
9150 type to displaced_step_closure_up.
9151 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9152 displaced_step_closure_up.
9153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9154
9155 2020-02-14 Tom Tromey <tom@tromey.com>
9156
9157 * minidebug.c (gnu_debug_key): New global.
9158 (find_separate_debug_file_in_section): Use it.
9159
9160 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9163 std::unique_ptr.
9164 * gdbarch.c: Re-generate.
9165 * gdbarch.h: Re-generate.
9166 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9167 change.
9168 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9169 type to std::unique_ptr.
9170 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9171 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9172 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9173 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9174 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9175 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9176 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9177 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9178 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9179
9180 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9183 std::unique_ptr.
9184 (displaced_step_clear): Rename to...
9185 (displaced_step_reset): ... this. Just call displaced->reset ().
9186 (displaced_step_clear_cleanup): Rename to...
9187 (displaced_step_reset_cleanup): ... this.
9188 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9189 (displaced_step_fixup): Likewise.
9190 (resume_1): Likewise.
9191 (handle_inferior_event): Restore child's memory before calling
9192 displaced_step_fixup on the parent.
9193 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9194 to std::unique_ptr.
9195 <step_closure>: Change type to std::unique_ptr.
9196
9197 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * arm-tdep.c: Include count-one-bits.h.
9200 (cleanup_block_store_pc): Use count_one_bits.
9201 (cleanup_block_load_pc): Use count_one_bits.
9202 (arm_copy_block_xfer): Use count_one_bits.
9203 (thumb2_copy_block_xfer): Use count_one_bits.
9204 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9205 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9206 (thumb_get_next_pcs_raw): Use count_one_bits.
9207 (arm_get_next_pcs_raw): Use count_one_bits_l.
9208 * arch/arm.c (bitcount): Remove.
9209 * arch/arm.h (bitcount): Remove.
9210
9211 2020-02-14 Tom Tromey <tromey@adacore.com>
9212
9213 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9214 Update.
9215 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9216 * dwarf2/loc.c (call_site_find_chain_1): Return
9217 unique_xmalloc_ptr.
9218 (call_site_find_chain): Likewise.
9219
9220 2020-02-14 Richard Biener <rguenther@suse.de>
9221
9222 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9223 on expression with division operators.
9224
9225 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9226
9227 * MAINTAINERS (Write After Approval): Adding myself.
9228
9229 2020-02-12 Tom Tromey <tom@tromey.com>
9230
9231 * event-loop.c (event_data, gdb_event, event_handler_func):
9232 Remove.
9233
9234 2020-02-12 Tom Tromey <tom@tromey.com>
9235
9236 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9237 (dwarf2_frame_objfile_data): Add comment.
9238 (find_comp_unit, set_comp_unit): New functions.
9239 (dwarf2_frame_find_fde): Use find_comp_unit.
9240 (dwarf2_build_frame_info): Use set_comp_unit.
9241
9242 2020-02-12 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9245 (comp_unit): Don't initialize objfile.
9246 (execute_cfa_program): Add text_offset parameter.
9247 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9248 (dwarf2_frame_cache): Update.
9249 (dwarf2_build_frame_info): Don't set "objfile" member.
9250
9251 2020-02-12 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9254 (decode_frame_entry): Likewise.
9255 (dwarf2_build_frame_info): Update.
9256
9257 2020-02-12 Tom Tromey <tom@tromey.com>
9258
9259 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9260 (decode_frame_entry_1): Use the comp_unit obstack.
9261
9262 2020-02-12 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2/frame.c (struct comp_unit): Add initializers and
9265 constructor.
9266 (dwarf2_frame_objfile_data): Store a comp_unit.
9267 (dwarf2_frame_find_fde): Update.
9268 (dwarf2_build_frame_info): Use "new".
9269
9270 2020-02-12 Tom Tromey <tom@tromey.com>
9271
9272 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9273 (dwarf2_fde_table): Typedef for std::vector.
9274 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9275 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9276 (decode_frame_entry): Update.
9277 (dwarf2_build_frame_info): Use "new".
9278
9279 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9280
9281 * arm-tdep.c (arm_gdbarch_init): Update.
9282 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9283 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9284 have_neon, is_m>: Change to bool.
9285
9286 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9287
9288 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9289
9290 2020-02-12 Tom Tromey <tom@tromey.com>
9291
9292 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9293
9294 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9295
9296 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9297 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9298
9299 2020-02-11 Tom Tromey <tom@tromey.com>
9300
9301 * psymtab.h: Update comment.
9302
9303 2020-02-11 Tom Tromey <tom@tromey.com>
9304
9305 * gdb_obstack.h (struct auto_obstack): Use
9306 DISABLE_COPY_AND_ASSIGN.
9307
9308 2020-02-11 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2/frame.h (struct objfile): Don't forward declare.
9311
9312 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9313
9314 * cris-tdep.c (cris_supply_gregset): Change signature to match
9315 what struct regset expects.
9316 (cris_regset): New struct.
9317 (fetch_core_registers): Remove.
9318 (cris_iterate_over_regset_sections): New function.
9319 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9320 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9321
9322 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9323
9324 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9325 registers.
9326
9327 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9328
9329 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9330
9331 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * configure: Re-generate.
9334
9335 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * configure: Re-generate.
9338
9339 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * acinclude: Update warning.m4 path.
9342 * warning.m4: Move to gdbsupport.
9343
9344 2020-02-11 Tom Tromey <tromey@adacore.com>
9345
9346 * remote.c (remote_console_output): Update.
9347 * printcmd.c (printf_command): Update.
9348 * event-loop.c (gdb_wait_for_event): Update.
9349 * linux-nat.c (sigchld_handler): Update.
9350 * remote-sim.c (gdb_os_write_stdout): Update.
9351 (gdb_os_flush_stdout): Update.
9352 (gdb_os_flush_stderr): Update.
9353 (gdb_os_write_stderr): Update.
9354 * exceptions.c (print_exception): Update.
9355 * remote-fileio.c (remote_fileio_func_read): Update.
9356 (remote_fileio_func_write): Update.
9357 * tui/tui.c (tui_enable): Update.
9358 * tui/tui-interp.c (tui_interp::init): Update.
9359 * utils.c (init_page_info): Update.
9360 (putchar_unfiltered, fputc_unfiltered): Update.
9361 (gdb_flush): Update.
9362 (emit_style_escape): Update.
9363 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9364 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9365 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9366 (stderr_file::write): Update.
9367 (stderr_file::puts): Update.
9368 * ui-file.h (ui_file_isatty, ui_file_write)
9369 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9370 (ui_file_puts): Don't declare.
9371
9372 2020-02-10 Tom de Vries <tdevries@suse.de>
9373
9374 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9375 sentinel to char *.
9376
9377 2020-02-09 Tom de Vries <tdevries@suse.de>
9378
9379 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9380 filename if it matches "<artificial>".
9381
9382 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9383
9384 * windows-tdep.c (struct enum_value_name): New struct.
9385 (create_enum): New function.
9386 (windows_get_siginfo_type): Create and use enum types.
9387
9388 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9389
9390 * NEWS: Mention $_siginfo support for Windows.
9391 * windows-nat.c (handle_exception): Set siginfo_er.
9392 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9393 (windows_xfer_siginfo): New function.
9394 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9395 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9396 (init_windows_gdbarch_data): New function.
9397 (get_windows_gdbarch_data): New function.
9398 (windows_get_siginfo_type): New function.
9399 (windows_init_abi): Register windows_get_siginfo_type.
9400 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9401
9402 2020-02-08 Tom Tromey <tom@tromey.com>
9403
9404 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9405 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9406 <keep>: Declare method.
9407 <m_keep>: Remove member.
9408 <~cutu_reader>: Remove.
9409 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9410 (cutu_reader::cutu_reader): Update.
9411 (cutu_reader::keep): Rename from ~cutu_reader.
9412 (process_psymtab_comp_unit, build_type_psymtabs_1)
9413 (process_skeletonless_type_unit, load_partial_comp_unit)
9414 (load_full_comp_unit, dwarf2_read_addr_index)
9415 (read_signatured_type): Update.
9416
9417 2020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9420 "want_partial_unit" parameter.
9421 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9422 Inline check for DW_TAG_partial_unit.
9423 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9424
9425 2020-02-08 Tom Tromey <tom@tromey.com>
9426
9427 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9428 read.c.
9429 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9430 read.c.
9431
9432 2020-02-08 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2/read.c (read_address): Move to comp-unit.c.
9435 (dwarf2_rnglists_process, dwarf2_ranges_process)
9436 (read_attribute_value, dwarf_decode_lines_1)
9437 (var_decode_location, decode_locdesc): Update.
9438 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9439 read.c. Remove "cu" parameter.
9440 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9441 method.
9442
9443 2020-02-08 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9446 (read_indirect_line_string): Update.
9447 * dwarf2/comp-unit.c (read_offset): Remove.
9448 (read_comp_unit_head): Update.
9449 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9450 method.
9451 (read_offset): Don't declare.
9452
9453 2020-02-08 Tom Tromey <tom@tromey.com>
9454
9455 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9456 * dwarf2/read.c (struct comp_unit_head): Move to
9457 dwarf2/comp-unit.h.
9458 (enum class rcuh_kind): Move to comp-unit.h.
9459 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9460 (read_comp_unit_head, error_check_comp_unit_head)
9461 (read_and_check_comp_unit_head): Move to comp-unit.c.
9462 (read_offset, dwarf_unit_type_name): Likewise.
9463 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9464 (cutu_reader::cutu_reader, read_call_site_scope)
9465 (find_partial_die, follow_die_offset): Update.
9466 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9467
9468 2020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.c (read_offset_1): Move to leb.c.
9471 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9472 (dwarf_decode_macro_bytes): Update.
9473 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9474 * dwarf2/leb.h (read_offset): Declare.
9475
9476 2020-02-08 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.c (dwarf2_section_size): Remove.
9479 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9480 Update.
9481 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9482
9483 2020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (read_initial_length): Move to leb.c.
9486 * dwarf2/leb.h (read_initial_length): Declare.
9487 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9488 handle_nonstd parameter.
9489 * dwarf2/frame.c (read_initial_length): Remove.
9490 (decode_frame_entry_1): Update.
9491
9492 2020-02-08 Tom Tromey <tom@tromey.com>
9493
9494 * dwarf2/loc.c (dwarf2_find_location_expression)
9495 (dwarf_evaluate_loc_desc::get_tls_address)
9496 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9497 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9498 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9499 (dwarf2_compile_property_to_c)
9500 (dwarf2_loc_desc_get_symbol_read_needs)
9501 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9502 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9503 (loclist_describe_location, loclist_tracepoint_var_ref)
9504 (loclist_generate_c_location): Update.
9505 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9506 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9507 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9508 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9509 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9510 (dwarf2_per_cu_data::addr_size)
9511 (dwarf2_per_cu_data::ref_addr_size)
9512 (dwarf2_per_cu_data::text_offset)
9513 (dwarf2_per_cu_data::addr_type): Now methods.
9514 (per_cu_header_read_in): Make per_cu "const".
9515 (dwarf2_version): Remove.
9516 (dwarf2_per_cu_data::int_type): Now a method.
9517 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9518 (set_die_type, read_array_type, read_subrange_index_type)
9519 (read_tag_string_type, read_subrange_type): Update.
9520 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9521 offset_size, ref_addr_size, text_offset, addr_type, version,
9522 objfile, int_type, addr_sized_int_type>: Declare methods.
9523
9524 2020-02-08 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9527 Move earlier.
9528
9529 2020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/read.h (dwarf_line_debug): Declare.
9532 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9533 * dwarf2/read.c: Move line_header code to new files.
9534 (dwarf_line_debug): No longer static.
9535 * dwarf2/line-header.c: New file.
9536 * dwarf2/line-header.h: New file.
9537
9538 2020-02-08 Tom Tromey <tom@tromey.com>
9539
9540 * dwarf2/read.c (struct line_header) <file_full_name,
9541 file_file_name>: Return unique_xmalloc_ptr.
9542 (line_header::file_file_name): Update.
9543 (line_header::file_full_name): Update.
9544 (dw2_get_file_names_reader): Update.
9545 (macro_start_file): Update.
9546
9547 2020-02-08 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/read.c (struct line_header) <file_full_name,
9550 file_file_name>: Declare methods.
9551 (dw2_get_file_names_reader): Update.
9552 (file_file_name): Now a method.
9553 (file_full_name): Likewise.
9554 (macro_start_file): Update.
9555
9556 2020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.c (dwarf_always_disassemble)
9559 (show_dwarf_always_disassemble): Move to loc.c.
9560 (_initialize_dwarf2_read): Move "always-disassemble" registration
9561 to loc.c.
9562 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9563 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9564 static.
9565 (show_dwarf_always_disassemble): Move from read.c.
9566 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9567
9568 2020-02-08 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9571 (create_quick_file_names_table): Return htab_up.
9572 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9573 Update.
9574 * dwarf2/read.h (struct dwarf2_per_objfile)
9575 <quick_file_names_table>: Now htab_up.
9576
9577 2020-02-08 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9580
9581 2020-02-08 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9584 Rewrite.
9585 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9586 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9587 (abbrev_table::abbrev_table): No longer inline.
9588 (ABBREV_HASH_SIZE): Remove.
9589 (abbrev_table::m_abbrevs): Now an htab_up.
9590
9591 2020-02-08 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9594 (cutu_reader): Update.
9595 (build_type_psymtabs_1): Update.
9596 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9597 (abbrev_table::alloc_abbrev): Update.
9598 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9599 (abbrev_table::read): New static method, renamed from
9600 abbrev_table_read_table.
9601 (abbrev_table::alloc_abbrev)
9602 (abbrev_table::add_abbrev): Now private.
9603 (abbrev_table::abbrev_table): Now private.
9604 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9605
9606 2020-02-08 Tom Tromey <tom@tromey.com>
9607
9608 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9609 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9610 htab_up.
9611
9612 2020-02-08 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9615 htab_up.
9616 (lookup_dwo_unit_in_dwp): Update.
9617 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9618 on obstack.
9619
9620 2020-02-08 Tom Tromey <tom@tromey.com>
9621
9622 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9623 obstack.
9624
9625 2020-02-08 Tom Tromey <tom@tromey.com>
9626
9627 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9628 line_header_hash.
9629 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9630 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9631 Change type to htab_up.
9632
9633 2020-02-08 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9636 htab_up. Don't allocate on obstack.
9637 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9638 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9639 Change type to htab_up.
9640
9641 2020-02-08 Tom Tromey <tom@tromey.com>
9642
9643 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9644 Change type to htab_up.
9645 * dwarf2/read.c (create_signatured_type_table_from_index)
9646 (create_signatured_type_table_from_debug_names)
9647 (create_all_type_units, add_type_unit)
9648 (lookup_dwo_signatured_type, lookup_signatured_type)
9649 (process_skeletonless_type_unit): Update.
9650 (create_debug_type_hash_table, create_debug_types_hash_table):
9651 Change type of types_htab.
9652 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9653 htab_up. Don't allocate on obstack.
9654 (create_cus_hash_table): Change type of cus_htab parameter.
9655 (struct dwo_file) <cus, tus>: Now htab_up.
9656 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9657 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9658 (queue_and_load_all_dwo_tus): Update.
9659 * dwarf2/index-write.c (write_gdbindex): Update.
9660 (write_debug_names): Update.
9661
9662 2020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9665 dwarf2/read.c. Remove "next" member. Add constructor ntad
9666 destructor.
9667 (struct dwarf2_per_objfile) <queue>: New member.
9668 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9669 dwarf2/read.h.
9670 (dwarf2_queue, dwarf2_queue_tail): Remove.
9671 (class dwarf2_queue_guard): Add parameter to constructor. Use
9672 DISABLE_COPY_AND_ASSIGN.
9673 <m_per_objfile>: New member.
9674 <~dwarf2_queue_guard>: Rewrite.
9675 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9676 Update.
9677 (~dwarf2_queue_item): New.
9678
9679 2020-02-08 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.c (struct die_info) <has_children>: New member.
9682 (dw2_get_file_names_reader): Remove has_children.
9683 (dw2_get_file_names): Update.
9684 (read_cutu_die_from_dwo): Remove has_children.
9685 (cutu_reader::init_tu_and_read_dwo_dies)
9686 (cutu_reader::cutu_reader): Update.
9687 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9688 Remove has_children.
9689 (build_type_psymtabs_1, process_skeletonless_type_unit)
9690 (load_partial_comp_unit, load_full_comp_unit): Update.
9691 (create_dwo_cu_reader): Remove has_children.
9692 (create_cus_hash_table, read_die_and_children): Update.
9693 (read_full_die_1,read_full_die): Remove has_children.
9694 (read_signatured_type): Update.
9695 (class cutu_reader) <has_children>: Remove.
9696
9697 2020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/expr.c: Rename from dwarf2expr.c.
9700 * dwarf2/expr.h: Rename from dwarf2expr.h.
9701 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9702 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9703 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9704 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9705 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9706 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9707 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9708 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9709 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9710 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9711 * dwarf2/loc.c: Rename from dwarf2loc.c.
9712 * dwarf2/loc.h: Rename from dwarf2loc.h.
9713 * dwarf2/read.c: Rename from dwarf2read.c.
9714 * dwarf2/read.h: Rename from dwarf2read.h.
9715 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9716 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9717 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9718 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9719 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9720 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9721 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9722 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9723 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9724 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9725 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9726 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9727 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9728 Update.
9729 * Makefile.in (COMMON_SFILES): Update.
9730 (HFILES_NO_SRCDIR): Update.
9731
9732 2020-02-08 Tom Tromey <tom@tromey.com>
9733
9734 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9735 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9736
9737 2020-02-08 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2read.h (struct die_info): Don't declare.
9740
9741 2020-02-08 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2read.h (die_info_ptr): Remove typedef.
9744
9745 2020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2read.c (read_call_site_scope)
9748 (handle_data_member_location, dwarf2_add_member_fn)
9749 (mark_common_block_symbol_computed, read_common_block)
9750 (attr_to_dynamic_prop, partial_die_info::read)
9751 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9752 (dwarf2_symbol_mark_computed, set_die_type): Update.
9753 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9754 method.
9755 (attr_form_is_block): Don't declare.
9756 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9757
9758 2020-02-08 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2read.c (dwarf2_find_base_address, )
9761 (read_call_site_scope, rust_containing_type)
9762 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9763 (handle_data_member_location, dwarf2_add_member_fn)
9764 (get_alignment, read_structure_type, process_structure_scope)
9765 (mark_common_block_symbol_computed, read_common_block)
9766 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9767 (partial_die_info::read, read_attribute_value, new_symbol)
9768 (lookup_die_type, dwarf2_get_ref_die_offset)
9769 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9770 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9771 (dwarf2_symbol_mark_computed): Update.
9772 * dwarf2/attribute.h (struct attribute) <value_as_address,
9773 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9774 methods.
9775 (value_as_address, attr_form_is_section_offset)
9776 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9777 * dwarf2/attribute.c (attribute::value_as_address)
9778 (attribute::form_is_section_offset, attribute::form_is_constant)
9779 (attribute::form_is_ref): Now methods.
9780
9781 2020-02-08 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2read.c (struct attribute, DW_STRING)
9784 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9785 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9786 (attr_form_is_block, attr_form_is_section_offset)
9787 (attr_form_is_constant, attr_form_is_ref): Move.
9788 * dwarf2/attribute.h: New file.
9789 * dwarf2/attribute.c: New file, from dwarf2read.c.
9790 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9791
9792 2020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9795 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9796 Move.
9797 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9798 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9799 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9800 abbrev.c.
9801 * dwarf2/abbrev.h: New file.
9802 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9803 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9804
9805 2020-02-08 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9808 (dwarf2_section_size, dwarf2_get_section_info)
9809 (create_signatured_type_table_from_debug_names)
9810 (create_addrmap_from_aranges, read_debug_names_from_section)
9811 (get_gdb_index_contents_from_section, read_comp_unit_head)
9812 (error_check_comp_unit_head, read_abbrev_offset)
9813 (create_debug_type_hash_table, init_cu_die_reader)
9814 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9815 (read_comp_units_from_section, create_cus_hash_table)
9816 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9817 (create_dwp_v2_section, dwarf2_rnglists_process)
9818 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9819 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9820 (read_indirect_string_from_dwz, read_addr_index_1)
9821 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9822 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9823 (fill_in_loclist_baton): Update.
9824 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9825 get_containing_section, get_bfd_owner, get_bfd_section,
9826 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9827 (dwarf2_read_section, get_section_name, get_section_file_name)
9828 (get_containing_section, get_section_bfd_owner)
9829 (get_section_bfd_section, get_section_name, get_section_file_name)
9830 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9831 declare.
9832 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9833 (dwarf2_section_info::get_bfd_owner)
9834 (dwarf2_section_info::get_bfd_section)
9835 (dwarf2_section_info::get_name)
9836 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9837 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9838 (dwarf2_section_info::read): Now methods.
9839 * dwarf-index-write.c (class debug_names): Update.
9840
9841 2020-02-08 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9844 Move to dwarf2/section.h.
9845 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9846 (get_section_bfd_section, get_section_name)
9847 (get_section_file_name, get_section_id, get_section_flags)
9848 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9849 dwarf2/section.c.
9850 * dwarf2/section.h: New file.
9851 * dwarf2/section.c: New file, from dwarf2read.c.
9852 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9853
9854 2020-02-08 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9857 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9858 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9859 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9860 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9861 * dwarf2/leb.h: New file, from dwarf2read.c.
9862 * dwarf2/leb.c: New file, from dwarf2read.c.
9863 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9864 Remove.
9865 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9866 (COMMON_SFILES): Add dwarf2/leb.c.
9867
9868 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9869
9870 GDB 9.1 released.
9871
9872 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9873
9874 PR gdb/25190:
9875 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9876 * gdb/remote.c (remote_console_output): Update.
9877 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9878 (ui_file_puts): ...this.
9879 * gdb/ui-file.h (ui_file_puts): Add declaration.
9880 * gdb/utils.c (emit_style_escape): Update.
9881 (flush_wrap_buffer): Update.
9882 (fputs_maybe_filtered): Update.
9883 (fputs_unfiltered): Add function.
9884
9885 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9886
9887 * gdb/event-loop.c (gdb_wait_for_event): Update.
9888 * gdb/printcmd.c (printf_command): Update.
9889 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9890 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9891 (gdb_os_flush_stderr): Update.
9892 * gdb/remote.c (remote_console_output): Update.
9893 * gdb/ui-file.c (gdb_flush): Rename to...
9894 (ui_file_flush): ...this.
9895 (stderr_file::write): Update.
9896 (stderr_file::puts): Update.
9897 * gdb/ui-file.h (gdb_flush): Rename to...
9898 (ui_file_flush): ...this.
9899 * gdb/utils.c (gdb_flush): Add function.
9900 * gdb/utils.h (gdb_flush): Add declaration.
9901
9902 2020-02-07 Tom Tromey <tromey@adacore.com>
9903
9904 PR breakpoints/24915:
9905 * source.c (find_and_open_source): Do not check basenames_may_differ.
9906
9907 2020-02-07 Tom Tromey <tom@tromey.com>
9908
9909 * README: Update gdbserver documentation.
9910 * gdbserver: Move to top level.
9911 * configure.tgt (build_gdbserver): Remove.
9912 * configure.ac: Remove --enable-gdbserver.
9913 * configure: Rebuild.
9914 * Makefile.in (distclean): Don't mention gdbserver.
9915
9916 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9917
9918 * source-cache.c (source_cache::ensure): Surround
9919 get_plain_source_lines with a try/catch.
9920 (source_cache::get_line_charpos): Get rid of try/catch
9921 and only check for the return value of "ensure".
9922 * tui/tui-source.c (tui_source_window::set_contents):
9923 Simplify "nlines" calculation.
9924
9925 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9926
9927 * MAINTAINERS (Write After Approval): Add myself.
9928
9929 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9930
9931 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9932 function call.
9933
9934 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9935
9936 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9937
9938 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9939
9940 * nat/riscv-linux-tdesc.h: New file.
9941 * nat/riscv-linux-tdesc.c: New file, taking code from...
9942 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9943 ... here.
9944 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9945 NATDEPFILES.
9946
9947 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9948
9949 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9950 we don't set the fake simulator ptid to the null_ptid.
9951
9952 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9955 * gdbthread.h (class thread_info) <resumed>: Likewise.
9956 * infrun.c (resume_1): Likewise.
9957 (proceed): Likewise.
9958 (infrun_thread_stop_requested): Likewise.
9959 (stop_all_threads): Likewise.
9960 (handle_inferior_event): Likewise.
9961 (restart_threads): Likewise.
9962 (finish_step_over): Likewise.
9963 (keep_going_stepped_thread): Likewise.
9964 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9965 (linux_handle_extended_wait): Likewise.
9966 * record-btrace.c (get_thread_current_frame_id): Likewise.
9967 * record-full.c (record_full_wait_1): Likewise.
9968 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9969 * target.c (target_resume): Likewise.
9970 * thread.c (set_running_thread): Likewise.
9971
9972 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9973
9974 * f-valprint.c (f77_print_array_1): Changed datatype of index
9975 variable to LONGEST from int to enable it to contain bound
9976 values correctly.
9977
9978 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9979
9980 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9981 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9982 offsets according to FLEN determined.
9983 (riscv_linux_nat_target::read_description): Determine FLEN
9984 dynamically.
9985 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9986 according to FLEN determined.
9987 (riscv_linux_nat_target::store_registers): Likewise.
9988
9989 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9990
9991 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9992 when reg->group is empty and reggroup is not.
9993
9994 2020-01-31 Tom Tromey <tromey@adacore.com>
9995
9996 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9997 Call beneath target's mourn_inferior after unpushing.
9998
9999 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10000
10001 PR tui/9765
10002 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10003 have enough lines to fill the screen, still return the lowest
10004 address we found.
10005
10006 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10007
10008 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10009 '-', '<', and '>' commands.
10010
10011 2020-01-29 Pedro Alves <palves@redhat.com>
10012 Sergio Durigan Junior <sergiodj@redhat.com>
10013
10014 * infcmd.c (construct_inferior_arguments): Assert that
10015 'argc' is greater than 0.
10016
10017 2020-01-29 Luis Machado <luis.machado@linaro.org>
10018
10019 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10020 (BRK_INSN_MASK): Define to 0xd4200000.
10021 (aarch64_program_breakpoint_here_p): New function.
10022 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10023 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10024 breakpoint.c.
10025 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10026 breakpoint.h
10027 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10028 call gdbarch_program_breakpoint_here_p.
10029 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10030 default_program_breakpoint_here_p, changed return type to bool and
10031 simplified.
10032 * breakpoint.h (program_breakpoint_here): Moved prototype to
10033 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10034 return type to bool.
10035 * gdbarch.c: Regenerate.
10036 * gdbarch.h: Regenerate.
10037 * gdbarch.sh (program_breakpoint_here_p): New method.
10038 * infrun.c (handle_signal_stop): Call
10039 gdbarch_program_breakpoint_here_p.
10040
10041 2020-01-26 Tom Tromey <tom@tromey.com>
10042
10043 * ctfread.c (struct ctf_fp_info): Reindent.
10044 (_initialize_ctfread): Remove.
10045
10046 2020-01-26 Tom Tromey <tom@tromey.com>
10047
10048 * psymtab.c (partial_map_expand_apply)
10049 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10050 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10051 (psym_print_stats, psym_expand_symtabs_for_function)
10052 (psym_map_symbol_filenames, psym_map_matching_symbols)
10053 (psym_expand_symtabs_matching)
10054 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10055 (maintenance_check_psymtabs): Use new methods.
10056 * psympriv.h (struct partial_symtab) <readin_p,
10057 get_compunit_symtab>: New methods.
10058 <readin, compunit_symtab>: Remove members.
10059 (struct standard_psymtab): New.
10060 (struct legacy_psymtab): Derive from standard_psymtab.
10061 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10062 standard_psymtab.
10063 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10064
10065 2020-01-26 Tom Tromey <tom@tromey.com>
10066
10067 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10068 read_dependencies. Add assert.
10069 * psymtab.c (partial_symtab::read_dependencies): New method.
10070 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10071 method.
10072 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10073 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10074 read_dependencies.
10075 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10076 Add assert.
10077
10078 2020-01-26 Tom Tromey <tom@tromey.com>
10079
10080 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10081 Call expand_psymtab.
10082 (xcoff_read_symtab): Call expand_psymtab.
10083 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10084 legacy_expand_psymtab.
10085 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10086 method.
10087 (struct legacy_psymtab) <expand_psymtab>: Implement.
10088 <legacy_expand_psymtab>: New member.
10089 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10090 (parse_partial_symbols): Set legacy_expand_psymtab.
10091 (psymtab_to_symtab_1): Change argument order. Call
10092 expand_psymtab.
10093 (new_psymtab): Set legacy_expand_psymtab.
10094 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10095 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10096 expand_psymtab.
10097 (dwarf2_psymtab::expand_psymtab): Rename from
10098 psymtab_to_symtab_1. Call expand_psymtab.
10099 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10100 (dbx_end_psymtab): Likewise.
10101 (dbx_psymtab_to_symtab_1): Change argument order. Call
10102 expand_psymtab.
10103 (dbx_read_symtab): Call expand_psymtab.
10104 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10105 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10106 (ctf_psymtab::read_symtab): Call expand_psymtab.
10107
10108 2020-01-26 Tom Tromey <tom@tromey.com>
10109
10110 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10111 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10112 messages.
10113 * mdebugread.c (mdebug_read_symtab): Remove prints.
10114 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10115 assert.
10116 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10117
10118 2020-01-26 Tom Tromey <tom@tromey.com>
10119
10120 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10121 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10122 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10123 legacy_symtab.
10124 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10125 * psymtab.c (psymtab_to_symtab): Call method.
10126 (dump_psymtab): Update.
10127 * psympriv.h (struct partial_symtab): Add virtual destructor.
10128 <read_symtab>: New method.
10129 (struct legacy_symtab): New.
10130 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10131 (struct pst_map) <pst>: Now a legacy_psymtab.
10132 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10133 (new_psymtab): Use legacy_psymtab.
10134 * dwarf2read.h (struct dwarf2_psymtab): New.
10135 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10136 * dwarf2read.c (dwarf2_create_include_psymtab)
10137 (dwarf2_build_include_psymtabs, create_type_unit_group)
10138 (create_partial_symtab, process_psymtab_comp_unit_reader)
10139 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10140 (set_partial_user): Use dwarf2_psymtab.
10141 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10142 (psymtab_to_symtab_1, process_full_comp_unit)
10143 (process_full_type_unit, dwarf2_ranges_read)
10144 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10145 (dwarf_decode_lines): Use dwarf2_psymtab.
10146 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10147 (add_address_entry_worker, write_one_signatured_type)
10148 (recursively_count_psymbols, recursively_write_psymbols)
10149 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10150 (write_debug_names): Likewise.
10151 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10152 <pst>: Now a legacy_psymtab.
10153 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10154 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10155 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10156 * ctfread.c (struct ctf_psymtab): New.
10157 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10158 ctf_psymtab.
10159 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10160 (create_partial_symtab): Return a ctf_psymtab.
10161 (scan_partial_symbols): Update.
10162
10163 2020-01-26 Tom Tromey <tom@tromey.com>
10164
10165 * xcoffread.c (xcoff_start_psymtab): Use new.
10166 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10167 renamed from start_psymtab_common.
10168 * psympriv.h (struct partial_symtab): Add new constructor.
10169 (start_psymtab_common): Don't declare.
10170 * mdebugread.c (parse_partial_symbols): Use new.
10171 * dwarf2read.c (create_partial_symtab): Use new.
10172 * dbxread.c (start_psymtab): Use new.
10173 * ctfread.c (create_partial_symtab): Use new.
10174
10175 2020-01-26 Tom Tromey <tom@tromey.com>
10176
10177 * xcoffread.c (xcoff_end_psymtab): Use new.
10178 * psymtab.c (start_psymtab_common): Use new.
10179 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10180 Update.
10181 * psympriv.h (struct partial_symtab): Add parameters to
10182 constructor. Don't inline.
10183 (allocate_psymtab): Don't declare.
10184 * mdebugread.c (new_psymtab): Use new.
10185 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10186 * dbxread.c (dbx_end_psymtab): Use new.
10187
10188 2020-01-26 Tom Tromey <tom@tromey.com>
10189
10190 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10191 allocate_psymtab. Update documentation.
10192 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10193 allocate_psymtab. Do not use new.
10194 (allocate_psymtab): Use new. Update.
10195
10196 2020-01-26 Tom Tromey <tom@tromey.com>
10197
10198 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10199 * psymtab.c (psym_print_stats): Update.
10200 * psympriv.h (struct partial_symtab) <readin,
10201 psymtabs_addrmap_supported, anonymous>: Now bool.
10202 * mdebugread.c (psymtab_to_symtab_1): Update.
10203 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10204 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10205 (process_full_comp_unit, process_full_type_unit): Update.
10206 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10207 * ctfread.c (psymtab_to_symtab): Update.
10208
10209 2020-01-26 Tom Tromey <tom@tromey.com>
10210
10211 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10212 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10213 * psymtab.c (psymtab_storage): Delete psymtabs.
10214 (psymtab_storage::allocate_psymtab): Use new.
10215 (psymtab_storage::discard_psymtab): Use delete.
10216 * psympriv.h (struct partial_symtab): Add constructor and
10217 initializers.
10218
10219 2020-01-26 Tom Tromey <tom@tromey.com>
10220
10221 * machoread.c: Do not include psympriv.h.
10222
10223 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10224
10225 * NEWS: Mention the new option and the set/show commands.
10226
10227 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10228
10229 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10230 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10231 (validate_exec_file): New variables, enums, functions.
10232 (exec_file_locate_attach, print_section_info): Style the filenames.
10233 (_initialize_exec): Install show_exec_file_mismatch_command and
10234 set_exec_file_mismatch_command.
10235 * gdbcore.h (validate_exec_file): Declare.
10236 * infcmd.c (attach_command): Call validate_exec_file.
10237 * remote.c ( remote_target::remote_add_inferior): Likewise.
10238
10239 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * frame.c (find_frame_sal): Move call to get_next_frame into more
10242 inner scope.
10243 * inline-frame.c (inilne_state) <inline_state>: Update argument
10244 types.
10245 (inilne_state) <skipped_symbol>: Rename to...
10246 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10247 (skip_inline_frames): Build vector of skipped symbols and use this
10248 to reate the inline_state.
10249 (inline_skipped_symbol): Add a comment and some assertions, fetch
10250 skipped symbol from the list.
10251
10252 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10253
10254 * buildsym.c (lte_is_less_than): Delete.
10255 (buildsym_compunit::end_symtab_with_blockvector): Create local
10256 lambda function to sort line table entries, and use
10257 std::stable_sort instead of std::sort.
10258 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10259 markers when looking for a previous line.
10260
10261 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * dwarf2read.c (lnp_state_machine::record_line): Include
10264 end_sequence parameter in debug print out. Record the line if we
10265 are at an end_sequence marker even if it's not the start of a
10266 statement.
10267 * symmisc.c (maintenance_print_one_line_table): Print end of
10268 sequence markers with 'END' not '0'.
10269
10270 2020-01-24 Pedro Alves <palves@redhat.com>
10271
10272 PR gdb/25410
10273 * thread.c (scoped_restore_current_thread::restore): Use
10274 switch_to_inferior_no_thread.
10275 * exec.c: Include "progspace-and-thread.h".
10276 (add_target_sections, remove_target_sections):
10277 scoped_restore_current_pspace_and_thread instead of
10278 scoped_restore_current_thread.
10279 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10280 and aspace to the inferior before calling clone_program_space.
10281 Remove stale comment.
10282
10283 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10284
10285 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10286 (arm_netbsd_nat_target::fetch_registers): ...this.
10287 (arm_nbsd_nat_target::store_registers): Rename to...
10288 (arm_netbsd_nat_target::store_registers): ...this.
10289
10290 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10291
10292 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10293 register_t.
10294
10295 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10296
10297 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10298 Update comment.
10299 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10300 Likewise.
10301 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10302 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10303 the correct replacement (iterate_over_regset_sections).
10304 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10305 Update comment.
10306
10307 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10308
10309 PR gdb/23718
10310 * gdb/python/python.c (execute_gdb_command): Call
10311 async_enable_stdin in catch block.
10312
10313 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10314
10315 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10316 SWITCH_THRU_ALL_UIS.
10317
10318 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 PR tui/9765
10321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10322 comment, add extra parameter, and update to store previous symbol
10323 when appropriate.
10324 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10325 add extra parameter.
10326 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10327 remove unneeded parameter, add try/catch around gdb_print_insn,
10328 rewrite to add items to asm_lines vector.
10329 (tui_find_backward_disassembly_start_address): New function.
10330 (tui_find_disassembly_address): Updated throughout.
10331 (tui_disasm_window::set_contents): Update for changes to
10332 tui_disassemble.
10333 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10334 number of lines to scroll.
10335
10336 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10339 (SECT_OFF_DATA): Likewise.
10340 (SECT_OFF_RODATA): Likewise.
10341 (SECT_OFF_TEXT): Likewise.
10342 (SECT_OFF_BSS): Likewise.
10343 (struct objfile) <text_section_offset, data_section_offset>: New
10344 methods.
10345 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10346 objfile::text_section_offset.
10347 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10348 * coffread.c (coff_symtab_read): Likewise.
10349 (enter_linenos): Likewise.
10350 (process_coff_symbol): Likewise.
10351 * ctfread.c (get_objfile_text_range): Likewise.
10352 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10353 Use objfile::data_section_offset.
10354 * dwarf2-frame.c (execute_cfa_program): Use
10355 objfile::text_section_offset.
10356 (dwarf2_frame_find_fde): Likewise.
10357 * dwarf2read.c (create_addrmap_from_index): Likewise.
10358 (create_addrmap_from_aranges): Likewise.
10359 (dw2_find_pc_sect_compunit_symtab): Likewise.
10360 (process_psymtab_comp_unit_reader): Likewise.
10361 (add_partial_symbol): Likewise.
10362 (add_partial_subprogram): Likewise.
10363 (process_full_comp_unit): Likewise.
10364 (read_file_scope): Likewise.
10365 (read_func_scope): Likewise.
10366 (read_lexical_block_scope): Likewise.
10367 (read_call_site_scope): Likewise.
10368 (dwarf2_rnglists_process): Likewise.
10369 (dwarf2_ranges_process): Likewise.
10370 (dwarf2_ranges_read): Likewise.
10371 (dwarf_decode_lines_1): Likewise.
10372 (new_symbol): Likewise.
10373 (dwarf2_fetch_die_loc_sect_off): Likewise.
10374 (dwarf2_per_cu_text_offset): Likewise.
10375 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10376 * hppa-tdep.c (read_unwind_info): Likewise.
10377 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10378 * psympriv.h (struct partial_symtab): Likewise.
10379 * psymtab.c (find_pc_sect_psymtab): Likewise.
10380 * solib-svr4.c (enable_break): Likewise.
10381 * stap-probe.c (relocate_address): Use
10382 objfile::data_section_offset.
10383 * xcoffread.c (enter_line_range): Use
10384 objfile::text_section_offset.
10385 (read_xcoff_symtab): Likewise.
10386
10387 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10390 declaration to narrower scopes.
10391
10392 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * darwin-nat.h (struct darwin_exception_msg, enum
10395 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10396 Move up.
10397 (class darwin_nat_target) <wait_1, check_new_threads,
10398 decode_exception_message, decode_message, stop_inferior,
10399 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10400 * darwin-nat.c (darwin_check_new_threads): Rename to...
10401 (darwin_nat_target::check_new_threads): ... this.
10402 (darwin_suspend_inferior_it): Remove.
10403 (darwin_decode_exception_message): Rename to...
10404 (darwin_nat_target::decode_exception_message): ... this.
10405 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10406 (darwin_decode_message): Rename to...
10407 (darwin_nat_target::decode_message): ... this.
10408 (cancel_breakpoint): Rename to...
10409 (darwin_nat_target::cancel_breakpoint): ... this.
10410 (darwin_wait): Rename to...
10411 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10412 instead of iterate_over_inferiors.
10413 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10414 (darwin_stop_inferior): Rename to...
10415 (darwin_nat_target::stop_inferior): ... this.
10416 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10417 (darwin_init_thread_list): Rename to...
10418 (darwin_nat_target::init_thread_list): ... this.
10419 (darwin_ptrace_him): Rename to...
10420 (darwin_nat_target::ptrace_him): ... this.
10421 (darwin_nat_target::create_inferior): Pass lambda function to
10422 fork_inferior.
10423 (darwin_nat_target::detach): Call stop_inferior instead of
10424 darwin_stop_inferior.
10425 * fork-inferior.h (fork_inferior): Change init_trace_fun
10426 parameter to gdb::function_view.
10427 * fork-inferior.c (fork_inferior): Likewise.
10428
10429 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10430
10431 * i386-cygwin-tdep.c (core_process_module_section): Update.
10432 * windows-nat.c (struct lm_info_windows): Add text_offset.
10433 (windows_xfer_shared_libraries): Update.
10434 * windows-tdep.c (windows_xfer_shared_library):
10435 Add text_offset_cached argument.
10436 * windows-tdep.h (windows_xfer_shared_library): Update.
10437
10438 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10441
10442 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10443
10444 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10445 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10446 replace with range-based for.
10447 (gdbsim_interrupt_inferior): Remove.
10448 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10449 with a range-based for. Inline code from
10450 gdbsim_interrupt_inferior.
10451
10452 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10453
10454 * infrun.c (proceed): Fix indentation.
10455
10456 2020-01-21 Tom Tromey <tromey@adacore.com>
10457
10458 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10459 * python/python.c (python_extension_ops): Update.
10460 (gdbpy_colorize): New function.
10461 * python/lib/gdb/__init__.py (colorize): New function.
10462 * extension.h (ext_lang_colorize): Declare.
10463 * extension.c (ext_lang_colorize): New function.
10464 * extension-priv.h (struct extension_language_ops) <colorize>: New
10465 member.
10466 * cli/cli-style.c (_initialize_cli_style): Update help text.
10467
10468 2020-01-21 Luis Machado <luis.machado@linaro.org>
10469
10470 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10471 <cond>: Change type to bool.
10472 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10473 (aarch64_displaced_step_cb): Likewise.
10474 (aarch64_displaced_step_tb): Likewise.
10475
10476 2020-01-21 Luis Machado <luis.machado@linaro.org>
10477
10478 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10479 output.
10480
10481 2020-01-21 Luis Machado <luis.machado@linaro.org>
10482
10483 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10484 <pc_adjust>: Adjust the documentation.
10485 (aarch64_displaced_step_fixup): Check if PC really moved before
10486 adjusting it.
10487
10488 2020-01-19 Tom Tromey <tom@tromey.com>
10489
10490 * disasm.c (~gdb_disassembler): New destructor.
10491 (gdb_buffered_insn_length): Call disassemble_free_target.
10492 * disasm.h (class gdb_disassembler): Declare destructor. Use
10493 DISABLE_COPY_AND_ASSIGN.
10494
10495 2020-01-19 Tom Tromey <tom@tromey.com>
10496
10497 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10498 (die_reader_func_ftype): Remove.
10499 (cutu_reader): New class.
10500 (dw2_get_file_names_reader): Remove "data" parameter.
10501 (dw2_get_file_names): Use cutu_reader.
10502 (create_debug_type_hash_table): Update.
10503 (read_cutu_die_from_dwo): Update comment.
10504 (lookup_dwo_unit): Add dwo_name parameter.
10505 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10506 die_reader_func_ftype and data parameters.
10507 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10508 Remove die_reader_func_ftype and data parameters.
10509 (~cutu_reader): New; from init_cutu_and_read_dies.
10510 (cutu_reader::cutu_reader): Rename from
10511 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10512 and data parameters.
10513 (init_cutu_and_read_dies_simple): Remove.
10514 (struct process_psymtab_comp_unit_data): Remove.
10515 (process_psymtab_comp_unit_reader): Remove data parameter; add
10516 want_partial_unit and pretend_language parameters.
10517 (process_psymtab_comp_unit): Use cutu_reader.
10518 (build_type_psymtabs_reader): Remove data parameter.
10519 (build_type_psymtabs_1): Use cutu_reader.
10520 (process_skeletonless_type_unit): Likewise.
10521 (load_partial_comp_unit_reader): Remove.
10522 (load_partial_comp_unit): Use cutu_reader.
10523 (load_full_comp_unit_reader): Remove.
10524 (load_full_comp_unit): Use cutu_reader.
10525 (struct create_dwo_cu_data): Remove.
10526 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10527 dwo_unit parameters.
10528 (create_cus_hash_table): Use cutu_reader.
10529 (struct dwarf2_read_addr_index_data): Remove.
10530 (dwarf2_read_addr_index_reader): Remove.
10531 (dwarf2_read_addr_index): Use cutu_reader.
10532 (read_signatured_type_reader): Remove.
10533 (read_signatured_type): Use cutu_reader.
10534
10535 2020-01-19 Tom Tromey <tom@tromey.com>
10536
10537 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10538 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10539 (tui_wrefresh): Declare.
10540 * tui/tui-wingeneral.c (suppress_output): New global.
10541 (tui_suppress_output, ~tui_suppress_output): New constructor and
10542 destructor.
10543 (tui_wrefresh): New function.
10544 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10545 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10546 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10547 method.
10548 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10549 tui_wrefresh.
10550 (tui_data_window::no_refresh): New method.
10551 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10552 (tui_reg_command): Use tui_suppress_output
10553 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10554 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10555 method.
10556 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10557
10558 2020-01-19 Tom Tromey <tom@tromey.com>
10559
10560 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10561 Handle case where symtab is null.
10562
10563 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10564
10565 * linux-fork.c (one_fork_p): Simplify.
10566
10567 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * top.c (struct qt_args): Remove.
10570 (kill_or_detach): Change return type to void, replace `void *`
10571 parameter with a proper one.
10572 (print_inferior_quit_action): Likewise.
10573 (quit_confirm): Use range-based for loop to iterate over inferiors.
10574 (quit_force): Likewise.
10575
10576 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10579 `void *` parameter with proper parameters.
10580 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10581 (print_one_inferior): Change return type to void, replace `void *`
10582 parameter with proper parameters.
10583 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10584 inferiors.
10585 (get_other_inferior): Remove.
10586 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10587 inferiors.
10588
10589 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * mi/mi-interp.c (report_initial_inferior): Remove.
10592 (mi_interp::init): Use range-based for to iterate over inferiors.
10593
10594 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * python/py-inferior.c (build_inferior_list): Remove.
10597 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10598
10599 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10600
10601 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10602 (btrace_stitch_trace): Likewise.
10603 * charset.c (intermediate_encoding): Likewise (vaild).
10604 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10605 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10606 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10607
10608 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10609
10610 * windows-tdep.c (windows_get_tlb_type):
10611 Add rtl_user_process_parameters type.
10612
10613 2020-01-16 Pedro Alves <palves@redhat.com>
10614 Norbert Lange <nolange79@gmail.com>
10615
10616 PR build/24805
10617 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10618 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10619 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10620 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10621 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10622 (ps_plog): Redeclare exported functions with default visibility.
10623
10624 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10625
10626 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10627 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10628
10629 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * infcmd.c (post_create_inferior): Use get_thread_regcache
10632 instead of get_current_regcache.
10633
10634 2020-01-14 Tom Tromey <tom@tromey.com>
10635
10636 PR symtab/12535:
10637 * python/python.c (gdbpy_decode_line): Treat empty string the same
10638 as no argument.
10639
10640 2020-01-14 Tom Tromey <tom@tromey.com>
10641
10642 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10643
10644 2020-01-14 Tom Tromey <tom@tromey.com>
10645
10646 * nat/linux-btrace.c: Don't include <config.h>.
10647 * nat/linux-ptrace.c: Don't include <config.h>.
10648 * nat/x86-linux-dregs.c: Don't include <config.h>.
10649
10650 2020-01-14 Tom Tromey <tom@tromey.com>
10651
10652 * configure: Rebuild.
10653 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10654
10655 2020-01-14 Tom Tromey <tom@tromey.com>
10656
10657 * nat/x86-linux-dregs.c: Include configh.h.
10658 * nat/linux-ptrace.c: Include configh.h.
10659 * nat/linux-btrace.c: Include configh.h.
10660 * defs.h: Include config.h, bfd.h.
10661 * configure.ac: Don't source common.host.
10662 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10663 * configure: Rebuild.
10664 * acinclude.m4: Update path.
10665 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10666 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10667 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10668 (CLIBS): Add LIBSUPPORT.
10669 (CDEPS): Likewise.
10670 (COMMON_SFILES): Remove gdbsupport files.
10671 (HFILES_NO_SRCDIR): Likewise.
10672 (stamp-version): Update path to create-version.sh.
10673 (ALLDEPFILES): Remove gdbsupport files.
10674
10675 2020-01-14 Tom Tromey <tom@tromey.com>
10676
10677 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10678 USE_WIN32API when needed.
10679 * configure.ac (USE_WIN32API): Don't define.
10680 (WIN32LIBS): Use WIN32APILIBS.
10681 * configure: Rebuild.
10682
10683 2020-01-14 Tom Tromey <tom@tromey.com>
10684
10685 * configure: Rebuild.
10686 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10687
10688 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10689
10690 * skip.c (skip_function_command): Make skip w/o arguments use the
10691 name of the inlined function if pc is inside any inlined function.
10692
10693 2020-01-14 Luis Machado <luis.machado@linaro.org>
10694
10695 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10696 * infrun.c (resume_1): Likewise.
10697 (handle_inferior_event): Remove stale comment.
10698 * linux-nat.c (linux_nat_target::resume): Update comments.
10699 (save_stop_reason): Likewise.
10700 (linux_nat_filter_event): Likewise.
10701 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10702
10703 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * elfread.c (record_minimal_symbol): Set section index to 0 for
10706 non-allocatable sections.
10707
10708
10709 2020-01-13 Ali Tamur <tamur@google.com>
10710
10711 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10712 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10713 to gdb::optional. Update comments.
10714 (dwo_file): Update comments.
10715 (read_attribute): Update API to take an additional out parameter,
10716 need_reprocess. This is used to mark attributes that need other
10717 attributes (e.g. str_offsets_base) for correct computation which may not
10718 have been read yet.
10719 (read_attribute_reprocess): New function declaration.
10720 (read_addr_index): Likewise.
10721 (read_dwo_str_index): Likewise.
10722 (read_stub_str_index): Likewise.
10723 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10724 (lookup_addr_base): New function definition.
10725 (lookup_ranges_base): Likewise.
10726 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10727 lookup_ranges_base.
10728 (init_cutu_and_read_dies): Update comments.
10729 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10730 unit. This is used to inherit parent's str_offsets_base and addr_base.
10731 Update comments.
10732 (init_cutu_and_read_dies_simple): Reflect API changes.
10733 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10734 (create_cus_hash_table): Change API to take parent compile unit.
10735 Reflect API changes.
10736 (open_and_init_dwo_file): Reflect API changes.
10737 (dwarf2_get_pc_bounds): Update comments.
10738 (dwarf2_record_block_ranges): Likewise.
10739 (read_full_die_1): Change implementation to reprocess attributes that
10740 need str_offsets_base and addr_base.
10741 (partial_die_info::read): Likewise.
10742 (read_attribute_reprocess): New function definition.
10743 (read_attribute_value): Change API to take an additional out parameter,
10744 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10745 when a non-dwo compile unit has index based attributes.
10746 (read_attribute): Reflect API changes.
10747 (read_addr_index_1): Reflect API changes. Update comments.
10748 (dwarf2_read_addr_index_data): Reflect API changes.
10749 (dwarf2_read_addr_index): Likewise.
10750 (read_str_index): Change API and implementation. This becomes a helper
10751 to be used by the new string index related methods. Update error
10752 message and comments.
10753 (read_dwo_str_index): New function definition.
10754 (read_stub_str_index): Likewise.
10755 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10756 * symfile.h (dwarf2_debug_sections): Likewise.
10757 * xcoffread.c (dwarf2_debug_sections): Likewise.
10758
10759 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10760
10761 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10762 core_reg_sect type to gdb_byte *.
10763 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10764 * cris-tdep.c (fetch_core_registers): Likewise.
10765 * corelow.c (core_target::get_core_register_section): Change
10766 type of `contents` to gdb::byte_vector.
10767
10768 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * tui/tui-wingeneral.c (box_win): Position the title in the center
10771 of the border.
10772
10773 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10774
10775 * corelow.c (core_target::get_core_register_section): Use
10776 std::vector instead of alloca.
10777
10778 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10779
10780 * warning.m4: Add -Wmissing-declarations to build_warnings.
10781 * configure: Re-generate.
10782
10783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10784
10785 * python/python.c (init__gdb_module): Add declaration.
10786
10787 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10788
10789 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10790 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10791 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10792 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10793 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10794 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10795 * ada-exp.y (_initialize_ada_exp): Add declaration.
10796 * ada-lang.c (_initialize_ada_language): Add declaration.
10797 * ada-tasks.c (_initialize_tasks): Add declaration.
10798 * agent.c (_initialize_agent): Add declaration.
10799 * aix-thread.c (_initialize_aix_thread): Add declaration.
10800 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10801 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10802 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10803 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10804 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10805 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10806 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10807 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10808 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10809 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10810 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10811 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10812 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10813 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10814 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10815 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10816 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10817 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10818 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10819 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10820 * annotate.c (_initialize_annotate): Add declaration.
10821 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10822 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10823 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10824 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10825 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10826 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10827 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10828 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10829 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10830 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10831 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10832 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10833 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10834 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10835 * auto-load.c (_initialize_auto_load): Add declaration.
10836 * auxv.c (_initialize_auxv): Add declaration.
10837 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10838 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10839 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10840 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10841 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10842 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10843 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10844 * breakpoint.c (_initialize_breakpoint): Add declaration.
10845 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10846 * btrace.c (_initialize_btrace): Add declaration.
10847 * charset.c (_initialize_charset): Add declaration.
10848 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10849 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10850 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10851 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10852 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10853 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10854 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10855 * coffread.c (_initialize_coffread): Add declaration.
10856 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10857 * compile/compile.c (_initialize_compile): Add declaration.
10858 * complaints.c (_initialize_complaints): Add declaration.
10859 * completer.c (_initialize_completer): Add declaration.
10860 * copying.c (_initialize_copying): Add declaration.
10861 * corefile.c (_initialize_core): Add declaration.
10862 * corelow.c (_initialize_corelow): Add declaration.
10863 * cp-abi.c (_initialize_cp_abi): Add declaration.
10864 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10865 * cp-support.c (_initialize_cp_support): Add declaration.
10866 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10867 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10868 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10869 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10870 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10871 * ctfread.c (_initialize_ctfread): Add declaration.
10872 * d-lang.c (_initialize_d_language): Add declaration.
10873 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10874 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10875 * dbxread.c (_initialize_dbxread): Add declaration.
10876 * dcache.c (_initialize_dcache): Add declaration.
10877 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10878 * disasm.c (_initialize_disasm): Add declaration.
10879 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10880 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10881 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10882 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10883 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10884 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10885 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10886 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10887 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10888 * elfread.c (_initialize_elfread): Add declaration.
10889 * exec.c (_initialize_exec): Add declaration.
10890 * extension.c (_initialize_extension): Add declaration.
10891 * f-lang.c (_initialize_f_language): Add declaration.
10892 * f-valprint.c (_initialize_f_valprint): Add declaration.
10893 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10894 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10895 * filesystem.c (_initialize_filesystem): Add declaration.
10896 * findcmd.c (_initialize_mem_search): Add declaration.
10897 * findvar.c (_initialize_findvar): Add declaration.
10898 * fork-child.c (_initialize_fork_child): Add declaration.
10899 * frame-base.c (_initialize_frame_base): Add declaration.
10900 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10901 * frame.c (_initialize_frame): Add declaration.
10902 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10903 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10904 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10905 * gcore.c (_initialize_gcore): Add declaration.
10906 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10907 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10908 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10909 * gdbarch.c (_initialize_gdbarch): Add declaration.
10910 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10911 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10912 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10913 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10914 * go-lang.c (_initialize_go_language): Add declaration.
10915 * go32-nat.c (_initialize_go32_nat): Add declaration.
10916 * guile/guile.c (_initialize_guile): Add declaration.
10917 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10918 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10919 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10920 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10921 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10922 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10923 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10924 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10925 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10926 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10927 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10928 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10929 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10930 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10931 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10932 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10933 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10934 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10935 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10936 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10937 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10938 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10939 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10940 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10941 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10942 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10943 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10944 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10945 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10946 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10947 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10948 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10949 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10950 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10951 * infcall.c (_initialize_infcall): Add declaration.
10952 * infcmd.c (_initialize_infcmd): Add declaration.
10953 * inflow.c (_initialize_inflow): Add declaration.
10954 * infrun.c (_initialize_infrun): Add declaration.
10955 * interps.c (_initialize_interpreter): Add declaration.
10956 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10957 * jit.c (_initialize_jit): Add declaration.
10958 * language.c (_initialize_language): Add declaration.
10959 * linux-fork.c (_initialize_linux_fork): Add declaration.
10960 * linux-nat.c (_initialize_linux_nat): Add declaration.
10961 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10962 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10963 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10964 * m2-lang.c (_initialize_m2_language): Add declaration.
10965 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10966 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10967 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10968 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10969 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10970 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10971 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10972 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10973 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10974 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10975 * machoread.c (_initialize_machoread): Add declaration.
10976 * macrocmd.c (_initialize_macrocmd): Add declaration.
10977 * macroscope.c (_initialize_macroscope): Add declaration.
10978 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10979 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10980 * maint.c (_initialize_maint_cmds): Add declaration.
10981 * mdebugread.c (_initialize_mdebugread): Add declaration.
10982 * memattr.c (_initialize_mem): Add declaration.
10983 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10984 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10985 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10986 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10987 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10988 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10989 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10990 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10991 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10992 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10993 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10994 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10995 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10996 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10997 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10998 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10999 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11000 * mipsread.c (_initialize_mipsread): Add declaration.
11001 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11002 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11003 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11004 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11005 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11006 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11007 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11008 * nto-procfs.c (_initialize_procfs): Add declaration.
11009 * objc-lang.c (_initialize_objc_language): Add declaration.
11010 * observable.c (_initialize_observer): Add declaration.
11011 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11012 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11013 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11014 * osabi.c (_initialize_gdb_osabi): Add declaration.
11015 * osdata.c (_initialize_osdata): Add declaration.
11016 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11017 * parse.c (_initialize_parse): Add declaration.
11018 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11019 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11020 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11021 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11022 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11023 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11024 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11025 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11026 * printcmd.c (_initialize_printcmd): Add declaration.
11027 * probe.c (_initialize_probe): Add declaration.
11028 * proc-api.c (_initialize_proc_api): Add declaration.
11029 * proc-events.c (_initialize_proc_events): Add declaration.
11030 * proc-service.c (_initialize_proc_service): Add declaration.
11031 * procfs.c (_initialize_procfs): Add declaration.
11032 * producer.c (_initialize_producer): Add declaration.
11033 * psymtab.c (_initialize_psymtab): Add declaration.
11034 * python/python.c (_initialize_python): Add declaration.
11035 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11036 * record-btrace.c (_initialize_record_btrace): Add declaration.
11037 * record-full.c (_initialize_record_full): Add declaration.
11038 * record.c (_initialize_record): Add declaration.
11039 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11040 * regcache.c (_initialize_regcache): Add declaration.
11041 * reggroups.c (_initialize_reggroup): Add declaration.
11042 * remote-notif.c (_initialize_notif): Add declaration.
11043 * remote-sim.c (_initialize_remote_sim): Add declaration.
11044 * remote.c (_initialize_remote): Add declaration.
11045 * reverse.c (_initialize_reverse): Add declaration.
11046 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11047 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11048 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11049 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11050 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11051 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11052 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11053 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11054 Add declaration.
11055 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11056 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11057 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11058 * rust-exp.y (_initialize_rust_exp): Add declaration.
11059 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11060 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11061 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11062 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11063 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11064 * score-tdep.c (_initialize_score_tdep): Add declaration.
11065 * ser-go32.c (_initialize_ser_dos): Add declaration.
11066 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11067 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11068 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11069 * ser-uds.c (_initialize_ser_socket): Add declaration.
11070 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11071 * serial.c (_initialize_serial): Add declaration.
11072 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11073 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11074 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11075 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11076 * skip.c (_initialize_step_skip): Add declaration.
11077 * sol-thread.c (_initialize_sol_thread): Add declaration.
11078 * solib-aix.c (_initialize_solib_aix): Add declaration.
11079 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11080 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11081 * solib-frv.c (_initialize_frv_solib): Add declaration.
11082 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11083 * solib-target.c (_initialize_solib_target): Add declaration.
11084 * solib.c (_initialize_solib): Add declaration.
11085 * source-cache.c (_initialize_source_cache): Add declaration.
11086 * source.c (_initialize_source): Add declaration.
11087 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11088 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11089 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11090 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11091 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11092 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11093 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11094 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11095 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11096 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11097 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11098 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11099 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11100 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11101 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11102 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11103 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11104 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11105 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11106 * stabsread.c (_initialize_stabsread): Add declaration.
11107 * stack.c (_initialize_stack): Add declaration.
11108 * stap-probe.c (_initialize_stap_probe): Add declaration.
11109 * std-regs.c (_initialize_frame_reg): Add declaration.
11110 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11111 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11112 * symfile.c (_initialize_symfile): Add declaration.
11113 * symmisc.c (_initialize_symmisc): Add declaration.
11114 * symtab.c (_initialize_symtab): Add declaration.
11115 * target.c (_initialize_target): Add declaration.
11116 * target-connection.c (_initialize_target_connection): Add
11117 declaration.
11118 * target-dcache.c (_initialize_target_dcache): Add declaration.
11119 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11120 * thread.c (_initialize_thread): Add declaration.
11121 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11122 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11123 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11124 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11125 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11126 * tracectf.c (_initialize_ctf): Add declaration.
11127 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11128 * tracefile.c (_initialize_tracefile): Add declaration.
11129 * tracepoint.c (_initialize_tracepoint): Add declaration.
11130 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11131 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11132 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11133 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11134 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11135 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11136 * tui/tui.c (_initialize_tui): Add declaration.
11137 * typeprint.c (_initialize_typeprint): Add declaration.
11138 * ui-style.c (_initialize_ui_style): Add declaration.
11139 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11140 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11141 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11142 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11143 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11144 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11145 * unittests/filtered_iterator-selftests.c
11146 (_initialize_filtered_iterator_selftests): Add declaration.
11147 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11148 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11149 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11150 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11151 * unittests/main-thread-selftests.c
11152 (_initialize_main_thread_selftests): Add declaration.
11153 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11154 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11155 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11156 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11157 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11158 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11159 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11160 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11161 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11162 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11163 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11164 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11165 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11166 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11167 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11168 declaration.
11169 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11170 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11171 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11172 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11173 * user-regs.c (_initialize_user_regs): Add declaration.
11174 * utils.c (_initialize_utils): Add declaration.
11175 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11176 * valops.c (_initialize_valops): Add declaration.
11177 * valprint.c (_initialize_valprint): Add declaration.
11178 * value.c (_initialize_values): Add declaration.
11179 * varobj.c (_initialize_varobj): Add declaration.
11180 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11181 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11182 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11183 * windows-nat.c (_initialize_windows_nat): Add declaration.
11184 (_initialize_check_for_gdb_ini): Add declaration.
11185 (_initialize_loadable): Add declaration.
11186 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11187 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11188 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11189 * xcoffread.c (_initialize_xcoffread): Add declaration.
11190 * xml-support.c (_initialize_xml_support): Add declaration.
11191 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11192 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11193 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11194 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11195
11196 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11197
11198 * regformats/regdat.sh: Generate declaration for init function.
11199
11200 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11201
11202 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11203 up.
11204 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11205 close_one_inferior>: New methods.
11206 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11207 pass down target to find_inferior_pid.
11208 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11209 Pass down target to find_inferior_ptid.
11210 (gdbsim_target::create_inferior): Pass down target to
11211 add_thread_silent.
11212 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11213 target down to find_inferior_ptid and switch_to_thread.
11214 (gdbsim_target::close): Update to call close_one_inferior.
11215 (struct resume_data): Remove.
11216 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11217 directly, rather than through a void pointer.
11218 (gdbsim_target::resume): Update to call resume_one_inferior.
11219
11220 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11221
11222 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11223
11224 2020-01-12 Pedro Alves <palves@redhat.com>
11225
11226 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11227 directly for the current inferior instead of
11228 discard_all_inferiors.
11229 (discard_all_inferiors): Delete.
11230
11231 2020-01-11 Tom Tromey <tom@tromey.com>
11232
11233 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11234 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11235 deprecated_safe_get_selected_frame.
11236
11237 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11238
11239 * inferior.c (print_inferior): Switch inferior before printing it.
11240
11241 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11242 Pedro Alves <palves@redhat.com>
11243
11244 * progspace-and-thread.c (switch_to_program_space_and_thread):
11245 Assert there's an inferior for PSPACE. Use
11246 switch_to_inferior_no_thread to switch the inferior too.
11247 * progspace.c (program_space::~program_space): Call
11248 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11249 (program_space::free_all_objfiles): Don't call clear_symtab_users
11250 here.
11251 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11252
11253 2020-01-10 Pedro Alves <palves@redhat.com>
11254
11255 * NEWS: Mention multi-target debugging, "info connections", and
11256 "add-inferior -no-connection".
11257
11258 2020-01-10 Pedro Alves <palves@redhat.com>
11259
11260 * infrun.c: Include "target-connection.h".
11261 (check_multi_target_resumption): New.
11262 (proceed): Call it.
11263 * target-connection.c (make_target_connection_string): Make
11264 extern.
11265 * target-connection.h (make_target_connection_string): Declare.
11266
11267 2020-01-10 Pedro Alves <palves@redhat.com>
11268
11269 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11270 * inferior.c (uiout_field_connection): New function.
11271 (print_inferior): Add new "connection-id" column.
11272 (add_inferior_command): Show connection number/string of added
11273 inferior.
11274 * process-stratum-target.h
11275 (process_stratum_target::connection_string): New virtual method.
11276 (process_stratum_target::connection_number): New field.
11277 * remote.c (remote_target::connection_string): New override.
11278 * target-connection.c: New file.
11279 * target-connection.h: New file.
11280 * target.c (decref_target): Remove process_stratum targets from
11281 the connection list.
11282 (target_stack::push): Add process_stratum targets to the
11283 connection list.
11284
11285 2020-01-10 Pedro Alves <palves@redhat.com>
11286
11287 Revert:
11288 2016-04-12 Pedro Alves <palves@redhat.com>
11289 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11290 Remove references to name.
11291 * serial.h (struct serial) <name>: Delete.
11292
11293 2020-01-10 Pedro Alves <palves@redhat.com>
11294
11295 * gdbarch-selftests.c (register_to_value_test): Remove "target
11296 already pushed" check.
11297
11298 2020-01-10 Pedro Alves <palves@redhat.com>
11299 John Baldwin <jhb@FreeBSD.org>
11300
11301 * aarch64-linux-nat.c
11302 (aarch64_linux_nat_target::thread_architecture): Adjust.
11303 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11304 (task_command_1): Likewise.
11305 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11306 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11307 (aix_thread_target::store_registers)
11308 (aix_thread_target::thread_alive): Adjust.
11309 * amd64-fbsd-tdep.c: Include "inferior.h".
11310 (amd64fbsd_get_thread_local_address): Pass down target.
11311 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11312 thread's gdbarch instead of target_gdbarch.
11313 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11314 get_last_target_status.
11315 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11316 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11317 inferiors.
11318 (update_inserted_breakpoint_locations): Skip if inferiors with no
11319 execution.
11320 (update_global_location_list): When handling moribund locations,
11321 find representative inferior for location's pspace, and use thread
11322 count of its process_stratum target.
11323 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11324 * bsd-uthread.c (bsd_uthread_target::wait): Use
11325 as_process_stratum_target and adjust thread_change_ptid and
11326 add_thread calls.
11327 (bsd_uthread_target::update_thread_list): Use
11328 as_process_stratum_target and adjust find_thread_ptid,
11329 thread_change_ptid and add_thread calls.
11330 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11331 find_thread_ptid call.
11332 * corelow.c (add_to_thread_list): Adjust add_thread call.
11333 (core_target_open): Adjust add_thread_silent and thread_count
11334 calls.
11335 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11336 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11337 * event-top.c (async_disconnect): Pop targets from all inferiors.
11338 * exec.c (add_target_sections): Push exec target on all inferiors
11339 sharing the program space.
11340 (remove_target_sections): Remove the exec target from all
11341 inferiors sharing the program space.
11342 (exec_on_vfork): New.
11343 * exec.h (exec_on_vfork): Declare.
11344 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11345 Pass it down.
11346 (fbsd_nat_target::update_thread_list): Adjust.
11347 (fbsd_nat_target::resume): Adjust.
11348 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11349 down.
11350 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11351 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11352 get_thread_arch_regcache call.
11353 * fork-child.c (gdb_startup_inferior): Pass target down to
11354 startup_inferior and set_executing.
11355 * gdbthread.h (struct process_stratum_target): Forward declare.
11356 (add_thread, add_thread_silent, add_thread_with_info)
11357 (in_thread_list): Add process_stratum_target parameter.
11358 (find_thread_ptid(inferior*, ptid_t)): New overload.
11359 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11360 parameter.
11361 (all_threads()): Delete overload.
11362 (all_threads, all_non_exited_threads): Add process_stratum_target
11363 parameter.
11364 (all_threads_safe): Use brace initialization.
11365 (thread_count): Add process_stratum_target parameter.
11366 (set_resumed, set_running, set_stop_requested, set_executing)
11367 (threads_are_executing, finish_thread_state): Add
11368 process_stratum_target parameter.
11369 (switch_to_thread): Use is_current_thread.
11370 * i386-fbsd-tdep.c: Include "inferior.h".
11371 (i386fbsd_get_thread_local_address): Pass down target.
11372 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11373 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11374 have_inferiors check.
11375 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11376 (inf_ptrace_target::attach): Adjust.
11377 * infcall.c (run_inferior_call): Adjust.
11378 * infcmd.c (run_command_1): Pass target to
11379 scoped_finish_thread_state.
11380 (proceed_thread_callback): Skip inferiors with no execution.
11381 (continue_command): Rename 'all_threads' local to avoid hiding
11382 'all_threads' function. Adjust get_last_target_status call.
11383 (prepare_one_step): Adjust set_running call.
11384 (signal_command): Use user_visible_resume_target. Compare thread
11385 pointers instead of inferior_ptid.
11386 (info_program_command): Adjust to pass down target.
11387 (attach_command): Mark target's 'thread_executing' flag.
11388 (stop_current_target_threads_ns): New, factored out from ...
11389 (interrupt_target_1): ... this. Switch inferior before making
11390 target calls.
11391 * inferior-iter.h
11392 (struct all_inferiors_iterator, struct all_inferiors_range)
11393 (struct all_inferiors_safe_range)
11394 (struct all_non_exited_inferiors_range): Filter on
11395 process_stratum_target too. Remove explicit.
11396 * inferior.c (inferior::inferior): Push dummy target on target
11397 stack.
11398 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11399 Add process_stratum_target parameter, and pass it down.
11400 (have_live_inferiors): Adjust.
11401 (switch_to_inferior_and_push_target): New.
11402 (add_inferior_command, clone_inferior_command): Handle
11403 "-no-connection" parameter. Use
11404 switch_to_inferior_and_push_target.
11405 (_initialize_inferior): Mention "-no-connection" option in
11406 the help of "add-inferior" and "clone-inferior" commands.
11407 * inferior.h: Include "process-stratum-target.h".
11408 (interrupt_target_1): Use bool.
11409 (struct inferior) <push_target, unpush_target, target_is_pushed,
11410 find_target_beneath, top_target, process_target, target_at,
11411 m_stack>: New.
11412 (discard_all_inferiors): Delete.
11413 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11414 (all_inferiors, all_non_exited_inferiors): Add
11415 process_stratum_target parameter.
11416 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11417 (target_last_proc_target): New global.
11418 (follow_fork_inferior): Push target on new inferior. Pass target
11419 to add_thread_silent. Call exec_on_vfork. Handle target's
11420 reference count.
11421 (follow_fork): Adjust get_last_target_status call. Also consider
11422 target.
11423 (follow_exec): Push target on new inferior.
11424 (struct execution_control_state) <target>: New field.
11425 (user_visible_resume_target): New.
11426 (do_target_resume): Call target_async.
11427 (resume_1): Set target's threads_executing flag. Consider resume
11428 target.
11429 (commit_resume_all_targets): New.
11430 (proceed): Also consider resume target. Skip threads of inferiors
11431 with no execution. Commit resumtion in all targets.
11432 (start_remote): Pass current inferior to wait_for_inferior.
11433 (infrun_thread_stop_requested): Consider target as well. Pass
11434 thread_info pointer to clear_inline_frame_state instead of ptid.
11435 (infrun_thread_thread_exit): Consider target as well.
11436 (random_pending_event_thread): New inferior parameter. Use it.
11437 (do_target_wait): Rename to ...
11438 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11439 down.
11440 (threads_are_resumed_pending_p, do_target_wait): New.
11441 (prepare_for_detach): Adjust calls.
11442 (wait_for_inferior): New inferior parameter. Handle it. Use
11443 do_target_wait_1 instead of do_target_wait.
11444 (fetch_inferior_event): Adjust. Switch to representative
11445 inferior. Pass target down.
11446 (set_last_target_status): Add process_stratum_target parameter.
11447 Save target in global.
11448 (get_last_target_status): Add process_stratum_target parameter and
11449 handle it.
11450 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11451 (context_switch): Check inferior_ptid == null_ptid before calling
11452 inferior_thread().
11453 (get_inferior_stop_soon): Pass down target.
11454 (wait_one): Rename to ...
11455 (poll_one_curr_target): ... this.
11456 (struct wait_one_event): New.
11457 (wait_one): New.
11458 (stop_all_threads): Adjust.
11459 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11460 event's target.
11461 (switch_back_to_stepped_thread): Also consider target.
11462 (print_stop_event): Update.
11463 (normal_stop): Update. Also consider the resume target.
11464 * infrun.h (wait_for_inferior): Remove declaration.
11465 (user_visible_resume_target): New declaration.
11466 (get_last_target_status, set_last_target_status): New
11467 process_stratum_target parameter.
11468 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11469 process_stratum_target parameter, and use it.
11470 (clear_inline_frame_state (thread_info*)): New.
11471 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11472 process_stratum_target parameter.
11473 (clear_inline_frame_state (thread_info*)): Declare.
11474 * linux-fork.c (delete_checkpoint_command): Pass target down to
11475 find_thread_ptid.
11476 (checkpoint_command): Adjust.
11477 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11478 instead of just tweaking inferior_ptid.
11479 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11480 (exit_lwp): Pass target down to find_thread_ptid.
11481 (attach_proc_task_lwp_callback): Pass target down to
11482 add_thread/set_running/set_executing.
11483 (linux_nat_target::attach): Pass target down to
11484 thread_change_ptid.
11485 (get_detach_signal): Pass target down to find_thread_ptid.
11486 Consider last target status's target.
11487 (linux_resume_one_lwp_throw, resume_lwp)
11488 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11489 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11490 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11491 (linux_nat_target::async_wait_fd): New.
11492 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11493 target down.
11494 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11495 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11496 * linux-thread-db.c (struct thread_db_info::process_target): New
11497 field.
11498 (add_thread_db_info): Save target.
11499 (get_thread_db_info): New process_stratum_target parameter. Also
11500 match target.
11501 (delete_thread_db_info): New process_stratum_target parameter.
11502 Also match target.
11503 (thread_from_lwp): Adjust to pass down target.
11504 (thread_db_notice_clone): Pass down target.
11505 (check_thread_db_callback): Pass down target.
11506 (try_thread_db_load_1): Always push the thread_db target.
11507 (try_thread_db_load, record_thread): Pass target down.
11508 (thread_db_target::detach): Pass target down. Always unpush the
11509 thread_db target.
11510 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11511 target down. Always unpush the thread_db target.
11512 (find_new_threads_callback, thread_db_find_new_threads_2)
11513 (thread_db_target::update_thread_list): Pass target down.
11514 (thread_db_target::pid_to_str): Pass current inferior down.
11515 (thread_db_target::get_thread_local_address): Pass target down.
11516 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11517 target down.
11518 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11519 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11520 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11521 (procfs_init_inferior): Rename to ...
11522 (procfs_target::procfs_init_inferior): ... this and adjust.
11523 (procfs_target::create_inferior, procfs_notice_thread)
11524 (procfs_do_thread_registers): Adjust.
11525 * ppc-fbsd-tdep.c: Include "inferior.h".
11526 (ppcfbsd_get_thread_local_address): Pass down target.
11527 * proc-service.c (ps_xfer_memory): Switch current inferior and
11528 program space as well.
11529 (get_ps_regcache): Pass target down.
11530 * process-stratum-target.c
11531 (process_stratum_target::thread_address_space)
11532 (process_stratum_target::thread_architecture): Pass target down.
11533 * process-stratum-target.h
11534 (process_stratum_target::threads_executing): New field.
11535 (as_process_stratum_target): New.
11536 * ravenscar-thread.c
11537 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11538 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11539 down.
11540 * record-btrace.c (record_btrace_target::info_record): Adjust.
11541 (record_btrace_target::record_method)
11542 (record_btrace_target::record_is_replaying)
11543 (record_btrace_target::fetch_registers)
11544 (get_thread_current_frame_id, record_btrace_target::resume)
11545 (record_btrace_target::wait, record_btrace_target::stop): Pass
11546 target down.
11547 * record-full.c (record_full_wait_1): Switch to event thread.
11548 Pass target down.
11549 * regcache.c (regcache::regcache)
11550 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11551 process_stratum_target parameter and handle it.
11552 (current_thread_target): New global.
11553 (get_thread_regcache): Add process_stratum_target parameter and
11554 handle it. Switch inferior before calling target method.
11555 (get_thread_regcache): Pass target down.
11556 (get_thread_regcache_for_ptid): Pass target down.
11557 (registers_changed_ptid): Add process_stratum_target parameter and
11558 handle it.
11559 (registers_changed_thread, registers_changed): Pass target down.
11560 (test_get_thread_arch_aspace_regcache): New.
11561 (current_regcache_test): Define a couple local test_target_ops
11562 instances and use them for testing.
11563 (readwrite_regcache): Pass process_stratum_target parameter.
11564 (cooked_read_test, cooked_write_test): Pass mock_target down.
11565 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11566 (get_thread_arch_aspace_regcache): Add process_stratum_target
11567 parameter.
11568 (regcache::target): New method.
11569 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11570 (regcache::registers_changed_ptid): Add process_stratum_target
11571 parameter.
11572 (regcache::m_target): New field.
11573 (registers_changed_ptid): Add process_stratum_target parameter.
11574 * remote.c (remote_state::supports_vCont_probed): New field.
11575 (remote_target::async_wait_fd): New method.
11576 (remote_unpush_and_throw): Add remote_target parameter.
11577 (get_current_remote_target): Adjust.
11578 (remote_target::remote_add_inferior): Push target.
11579 (remote_target::remote_add_thread)
11580 (remote_target::remote_notice_new_inferior)
11581 (get_remote_thread_info): Pass target down.
11582 (remote_target::update_thread_list): Skip threads of inferiors
11583 bound to other targets. (remote_target::close): Don't discard
11584 inferiors. (remote_target::add_current_inferior_and_thread)
11585 (remote_target::process_initial_stop_replies)
11586 (remote_target::start_remote)
11587 (remote_target::remote_serial_quit_handler): Pass down target.
11588 (remote_target::remote_unpush_target): New remote_target
11589 parameter. Unpush the target from all inferiors.
11590 (remote_target::remote_unpush_and_throw): New remote_target
11591 parameter. Pass it down.
11592 (remote_target::open_1): Check whether the current inferior has
11593 execution instead of checking whether any inferior is live. Pass
11594 target down.
11595 (remote_target::remote_detach_1): Pass down target. Use
11596 remote_unpush_target.
11597 (extended_remote_target::attach): Pass down target.
11598 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11599 (remote_target::append_resumption): Pass down target.
11600 (remote_target::append_pending_thread_resumptions)
11601 (remote_target::remote_resume_with_hc, remote_target::resume)
11602 (remote_target::commit_resume): Pass down target.
11603 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11604 (remote_target::interrupt_query)
11605 (remote_target::remove_new_fork_children)
11606 (remote_target::check_pending_events_prevent_wildcard_vcont)
11607 (remote_target::remote_parse_stop_reply)
11608 (remote_target::process_stop_reply): Pass down target.
11609 (first_remote_resumed_thread): New remote_target parameter. Pass
11610 it down.
11611 (remote_target::wait_as): Pass down target.
11612 (unpush_and_perror): New remote_target parameter. Pass it down.
11613 (remote_target::readchar, remote_target::remote_serial_write)
11614 (remote_target::getpkt_or_notif_sane_1)
11615 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11616 down target.
11617 (remote_target::mourn_inferior): Pass down target. Use
11618 remote_unpush_target.
11619 (remote_target::core_of_thread)
11620 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11621 (remote_target::pid_to_exec_file)
11622 (remote_target::thread_handle_to_thread_info): Pass down target.
11623 (remote_target::async_wait_fd): New.
11624 * riscv-fbsd-tdep.c: Include "inferior.h".
11625 (riscv_fbsd_get_thread_local_address): Pass down target.
11626 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11627 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11628 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11629 Adjust.
11630 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11631 * solib-svr4.c (enable_break): Pass down target.
11632 * spu-multiarch.c (parse_spufs_run): Pass down target.
11633 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11634 * target-delegates.c: Regenerate.
11635 * target.c (g_target_stack): Delete.
11636 (current_top_target): Return the current inferior's top target.
11637 (target_has_execution_1): Refer to the passed-in inferior's top
11638 target.
11639 (target_supports_terminal_ours): Check whether the initial
11640 inferior was already created.
11641 (decref_target): New.
11642 (target_stack::push): Incref/decref the target.
11643 (push_target, push_target, unpush_target): Adjust.
11644 (target_stack::unpush): Defref target.
11645 (target_is_pushed): Return bool. Adjust to refer to the current
11646 inferior's target stack.
11647 (dispose_inferior): Delete, and inline parts ...
11648 (target_preopen): ... here. Only dispose of the current inferior.
11649 (target_detach): Hold strong target reference while detaching.
11650 Pass target down.
11651 (target_thread_name): Add assertion.
11652 (target_resume): Pass down target.
11653 (target_ops::beneath, find_target_at): Adjust to refer to the
11654 current inferior's target stack.
11655 (get_dummy_target): New.
11656 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11657 has a thread running.
11658 (initialize_targets): Rename to ...
11659 (_initialize_target): ... this.
11660 * target.h: Include "gdbsupport/refcounted-object.h".
11661 (struct target_ops): Inherit refcounted_object.
11662 (target_ops::shortname, target_ops::longname): Make const.
11663 (target_ops::async_wait_fd): New method.
11664 (decref_target): Declare.
11665 (struct target_ops_ref_policy): New.
11666 (target_ops_ref): New typedef.
11667 (get_dummy_target): Declare function.
11668 (target_is_pushed): Return bool.
11669 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11670 (all_matching_threads_iterator::all_matching_threads_iterator):
11671 Handle filter target.
11672 * thread-iter.h (struct all_matching_threads_iterator, struct
11673 all_matching_threads_range, class all_non_exited_threads_range):
11674 Filter by target too. Remove explicit.
11675 * thread.c (threads_executing): Delete.
11676 (inferior_thread): Pass down current inferior.
11677 (clear_thread_inferior_resources): Pass down thread pointer
11678 instead of ptid_t.
11679 (add_thread_silent, add_thread_with_info, add_thread): Add
11680 process_stratum_target parameter. Use it for thread and inferior
11681 searches.
11682 (is_current_thread): New.
11683 (thread_info::deletable): Use it.
11684 (find_thread_ptid, thread_count, in_thread_list)
11685 (thread_change_ptid, set_resumed, set_running): New
11686 process_stratum_target parameter. Pass it down.
11687 (set_executing): New process_stratum_target parameter. Pass it
11688 down. Adjust reference to 'threads_executing'.
11689 (threads_are_executing): New process_stratum_target parameter.
11690 Adjust reference to 'threads_executing'.
11691 (set_stop_requested, finish_thread_state): New
11692 process_stratum_target parameter. Pass it down.
11693 (switch_to_thread): Also match inferior.
11694 (switch_to_thread): New process_stratum_target parameter. Pass it
11695 down.
11696 (update_threads_executing): Reimplement.
11697 * top.c (quit_force): Pop targets from all inferior.
11698 (gdb_init): Don't call initialize_targets.
11699 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11700 Declare.
11701 (windows_add_thread, windows_delete_thread): Adjust.
11702 (get_windows_debug_event): Rename to ...
11703 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11704 * tracefile-tfile.c (tfile_target_open): Pass down target.
11705 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11706 Forward declare.
11707 (switch_to_thread): Add process_stratum_target parameter.
11708 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11709 parameter. Use it.
11710 (mi_on_resume): Pass target down.
11711 * nat/fork-inferior.c (startup_inferior): Add
11712 process_stratum_target parameter. Pass it down.
11713 * nat/fork-inferior.h (startup_inferior): Add
11714 process_stratum_target parameter.
11715 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11716
11717 2020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11720 directly. Instead find the first thread in the thread list and
11721 use switch_to_thread.
11722
11723 2020-01-10 Pedro Alves <palves@redhat.com>
11724
11725 * remote.c (remote_target::remote_add_inferior): Don't bind a
11726 process to the current inferior if the current inferior is already
11727 bound to a process.
11728
11729 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11730 Pedro Alves <palves@redhat.com>
11731
11732 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11733 If no process is specified, return null_ptid instead of
11734 inferior_ptid.
11735 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11736 TARGET_WAITKIND_SIGNALLED with no pid.
11737
11738 2020-01-10 Pedro Alves <palves@redhat.com>
11739
11740 * remote.c (first_remote_resumed_thread): New.
11741 (remote_target::wait_as): Use it as default event_ptid instead of
11742 inferior_ptid.
11743
11744 2020-01-10 Pedro Alves <palves@redhat.com>
11745
11746 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11747
11748 2020-01-10 Pedro Alves <palves@redhat.com>
11749
11750 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11751 not -1.
11752
11753 2020-01-10 Pedro Alves <palves@redhat.com>
11754
11755 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11756 ptid to get_last_target_status.
11757 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11758 ptid to get_last_target_status.
11759 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11760 get_last_target_status.
11761 (info_program_command): Don't pass a target_waitstatus to
11762 get_last_target_status.
11763 * infrun.c (init_wait_for_inferior): Use
11764 nullify_last_target_wait_ptid.
11765 (get_last_target_status): Handle nullptr arguments.
11766 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11767 (print_stop_event): Don't pass a ptid to get_last_target_status.
11768 (normal_stop): Don't pass a ptid to get_last_target_status.
11769 * infrun.h (get_last_target_status, set_last_target_status): Move
11770 comments here and update.
11771 (nullify_last_target_wait_ptid): Declare.
11772 * linux-fork.c (fork_load_infrun_state): Remove local extern
11773 declaration of nullify_last_target_wait_ptid.
11774 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11775 to get_last_target_status.
11776
11777 2020-01-10 Pedro Alves <palves@redhat.com>
11778
11779 * gdbthread.h (scoped_restore_current_thread)
11780 <dont_restore, restore, m_dont_restore>: Declare.
11781 * thread.c (thread_alive): Add assertion. Return bool.
11782 (switch_to_thread_if_alive): New.
11783 (prune_threads): Switch inferior/thread.
11784 (print_thread_info_1): Switch thread before calling target methods.
11785 (scoped_restore_current_thread::restore): New, factored out from
11786 ...
11787 (scoped_restore_current_thread::~scoped_restore_current_thread):
11788 ... this.
11789 (scoped_restore_current_thread::scoped_restore_current_thread):
11790 Add assertion.
11791 (thread_apply_all_command, thread_select): Use
11792 switch_to_thread_if_alive.
11793 * infrun.c (proceed, restart_threads, handle_signal_stop)
11794 (switch_back_to_stepped_thread): Switch current thread before
11795 calling target methods.
11796
11797 2020-01-10 Pedro Alves <palves@redhat.com>
11798
11799 * inferior.c (switch_to_inferior_no_thread): New function,
11800 factored out from ...
11801 (inferior_command): ... here.
11802 * inferior.h (switch_to_inferior_no_thread): Declare.
11803 * mi/mi-main.c (run_one_inferior): Use
11804 switch_to_inferior_no_thread.
11805
11806 2020-01-10 Pedro Alves <palves@redhat.com>
11807
11808 * infcmd.c (kill_command): Remove dead code.
11809
11810 2020-01-10 Pedro Alves <palves@redhat.com>
11811
11812 * remote.c (remote_target::mourn_inferior): No longer check
11813 whether the target is running.
11814
11815 2020-01-10 Pedro Alves <palves@redhat.com>
11816
11817 * corelow.c (core_target::has_execution): Change parameter type to
11818 inferior pointer.
11819 * inferior.c (number_of_live_inferiors): Use
11820 inferior::has_execution instead of target_has_execution_1.
11821 * inferior.h (inferior::has_execution): New.
11822 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11823 inferior::has_execution instead of target_has_execution_1.
11824 * process-stratum-target.c
11825 (process_stratum_target::has_execution): Change parameter type to
11826 inferior pointer. Check the inferior's PID instead of
11827 inferior_ptid.
11828 * process-stratum-target.h
11829 (process_stratum_target::has_execution): Change parameter type to
11830 inferior pointer.
11831 * record-full.c (record_full_core_target::has_execution): Change
11832 parameter type to inferior pointer.
11833 * target.c (target_has_execution_1): Change parameter type to
11834 inferior pointer.
11835 (target_has_execution_current): Adjust.
11836 * target.h (target_ops::has_execution): Change parameter type to
11837 inferior pointer.
11838 (target_has_execution_1): Change parameter type to inferior
11839 pointer. Change return type to bool.
11840 * tracefile.h (tracefile_target::has_execution): Change parameter
11841 type to inferior pointer.
11842
11843 2020-01-10 Pedro Alves <palves@redhat.com>
11844
11845 * exceptions.c (print_flush): Remove current_top_target() check.
11846
11847 2020-01-10 Pedro Alves <palves@redhat.com>
11848
11849 * remote.c (show_remote_exec_file): Show the current inferior's
11850 exec-file instead of the command variable's value.
11851
11852 2020-01-10 Pedro Alves <palves@redhat.com>
11853
11854 * record-full.c (record_full_resume_ptid): New global.
11855 (record_full_target::resume): Set it.
11856 (record_full_wait_1): Use record_full_resume_ptid instead of
11857 inferior_ptid.
11858
11859 2020-01-10 Pedro Alves <palves@redhat.com>
11860
11861 * gdbthread.h (scoped_restore_current_thread)
11862 <dont_restore, restore, m_dont_restore>: Declare.
11863 * thread.c (thread_alive): Add assertion. Return bool.
11864 (switch_to_thread_if_alive): New.
11865 (prune_threads): Switch inferior/thread.
11866 (print_thread_info_1): Switch thread before calling target methods.
11867 (scoped_restore_current_thread::restore): New, factored out from
11868 ...
11869 (scoped_restore_current_thread::~scoped_restore_current_thread):
11870 ... this.
11871 (scoped_restore_current_thread::scoped_restore_current_thread):
11872 Add assertion.
11873 (thread_apply_all_command, thread_select): Use
11874 switch_to_thread_if_alive.
11875
11876 2020-01-10 George Barrett <bob@bob131.so>
11877
11878 * stap-probe.c (stap_modify_semaphore): Don't check for null
11879 semaphores.
11880 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11881 for null semaphores.
11882
11883 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11884
11885 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11886 all source windows, and maintain horizontal scroll status while
11887 doing so.
11888
11889 2020-01-09 Tom Tromey <tom@tromey.com>
11890
11891 PR tui/18932:
11892 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11893 update_source_window, not print_source_lines.
11894
11895 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11896
11897 * tui/tui.c (tui_enable): Register tui hooks after calling
11898 tui_display_main.
11899
11900 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11901
11902 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11903
11904 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11905
11906 * thread.c (print_thread_info_1): Fix indentation.
11907
11908 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11909
11910 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11911 unique_xmalloc_ptr outside the if to always free the demangled name.
11912
11913 2020-01-08 Tom Tromey <tromey@adacore.com>
11914
11915 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11916 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11918 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11919 Remove.
11920 (section_offsets): New typedef.
11921 * symtab.c (fixup_section, get_msymbol_address): Update.
11922 * symmisc.c (dump_msymbols): Update.
11923 * symfile.h (relative_addr_info_to_section_offsets)
11924 (symfile_map_offsets_to_segments): Update.
11925 * symfile.c (build_section_addr_info_from_objfile)
11926 (init_objfile_sect_indices): Update.
11927 (struct place_section_arg): Change type of "offsets".
11928 (place_section): Update.
11929 (relative_addr_info_to_section_offsets): Change type of
11930 "section_offsets". Remove "num_sections" parameter.
11931 (default_symfile_offsets, syms_from_objfile_1)
11932 (set_objfile_default_section_offset): Update.
11933 (reread_symbols): No need to preserve section offsets by hand.
11934 (symfile_map_offsets_to_segments): Change type of "offsets".
11935 * stap-probe.c (relocate_address): Update.
11936 * stabsread.h (process_one_symbol): Update.
11937 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11938 (solib_target_relocate_section_addresses): Update.
11939 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11940 Update.
11941 * solib-frv.c (frv_relocate_main_executable): Update.
11942 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11943 * solib-aix.c (solib_aix_get_section_offsets): Change return
11944 type.
11945 (solib_aix_solib_create_inferior_hook): Update.
11946 * remote.c (remote_target::get_offsets): Update.
11947 * psymtab.c (find_pc_sect_psymtab): Update.
11948 * psympriv.h (struct partial_symbol) <address, text_low,
11949 text_high>: Update.
11950 * objfiles.h (obj_section_offset): Update.
11951 (struct objfile) <section_offsets>: Change type.
11952 <num_sections>: Remove.
11953 (objfile_relocate): Update.
11954 * objfiles.c (entry_point_address_query): Update
11955 (relocate_one_symbol): Change type of "section_offsets".
11956 (objfile_relocate1, objfile_relocate1): Change type of
11957 "new_offsets".
11958 (objfile_rebase1): Update.
11959 * mipsread.c (mipscoff_symfile_read): Update.
11960 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11961 parameter.
11962 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11963 (parse_external, psymtab_to_symtab_1): Update.
11964 * machoread.c (macho_symfile_offsets): Update.
11965 * ia64-tdep.c (ia64_find_unwind_table): Update.
11966 * hppa-tdep.c (read_unwind_info): Update.
11967 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11968 * dwarf2read.c (create_addrmap_from_index)
11969 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11970 (process_psymtab_comp_unit_reader, add_partial_symbol)
11971 (add_partial_subprogram, process_full_comp_unit)
11972 (read_file_scope, read_func_scope, read_lexical_block_scope)
11973 (read_call_site_scope, dwarf2_rnglists_process)
11974 (dwarf2_ranges_process, dwarf2_ranges_read)
11975 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11976 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11977 Update.
11978 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11979 Update.
11980 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11981 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11982 (process_one_symbol): Change type of "section_offsets".
11983 * ctfread.c (get_objfile_text_range): Update.
11984 * coffread.c (coff_symtab_read, enter_linenos)
11985 (process_coff_symbol): Update.
11986 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11987 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11988
11989 2020-01-08 Tom Tromey <tromey@adacore.com>
11990
11991 * dwarf2read.c (parse_macro_definition): Use std::string.
11992 (parse_macro_definition): Likewise.
11993
11994 2020-01-08 Tom Tromey <tromey@adacore.com>
11995
11996 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11997 (ATTR_ALLOC_CHUNK): Remove.
11998
11999 2020-01-08 Tom Tromey <tromey@adacore.com>
12000
12001 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12002
12003 2020-01-08 Tom Tromey <tromey@adacore.com>
12004
12005 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12006 (dwarf2_compute_name, open_dwo_file): Likewise.
12007 (process_enumeration_scope): Use std::vector.
12008 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12009 (partial_die_info::fixup, dwarf2_start_subfile)
12010 (guess_full_die_structure_name, dwarf2_name): Likewise.
12011 (determine_prefix): Update.
12012 (guess_full_die_structure_name): Make return type const.
12013 (partial_die_full_name): Return unique_xmalloc_ptr.
12014 (DW_FIELD_ALLOC_CHUNK): Remove.
12015
12016 2020-01-07 Tom Tromey <tromey@adacore.com>
12017
12018 PR build/24937:
12019 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12020
12021 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12022
12023 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12024
12025 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12026
12027 * stack.c (print_frame_info): Move disassemble_next_line code
12028 inside source_print block.
12029
12030 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12031
12032 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12033 gdb/signals.h, as we are now using native signal symbols.
12034
12035 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12036
12037 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12038 overflow by an early check of content vs threshold.
12039 * tui/tui-source.c (tui_source_window::line_is_displayed):
12040 Likewise.
12041
12042 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12043
12044 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12045
12046 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12047
12048 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12049 export table if no section contains it's RVA.
12050
12051 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12052
12053 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12054
12055 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12056
12057 * source.c (print_source_lines_base): Set last_line_listed.
12058
12059 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12060
12061 * tui/tui-disasm.c: Remove trailing spaces.
12062
12063 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12064 Pedro Alves <palves@redhat.com>
12065
12066 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12067 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12068 (windows_gdb_signal_to_target): New function, uses the above
12069 enumeration to convert GDB internal signal codes to equivalent
12070 Windows codes.
12071 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12072 * windows-nat.c: Include "gdb_wait.h".
12073 (get_windows_debug_event): Extract the fatal exception from the
12074 exit status and convert to the equivalent Posix signal number.
12075 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12076 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12077 * gdbsupport/gdb_wait.c: New file, implements
12078 windows_status_to_termsig.
12079 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12080 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12081
12082 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12083
12084 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12085 show_layout.
12086
12087 2020-01-05 Luis Machado <luis.machado@linaro.org>
12088
12089 * aarch64-linux-nat.c
12090 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12091 and bfd_mach_aarch64.
12092
12093 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12094
12095 * ui-file.c (stdio_file::can_emit_style_escape)
12096 (tee_file::can_emit_style_escape): Ensure style is used also on
12097 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12098 to gdb_stdout.
12099 * main.c (set_gdb_data_directory): Use file style to output the
12100 warning that the given pathname is not a directory.
12101 * top.c (show_history_filename, gdb_safe_append_history)
12102 (show_gdb_datadir): Use file style.
12103
12104 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12105
12106 * solib-target.c (struct lm_info_target):
12107 Change offsets to be a unique_xmalloc_ptr.
12108 (solib_target_relocate_section_addresses): Update.
12109
12110 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12111
12112 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12113
12114 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12115
12116 * MAINTAINERS (Write After Approval): Add myself.
12117
12118 2020-01-02 Luis Machado <luis.machado@linaro.org>
12119
12120 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12121 Cell BE architecture.
12122 * target.h (struct target_ops) <thread_architecture>: Likewise.
12123
12124 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12125
12126 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12127
12128 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12129
12130 * MAINTAINERS (Write After Approval): Add myself.
12131
12132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12133
12134 * gdbarch.sh: Update copyright year range of generated files.
12135
12136 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12137
12138 Update copyright year range in all GDB files.
12139
12140 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12141
12142 * copyright.py: Convert to Python 3.
12143
12144 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12145
12146 * copyright.py: Adapt after move of gnulib directory from gdb
12147 directory to toplevel directory.
12148
12149 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12150
12151 * copyright.py (main): Exit if run from the wrong directory.
12152
12153 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12154
12155 * top.c (print_gdb_version): Change copyright year to 2020.
12156
12157 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12158
12159 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12160
12161 For older changes see ChangeLog-2019.
12162 \f
12163 Local Variables:
12164 mode: change-log
12165 left-margin: 8
12166 fill-column: 74
12167 version-control: never
12168 coding: utf-8
12169 End: