[PowerPC] Always clear watchpoint with PTRACE_SET_DEBUGREG
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2
3 PR breakpoints/26385
4 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6
7 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8
9 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
10 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
11 and >= to check return value instead of == -1 and != -1.
12
13 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * utils.h (class gdb_argv) <as_array_view>: New method.
16 * utils.c (gdb_argv_as_array_view_test): New.
17 (_initialize_utils): Register selftest.
18 * maint.c (maintenance_selftest): Use the new method.
19
20 2020-08-13 Kamil Rytarowski <n54@gmx.com>
21
22 * target.h (supports_dumpcore, dumpcore): New
23 function declarations.
24 * target.c (supports_dumpcore, dumpcore): New
25 functions.
26 * target-delegates.c: Rebuild.
27 * gcore.c (gcore_command): Use target_supports_dumpcore ()
28 and target_dumpcore ().
29
30 2020-08-13 Aaron Merey <amerey@redhat.com>
31
32 * debuginfod-support.c: Replace global variables with user_data.
33
34 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * maint.c (maintenance_selftest): Split args and pass array_view
37 to run_tests.
38
39 2020-08-12 Luis Machado <luis.machado@linaro.org>
40
41 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
42 type's length.
43 Use %s and pulongest to print the length.
44
45 2020-08-12 Pedro Alves <palves@redhat.com>
46
47 * NEWS: Move "Multi-target debugging support" item to the
48 "Changes since GDB 9" section.
49
50 2020-08-12 Pedro Alves <palves@redhat.com>
51
52 PR gdb/26336
53 * progspace.c (program_space::remove_objfile): Invalidate the
54 frame cache.
55
56 2020-08-11 Tom de Vries <tdevries@suse.de>
57
58 * MAINTAINERS: Mark ms1 as deleted.
59
60 2020-08-10 Luis Machado <luis.machado@linaro.org>
61
62 PR gdb/26310
63
64 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
65 act accordingly.
66 (aarch64_analyze_prologue_test): Add more unit tests to exercise
67 movz/str/stur/stp skipping behavior.
68
69 2020-08-10 Luis Machado <luis.machado@linaro.org>
70
71 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
72 struct user_sve_header instead of struct sve_context.
73
74 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * read.h (dwarf2_fetch_die_loc_sect_off,
77 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
78 `void *` parameter with function_view.
79 * read.c (dwarf2_fetch_die_loc_sect_off,
80 dwarf2_fetch_die_loc_cu_off): Likewise.
81 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
82 (per_cu_dwarf_call): Adjust.
83 (get_frame_address_in_block_wrapper): Remove.
84 (indirect_synthetic_pointer): Adjust.
85 (get_ax_pc): Remove.
86 (dwarf2_compile_expr_to_ax): Adjust.
87
88 2020-08-08 Tom de Vries <tdevries@suse.de>
89
90 PR build/26344
91 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
92 constructor.
93 * regcache.c (get_thread_arch_aspace_regcache): Same.
94
95 2020-08-07 Tom Tromey <tromey@adacore.com>
96
97 * ravenscar-thread.c
98 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
99 New method.
100 (ravenscar_thread_target::wait): Check
101 runtime_initialized.
102 (ravenscar_thread_target::prepare_to_store)
103 (ravenscar_thread_target::stopped_by_sw_breakpoint)
104 (ravenscar_thread_target::stopped_by_hw_breakpoint)
105 (ravenscar_thread_target::stopped_by_watchpoint)
106 (ravenscar_thread_target::stopped_data_address)
107 (ravenscar_thread_target::core_of_thread): Use
108 scoped_restore_current_thread and
109 set_base_thread_from_ravenscar_task.
110
111 2020-08-07 Tom Tromey <tromey@adacore.com>
112
113 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
114
115 2020-08-07 Tom Tromey <tromey@adacore.com>
116
117 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
118 update_inferior_ptid before update_thread_list.
119 (temporarily_change_regcache_ptid): New class.
120 (ravenscar_thread_target::fetch_registers)
121 (ravenscar_thread_target::store_registers)
122 (ravenscar_thread_target::prepare_to_store): Use base thread when
123 forwarding operation.
124
125 2020-08-07 Tom Tromey <tromey@adacore.com>
126
127 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
128 "is_pid" case.
129
130 2020-08-07 Tom Tromey <tromey@adacore.com>
131
132 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
133 New methods.
134 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
135 first.
136 (ravenscar_thread_target::add_thread): Rename from
137 ravenscar_add_thread.
138 (ravenscar_thread_target::update_thread_list): Use a lambda.
139 (ravenscar_thread_target::xfer_partial): New method.
140
141 2020-08-07 Tom Tromey <tromey@adacore.com>
142
143 * ada-lang.h (ada_task_list_iterator_ftype): Now a
144 gdb::function_view.
145 (iterate_over_live_ada_tasks): Change type of argument.
146 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
147 of argument.
148
149 2020-08-07 Tom Tromey <tromey@adacore.com>
150
151 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
152 Remove.
153 (ravenscar_thread_target::extra_thread_info): Remove.
154 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
155 defer to target beneath for non-Ravenscar threads.
156
157 2020-08-07 Tom Tromey <tromey@adacore.com>
158
159 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
160 get_base_thread_from_ravenscar_task>: Now methods.
161 <m_cpu_map>: New member.
162 (ravenscar_thread_target::get_thread_base_cpu): Rename from
163 ravenscar_get_thread_base_cpu. Check m_cpu_map.
164 (ravenscar_thread_target::task_is_currently_active): Update.
165 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
166 Now a method.
167 (ravenscar_thread_target::add_active_thread): Put initial thread
168 into the m_cpu_map.
169
170 2020-08-07 Tom Tromey <tromey@adacore.com>
171
172 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
173 event_ptid.
174
175 2020-08-07 Tom Tromey <tromey@adacore.com>
176
177 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
178 runtime_initialized.
179
180 2020-08-07 Tom Tromey <tromey@adacore.com>
181
182 * ravenscar-thread.c (ravenscar_thread_target): Don't call
183 add_active_thread.
184 (ravenscar_thread_target::add_active_thread): Now public.
185 (ravenscar_inferior_created): Call add_active_thread after pushing
186 the target.
187
188 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * regcache.c (ptid_regcache_map): New type.
191 (target_ptid_regcache_map): New type.
192 (regcaches): Change type to target_ptid_regcache_map.
193 (get_thread_arch_aspace_regcache): Update to regcaches' new
194 type.
195 (regcache_thread_ptid_changed): Likewise.
196 (registers_changed_ptid): Likewise.
197 (regcaches_size): Likewise.
198 (regcaches_test): Update.
199 (regcache_thread_ptid_changed): Update.
200 * regcache.h (regcache_up): New type.
201 * gdbsupport/ptid.h (hash_ptid): New struct.
202
203 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
204
205 * observable.h (thread_ptid_changed): Add parameter
206 `process_stratum_target *`.
207 * infrun.c (infrun_thread_ptid_changed): Add parameter
208 `process_stratum_target *` and use it.
209 (selftests): New namespace.
210 (infrun_thread_ptid_changed): New function.
211 (_initialize_infrun): Register selftest.
212 * regcache.c (regcache_thread_ptid_changed): Add parameter
213 `process_stratum_target *` and use it.
214 (regcache_thread_ptid_changed): New function.
215 (_initialize_regcache): Register selftest.
216 * thread.c (thread_change_ptid): Pass target to
217 thread_ptid_changed observable.
218
219 2020-08-06 Caroline Tice <cmtice@google.com>
220
221 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
222 (struct dwp_sections): Update field comments. Add loclists and
223 rnglists fields.
224 (struct virtual_v2_dwo_sections): Rename struct to
225 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
226 size & offset fields for loclists and rnglists.
227 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
228 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
229 skipping dummy type units.
230 (create_dwp_hash_table): Update the large comment above the function to
231 discuss Version 5 DWP files as well, with references. Update all the
232 version checks in the function to check for version 5 as well. Add new
233 section at the end to create dwp hash table for version 5.
234 (create_dwp_v2_section): Rename function to
235 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
236 Add V5 to error message text.
237 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
238 into calls to create_dwp_v2_or_v5_section.
239 (create_dwo_unit_in_dwp_v5): New function.
240 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
241 check for version2; add else clause to handle version 5.
242 (open_and_init_dwo_file): Add code to check dwarf version & only call
243 create_debug_types_hash_table (with sections.types) if version is not 5;
244 else call create_debug_type_hash_table, with sections.info.
245 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
246 version 5.
247 (dwarf2_locate_v5_dwp_sections): New function.
248 (open_and_init_dwp_file): Add else-if clause for version 5 to call
249 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
250
251 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
252
253 * regcache.h (class regcache): Remove friend
254 registers_changed_ptid.
255 <regcache_thread_ptid_changed>: Remove.
256 <regcaches>: Remove.
257 * regcache.c (regcache::regcaches): Rename to...
258 (regcaches): ... this. Make static.
259 (get_thread_arch_aspace_regcache): Update.
260 (regcache::regcache_thread_ptid_changed): Rename to...
261 (regcache_thread_ptid_changed): ... this. Update.
262 (class regcache_access): Remove.
263 (regcaches_test): Update.
264 (_initialize_regcache): Update.
265 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
266 <forward_list>.
267
268 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
269
270 * regcache.h (class regcache) <current_regcache>: Rename to...
271 <regcaches>: ... this. Move doc here.
272 * regcache.c (regcache::current_regcache) Rename to...
273 (regcache::regcaches): ... this. Move doc to header.
274 (get_thread_arch_aspace_regcache): Update.
275 (regcache::regcache_thread_ptid_changed): Update.
276 (registers_changed_ptid): Update.
277 (class regcache_access) <current_regcache_size>: Rename to...
278 <regcaches_size>: ... this.
279 (current_regcache_test): Rename to...
280 (regcaches_test): ... this.
281 (_initialize_regcache): Update.
282
283 2020-08-06 Victor Collod <vcollod@nvidia.com>
284
285 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
286
287 2020-08-05 Kevin Buettner <kevinb@redhat.com>
288
289 * corelow.c (core_target::build_file_mappings): Don't output
290 null pathname in warning.
291
292 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
295 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
296 gdb.dwarf2/dw2-single-line-discriminators.exp,
297 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
298
299 2020-08-05 Tom Tromey <tromey@adacore.com>
300
301 PR rust/26197:
302 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
303 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
304 Fix off-by-one and type size errors in ordinary case.
305
306 2020-08-05 Tom de Vries <tdevries@suse.de>
307
308 * gdbtypes.c (type_not_allocated, type_not_associated): Use
309 "prop->const_val () == 0" instead of "prop->const_val () != 0".
310
311 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
312
313 * frame.h (frame_id_p): Return bool.
314 (frame_id_artificial_p): Return bool.
315 (frame_id_eq): Return bool.
316 (has_stack_frames): Return bool.
317 (get_selected_frame): Fix typo in comment.
318 (get_frame_pc_if_available): Return bool.
319 (get_frame_address_in_block_if_available): Return bool.
320 (get_frame_func_if_available): Return bool.
321 (read_frame_register_unsigned): Return bool.
322 (get_frame_register_bytes): Return bool.
323 (safe_frame_unwind_memory): Return bool.
324 (deprecated_frame_register_read): Return bool.
325 (frame_unwinder_is): Return bool.
326 * frame.c (struct frame_info) <prev_arch::p>: Change type to
327 bool.
328 <this_id::p>: Likewise.
329 <prev_p>: Likewise.
330 (frame_stash_add): Return bool.
331 (get_frame_id): Use bool.
332 (frame_id_build_special) Use bool.
333 (frame_id_build_unavailable_stack): Use bool.
334 (frame_id_build): Use bool.
335 (frame_id_p): Return bool, use true/false instead of 1/0.
336 (frame_id_artificial_p): Likewise.
337 (frame_id_eq): Likewise.
338 (frame_id_inner): Likewise.
339 (get_frame_func_if_available): Likewise.
340 (read_frame_register_unsigned): Likewise.
341 (deprecated_frame_register_read): Likewise.
342 (get_frame_register_bytes): Likewise.
343 (has_stack_frames): Likewise.
344 (inside_main_func): Likewise.
345 (inside_entry_func): Likewise.
346 (get_frame_pc_if_available): Likewise.
347 (get_frame_address_in_block_if_available): Likewise.
348 (frame_unwinder_is): Likewise.
349 (safe_frame_unwind_memory): Likewise.
350 (frame_unwind_arch): Likewise.
351
352 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
353
354 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
355 type to cached_copy_status.
356 (fprintf_frame): Adjust.
357 (get_frame_func_if_available): Adjust.
358 (frame_cleanup_after_sniffer): Adjust.
359
360 2020-08-04 Mark Wielaard <mark@klomp.org>
361
362 * MAINTAINERS (Write After Approval): Update email address.
363
364 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
367 dynamic_prop::const_val.
368
369 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
372 dynamic_prop::kind.
373
374 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
377
378 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
379
380 * configure.tgt: Set gdb_sim for bpf-*-* targets.
381
382 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
383 Jose E. Marchesi <jose.marchesi@oracle.com>
384
385 * configure.tgt: Add entry for bpf-*-*.
386 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
387 (ALLDEPFILES): Add bpf-tdep.c.
388 * bpf-tdep.c: New file.
389 * MAINTAINERS: Add bpf target and maintainer.
390 * NEWS: Mention the support for the new target.
391
392 2020-08-04 Tom de Vries <tdevries@suse.de>
393
394 PR symtab/23270
395 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
396 Error.
397
398 2020-08-03 John Baldwin <jhb@FreeBSD.org>
399
400 * syscalls/freebsd.xml: Regenerate.
401
402 2020-08-03 John Baldwin <jhb@FreeBSD.org>
403
404 * syscalls/update-freebsd.sh: Fix usage and year range.
405
406 2020-08-03 Tom de Vries <tdevries@suse.de>
407
408 PR symtab/26333
409 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
410 DW_LNE_lo_user/DW_LNE_hi_user range.
411
412 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
413
414 PR ada/26318
415 * ada-lang.c (ada_modulus): Return 0 if property is not of const
416 kind.
417
418 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
419
420 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
421
422 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
423
424 * breakpoint.c (set_breakpoint_condition): Update the condition
425 expressions after checking that the input condition string parses
426 successfully and does not contain junk at the end.
427
428 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
429
430 * breakpoint.c (set_breakpoint_condition): Update the
431 condition string after parsing the new condition successfully.
432
433 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
434
435 * proc-api.c (_STRUCTURED_PROC): Don't define.
436 * proc-events.c: Likewise.
437 * proc-flags.c: Likewise.
438 * proc-why.c: Likewise.
439 * procfs.c: Likewise.
440
441 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
442 * configure, config.in: Regenerate.
443
444 2020-07-30 Tom de Vries <tdevries@suse.de>
445
446 PR build/26320
447 * ui-style.h (struct ui_file_style::color): Wrap m_value and
448 m_red/m_green/m_blue in a union.
449
450 2020-07-29 Tom de Vries <tdevries@suse.de>
451
452 PR tdep/26280
453 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
454
455 2020-07-28 Tom Tromey <tromey@adacore.com>
456
457 PR symtab/26270:
458 * symtab.h (find_pc_partial_function_sym): Declare.
459 * cli/cli-cmds.c (disassemble_command): Use
460 find_pc_partial_function_sym. Check asm_demangle.
461 * blockframe.c (cache_pc_function_sym): New global.
462 (cache_pc_function_name): Remove.
463 (clear_pc_function_cache): Update.
464 (find_pc_partial_function_sym): New function, from
465 find_pc_partial_function.
466 (find_pc_partial_function): Rewrite using
467 find_pc_partial_function_sym.
468
469 2020-07-28 Tom Tromey <tromey@adacore.com>
470
471 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
472 help. Add usage.
473
474 2020-07-28 Tom Tromey <tromey@adacore.com>
475
476 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
477 <DW_OP_GNU_variable_value>: Cast to address type.
478
479 2020-07-28 Kamil Rytarowski <n54@gmx.com>
480
481 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
482 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
483 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
484 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
485 (nbsd_get_siginfo_type): New.
486 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
487 (_initialize_nbsd_tdep): New.
488
489 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
490
491 PR binutils/26301
492 * configure: Regenerated.
493
494 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
495
496 PR binutils/26301
497 * configure: Regenerated.
498
499 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
500
501 * python/py-frame.c: Remove 'user-regs.h' include.
502 (frapy_read_register): Rewrite to make use of
503 gdbpy_parse_register_id.
504 * python/py-registers.c (gdbpy_parse_register_id): New function,
505 moved here from python/py-unwind.c. Updated the return type, and
506 also accepts register descriptor objects.
507 * python/py-unwind.c: Remove 'user-regs.h' include.
508 (pyuw_parse_register_id): Moved to python/py-registers.c.
509 (unwind_infopy_add_saved_register): Update to use
510 gdbpy_parse_register_id.
511 (pending_framepy_read_register): Likewise.
512 * python/python-internal.h (gdbpy_parse_register_id): Declare.
513
514 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * python/py-registers.c: Add 'user-regs.h' include.
517 (register_descriptor_iter_find): New function.
518 (register_descriptor_iterator_object_methods): New static global
519 methods array.
520 (register_descriptor_iterator_object_type): Add pointer to methods
521 array.
522
523 2020-07-27 John Baldwin <jhb@FreeBSD.org>
524
525 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
526 for all architectures on FreeBSD 11.3 and later.
527
528 2020-07-27 Tom Tromey <tromey@adacore.com>
529
530 * gcore.h (load_corefile): Don't declare.
531
532 2020-07-27 Tom de Vries <tdevries@suse.de>
533
534 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
535 * config.in: Regenerate.
536 * configure: Regenerate.
537
538 2020-07-26 Eli Zaretskii <eliz@gnu.org>
539
540 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
541 ws2tcpip.h. When checking whether socklen_t type is defined, use
542 ws2tcpip.h if it is available and sys/socket.h isn't.
543 * configure: Regenerate.
544 * config.in: Regenerate.
545
546 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 PR fortran/23051
549 PR fortran/26139
550 * valops.c (value_ind): Pass address to
551 readjust_indirect_value_type.
552 * value.c (readjust_indirect_value_type): Make parameter
553 non-const, and add extra address parameter. Resolve original type
554 before using it.
555 * value.h (readjust_indirect_value_type): Update function
556 signature and comment.
557
558 2020-07-25 Tom de Vries <tdevries@suse.de>
559
560 PR symtab/26243
561 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
562 entries.
563
564 2020-07-24 Aaron Merey <amerey@redhat.com>
565
566 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
567 * configure: Rebuild.
568
569 2020-07-23 Kevin Buettner <kevinb@redhat.com>
570
571 PR corefiles/26294
572 * corelow.c (_initialize_corelow): Add period to help text
573 for "maintenance print core-file-backed-mappings".
574
575 2020-07-23 Pedro Alves <pedro@palves.net>
576
577 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
578 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
579 meanwhile.
580 * frame.c (frame_cache_generation, get_frame_cache_generation):
581 New.
582 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
583 (get_prev_frame_if_no_cycle): On exception, don't touch
584 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
585 * frame.h (get_frame_cache_generation): Declare.
586
587 2020-07-23 Tom de Vries <tdevries@suse.de>
588
589 PR tui/26282
590 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
591 New default constructor.
592
593 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
596 exclude non-statement entries.
597
598 2020-07-22 Kevin Buettner <kevinb@redhat.com>
599
600 * NEWS (New commands): Mention new command
601 "maintenance print core-file-backed-mappings".
602
603 2020-07-22 Kevin Buettner <kevinb@redhat.com>
604
605 * corelow.c (gdbcmd.h): Include.
606 (core_target::info_proc_mappings): New method.
607 (get_current_core_target): New function.
608 (maintenance_print_core_file_backed_mappings): New function.
609 (_initialize_corelow): Add core-file-backed-mappings to
610 "maint print" commands.
611
612 2020-07-22 Kevin Buettner <kevinb@redhat.com>
613
614 * linux-tdep.c (dump_note_entry_p): New function.
615 (linux_dump_mapping_p_ftype): New typedef.
616 (linux_find_memory_regions_full): Add new parameter,
617 should_dump_mapping_p.
618 (linux_find_memory_regions): Adjust call to
619 linux_find_memory_regions_full.
620 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
621 call to linux_find_memory_regions_full.
622
623 2020-07-22 Kevin Buettner <kevinb@redhat.com>
624
625 * corelow.c (solist.h, unordered_map): Include.
626 (class core_target): Add field m_core_file_mappings and
627 method build_file_mappings.
628 (core_target::core_target): Call build_file_mappings.
629 (core_target::~core_target): Free memory associated with
630 m_core_file_mappings.
631 (core_target::build_file_mappings): New method.
632 (core_target::xfer_partial): Use m_core_file_mappings
633 for memory transfers.
634 * linux-tdep.c (linux_read_core_file_mappings): New
635 function.
636 (linux_core_info_proc_mappings): Rewrite to use
637 linux_read_core_file_mappings.
638 (linux_init_abi): Register linux_read_core_file_mappings.
639
640 2020-07-22 Kevin Buettner <kevinb@redhat.com>
641
642 * arch-utils.c (default_read_core_file_mappings): New function.
643 * arch-utils.c (default_read_core_file_mappings): Declare.
644 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
645 * gdbarch.h, gdbarch.c: Regenerate.
646
647 2020-07-22 Kevin Buettner <kevinb@redhat.com>
648
649 PR corefiles/25631
650 * corelow.c (core_target:xfer_partial): Revise
651 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
652 case after first checking the stratum beneath the core
653 target.
654 (has_all_memory): Return true.
655 * target.c (raw_memory_xfer_partial): Revise comment
656 regarding use of has_all_memory.
657
658 2020-07-22 Kevin Buettner <kevinb@redhat.com>
659
660 * exec.h (section_table_xfer_memory): Revise declaration,
661 replacing section name parameter with an optional callback
662 predicate.
663 * exec.c (section_table_xfer_memory): Likewise.
664 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
665 of section_table_xfer_memory.
666
667 2020-07-22 Tom Tromey <tromey@adacore.com>
668
669 * mi/mi-cmd-stack.c (list_args_or_locals): Use
670 lookup_symbol_search_name.
671
672 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * python/py-registers.c (gdbpy_register_object_data_init): Remove
675 redundant local variable.
676 (gdbpy_get_register_descriptor): Extract descriptor vector as a
677 reference, not pointer, update code accordingly.
678
679 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
680 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681
682 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
683 * jit.c (jit_breakpoint_re_set_internal): Use the
684 `skip_jit_symbol_lookup` field.
685
686 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
687 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
688
689 * jit.c (jit_read_descriptor): Define the descriptor address once,
690 use twice.
691 (jit_breakpoint_deleted): Move the declaration of the loop variable
692 `iter` into the loop header.
693 (jit_breakpoint_re_set_internal): Move the declaration of the local
694 variable `objf_data` to the first point of definition.
695 (jit_event_handler): Move the declaration of local variables
696 `code_entry`, `entry_addr`, and `objf` to their first point of use.
697 Rename `objf` to `jited`.
698
699 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
702 Remove.
703 * jit.c (get_jiter_objfile_data): Update.
704
705 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
706 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * jit.c (struct jit_program_space_data): Remove.
709 (jit_program_space_key): Remove.
710 (jiter_objfile_data::~jiter_objfile_data): Remove program space
711 stuff.
712 (get_jit_program_space_data): Remove.
713 (jit_breakpoint_deleted): Iterate on all of the program space's
714 objfiles.
715 (jit_inferior_init): Likewise.
716 (jit_breakpoint_re_set_internal): Likewise. Also change return
717 type to void.
718 (jit_breakpoint_re_set): Pass current_program_space to
719 jit_breakpoint_re_set_internal.
720
721 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * jit.h (struct jiter_objfile_data) <cached_code_address,
724 jit_breakpoint>: Move to here from ...
725 * jit.c (jit_program_space_data): ... here.
726 (jiter_objfile_data::~jiter_objfile_data): Update.
727 (jit_breakpoint_deleted): Update.
728 (jit_breakpoint_re_set_internal): Update.
729
730 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
733 checks.
734 (jit_read_descriptor): Remove NULL check.
735 (jit_event_handler): Add an assertion.
736
737 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * jit.h (struct jit_objfile_data): Split into...
740 (struct jiter_objfile_data): ... this ...
741 (struct jited_objfile_data): ... and this.
742 * objfiles.h (struct objfile) <jit_data>: Remove.
743 <jiter_data, jited_data>: New fields.
744 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
745 (jiter_objfile_data::~jiter_objfile_data): ... this.
746 (get_jit_objfile_data): Rename to ...
747 (get_jiter_objfile_data): ... this.
748 (add_objfile_entry): Update.
749 (jit_read_descriptor): Use get_jiter_objfile_data.
750 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
751 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
752 (jit_inferior_exit_hook): Use objfile's jited_data field.
753
754 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * jit.h: Forward-declare `struct minimal_symbol`.
757 (struct jit_objfile_data): Migrate to here from jit.c; also add a
758 constructor, destructor, and an objfile* field.
759 * jit.c (jit_objfile_data): Remove.
760 (struct jit_objfile_data): Migrate from here to jit.h.
761 (jit_objfile_data::~jit_objfile_data): New destructor
762 implementation with code moved from free_objfile_data.
763 (free_objfile_data): Delete.
764 (get_jit_objfile_data): Update to use the jit_data field of objfile.
765 (jit_find_objf_with_entry_addr): Ditto.
766 (jit_inferior_exit_hook): Ditto.
767 (_initialize_jit): Remove the call to
768 register_objfile_data_with_cleanup.
769 * objfiles.h (struct objfile) <jit_data>: New field.
770
771 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772
773 * jit.h: Forward-declare `struct objfile`.
774 (jit_event_handler): Add a second parameter, the JITer objfile.
775 * jit.c (jit_read_descriptor): Change the signature to take the
776 JITer objfile as an argument instead of the jit_program_space_data.
777 (jit_inferior_init): Update the call to jit_read_descriptor.
778 (jit_event_handler): Use the new JITer objfile argument when calling
779 jit_read_descriptor.
780 * breakpoint.c (handle_jit_event): Update the call to
781 jit_event_handler to pass the JITer objfile.
782
783 2020-07-21 John Baldwin <jhb@FreeBSD.org>
784
785 * gdbarch.c: Regenerate.
786 * gdbarch.h: Regenerate.
787 * gdbarch.sh (handle_segmentation_fault): Remove method.
788 * infrun.c (handle_segmentation_fault): Remove.
789 (print_signal_received_reason): Remove call to
790 handle_segmentation_fault.
791
792 2020-07-21 John Baldwin <jhb@FreeBSD.org>
793
794 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
795 Rename to sparc64_linux_report_signal_info and add siggnal
796 argument.
797 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
798 instead of sparc64_linux_handle_segmentation_fault.
799
800 2020-07-21 John Baldwin <jhb@FreeBSD.org>
801
802 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
803 i386_linux_report_signal_info instead of
804 i386_linux_handle_segmentation_fault.
805 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
806 to i386_linux_report_signal_info and add siggnal argument.
807 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
808 of i386_linux_handle_segmentation_fault.
809 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
810 to i386_linux_report_signal_info and add siggnal argument.
811
812 2020-07-21 John Baldwin <jhb@FreeBSD.org>
813
814 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
815 hook if present.
816
817 2020-07-21 John Baldwin <jhb@FreeBSD.org>
818
819 * gdbarch.c: Regenerate.
820 * gdbarch.h: Regenerate.
821 * gdbarch.sh (report_signal_info): New method.
822 * infrun.c (print_signal_received_reason): Invoke gdbarch
823 report_signal_info hook if present.
824
825 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * python/py-registers.c : Add 'unordered_map' include.
828 (gdbpy_new_reggroup): Renamed to...
829 (gdbpy_get_reggroup): ...this. Update to only create register
830 group descriptors when needed.
831 (gdbpy_reggroup_iter_next): Update.
832
833 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 * python/py-registers.c (gdbpy_register_object_data): New static
836 global.
837 (gdbpy_register_object_data_init): New function.
838 (gdbpy_new_register_descriptor): Renamed to...
839 (gdbpy_get_register_descriptor): ...this, and update to reuse
840 existing register descriptors where possible.
841 (gdbpy_register_descriptor_iter_next): Update.
842 (gdbpy_initialize_registers): Register new gdbarch data.
843
844 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
845
846 * linux-nat.c (stopped_pids): Make static.
847
848 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
849
850 PR ada/26235
851 * gdbtypes.c (ada_discrete_type_low_bound,
852 ada_discrete_type_high_bound): Handle undefined bounds.
853
854 2020-07-21 Kamil Rytarowski <n54@gmx.com>
855
856 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
857 declaration.
858 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
859 function.
860
861 2020-07-20 John Baldwin <jhb@FreeBSD.org>
862
863 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
864 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
865 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
866 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
867 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
868 method.
869
870 2020-07-20 Ludovic Courtès <ludo@gnu.org>
871
872 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
873 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
874 which are deprecated in Guile 3.0.
875 * configure.ac (try_guile_versions): Add "guile-3.0".
876 * configure (try_guile_versions): Regenerate.
877 * NEWS: Update entry.
878
879 2020-07-20 Ludovic Courtès <ludo@gnu.org>
880 Doug Evans <dje@google.com>
881
882 PR gdb/21104
883 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
884 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
885 USING_GUILE_BEFORE_2_2.
886 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
887 Change type to 'scm_t_port_type *'.
888 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
889 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
890 parameter and honor it. Update callers.
891 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
892 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
893 functions.
894 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
895 USING_GUILE_BEFORE_2_2.
896 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
897 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
898 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
899 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
900 and 'SCM_PORT_TYPE'.
901 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
902 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
903 (gdbscm_memory_port_read, gdbscm_memory_port_write)
904 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
905 [!USING_GUILE_BEFORE_2_2]: New functions.
906 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
907 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
908 'gdbscm_memory_port_read'.
909 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
910 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
911 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
912 function.
913 (ioscm_init_memory_port): Remove.
914 (ioscm_init_memory_port_stream): New function
915 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
916 function.
917 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
918 Return scm_from_uint (0).
919 (gdbscm_set_memory_port_read_buffer_size_x)
920 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
921 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
922 Return scm_from_uint (0).
923 (gdbscm_set_memory_port_write_buffer_size_x)
924 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
925 * configure.ac (try_guile_versions): Add "guile-2.2".
926 * configure: Regenerate.
927 * NEWS: Add entry.
928
929 2020-07-18 Tom Tromey <tom@tromey.com>
930
931 * linux-nat.c (linux_multi_process): Remove.
932 (linux_nat_target::supports_multi_process): Return true.
933
934 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * arch/riscv.c (riscv_tdesc_cache): Change map type.
937 (riscv_lookup_target_description): Return pointer out of
938 unique_ptr.
939 * target-descriptions.c (allocate_target_description): Add
940 comment.
941 (target_desc_deleter::operator()): Likewise.
942 * target-descriptions.h (struct target_desc_deleter): Moved to
943 gdbsupport/tdesc.h.
944 (target_desc_up): Likewise.
945
946 2020-07-17 Tom Tromey <tromey@adacore.com>
947
948 * linux-nat.c (linux_nat_target::supports_non_stop)
949 (linux_nat_target::always_non_stop_p): Use "true".
950 (linux_nat_target::supports_disable_randomization): Use "true" and
951 "false".
952
953 2020-07-16 Caroline Tice <cmtice@google.com>
954
955 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
956 (RNGLIST_HEADER_SIZE64): New constant definition.
957 (struct dwop_section_names): Add rnglists_dwo.
958 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
959 (struct loclist_header): Rename to 'loclists_rnglists_header'.
960 (struct dwo_sections): Add rnglists field.
961 (read_attribut_reprocess): Add tag parameter.
962 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
963 (cu_debug_rnglists_section): New function (decl & definition).
964 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
965 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
966 die whose range is being checked; get rnglist section from
967 cu_debug_rnglists_section, to get from either objfile or dwo file as
968 appropriate. Add cases for DW_RLE_base_addressx,
969 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
970 the base address to DW_RLE_offset_pairs (not to all ranges), moving
971 test inside if-condition and updating complaint message.
972 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
973 dwarf2_rnglists_process.
974 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
975 dwarf2_ranges_process.
976 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
977 need_ranges_base and update comment appropriately. Also pass die tag
978 to dwarf2_ranges_read.
979 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
980 need_ranges_base and update comment appropriately. Also pass die tag
981 to dwarf2_ranges_process.
982 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
983 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
984 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
985 need_ranges_base and update comment appropriately. Also pass die tag
986 to read_attribute_reprocess and dwarf2_ranges_read.
987 (read_loclist_header): Rename function to read_loclists_rnglists_header,
988 and update function comment appropriately.
989 (read_loclist_index): Call read_loclists_rnglists_header instead of
990 read_loclist_header.
991 (read_rnglist_index): New function.
992 (read_attribute_reprocess): Add tag parameter. Add code for
993 DW_FORM_rnglistx, passing tag to read_rnglist_index.
994 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
995
996 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
999 being resolved.
1000
1001 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1002
1003 * arch-utils.c (show_architecture): Update formatting of messages.
1004
1005 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * gdbtypes.h (struct type) <bounds>: Handle array and string
1008 types.
1009 * ada-lang.c (assign_aggregate): Use type::bounds on
1010 array/string type.
1011 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1012 * c-varobj.c (c_number_of_children): Likewise.
1013 (c_describe_child): Likewise.
1014 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1015 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1016 (f_type_print_base): Likewise.
1017 * f-valprint.c (f77_array_offset_tbl): Likewise.
1018 (f77_get_upperbound): Likewise.
1019 (f77_print_array_1): Likewise.
1020 * guile/scm-type.c (gdbscm_type_range): Likewise.
1021 * m2-typeprint.c (m2_array): Likewise.
1022 (m2_is_long_set_of_type): Likewise.
1023 * m2-valprint.c (get_long_set_bounds): Likewise.
1024 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1025 * python/py-type.c (typy_range): Likewise.
1026 * rust-lang.c (rust_internal_print_type): Likewise.
1027 * type-stack.c (type_stack::follow_types): Likewise.
1028 * valarith.c (value_subscripted_rvalue): Likewise.
1029 * valops.c (value_cast): Likewise.
1030
1031 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1032
1033 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1034 callers to use the equivalent accessor methods.
1035
1036 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1039 (struct type) <bit_stride>: New method.
1040 (TYPE_BIT_STRIDE): Remove.
1041 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1042
1043 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1046 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1047 callers to use the equivalent accessor methods instead.
1048
1049 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1052 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1053 callers to use the equivalent accessor methods instead.
1054
1055 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1058 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1059 to use dynamic_prop::kind.
1060
1061 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1064 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1065 to get the bound property's kind and check against
1066 PROP_UNDEFINED.
1067
1068 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1071 all callers to use type::range_bounds followed by
1072 dynamic_prop::{low,high}.
1073
1074 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1077 const_val, set_const_val, baton, set_locexpr, set_loclist,
1078 set_addr_offset, variant_parts, set_variant_parts,
1079 original_type, set_original_type>: New methods.
1080 <kind>: Rename to...
1081 <m_kind>: ... this. Update all users to use the new methods
1082 instead.
1083 <data>: Rename to...
1084 <m_data>: ... this. Update all users to use the new methods
1085 instead.
1086
1087 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * gdbtypes.c (get_discrete_bounds): Return failure if
1090 the range type's bounds are not both defined and constant
1091 values.
1092 (get_array_bounds): Update comment. Remove undefined bound check.
1093
1094 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1097 the type::bounds method directly.
1098
1099 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1102 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1103 are used to set the range type's bounds to use set_bounds.
1104
1105 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1106
1107 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1108
1109 2020-07-10 Pedro Alves <pedro@palves.net>
1110
1111 * gdbthread.h (inferior_ref): Define.
1112 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1113 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1114 * thread.c
1115 (scoped_restore_current_thread::restore):
1116 Adjust to gdb::ref_ptr.
1117 (scoped_restore_current_thread::~scoped_restore_current_thread):
1118 Remove manual decref handling.
1119 (scoped_restore_current_thread::scoped_restore_current_thread):
1120 Adjust to use
1121 inferior_ref::new_reference/thread_info_ref::new_reference.
1122 Incref the thread before calling get_frame_id instead of after.
1123 Let TARGET_CLOSE_ERROR propagate.
1124
1125 2020-07-10 Pedro Alves <pedro@palves.net>
1126
1127 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1128 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1129 NOT_AVAILABLE_ERROR.
1130 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1131 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1132
1133 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1134 Pedro Alves <pedro@palves.net>
1135
1136 PR gdb/26199
1137 * infrun.c (threads_are_resumed_pending_p): Delete.
1138 (do_target_wait): Remove threads_are_executing and
1139 threads_are_resumed_pending_p checks from the inferior_matches
1140 lambda. Update comments.
1141
1142 2020-07-10 Pedro Alves <pedro@palves.net>
1143
1144 PR gdb/26199
1145 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1146 executing threads.
1147
1148 2020-07-10 Pedro Alves <pedro@palves.net>
1149
1150 PR gdb/26199
1151 * infrun.c (handle_no_resumed): Handle multiple targets.
1152
1153 2020-07-10 Pedro Alves <pedro@palves.net>
1154
1155 PR gdb/26199
1156 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1157 target_is_async_p.
1158
1159 2020-07-10 Pedro Alves <pedro@palves.net>
1160
1161 PR gdb/26199
1162 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1163 threads, not all threads.
1164
1165 2020-07-10 Pedro Alves <pedro@palves.net>
1166
1167 PR gdb/26199
1168 * remote.c (remote_target::open_1): Pass remote target pointer as
1169 data to create_async_event_handler.
1170 (remote_async_inferior_event_handler): Mark async event handler
1171 before returning if the remote target still has either pending
1172 events or unacknowledged notifications.
1173
1174 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1175
1176 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1177 declaration.
1178 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1179 function.
1180
1181 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1182
1183 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1184 inferior_ptid.
1185
1186 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1187
1188 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1189 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1190 AT_FREEBSD_PS_STRINGS.
1191
1192 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1193
1194 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1195 of debugfile path on Windows.
1196
1197 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1198
1199 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1200 argument to 'data'.
1201
1202 2020-07-08 Tom Tromey <tromey@adacore.com>
1203
1204 * ada-lang.c (ada_exception_message_1): Use read_memory.
1205
1206 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 PR python/22748
1209 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1210 special handling for inline frames.
1211 * findvar.c (value_of_register_lazy): Skip inline frames when
1212 creating lazy register values.
1213 * frame.c (frame_id_computed_p): Delete definition.
1214 * frame.h (frame_id_computed_p): Delete declaration.
1215
1216 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * NEWS: Mention additions to Python API.
1219 * python/py-arch.c (archpy_register_groups): New function.
1220 (arch_object_methods): Add 'register_groups' method.
1221 * python/py-registers.c (reggroup_iterator_object): New struct.
1222 (reggroup_object): New struct.
1223 (gdbpy_new_reggroup): New function.
1224 (gdbpy_reggroup_to_string): New function.
1225 (gdbpy_reggroup_name): New function.
1226 (gdbpy_reggroup_iter): New function.
1227 (gdbpy_reggroup_iter_next): New function.
1228 (gdbpy_new_reggroup_iterator): New function
1229 (gdbpy_initialize_registers): Register new types.
1230 (reggroup_iterator_object_type): Define new Python type.
1231 (gdbpy_reggroup_getset): New static global.
1232 (reggroup_object_type): Define new Python type.
1233 * python/python-internal.h
1234
1235 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1238 * python/py-arch.c (archpy_registers): New function.
1239 (arch_object_methods): Add 'registers' method.
1240 * python/py-registers.c: New file.
1241 * python/python-internal.h
1242 (gdbpy_new_register_descriptor_iterator): Declare.
1243 (gdbpy_initialize_registers): Declare.
1244 * python/python.c (do_start_initialization): Call
1245 gdbpy_initialize_registers.
1246 * NEWS: Mention additions to the Python API.
1247
1248 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * NEWS: Mention new Python API method.
1251 * python/py-unwind.c (pending_framepy_architecture): New function.
1252 (pending_frame_object_methods): Add architecture method.
1253
1254 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * gdbarch.c: Regenerate.
1257 * gdbarch.h: Regenerate.
1258 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1259 (gdbarch_data): Use internal_error for the case where
1260 deprecated_set_gdbarch_data was originally needed.
1261 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1262 and use passed in obstack.
1263 (libunwind_frame_set_descr): Should no longer get back NULL from
1264 gdbarch_data.
1265 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1266 type.
1267 * user-regs.c (user_regs_init): Update parameters, and use passed
1268 in obstack.
1269 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1270 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1271
1272 2020-07-06 Tom de Vries <tdevries@suse.de>
1273
1274 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1275 End-Of-Sequence in lte_is_less_than.
1276 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1277 "gdb: Don't reorder line table entries too much when sorting".
1278
1279 2020-07-06 Tom de Vries <tdevries@suse.de>
1280
1281 PR tui/26205
1282 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1283
1284 2020-07-05 Tom de Vries <tdevries@suse.de>
1285
1286 PR build/26187
1287 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1288 std::uncaught_exceptions instead of deprecated
1289 std::uncaught_exception.
1290
1291 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * macroexp.h (macro_stringify): Return
1294 gdb::unique_xmalloc_ptr<char>.
1295 * macroexp.c (macro_stringify): Likewise.
1296 * macrotab.c (fixup_definition): Update.
1297
1298 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1301 (lex_one_token): Update.
1302 * macroexp.c (struct macro_buffer) <release>: Return
1303 gdb::unique_xmalloc_ptr<char>.
1304 (macro_stringify): Update.
1305 (macro_expand): Update.
1306 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1307 * macroexp.h (macro_expand_next): Likewise.
1308
1309 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * macroexp.h (macro_lookup_ftype): Remove.
1312 (macro_expand, macro_expand_once, macro_expand_next): Remove
1313 lookup function parameters, add scope parameter.
1314 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1315 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1316 * macroscope.h (standard_macro_lookup): Change parameter type
1317 to macro_scope.
1318 * macroscope.c (standard_macro_lookup): Likewise.
1319 * c-exp.y (lex_one_token): Update.
1320 * macrocmd.c (macro_expand_command): Likewise.
1321 (macro_expand_once_command): Likewise.
1322
1323 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * inf-loop.c (inferior_event_handler): Remove client_data param.
1326 * inf-loop.h (inferior_event_handler): Likewise.
1327 * infcmd.c (step_1): Adjust.
1328 * infrun.c (proceed): Adjust.
1329 (fetch_inferior_event): Remove client_data param.
1330 (infrun_async_inferior_event_handler): Adjust.
1331 * infrun.h (fetch_inferior_event): Remove `void *` param.
1332 * linux-nat.c (handle_target_event): Adjust.
1333 * record-btrace.c (record_btrace_handle_async_inferior_event):
1334 Adjust.
1335 * record-full.c (record_full_async_inferior_event_handler):
1336 Adjust.
1337 * remote.c (remote_async_inferior_event_handler): Adjust.
1338
1339 2020-07-01 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1342 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1343
1344 2020-07-01 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1347 tui_gen_win_info.
1348 (tui_win_info::make_window): Merge with
1349 tui_gen_win_info::make_window.
1350 (tui_win_info::make_visible): Move from tui_gen_win_info.
1351 * tui/tui-win.c (tui_win_info::max_width): Move from
1352 tui_gen_win_info.
1353 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1354 type.
1355 <window_factory>: Likewise.
1356 * tui/tui-layout.c (tui_win_info::resize): Move from
1357 tui_gen_win_info.
1358 (make_standard_window): Change return type.
1359 (get_locator_window, tui_get_window_by_name): Likewise.
1360 (tui_layout_window::apply): Remove a cast.
1361 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1362 (struct tui_win_info): Merge with tui_gen_win_info.
1363 (struct tui_gen_win_info): Remove.
1364
1365 2020-07-01 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-stack.h (struct tui_locator_window): Derive from
1368 tui_win_info.
1369 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1370 <can_box>: New method.
1371
1372 2020-07-01 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1375
1376 2020-07-01 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui-regs.c (tui_data_window::display_registers_from)
1379 (tui_data_window::display_registers_from)
1380 (tui_data_window::first_data_item_displayed)
1381 (tui_data_window::delete_data_content_windows): Update.
1382 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1383 Remove.
1384 (tui_data_window::check_register_values): Update.
1385 (tui_data_item_window::rerender): Add parameters. Update.
1386 (tui_data_item_window::refresh_window): Remove.
1387 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1388 virtual.
1389 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1390 tui_gen_win_info.
1391 <refresh_window, max_height, min_height>: Remove.
1392 <rerender>: Add parameters.
1393 <x, y, visible>: New members.
1394 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1395 <m_item_width>: New member.
1396
1397 2020-07-01 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-regs.c (tui_data_window::show_register_group)
1400 (tui_data_window::check_register_values): Update.
1401 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1402 from item_no.
1403
1404 2020-07-01 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1407 useless "if".
1408
1409 2020-07-01 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1412 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1413
1414 2020-07-01 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1417 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1418 (struct tui_line_or_address): Move from tui-data.h.
1419 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1420 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1421 (tui_cmd_window, tui_source_window_base, tui_source_window)
1422 (tui_disasm_window): Don't declare.
1423 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1424 to tui-winsource.h.
1425 (SINGLE_KEY): Move to tui-stack.c.
1426
1427 2020-07-01 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1430 std::string.
1431 * tui/tui-regs.c (class tab_expansion_file): New.
1432 (tab_expansion_file::write): New method.
1433 (tui_register_format): Change return type. Use
1434 tab_expansion_file.
1435 (tui_get_register, tui_data_window::display_registers_from)
1436 (tui_data_item_window::rerender): Update.
1437 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1438 * tui/tui-io.c (tui_expand_tabs): Remove.
1439
1440 2020-07-01 Tom Tromey <tom@tromey.com>
1441
1442 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1443
1444 2020-07-01 Fangrui Song <maskray@google.com>
1445
1446 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1447
1448 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1449
1450 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1451 forms for DW_AT_associated and DW_AT_allocated attributes,
1452 which is already checked in function attr_to_dynamic_prop.
1453
1454 2020-06-30 Tom Tromey <tromey@adacore.com>
1455
1456 * dwarf2/read.c (quirk_rust_enum): Correctly call
1457 alloc_rust_variant for default-less enum.
1458
1459 2020-06-30 Tom Tromey <tromey@adacore.com>
1460
1461 PR build/26183:
1462 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1463 gdb::to_string.
1464
1465 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1466
1467 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1468 * gdbarch.h: Re-generate.
1469
1470 2020-06-28 Tom Tromey <tom@tromey.com>
1471
1472 * command.h (cmd_types): Remove.
1473 (cmd_type): Don't declare.
1474 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1475 typedef.
1476 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1477 * cli/cli-decode.c (cmd_type): Remove.
1478
1479 2020-06-27 Pedro Alves <palves@redhat.com>
1480
1481 * fork-child.c (prefork_hook): Adjust.
1482 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1483 Delete.
1484 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1485 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1486 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1487 Remove declarations.
1488 (struct inferior) <set_tty, tty>: New methods.
1489 (struct inferior) <terminal>: Rename to ...
1490 (struct inferior) <m_terminal>: ... this and make private.
1491 * main.c (captured_main_1): Adjust.
1492 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1493 (mi_cmd_inferior_tty_show): Adjust.
1494 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1495 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1496
1497 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1498
1499 * configure.ac: Add --enable-libctf: handle --disable-static
1500 properly.
1501 * acinclude.m4: sinclude ../config/enable.m4.
1502 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1503 (LIBCTF): Substitute in.
1504 (CTF_DEPS): New, likewise.
1505 (CLIBS): libctf needs symbols from libbfd: move earlier.
1506 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1507 flags.
1508 * ctfread.c: Surround in ENABLE_LIBCTF.
1509 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1510 * configure: Regenerate.
1511 * config.in: Likewise.
1512
1513 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1516
1517 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * inferior.h (struct inferior) <terminal>: Change type to
1520 gdb::unique_xmalloc_ptr<char>.
1521 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1522 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1523 field, adjust to unique pointer.
1524 (get_inferior_io_terminal): Adjust to unique pointer.
1525
1526 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1529 registers, not just the known core set of registers.
1530
1531 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1532
1533 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1534 fflags, frm, and fcsr registers.
1535 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1536 restore groups.
1537 (riscv_tdesc_unknown_reg): New function.
1538 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1539 tdesc_use_registers.
1540 * riscv-tdep.h (struct gdbarch_tdep): Add
1541 unknown_csrs_first_regnum, unknown_csrs_count,
1542 duplicate_fflags_regnum, duplicate_frm_regnum, and
1543 duplicate_fcsr_regnum fields.
1544
1545 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1548 callback, use the callback (when not null) to help number unknown
1549 registers.
1550 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1551 (tdesc_use_registers): Add extra parameter to declaration.
1552
1553 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1556 in the file.
1557 (class riscv_pending_register_alias): Likewise.
1558 (riscv_register_feature::register_info): Change 'required_p' field
1559 to 'required', and change its type. Add 'check' member function.
1560 (riscv_register_feature::register_info::check): Define new member
1561 function.
1562 (riscv_xreg_feature): Change initialisation of 'required' field.
1563 (riscv_freg_feature): Likewise.
1564 (riscv_virtual_feature): Likewise.
1565 (riscv_csr_feature): Likewise.
1566 (riscv_check_tdesc_feature): Take extra parameter, the csr
1567 tdesc_feature, rewrite the function to use the new
1568 riscv_register_feature::register_info::check function.
1569 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1570
1571 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * features/Makefile: Remove all references to the deleted files
1574 below.
1575 * features/riscv/32bit-csr.c: Deleted.
1576 * features/riscv/32bit-csr.xml: Deleted.
1577 * features/riscv/64bit-csr.c: Deleted.
1578 * features/riscv/64bit-csr.xml: Deleted.
1579 * features/riscv/rebuild-csr-xml.sh: Deleted.
1580
1581 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1584 whitespace error for declaration of names member variable.
1585 (struct riscv_register_feature): Add new prefer_first_name member
1586 variable, and fix whitespace error in declaration of registers.
1587 (riscv_xreg_feature): Initialize prefer_first_name field.
1588 (riscv_freg_feature): Likewise.
1589 (riscv_virtual_feature): Likewise.
1590 (riscv_csr_feature): Likewise.
1591 (riscv_register_name): Expand on comments. Remove register name
1592 modifications for CSR and virtual registers.
1593
1594 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1597 errors.
1598
1599 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1602 riscv-opc.h.
1603 (class riscv_pending_register_alias): New class.
1604 (riscv_check_tdesc_feature): Take vector of pending aliases and
1605 populate it as appropriate.
1606 (riscv_setup_register_aliases): Delete.
1607 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1608 to riscv_check_tdesc_feature in all cases. Use the vector to
1609 create the register aliases.
1610
1611 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1612
1613 * sol2-tdep.c (sol2_static_transform_name): Remove.
1614 (sol2_init_abi): Don't register it.
1615 * gdbarch.sh (static_transform_name): Remove.
1616 * gdbarch.c, gdbarch.h: Regenerate.
1617
1618 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1619 gdbarch_static_transform_name.
1620 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1621 * stabsread.c (define_symbol) <'X'>: Remove.
1622 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1623 handling.
1624 <'V'>: Likewise.
1625 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1626 <'S'>: Remove call to gdbarch_static_transform_name.
1627
1628 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1629
1630 * procfs.c (procfs_pre_trace): New function.
1631 (procfs_target::create_inferior): Pass it to fork_inferior.
1632
1633 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1634
1635 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1636 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1637 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1638 sol2-tdep.o, sparc-sol2-tdep.o.
1639 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1640 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1641 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1642 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1643
1644 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1645
1646 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1647 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1648 Call sol2_init_abi.
1649 Remove calls to set_gdbarch_skip_solib_resolver,
1650 set_gdbarch_core_pid_to_str.
1651 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1652 (i386_sol2_static_transform_name): Remove.
1653 (i386_sol2_init_abi): Call sol2_init_abi.
1654 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1655 set_gdbarch_static_transform_name,
1656 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1657 Use sol2_sigtramp_p.
1658 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1659 (sol2_sigtramp_p): New function.
1660 (sol2_static_transform_name): New function.
1661 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1662 (sol2_init_abi): New function.
1663 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1664 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1665 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1666 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1667 (sparc_sol2_static_transform_name): Remove.
1668 (sparc32_sol2_init_abi): Call sol2_init_abi.
1669 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1670 set_gdbarch_static_transform_name,
1671 set_gdbarch_skip_solib_resolver,
1672 set_gdbarch_core_pid_to_str.
1673 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1674 (sparc_sol2_static_transform_name): Remove
1675 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1676 call sol2_sigtramp_p.
1677 (sparc64_sol2_init_abi): Call sol2_init_abi.
1678 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1679 set_gdbarch_static_transform_name,
1680 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1681
1682 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683
1684 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1685 * exec.c (validate_exec_file): If from_tty, set both
1686 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1687 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1688 and from_tty, unconditionally ask a confirmation.
1689
1690 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * target-descriptions.c (tdesc_architecture_name): Protect against
1693 NULL pointer dereference.
1694 (maint_print_xml_tdesc_cmd): New function.
1695 (_initialize_target_descriptions): Register new 'maint print
1696 xml-tdesc' command and give it the filename completer.
1697 * NEWS: Mention new 'maint print xml-tdesc' command.
1698
1699 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * target-descriptions.c (class tdesc_compatible_info): New class.
1702 (struct target_desc): Change type of compatible vector.
1703 (tdesc_compatible_p): Update for change in type of
1704 target_desc::compatible.
1705 (tdesc_compatible_info_list): New function.
1706 (tdesc_compatible_info_arch_name): New function.
1707 (tdesc_add_compatible): Update for change in type of
1708 target_desc::compatible.
1709 (print_c_tdesc::visit_pre): Likewise.
1710
1711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1714 whitespace to underscore.
1715 (maint_print_c_tdesc_cmd): Use fake filename for target
1716 descriptions that came from the target.
1717 (_initialize_target_descriptions): Add filename command completion
1718 for 'maint print c-tdesc'.
1719
1720 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1723 lines.
1724
1725 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1728 lines.
1729 (dwarf2_find_location_expression): Likewise.
1730 (call_site_parameter_matches): Likewise.
1731 (dwarf2_compile_expr_to_ax): Likewise.
1732 (disassemble_dwarf_expression): Likewise.
1733 (loclist_describe_location): Likewise.
1734
1735 2020-06-23 Pedro Alves <palves@redhat.com>
1736
1737 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1738 progspace-and-thread.h. Include scoped-mock-context.h instead.
1739 (register_to_value_test): Use scoped_mock_context.
1740 * regcache.c: Include "scoped-mock-context.h".
1741 (cooked_read_test): Don't error out if a target is already pushed.
1742 Use scoped_mock_context. Adjust.
1743 * scoped-mock-context.h: New file.
1744
1745 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1748 initializer.
1749 (ada_language::is_string_type_p): New member function.
1750 * c-lang.c (c_language_data): Delete la_is_string_type_p
1751 initializer.
1752 (cplus_language_data): Likewise.
1753 (asm_language_data): Likewise.
1754 (minimal_language_data): Likewise.
1755 * d-lang.c (d_language_data): Likewise.
1756 * f-lang.c (f_is_string_type_p): Delete function, implementation
1757 moved to f_language::is_string_type_p.
1758 (f_language_data): Delete la_is_string_type_p initializer.
1759 (f_language::is_string_type_p): New member function,
1760 implementation from f_is_string_type_p.
1761 * go-lang.c (go_is_string_type_p): Delete function, implementation
1762 moved to go_language::is_string_type_p.
1763 (go_language_data): Delete la_is_string_type_p initializer.
1764 (go_language::is_string_type_p): New member function,
1765 implementation from go_is_string_type_p.
1766 * language.c (language_defn::is_string_type_p): Define new member
1767 function.
1768 (default_is_string_type_p): Make static, add comment copied from
1769 header file.
1770 (unknown_language_data): Delete la_is_string_type_p initializer.
1771 (unknown_language::is_string_type_p): New member function.
1772 (auto_language_data): Delete la_is_string_type_p initializer.
1773 (auto_language::is_string_type_p): New member function.
1774 * language.h (language_data): Delete la_is_string_type_p field.
1775 (language_defn::is_string_type_p): Declare new function.
1776 (default_is_string_type_p): Delete desclaration, move comment to
1777 definition.
1778 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1779 moved to m2_language::is_string_type_p.
1780 (m2_language_data): Delete la_is_string_type_p initializer.
1781 (m2_language::is_string_type_p): New member function,
1782 implementation from m2_is_string_type_p.
1783 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1784 initializer.
1785 * opencl-lang.c (opencl_language_data): Likewise.
1786 * p-lang.c (pascal_is_string_type_p): Delete function,
1787 implementation moved to pascal_language::is_string_type_p.
1788 (pascal_language_data): Delete la_is_string_type_p initializer.
1789 (pascal_language::is_string_type_p): New member function,
1790 implementation from pascal_is_string_type_p.
1791 * rust-lang.c (rust_is_string_type_p): Delete function,
1792 implementation moved to rust_language::is_string_type_p.
1793 (rust_language_data): Delete la_is_string_type_p initializer.
1794 (rust_language::is_string_type_p): New member function,
1795 implementation from rust_is_string_type_p.
1796 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1797 is_string_type_p.
1798
1799 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * ada-lang.c (ada_language_data): Delete la_print_typedef
1802 initializer.
1803 (ada_language::print_typedef): New member function.
1804 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1805 (cplus_language_data): Likewise.
1806 (asm_language_data): Likewise.
1807 (minimal_language_data): Likewise.
1808 * d-lang.c (d_language_data): Likewise.
1809 * f-lang.c (f_language_data): Likewise.
1810 (f_language::print_typedef): New member function.
1811 * go-lang.c (go_language_data): Delete la_print_typedef
1812 initializer.
1813 * language.c (language_defn::print_typedef): Define member
1814 function.
1815 (unknown_language_data): Delete la_print_typedef initializer.
1816 (unknown_language::print_typedef): New member function.
1817 (auto_language_data): Delete la_print_typedef initializer.
1818 (auto_language::print_typedef): New member function.
1819 * language.h (language_data): Delete la_print_typedef field.
1820 (language_defn::print_typedef): Declare new member function.
1821 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1822 (default_print_typedef): Delete declaration.
1823 * m2-lang.c (m2_language_data): Delete la_print_typedef
1824 initializer.
1825 (m2_language::print_typedef): New member function.
1826 * objc-lang.c (objc_language_data): Delete la_print_typedef
1827 initializer.
1828 * opencl-lang.c (opencl_language_data): Likewise.
1829 * p-lang.c (pascal_language_data): Likewise.
1830 (pascal_language::print_typedef): New member function.
1831 * rust-lang.c (rust_print_typedef): Delete function,
1832 implementation moved to rust_language::print_typedef.
1833 (rust_language): Delete la_print_typedef initializer.
1834 (rust_language::print_typedef): New member function,
1835 implementation from rust_print_typedef.
1836 * typeprint.c (default_print_typedef): Delete.
1837
1838 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1841 (ada_language::printstr): New member function.
1842 * c-lang.c (c_language_data): Delete la_printstr initializer.
1843 (cplus_language_data): Likewise.
1844 (asm_language_data): Likewise.
1845 (minimal_language_data): Likewise.
1846 * d-lang.c (d_language_data): Likewise.
1847 * f-lang.c (f_printstr): Rename to f_language::printstr.
1848 (f_language_data): Delete la_printstr initializer.
1849 (f_language::printstr): New member function, implementation from
1850 f_printstr.
1851 * go-lang.c (go_language_data): Delete la_printstr initializer.
1852 * language.c (language_defn::printstr): Define new member
1853 function.
1854 (unk_lang_printstr): Delete.
1855 (unknown_language_data): Delete la_printstr initializer.
1856 (unknown_language::printstr): New member function.
1857 (auto_language_data): Delete la_printstr initializer.
1858 (auto_language::printstr): New member function.
1859 * language.h (language_data): Delete la_printstr field.
1860 (language_defn::printstr): Declare new member function.
1861 (LA_PRINT_STRING): Update call to printstr.
1862 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1863 (m2_language_data): Delete la_printstr initializer.
1864 (m2_language::printstr): New member function, implementation from
1865 m2_printstr.
1866 * objc-lang.c (objc_language_data): Delete la_printstr
1867 initializer.
1868 * opencl-lang.c (opencl_language_data): Likewise.
1869 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1870 (pascal_language_data): Delete la_printstr initializer.
1871 (pascal_language::printstr): New member function, implementation
1872 from pascal_printstr.
1873 * p-lang.h (pascal_printstr): Delete declaration.
1874 * rust-lang.c (rust_printstr): Update header comment.
1875 (rust_language_data): Delete la_printstr initializer.
1876 (rust_language::printstr): New member function.
1877
1878 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1881 (ada_language::printchar): New member function.
1882 * c-lang.c (c_language_data): Delete la_printchar initializer.
1883 (cplus_language_data): Likewise.
1884 (asm_language_data): Likewise.
1885 (minimal_language_data): Likewise.
1886 * d-lang.c (d_language_data): Likewise.
1887 * f-lang.c (f_printchar): Rename to f_language::printchar.
1888 (f_language_data): Delete la_printchar initializer.
1889 (f_language::printchar): New member function, implementation from
1890 f_printchar.
1891 * go-lang.c (go_language_data): Delete la_printchar initializer.
1892 * language.c (unk_lang_printchar): Delete.
1893 (language_defn::printchar): Define new member function.
1894 (unknown_language_data): Delete la_printchar initializer.
1895 (unknown_language::printchar): New member function.
1896 (auto_language_data): Delete la_printchar initializer.
1897 (auto_language::printchar): New member function.
1898 * language.h (language_data): Delete la_printchar field.
1899 (language_defn::printchar): Declare new member function.
1900 (LA_PRINT_CHAR): Update call to printchar.
1901 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1902 (m2_language::printchar): New member function.
1903 * objc-lang.c (objc_language_data): Delete la_printchar
1904 initializer.
1905 * opencl-lang.c (opencl_language_data): Likewise.
1906 * p-lang.c (pascal_language_data): Delete la_printchar
1907 initializer.
1908 (pascal_language::printchar): New member function.
1909 * rust-lang.c (rust_printchar): Rename to
1910 rust_language::printchar.
1911 (rust_language_data): Delete la_printchar initializer.
1912 (rust_language::printchar): New member function, implementation
1913 from rust_printchar.
1914
1915 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1918 (ada_language_data): Delete la_emitchar initializer.
1919 (ada_language::emitchar): New member function, implementation from
1920 emit_char.
1921 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1922 (cplus_language_data): Likewise.
1923 (asm_language_data): Likewise.
1924 (minimal_language_data): Likewise.
1925 * d-lang.c (d_language_data): Likewise.
1926 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1927 (f_language_data): Delete la_emitchar initializer.
1928 (f_language::emitchar): New member function, implementation from
1929 f_emit_char.
1930 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1931 * language.c (unk_lang_emit_char): Delete.
1932 (language_defn::emitchar): New member function definition.
1933 (unknown_language_data): Delete la_emitchar initializer.
1934 (unknown_language::emitchar): New member function.
1935 (auto_language_data): Delete la_emitchar initializer.
1936 (auto_language::emitchar): New member function.
1937 * language.h (language_data): Delete la_emitchar field.
1938 (language_defn::emitchar): New member field declaration.
1939 (LA_EMIT_CHAR): Update call to emitchar.
1940 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1941 (m2_language_data): Delete la_emitchar initializer.
1942 (m2_language::emitchar): New member function, implementation from
1943 m2_emit_char.
1944 * objc-lang.c (objc_language_data): Delete la_emitchar
1945 initializer.
1946 * opencl-lang.c (opencl_language_data): Likewise.
1947 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1948 (pascal_language_data): Delete la_emitchar initializer.
1949 (pascal_language::emitchar): New member function, implementation
1950 from pascal_emit_char.
1951 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1952 (rust_language_data): Delete la_emitchar initializer.
1953 (rust_language::emitchar): New member function, implementation
1954 from rust_emitchar.
1955
1956 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1959 (ada_language_data): Delete la_post_parser initializer.
1960 (ada_language::post_parser): New member function.
1961 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1962 (cplus_language_data): Likewise.
1963 (asm_language_data): Likewise.
1964 (minimal_language_data): Likewise.
1965 * d-lang.c (d_language_data): Likewise.
1966 * f-lang.c (f_language_data): Likewise.
1967 * go-lang.c (go_language_data): Likewise.
1968 * language.c (unknown_language_data): Likewise.
1969 (auto_language_data): Likewise.
1970 * language.h (language_data): Delete la_post_parser field.
1971 (language_defn::post_parser): New member function.
1972 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1973 * objc-lang.c (objc_language_data): Likewise.
1974 * opencl-lang.c (opencl_language_data): Likewise.
1975 * p-lang.c (pascal_language_data): Likewise.
1976 * parse.c (parse_exp_in_context): Update call to post_parser.
1977 (null_post_parser): Delete definition.
1978 * parser-defs.h (null_post_parser): Delete declaration.
1979 * rust-lang.c (rust_language_data): Delete la_post_parser
1980 initializer.
1981
1982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * ada-lang.c (parse): Rename to ada_language::parser.
1985 (ada_language_data): Delete la_parser initializer.
1986 (ada_language::parser): New member function, implementation from
1987 parse.
1988 * c-lang.c (c_language_data): Delete la_parser initializer.
1989 (cplus_language_data): Likewise.
1990 (asm_language_data): Likewise.
1991 (minimal_language_data): Likewise.
1992 * d-lang.c (d_language_data): Likewise.
1993 (d_language::parser): New member function.
1994 * f-lang.c (f_language_data): Delete la_parser initializer.
1995 (f_language::parser): New member function.
1996 * go-lang.c (go_language_data): Delete la_parser initializer.
1997 (go_language::parser): New member function.
1998 * language.c (unk_lang_parser): Delete.
1999 (language_defn::parser): Define new member function.
2000 (unknown_language_data): Delete la_parser initializer.
2001 (unknown_language::parser): New member function.
2002 (auto_language_data): Delete la_parser initializer.
2003 (auto_language::parser): New member function.
2004 * language.h (language_data): Delete la_parser field.
2005 (language_defn::parser): Declare new member function.
2006 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2007 (m2_language::parser): New member function.
2008 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2009 * opencl-lang.c (opencl_language_data): Likewise.
2010 * p-lang.c (pascal_language_data): Likewise.
2011 (pascal_language::parser): New member function.
2012 * parse.c (parse_exp_in_context): Update call to parser.
2013 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2014 (rust_language::parser): New member function.
2015
2016 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * top.c (print_gdb_configuration): Print --with-python-libdir
2019 configuration value.
2020
2021 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2022
2023 * NEWS: Mention change to the alias command.
2024
2025 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2026
2027 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2028 (alias_command_completer)
2029 (make_alias_options_def_group): New functions.
2030 (alias_opts, alias_option_defs): New struct and array.
2031 (alias_usage_error): Update usage.
2032 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2033 Use option framework.
2034 (_initialize_cli_cmds): Update alias command help.
2035 Update aliases command help.
2036 (show_user):
2037 Add NULL for new default_args lookup_cmd argument.
2038 (valid_command_p): Rename to validate_aliased_command.
2039 Add NULL for new default_args lookup_cmd argument. Verify that the
2040 aliased_command has no default args.
2041 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2042 (lookup_cmd_1, lookup_cmd): New argument default_args.
2043 (add_alias_cmd):
2044 Add NULL for new default_args lookup_cmd argument.
2045 (print_help_for_command): Show default args under the layout
2046 alias some_alias = some_aliased_cmd some_alias_default_arg.
2047 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2048 xfree default_args in destructor.
2049 * cli/cli-script.c (process_next_line, do_define_command):
2050 Add NULL for new default_args lookup_cmd argument.
2051 * command.h: Declare new default_args argument in lookup_cmd
2052 and lookup_cmd_1.
2053 * completer.c (complete_line_internal_1):
2054 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2055 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2056 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2057 Likewise.
2058 * infcmd.c (_initialize_infcmd): Likewise.
2059 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2060 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2061 * python/py-param.c (add_setshow_generic): Likewise.
2062 * remote.c (_initialize_remote): Likewise.
2063 * top.c (execute_command): Prepend default_args if command has some.
2064 (set_verbose):
2065 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2066 * tracepoint.c (validate_actionline, encode_actions_1):
2067 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2068
2069 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2070
2071 * jit.c (jit_read_descriptor): Use bool as the return type.
2072 (jit_breakpoint_re_set_internal): Use bool as the return type.
2073 Invert the return value logic; return true if the jit breakpoint
2074 has been successfully initialized.
2075 (jit_inferior_init): Update the call to
2076 jit_breakpoint_re_set_internal.
2077
2078 2020-06-22 Pedro Alves <palves@redhat.com>
2079
2080 PR gdb/25939
2081 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2082 Use the current inferior instead. Don't return
2083 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2084 wait again.
2085 * sol-thread.c (sol_thread_target::wait): Don't reference
2086 inferior_ptid.
2087 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2088 (sol_update_thread_list_callback): Use the current inferior's pid
2089 instead of inferior_ptid.
2090
2091 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2092
2093 * procfs.c: Cleanup many comments.
2094
2095 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2096 (AFTER_WATCHFLAG): Replace by value.
2097
2098 (MAIN_PROC_NAME_FORMAT): Inline ...
2099 (create_procinfo): ... here.
2100
2101 (procfs_debug_inferior): Remove SYS_exec handling.
2102 (syscall_is_exec): Likewise.
2103 (procfs_set_exec_trap): Likewise.
2104
2105 (syscall_is_lwp_exit): Inline in callers.
2106 (syscall_is_exit): Likewise.
2107 (syscall_is_exec): Likewise.
2108 (syscall_is_lwp_create): Likewise.
2109
2110 (invalidate_cache): Remove #if 0 code.
2111
2112 (make_signal_thread_runnable): Remove.
2113 (procfs_target::resume): Remove #if 0 code.
2114
2115 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2116
2117 PR gdb/25939
2118 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2119 call ...
2120 (procfs_target::create_inferior): ... here.
2121
2122 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2123
2124 * exec.c (validate_exec_file): Ensure the build-id is up to
2125 date by calling reopen_exec_file (that checks file timestamp
2126 to decide to re-read the file).
2127
2128 2020-06-18 Pedro Alves <palves@redhat.com>
2129
2130 PR gdb/25412
2131 * gdbthread.h (delete_thread, delete_thread_silent)
2132 (find_thread_ptid): Update comments.
2133 * thread.c (current_thread_): New global.
2134 (is_current_thread): Move higher, and reimplement.
2135 (inferior_thread): Reimplement.
2136 (set_thread_exited): Use bool. Add assertions.
2137 (add_thread_silent): Simplify thread-reuse handling by always
2138 calling delete_thread.
2139 (delete_thread): Remove intro comment.
2140 (find_thread_ptid): Skip exited threads.
2141 (switch_to_thread_no_regs): Write to current_thread_.
2142 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2143 INFERIOR_PTID. Clear current_thread_.
2144
2145 2020-06-18 Pedro Alves <palves@redhat.com>
2146
2147 * aix-thread.c (pd_update): Use switch_to_thread.
2148
2149 2020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 * ravenscar-thread.c (ravenscar_thread_target): Update.
2152 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2153 (ravenscar_thread_target::add_active_thread): ... this. Don't
2154 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2155 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2156
2157 2020-06-18 Pedro Alves <palves@redhat.com>
2158
2159 * nat/windows-nat.c (current_windows_thread): Remove.
2160 * nat/windows-nat.h (current_windows_thread): Remove.
2161 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2162 Adjust.
2163 (display_selectors): Adjust to fetch the current
2164 windows_thread_info based on inferior_ptid.
2165 (fake_create_process): No longer write to current_windows_thread.
2166 (windows_nat_target::get_windows_debug_event):
2167 Don't set inferior_ptid or current_windows_thread.
2168 (windows_nat_target::wait): Adjust to not rely on
2169 current_windows_thread.
2170 (do_initial_windows_stuff): Now a method of windows_nat_target.
2171 Switch to the last_ptid thread.
2172 (windows_nat_target::attach): Adjust.
2173 (windows_nat_target::detach): Use switch_to_no_thread instead of
2174 writing to inferior_ptid directly.
2175 (windows_nat_target::create_inferior): Adjust.
2176
2177 2020-06-18 Pedro Alves <palves@redhat.com>
2178
2179 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2180
2181 2020-06-18 Pedro Alves <palves@redhat.com>
2182
2183 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2184 after creating it, instead of writing to inferior_ptid. Don't
2185 write to inferior_ptid.
2186
2187 2020-06-18 Pedro Alves <palves@redhat.com>
2188
2189 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2190
2191 2020-06-18 Pedro Alves <palves@redhat.com>
2192
2193 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2194 it, instead of writing to inferior_ptid.
2195
2196 2020-06-18 Pedro Alves <palves@redhat.com>
2197
2198 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2199 to inferior_ptid.
2200
2201 2020-06-18 Pedro Alves <palves@redhat.com>
2202
2203 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2204 instead of writing to inferior_ptid directly.
2205
2206 2020-06-18 Pedro Alves <palves@redhat.com>
2207
2208 * corelow.c (core_target::close): Use switch_to_no_thread instead
2209 of writing to inferior_ptid directly.
2210 (add_to_thread_list, core_target_open): Use switch_to_thread
2211 instead of writing to inferior_ptid directly.
2212
2213 2020-06-18 Pedro Alves <palves@redhat.com>
2214
2215 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2216 inferior_ptid.
2217 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2218 inferior_ptid.
2219 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2220 inferior_ptid directly.
2221 (darwin_nat_target::init_thread_list): Switch to thread, instead
2222 of writing to inferior_ptid.
2223 (darwin_nat_target::attach): Don't write to inferior_ptid.
2224 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2225
2226 2020-06-18 Pedro Alves <palves@redhat.com>
2227
2228 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2229 thread.
2230 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2231 Instead use switch_to_thread.
2232 (gnu_nat_target::detach): Use switch_to_no_thread
2233 instead of writing to inferior_ptid directly. Used passed-in
2234 inferior instead of looking up the inferior by pid.
2235
2236 2020-06-18 Pedro Alves <palves@redhat.com>
2237
2238 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2239 inferior_ptid.
2240
2241 2020-06-18 Pedro Alves <palves@redhat.com>
2242
2243 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2244 inferior_ptid.
2245 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2246 thread.
2247 (nto_procfs_target::detach): Avoid referencing
2248 inferior_ptid. Use switch_to_no_thread instead of writing to
2249 inferior_ptid directly.
2250 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2251 instead of writing to inferior_ptid directly.
2252 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2253 to thread.
2254
2255 2020-06-18 Pedro Alves <palves@redhat.com>
2256
2257 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2258 after creating it, instead of writing to inferior_ptid.
2259 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2260 to inferior_ptid directly.
2261 (gdbsim_target::wait): Don't write to inferior_ptid.
2262
2263 2020-06-18 Pedro Alves <palves@redhat.com>
2264
2265 * remote.c (remote_target::remote_notice_new_inferior): Use
2266 switch_to_thread instead of writing to inferior_ptid directly.
2267 (remote_target::add_current_inferior_and_thread): Use
2268 switch_to_no_thread instead of writing to inferior_ptid directly.
2269 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2270 and switch_to_thread instead of using set_current_inferior or
2271 writing to inferior_ptid directly.
2272
2273 2020-06-18 Pedro Alves <palves@redhat.com>
2274
2275 * tracectf.c (ctf_target_open): Switch to added thread instead of
2276 writing to inferior_ptid directly.
2277 (ctf_target::close): Use switch_to_no_thread instead of writing to
2278 inferior_ptid directly.
2279
2280 2020-06-18 Pedro Alves <palves@redhat.com>
2281
2282 * tracefile-tfile.c (tfile_target_open): Don't write to
2283 inferior_ptid directly, instead switch to added thread.
2284 (tfile_target::close): Use switch_to_no_thread instead of writing
2285 to inferior_ptid directly.
2286
2287 2020-06-18 Pedro Alves <palves@redhat.com>
2288
2289 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2290 (procfs_target::detach): Use switch_to_no_thread
2291 instead of writing to inferior_ptid directly.
2292 (do_attach): Change return type to void. Switch to the added
2293 thread.
2294 (procfs_target::create_inferior): Switch to the added thread.
2295 (procfs_do_thread_registers): Don't write to inferior_ptid.
2296
2297 2020-06-18 Pedro Alves <palves@redhat.com>
2298
2299 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2300 of writing to inferior_ptid.
2301 (scoped_restore_exited_inferior): Delete.
2302 (handle_vfork_child_exec_or_exit): Simplify using
2303 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2304 instead of writing to inferior_ptid.
2305 (THREAD_STOPPED_BY): Delete.
2306 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2307 (thread_stopped_by_hw_breakpoint): Delete.
2308 (save_waitstatus): Use
2309 scoped_restore_current_thread+switch_to_thread, and call
2310 target_stopped_by_watchpoint instead of
2311 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2312 instead of thread_stopped_by_sw_breakpoint, and
2313 target_stopped_by_hw_breakpoint instead of
2314 thread_stopped_by_hw_breakpoint.
2315 (handle_inferior_event)
2316 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2317 inferior_ptid directly, nor
2318 set_current_inferior/set_current_program_space. Use
2319 switch_to_thread / switch_to_inferior_no_thread instead.
2320
2321 2020-06-18 Pedro Alves <palves@redhat.com>
2322
2323 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2324 instead of writing to inferior_ptid.
2325
2326 2020-06-18 Pedro Alves <palves@redhat.com>
2327
2328 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2329 added thread.
2330 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2331 to the added thread.
2332 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2333 instead of writing to inferior_ptid.
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2338 (register_to_value_test): Mock a program_space too. Heap-allocate
2339 the address space. Don't write to inferior_ptid. Use
2340 switch_to_thread instead.
2341
2342 2020-06-18 Pedro Alves <palves@redhat.com>
2343
2344 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2345 Delete.
2346 (find_signalled_thread()): New, factored out from
2347 linux_make_corefile_notes and adjusted to handle exited threads.
2348 (linux_make_corefile_notes): Adjust to use the new
2349 find_signalled_thread.
2350
2351 2020-06-18 Pedro Alves <palves@redhat.com>
2352
2353 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2354 of saving/restoring inferior_ptid.
2355
2356 2020-06-17 Tom Tromey <tom@tromey.com>
2357
2358 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2359 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2360 declare.
2361 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2362
2363 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2364
2365 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2366 of partial symtabs.
2367
2368 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * regformats/reg-arm.dat: Remove.
2371 * regformats/reg-bfin.dat: Remove.
2372 * regformats/reg-cris.dat: Remove.
2373 * regformats/reg-crisv32.dat: Remove.
2374 * regformats/reg-m32r.dat: Remove.
2375 * regformats/reg-tilegx.dat: Remove.
2376 * regformats/reg-tilegx32.dat: Remove.
2377
2378 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2379
2380 * features/Makefile (WHICH): Remove arm files.
2381 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2382 * regformats/arm/arm-with-neon.dat: Remove.
2383 * regformats/arm/arm-with-vfpv2.dat: Remove.
2384 * regformats/arm/arm-with-vfpv3.dat: Remove.
2385
2386 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2387
2388 * features/Makefile (XMLTOC): Remove rx.xml.
2389
2390 2020-06-17 Pedro Alves <palves@redhat.com>
2391
2392 * gdbthread.h (thread_control_state) <trap_expected> Update
2393 comments.
2394
2395 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2396
2397 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2398 ada_language::lookup_symbol_nonlocal.
2399 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2400 (ada_language::lookup_symbol_nonlocal): New member function,
2401 implementation from ada_lookup_symbol_nonlocal.
2402 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2403 initializer.
2404 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2405 initializer.
2406 (cplus_language::lookup_symbol_nonlocal): New member function.
2407 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2408 (minimal_language_data) Likewise.
2409 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2410 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2411 initializer.
2412 (d_language::lookup_symbol_nonlocal): New member function.
2413 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2414 initializer.
2415 (f_language::lookup_symbol_nonlocal): New member function.
2416 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2417 initializer.
2418 * language.c (unknown_language_data): Likewise.
2419 (auto_language_data): Likewise.
2420 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2421 field.
2422 (language_defn::lookup_symbol_nonlocal): New member function.
2423 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2424 initializer.
2425 * objc-lang.c (objc_language_data): Likewise.
2426 * opencl-lang.c (opencl_language_data): Likewise.
2427 * p-lang.c (pascal_language_data): Likewise.
2428 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2429 rust_language::lookup_symbol_nonlocal.
2430 (rust_language_data): Delete la_lookup_symbol_nonlocal
2431 initializer.
2432 (rust_language::lookup_symbol_nonlocal): New member function,
2433 implementation from rust_lookup_symbol_nonlocal.
2434 * symtab.c (lookup_symbol_aux): Update call to
2435 lookup_symbol_nonlocal.
2436 (basic_lookup_symbol_nonlocal): Rename to...
2437 (language_defn::lookup_symbol_nonlocal): ...this, and update
2438 header comment. Remove language_defn parameter, and replace with
2439 uses of `this'.
2440 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2441
2442 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2445 initializer.
2446 (ada_language::value_print_inner): New member function.
2447 * c-lang.c (c_language_data): Delete la_value_print_inner
2448 initializer.
2449 (cplus_language_data): Likewise.
2450 (asm_language_data): Likewise.
2451 (minimal_language_data): Likewise.
2452 * d-lang.c (d_language_data): Likewise.
2453 (d_language::value_print_inner): New member function.
2454 * f-lang.c (f_language_data): Delete la_value_print_inner
2455 initializer.
2456 (f_language::value_print_inner): New member function.
2457 * f-lang.h (f_value_print_innner): Rename to...
2458 (f_value_print_inner): ...this (note spelling of 'inner').
2459 * f-valprint.c (f_value_print_innner): Rename to...
2460 (f_value_print_inner): ...this (note spelling of 'inner').
2461 * go-lang.c (go_language_data): Delete la_value_print_inner
2462 initializer.
2463 (go_language::value_print_inner): New member function.
2464 * language.c (language_defn::value_print_inner): Define new member
2465 function.
2466 (unk_lang_value_print_inner): Delete.
2467 (unknown_language_data): Delete la_value_print_inner initializer.
2468 (unknown_language::value_print_inner): New member function.
2469 (auto_language_data): Delete la_value_print_inner initializer.
2470 (auto_language::value_print_inner): New member function.
2471 * language.h (language_data): Delete la_value_print_inner field.
2472 (language_defn::value_print_inner): Delcare new member function.
2473 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2474 initializer.
2475 (m2_language::value_print_inner): New member function.
2476 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2477 initializer.
2478 * opencl-lang.c (opencl_language_data): Likewise.
2479 * p-lang.c (pascal_language_data): Likewise.
2480 (pascal_language::value_print_inner): New member function.
2481 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2482 initializer.
2483 (rust_language::value_print_inner): New member function.
2484 * valprint.c (do_val_print): Update call to value_print_inner.
2485
2486 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * ada-lang.c (ada_language_data): Delete la_value_print
2489 initializer.
2490 (ada_language::value_print): New member function.
2491 * c-lang.c (c_language_data): Delete la_value_print initializer.
2492 (cplus_language_data): Likewise.
2493 (asm_language_data): Likewise.
2494 (minimal_language_data): Likewise.
2495 * d-lang.c (d_language_data): Likewise.
2496 * f-lang.c (f_language_data): Likewise.
2497 * go-lang.c (go_language_data): Likewise.
2498 * language.c (unk_lang_value_print): Delete.
2499 (language_defn::value_print): Define new member function.
2500 (unknown_language_data): Delete la_value_print initializer.
2501 (unknown_language::value_print): New member function.
2502 (auto_language_data): Delete la_value_print initializer.
2503 (auto_language::value_print): New member function.
2504 * language.h (language_data): Delete la_value_print field.
2505 (language_defn::value_print): Declare new member function.
2506 (LA_VALUE_PRINT): Update call to value_print.
2507 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2508 * objc-lang.c (objc_language_data): Likewise.
2509 * opencl-lang.c (opencl_language_data): Likewise.
2510 * p-lang.c (pascal_language_data): Likewise.
2511 (pascal_language::value_print): New member function.
2512 * rust-lang.c (rust_language_data): Delete la_value_print
2513 initializer.
2514
2515 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * ada-lang.c (ada_watch_location_expression): Rename to
2518 ada_language::watch_location_expression.
2519 (ada_language_data): Delete la_watch_location_expression
2520 initializer.
2521 (ada_language::watch_location_expression): New member function,
2522 implementation from ada_watch_location_expression.
2523 * breakpoint.c (watch_command_1): Update call to
2524 watch_location_expression.
2525 * c-lang.c (c_watch_location_expression): Rename to
2526 language_defn::watch_location_expression.
2527 (c_language_data): Delete la_watch_location_expression
2528 initializer.
2529 (cplus_language_data): Likewise.
2530 (asm_language_data): Likewise.
2531 (minimal_language_data): Likewise.
2532 * c-lang.h (c_watch_location_expression): Delete declaration.
2533 * d-lang.c (d_language_data): Delete la_watch_location_expression
2534 initializer.
2535 * f-lang.c (f_language_data): Likewise.
2536 * go-lang.c (go_language_data): Likewise.
2537 * language.c (language_defn::watch_location_expression): Member
2538 function implementation from c_watch_location_expression.
2539 (unknown_language_data): Delete la_watch_location_expression
2540 initializer.
2541 (auto_language_data): Likewise.
2542 * language.h (language_data): Delete la_watch_location_expression
2543 field.
2544 (language_defn::watch_location_expression): Declare new member
2545 function.
2546 * m2-lang.c (m2_language_data): Delete
2547 la_watch_location_expression initializer.
2548 * objc-lang.c (objc_language_data): Likewise.
2549 * opencl-lang.c (opencl_language_data): Likewise.
2550 * p-lang.c (pascal_language_data): Likewise.
2551 * rust-lang.c (rust_watch_location_expression): Rename to
2552 rust_language::watch_location_expression.
2553 (rust_language_data): Delete la_watch_location_expression
2554 initializer.
2555 (rust_language::watch_location_expression): New member function,
2556 implementation from rust_watch_location_expression.
2557
2558 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2561 ada_language::collect_symbol_completion_matches.
2562 (ada_language_data): Delete la_collect_symbol_completion_matches
2563 initializer.
2564 (ada_language::collect_symbol_completion_matches): New member
2565 function, implementation from
2566 ada_collect_symbol_completion_matches.
2567 * c-lang.c (c_language_data): Delete
2568 la_collect_symbol_completion_matches initializer.
2569 (cplus_language_data): Likewise.
2570 (asm_language_data): Likewise.
2571 (minimal_language_data): Likewise.
2572 * d-lang.c (d_language_data): Likewise.
2573 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2574 f_language::collect_symbol_completion_matches.
2575 (f_language_data): Delete la_collect_symbol_completion_matches
2576 initializer.
2577 (f_language::collect_symbol_completion_matches) New member
2578 function, implementation from f_collect_symbol_completion_matches.
2579 * go-lang.c (go_language_data): Delete
2580 la_collect_symbol_completion_matches initializer.
2581 * language.c (unknown_language_data): Likewise.
2582 (auto_language_data): Likewise.
2583 * language.h (language_data): Delete
2584 la_collect_symbol_completion_matches field.
2585 (language_defn::collect_symbol_completion_matches): New member
2586 function.
2587 * m2-lang.c (m2_language_data): Delete
2588 la_collect_symbol_completion_matches initializer.
2589 * objc-lang.c (objc_language_data): Likewise.
2590 * opencl-lang.c (opencl_language_data): Likewise.
2591 * p-lang.c (pascal_language_data): Likewise.
2592 * rust-lang.c (rust_language_data): Likewise.
2593 * symtab.c (default_collect_symbol_completion_matches): Delete.
2594 (collect_symbol_completion_matches): Update call to
2595 collect_symbol_completion_matches.
2596 (collect_symbol_completion_matches_type): Likewise.
2597 * symtab.h (default_collect_symbol_completion_matches): Delete
2598 declaration.
2599
2600 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2601
2602 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2603 (ada_language_data): Delete la_word_break_characters initializer.
2604 (ada_language::word_break_characters): New member function.
2605 * c-lang.c (c_language_data): Delete la_word_break_characters
2606 initializer.
2607 (cplus_language_data): Likewise.
2608 (asm_language_data): Likewise.
2609 (minimal_language_data): Likewise.
2610 * completer.c: Update global comment.
2611 (advance_to_expression_complete_word_point): Update call to
2612 word_break_characters.
2613 (complete_files_symbols): Likewise.
2614 (complete_line_internal_1): Likewise.
2615 (default_completer_handle_brkchars): Likewise.
2616 (skip_quoted_chars): Likewise.
2617 * d-lang.c (d_language_data): Delete la_word_break_characters
2618 initializer.
2619 * f-lang.c (f_word_break_characters): Delete.
2620 (f_language_data): Delete la_word_break_characters initializer.
2621 (f_language::word_break_characters): New member function.
2622 * go-lang.c (go_language_data): Delete la_word_break_characters
2623 initializer.
2624 * language.c (unknown_language_data): Likewise.
2625 (auto_language_data): Likewise.
2626 * language.h (default_word_break_characters): Move declaration to
2627 earlier in the file.
2628 (language_data): Delete la_word_break_characters field.
2629 (language_defn::word_break_characters): New member function.
2630 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2631 initializer.
2632 * objc-lang.c (objc_language_data): Likewise.
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 * rust-lang.c (rust_language_data): Likewise.
2636
2637 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2640 (ada_language_data): Delete la_get_symbol_name_matcher
2641 initializer.
2642 (language_defn::get_symbol_name_matcher_inner): New member
2643 function.
2644 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2645 initializer.
2646 (cplus_language_data): Likewise.
2647 (cplus_language::get_symbol_name_matcher_inner): New member
2648 function.
2649 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2650 (minimal_language_data): Likewise.
2651 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2652 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2653 initializer.
2654 * dictionary.c (iter_match_first_hashed): Update call to
2655 get_symbol_name_matcher.
2656 (iter_match_next_hashed): Likewise.
2657 (iter_match_next_linear): Likewise.
2658 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2659 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2660 initializer.
2661 (f_language::get_symbol_name_matcher_inner): New member function.
2662 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2663 initializer.
2664 * language.c (default_symbol_name_matcher): Update header comment,
2665 make static.
2666 (language_defn::get_symbol_name_matcher): New definition.
2667 (language_defn::get_symbol_name_matcher_inner): Likewise.
2668 (get_symbol_name_matcher): Delete.
2669 (unknown_language_data): Delete la_get_symbol_name_matcher
2670 initializer.
2671 (auto_language_data): Likewise.
2672 * language.h (language_data): Delete la_get_symbol_name_matcher
2673 field.
2674 (language_defn::get_symbol_name_matcher): New member function.
2675 (language_defn::get_symbol_name_matcher_inner): Likewise.
2676 (default_symbol_name_matcher): Delete declaration.
2677 * linespec.c (find_methods): Update call to
2678 get_symbol_name_matcher.
2679 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2680 initializer.
2681 * minsyms.c (lookup_minimal_symbol): Update call to
2682 get_symbol_name_matcher.
2683 (iterate_over_minimal_symbols): Likewise.
2684 * objc-lang.c (objc_language_data): Delete
2685 la_get_symbol_name_matcher initializer.
2686 * opencl-lang.c (opencl_language_data): Likewise.
2687 * p-lang.c (pascal_language_data): Likewise.
2688 * psymtab.c (psymbol_name_matches): Update call to
2689 get_symbol_name_matcher.
2690 * rust-lang.c (rust_language_data): Delete
2691 la_get_symbol_name_matcher initializer.
2692 * symtab.c (symbol_matches_search_name): Update call to
2693 get_symbol_name_matcher.
2694 (compare_symbol_name): Likewise.
2695
2696 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ada-lang.c (ada_language_data): Delete la_compute_program
2699 initializer.
2700 * c-lang.c (c_language_data): Likewise.
2701 (c_language::compute_program): New member function.
2702 (cplus_language_data): Delete la_compute_program initializer.
2703 (cplus_language::compute_program): New member function.
2704 (asm_language_data): Delete la_compute_program initializer.
2705 (minimal_language_data): Likewise.
2706 * c-lang.h (c_compute_program): Update comment.
2707 (cplus_compute_program): Likewise.
2708 * compile/compile-c-support.c (c_compute_program): Likewise.
2709 (cplus_compute_program): Likewise.
2710 * compile/compile.c (compile_to_object): Update call to
2711 la_compute_program.
2712 * d-lang.c (d_language_data): Delete la_compute_program
2713 initializer.
2714 * f-lang.c (f_language_data): Likewise.
2715 * go-lang.c (go_language_data): Likewise.
2716 * language.c (unknown_language_data): Likewise.
2717 (auto_language_data): Likewise.
2718 * language.h (language_data): Delete la_compute_program field.
2719 (language_defn::compute_program): New member function.
2720 * m2-lang.c (m2_language_data): Delete la_compute_program
2721 initializer.
2722 * objc-lang.c (objc_language_data): Likewise.
2723 * opencl-lang.c (opencl_language_data): Likewise.
2724 * p-lang.c (pascal_language_data): Likewise.
2725 * rust-lang.c (rust_language_data): Likewise.
2726
2727 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * ada-lang.c (ada_language_data) Delete
2730 la_class_name_from_physname initializer.
2731 * c-lang.c (c_language_data): Likewise.
2732 (cplus_language_data): Likewise.
2733 (cplus_language::class_name_from_physname): New member function.
2734 (asm_language_data): Delete la_class_name_from_physname
2735 initializer.
2736 (minimal_language_data): Likewise.
2737 * d-lang.c (d_language_data): Likewise.
2738 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2739 method on language_defn class.
2740 (guess_full_die_structure_name): Likewise.
2741 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2742 initializer.
2743 * go-lang.c (go_language_data): Likewise.
2744 * language.c (language_class_name_from_physname): Delete.
2745 (unk_lang_class_name): Delete.
2746 (unknown_language_data): Delete la_class_name_from_physname
2747 initializer.
2748 (auto_language_data): Likewise.
2749 * language.h (language_data): Delete la_class_name_from_physname
2750 field.
2751 (language_defn::class_name_from_physname): New function.
2752 (language_class_name_from_physname): Delete declaration.
2753 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2754 initializer.
2755 * objc-lang.c (objc_language_data): Likewise.
2756 * opencl-lang.c (opencl_language_data): Likewise.
2757 * p-lang.c (pascal_language_data): Likewise.
2758 * rust-lang.c (rust_language_data): Likewise.
2759
2760 2020-06-16 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-data.h (STATUS_NAME): New macro.
2763 * tui/tui-layout.c (tui_remove_some_windows)
2764 (initialize_known_windows, tui_register_window)
2765 (tui_layout_split::remove_windows, initialize_layouts)
2766 (tui_new_layout_command): Don't use hard-coded window names.
2767
2768 2020-06-16 Tom Tromey <tom@tromey.com>
2769
2770 PR tui/25348:
2771 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2772 tui_initialize_readline. Only run once. Call rl_initialize.
2773 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2774 tui_initialize_readline.
2775 * tui/tui-io.c (tui_setup_io): Call
2776 tui_ensure_readline_initialized.
2777 * tui/tui-interp.c (tui_interp::init): Update.
2778
2779 2020-06-16 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2782 Also preserve the status window.
2783
2784 2020-06-16 Tom Tromey <tom@tromey.com>
2785
2786 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2787 where m_window==nullptr.
2788
2789 2020-06-15 Tom Tromey <tromey@adacore.com>
2790
2791 * windows-nat.c (windows_nat::handle_output_debug_string):
2792 Update.
2793 (windows_nat::handle_ms_vc_exception): Update.
2794 * target.h (target_read_string): Change API.
2795 * target.c (target_read_string): Change API.
2796 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2797 Update.
2798 * solib-frv.c (frv_current_sos): Update.
2799 * solib-dsbt.c (dsbt_current_sos): Update.
2800 * solib-darwin.c (darwin_current_sos): Update.
2801 * linux-thread-db.c (inferior_has_bug): Update.
2802 * expprint.c (print_subexp_standard): Update.
2803 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2804 (ada_exception_message_1): Update.
2805
2806 2020-06-15 Tom Tromey <tromey@adacore.com>
2807
2808 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2809
2810 2020-06-15 Tom Tromey <tromey@adacore.com>
2811
2812 * valprint.c (read_string): Update comment.
2813 * target.c (MIN): Remove.
2814 (target_read_string): Rewrite.
2815
2816 2020-06-15 Tom Tromey <tromey@adacore.com>
2817
2818 * corefile.c (read_memory_string): Remove.
2819 * ada-valprint.c (ada_value_print_ptr): Update.
2820 * ada-lang.h (ada_tag_name): Change return type.
2821 * ada-lang.c (type_from_tag): Update.
2822 (ada_tag_name_from_tsd): Change return type. Use
2823 target_read_string.
2824 (ada_tag_name): Likewise.
2825 * gdbcore.h (read_memory_string): Don't declare.
2826
2827 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2828
2829 * symtab.c (rbreak_command): Ignore Windows drive colon.
2830
2831 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * NEWS: Mention removed GDBserver host support.
2834
2835 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2836
2837 * features/riscv/rebuild-csr-xml.sh: Updated.
2838
2839 2020-06-11 Tom Tromey <tom@tromey.com>
2840
2841 PR gdb/18318:
2842 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2843
2844 2020-06-09 Jonny Grant <jg@jguk.org>
2845 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * main.c (captured_main_1): Don't print new line after help.
2848 (print_gdb_help): add mailing list and IRC channel information
2849 to --help. Add new lines between items in the footer. Remove
2850 quotes around bug url.
2851
2852 2020-06-11 Keith Seitz <keiths@redhat.com>
2853
2854 PR gdb/21356
2855 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2856 Resolve typedefs for type length calculations.
2857
2858 2020-06-10 Tom de Vries <tdevries@suse.de>
2859
2860 PR ada/24713
2861 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2862 (write_psymbols): Enable .gdb_index for ada.
2863 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2864 ada.
2865
2866 2020-06-10 Tom de Vries <tdevries@suse.de>
2867
2868 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2869 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2870 namei" instead of "const char *name" argument.
2871 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2872 dw2_symtab_iter_init.
2873
2874 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2877 to use type::field and field::type instead.
2878
2879 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2882 to use field::type instead.
2883
2884 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * gdbtypes.h (struct field) <type, set_type>: New methods.
2887 Rename `type` field to...
2888 <m_type>: ... this. Change references throughout to use type or
2889 set_type methods.
2890 (FIELD_TYPE): Use field::type. Change call sites that modify
2891 the field's type to use field::set_type instead.
2892
2893 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2896 to use type::index_type instead.
2897
2898 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2901 methods.
2902 (TYPE_INDEX_TYPE): Use type::index_type.
2903 * gdbtypes.c (create_array_type_with_stride): Likewise.
2904
2905 2020-06-07 Tom Tromey <tom@tromey.com>
2906
2907 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2908 parameter.
2909 (generic_value_print): Update.
2910
2911 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 Revert commit 982a38f60b0.
2914 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2915
2916 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2919 avoid use after free.
2920
2921 2020-06-05 Tom de Vries <tdevries@suse.de>
2922
2923 * NEWS: Fix typos.
2924
2925 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2926
2927 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2928 the per_bfd object.
2929 (dwarf2_read_debug_names): Likewise.
2930 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2931 object when re-using a per_bfd object with an index.
2932
2933 2020-06-03 Tom de Vries <tdevries@suse.de>
2934
2935 PR symtab/26046
2936 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2937 children for C++.
2938 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2939 DW_TAG_subprogram.
2940
2941 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * ada-lang.c (ada_language_data): Delete skip_trampoline
2944 initializer.
2945 * c-lang.c (c_language_data): Likewise.
2946 (cplus_language_data): Likewise.
2947 (cplus_language::skip_trampoline): New member function.
2948 (asm_language_data): Delete skip_trampoline initializer.
2949 (minimal_language_data): Likewise.
2950 * d-lang.c (d_language_data): Likewise.
2951 * f-lang.c (f_language_data): Likewise.
2952 * go-lang.c (go_language_data): Likewise.
2953 * language.c (unk_lang_trampoline): Delete function.
2954 (skip_language_trampoline): Update.
2955 (unknown_language_data): Delete skip_trampoline initializer.
2956 (auto_language_data): Likewise.
2957 * language.h (language_data): Delete skip_trampoline field.
2958 (language_defn::skip_trampoline): New function.
2959 * m2-lang.c (m2_language_data): Delete skip_trampoline
2960 initializer.
2961 * objc-lang.c (objc_skip_trampoline): Delete function, move
2962 implementation to objc_language::skip_trampoline.
2963 (objc_language_data): Delete skip_trampoline initializer.
2964 (objc_language::skip_trampoline): New member function with
2965 implementation from objc_skip_trampoline.
2966 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2967 initializer.
2968 * p-lang.c (pascal_language_data): Likewise.
2969 * rust-lang.c (rust_language_data): Likewise.
2970
2971 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2974 (ada_language::demangle): New member function.
2975 * c-lang.c (c_language_data): Delete la_demangle initializer.
2976 (cplus_language_data): Delete la_demangle initializer.
2977 (cplus_language::demangle): New member function.
2978 (asm_language_data): Delete la_demangle initializer.
2979 (minimal_language_data): Delete la_demangle initializer.
2980 * d-lang.c (d_language_data): Delete la_demangle initializer.
2981 (d_language::demangle): New member function.
2982 * f-lang.c (f_language_data): Delete la_demangle initializer.
2983 (f_language::demangle): New member function.
2984 * go-lang.c (go_language_data): Delete la_demangle initializer.
2985 (go_language::demangle): New member function.
2986 * language.c (language_demangle): Update.
2987 (unk_lang_demangle): Delete.
2988 (unknown_language_data): Delete la_demangle initializer.
2989 (unknown_language::demangle): New member function.
2990 (auto_language_data): Delete la_demangle initializer.
2991 (auto_language::demangle): New member function.
2992 * language.h (language_data): Delete la_demangle field.
2993 (language_defn::demangle): New function.
2994 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2995 * objc-lang.c (objc_language_data): Delete la_demangle
2996 initializer.
2997 (objc_language::demangle): New member function.
2998 * opencl-lang.c (opencl_language_data): Delete la_demangle
2999 initializer.
3000 * p-lang.c (pascal_language_data): Likewise.
3001 * rust-lang.c (rust_language_data): Likewise.
3002 (rust_language::demangle): New member function.
3003
3004 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * ada-lang.c (ada_language_data): Delete la_print_type
3007 initializer.
3008 (ada_language::print_type): New member function.
3009 * c-lang.c (c_language_data): Delete la_print_type initializer.
3010 (c_language::print_type): New member function.
3011 (cplus_language_data): Delete la_print_type initializer.
3012 (cplus_language::print_type): New member function.
3013 (asm_language_data): Delete la_print_type initializer.
3014 (asm_language::print_type): New member function.
3015 (minimal_language_data): Delete la_print_type initializer.
3016 (minimal_language::print_type): New member function.
3017 * d-lang.c (d_language_data): Delete la_print_type initializer.
3018 (d_language::print_type): New member function.
3019 * f-lang.c (f_language_data): Delete la_print_type initializer.
3020 (f_language::print_type): New member function.
3021 * go-lang.c (go_language_data): Delete la_print_type initializer.
3022 (go_language::print_type): New member function.
3023 * language.c (unk_lang_print_type): Delete.
3024 (unknown_language_data): Delete la_print_type initializer.
3025 (unknown_language::print_type): New member function.
3026 (auto_language_data): Delete la_print_type initializer.
3027 (auto_language::print_type): New member function.
3028 * language.h (language_data): Delete la_print_type field.
3029 (language_defn::print_type): New function.
3030 (LA_PRINT_TYPE): Update.
3031 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3032 (m2_language::print_type): New member function.
3033 * objc-lang.c (objc_language_data): Delete la_print_type
3034 initializer.
3035 (objc_language::print_type): New member function.
3036 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3037 to opencl_language::print_type.
3038 (opencl_language_data): Delete la_print_type initializer.
3039 (opencl_language::print_type): New member function, implementation
3040 from opencl_print_type.
3041 * p-lang.c (pascal_language_data): Delete la_print_type
3042 initializer.
3043 (pascal_language::print_type): New member function.
3044 * rust-lang.c (rust_print_type): Delete, implementation moved to
3045 rust_language::print_type.
3046 (rust_language_data): Delete la_print_type initializer.
3047 (rust_language::print_type): New member function, implementation
3048 from rust_print_type.
3049
3050 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3053 implementation moves to...
3054 (ada_language::sniff_from_mangled_name): ...here. Update return
3055 type.
3056 (ada_language_data): Delete la_sniff_from_mangled_name
3057 initializer.
3058 * c-lang.c (c_language_data): Likewise.
3059 (cplus_language_data): Likewise.
3060 (cplus_language::sniff_from_mangled_name): New member function,
3061 implementation taken from gdb_sniff_from_mangled_name.
3062 (asm_language_data): Delete la_sniff_from_mangled_name
3063 initializer.
3064 (minimal_language_data): Likewise.
3065 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3066 implementation moves to cplus_language::sniff_from_mangled_name.
3067 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3068 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3069 moves to...
3070 (d_language::sniff_from_mangled_name): ...here.
3071 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3072 * f-lang.c (f_language_data): Likewise.
3073 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3074 moves to...
3075 (go_language::sniff_from_mangled_name): ...here.
3076 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3077 * language.c (language_sniff_from_mangled_name): Delete.
3078 (unknown_language_data): Delete la_sniff_from_mangled_name
3079 initializer.
3080 (auto_language_data): Likewise.
3081 * language.h (language_data): Delete la_sniff_from_mangled_name
3082 field.
3083 (language_defn::sniff_from_mangled_name): New function.
3084 (language_sniff_from_mangled_name): Delete declaration.
3085 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3086 field.
3087 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3088 implementation moves to...
3089 (objc_language::sniff_from_mangled_name): ...here.
3090 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3091 * opencl-lang.c (opencl_language_data): Likewise.
3092 * p-lang.c (pascal_language_data): Likewise.
3093 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3094 implementation moves to...
3095 (rust_language::sniff_from_mangled_name): ...here.
3096 (rust_language_data): Delete la_sniff_from_mangled_name
3097 initializer.
3098 * symtab.c (symbol_find_demangled_name): Call
3099 sniff_from_mangled_name member function.
3100
3101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3104 initializer.
3105 * c-lang.c (c_language_data): Likewise.
3106 (cplus_language_data): Likewise.
3107 (cplus_language::search_name_hash): New member function.
3108 (asm_language_data): Delete la_search_name_hash initializer.
3109 (minimal_language_data): Likewise.
3110 * d-lang.c (d_language_data): Likewise.
3111 * dictionary.c (default_search_name_hash): Rename to...
3112 (language_defn::search_name_hash): ...this.
3113 * f-lang.c (f_language_data): Likewise.
3114 (f_language::search_name_hash): New member function.
3115 * go-lang.c (go_language_data): Delete la_search_name_hash
3116 initializer.
3117 * language.c (unknown_language_data): Likewise.
3118 (auto_language_data): Likewise.
3119 * language.h (struct language_data): Delete la_search_name_hash
3120 field.
3121 (language_defn::search_name_hash): Declare new member function.
3122 (default_search_name_hash): Delete declaration.
3123 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3124 initializer.
3125 * objc-lang.c (objc_language_data): Likewise.
3126 * opencl-lang.c (opencl_language_data): Likewise.
3127 * p-lang.c (pascal_language_data): Likewise.
3128 * rust-lang.c (rust_language_data): Likewise.
3129 * symtab.c (search_name_hash): Update call.
3130
3131 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3134 initializer.
3135 * c-lang.c (class compile_instance): Declare.
3136 (c_language_data): Delete la_get_compile_instance initializer.
3137 (c_language::get_compile_instance): New member function.
3138 (cplus_language_data): Delete la_get_compile_instance initializer.
3139 (cplus_language::get_compile_instance): New member function.
3140 (asm_language_data): Delete la_get_compile_instance initializer.
3141 (minimal_language_data): Likewise.
3142 * c-lang.h (c_get_compile_context): Update comment.
3143 (cplus_get_compile_context): Update comment.
3144 * compile/compile.c (compile_to_object): Update calls, don't rely
3145 on function pointer being NULL.
3146 * d-lang.c (d_language_data): Delete la_get_compile_instance
3147 initializer.
3148 * f-lang.c (f_language_data): Likewise.
3149 * go-lang.c (go_language_data): Likewise.
3150 * language.c (unknown_language_data): Likewise.
3151 (auto_language_data): Likewise.
3152 * language.h (language_data): Delete la_get_compile_instance field.
3153 (language_defn::get_compile_instance): New member function.
3154 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3155 initializer.
3156 * objc-lang.c (objc_language_data): Likewise.
3157 * opencl-lang.c (opencl_language_data): Likewise.
3158 * p-lang.c (pascal_language_data): Likewise.
3159 * rust-lang.c (rust_language_data): Likewise.
3160
3161 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * ada-lang.c (ada_add_all_symbols): Update comment.
3164 (ada_iterate_over_symbols): Delete, move implementation to...
3165 (ada_language::iterate_over_symbols): ...here, a new member
3166 function, rewrite to use range based for loop.
3167 (ada_language_data): Delete la_iterate_over_symbols initializer.
3168 * c-lang.c (c_language_data): Likewise.
3169 (cplus_language_data): Likewise.
3170 (asm_language_data): Likewise.
3171 (minimal_language_data): Likewise.
3172 * d-lang.c (d_language_data): Likewise.
3173 * f-lang.c (f_language_data): Likewise.
3174 * go-lang.c (go_language_data): Likewise.
3175 * language.c (unknown_language_data): Likewise.
3176 (auto_language_data): Likewise.
3177 * language.h (language_data): Delete la_iterate_over_symbols field.
3178 (language_defn::iterate_over_symbols): New member function.
3179 (LA_ITERATE_OVER_SYMBOLS): Update.
3180 * linespec.c (iterate_over_all_matching_symtabs): Update.
3181 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3182 initializer.
3183 * objc-lang.c (objc_language_data): Likewise.
3184 * opencl-lang.c (opencl_language_data): Likewise.
3185 * p-lang.c (pascal_language_data): Likewise.
3186 * rust-lang.c (rust_language_data): Likewise.
3187
3188 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_language_data): Delete
3191 la_lookup_transparent_type initializer.
3192 * c-lang.c (c_language_data): Likewise.
3193 (cplus_language_data): Likewise.
3194 (cplus_language::lookup_transparent_type): New member function.
3195 (asm_language_data): Delete la_lookup_transparent_type
3196 initializer.
3197 (minimal_language_data): Likewise.
3198 * d-lang.c (d_language_data): Likewise.
3199 * f-lang.c (f_language_data): Likewise.
3200 * go-lang.c (go_language_data): Likewise.
3201 * language.c (unknown_language_data): Likewise.
3202 (auto_language_data): Likewise.
3203 * language.h (struct language_data): Delete
3204 la_lookup_transparent_type field.
3205 (language_defn::lookup_transparent_type): New member function.
3206 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3207 initializer.
3208 * objc-lang.c (objc_language_data): Likewise.
3209 * opencl-lang.c (opencl_language_data): Likewise.
3210 * p-lang.c (pascal_language_data): Likewise.
3211 * rust-lang.c (rust_language_data): Likewise.
3212 * symtab.c (symbol_matches_domain): Update call.
3213
3214 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * ada-lang.c (ada_language_arch_info): Delete function, move
3217 implementation to...
3218 (ada_language::language_arch_info): ...here, a new member
3219 function.
3220 (ada_language_data): Delete la_language_arch_info.
3221 * c-lang.c (c_language_data): Likewise.
3222 (c_language::language_arch_info): New member function.
3223 (cplus_language_arch_info): Delete function, move
3224 implementation to...
3225 (cplus_language::language_arch_info): ...here, a new member
3226 function.
3227 (cplus_language_data): Delete la_language_arch_info.
3228 (asm_language_data): Likewise.
3229 (asm_language::language_arch_info): New member function.
3230 (minimal_language_data): Delete la_language_arch_info.
3231 (minimal_language::language_arch_info): New member function.
3232 * d-lang.c (d_language_arch_info): Delete function, move
3233 implementation to...
3234 (d_language::language_arch_info): ...here, a new member
3235 function.
3236 (d_language_data): Delete la_language_arch_info.
3237 * f-lang.c (f_language_arch_info): Delete function, move
3238 implementation to...
3239 (f_language::language_arch_info): ...here, a new member
3240 function.
3241 (f_language_data): Delete la_language_arch_info.
3242 * go-lang.c (go_language_arch_info): Delete function, move
3243 implementation to...
3244 (go_language::language_arch_info): ...here, a new member
3245 function.
3246 (go_language_data): Delete la_language_arch_info.
3247 * language.c (unknown_language_data): Likewise.
3248 (unknown_language::language_arch_info): New member function.
3249 (auto_language_data): Delete la_language_arch_info.
3250 (auto_language::language_arch_info): New member function.
3251 (language_gdbarch_post_init): Update call to
3252 la_language_arch_info.
3253 * language.h (language_data): Delete la_language_arch_info
3254 function pointer.
3255 (language_defn::language_arch_info): New function.
3256 * m2-lang.c (m2_language_arch_info): Delete function, move
3257 implementation to...
3258 (m2_language::language_arch_info): ...here, a new member
3259 function.
3260 (m2_language_data): Delete la_language_arch_info.
3261 * objc-lang.c (objc_language_arch_info): Delete function, move
3262 implementation to...
3263 (objc_language::language_arch_info): ...here, a new member
3264 function.
3265 (objc_language_data): Delete la_language_arch_info.
3266 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3267 implementation to...
3268 (opencl_language::language_arch_info): ...here, a new member
3269 function.
3270 (opencl_language_data): Delete la_language_arch_info.
3271 * p-lang.c (pascal_language_arch_info): Delete function, move
3272 implementation to...
3273 (pascal_language::language_arch_info): ...here, a new member
3274 function.
3275 (pascal_language_data): Delete la_language_arch_info.
3276 * rust-lang.c (rust_language_arch_info): Delete function, move
3277 implementation to...
3278 (rust_language::language_arch_info): ...here, a new member
3279 function.
3280 (rust_language_data): Delete la_language_arch_info.
3281
3282 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3285 initializer.
3286 * c-lang.c (c_language_data): Likewise.
3287 (cplus_language_data): Likewise.
3288 (cplus_language::pass_by_reference_info): New method.
3289 (asm_language_data): Delete la_pass_by_reference initializer.
3290 (minimal_language_data): Likewise.
3291 * cp-abi.c (cp_pass_by_reference): Remove use of
3292 default_pass_by_reference.
3293 * d-lang.c (d_language_data): Likewise.
3294 * f-lang.c (f_language_data): Likewise.
3295 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3296 default_pass_by_reference.
3297 * go-lang.c (go_language_data): Likewise.
3298 * language.c (language_pass_by_reference): Update.
3299 (default_pass_by_reference): Delete.
3300 (unknown_language_data): Delete la_pass_by_reference
3301 initializer.
3302 (auto_language_data): Likewise.
3303 * language.h (struct language_data): Delete la_pass_by_reference
3304 field.
3305 (language_defn::pass_by_reference_info): New member function.
3306 (default_pass_by_reference): Delete declaration.
3307 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3308 initializer.
3309 * objc-lang.c (objc_language_data): Likewise.
3310 * opencl-lang.c (opencl_language_data): Likewise.
3311 * p-lang.c (pascal_language_data): Likewise.
3312 * rust-lang.c (rust_language_data): Likewise.
3313
3314 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * ada-lang.c (ada_read_var_value): Delete function, move
3317 implementation to...
3318 (ada_language::read_var_value): ...here.
3319 (ada_language_data): Delete la_read_var_value initializer.
3320 * c-lang.c (c_language_data): Likewise.
3321 (cplus_language_data): Likewise.
3322 (minimal_language_data): Likewise.
3323 * d-lang.c (d_language_data): Likewise.
3324 * f-lang.c (f_language_data): Likewise.
3325 * findvar.c (default_read_var_value): Rename to...
3326 (language_defn::read_var_value): ...this.
3327 * findvar.c (read_var_value): Update header comment, and change to
3328 call member function instead of function pointer.
3329 * go-lang.c (go_language_data): Likewise.
3330 * language.c (unknown_language_data): Delete la_read_var_value
3331 initializer.
3332 (auto_language_data): Likewise.
3333 * language.h (struct language_data): Delete la_read_var_value
3334 field.
3335 (language_defn::read_var_value): New member function.
3336 (default_read_var_value): Delete declaration.
3337 * m2-lang.c (m2_language_data): Delete la_read_var_value
3338 initializer.
3339 * objc-lang.c (objc_language_data): Likewise.
3340 * opencl-lang.c (opencl_language_data): Likewise.
3341 * p-lang.c (pascal_language_data): Likewise.
3342 * rust-lang.c (rust_language_data): Likewise.
3343 * value.h (default_read_var_value): Delete declaration.
3344
3345 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * ada-lang.c (ada_print_array_index): Delete function, move
3348 implementation to...
3349 (ada_language::print_array_index): ...here.
3350 (ada_language_data): Delete la_print_array_index initializer.
3351 * c-lang.c (c_language_data): Likewise.
3352 (cplus_language_data): Likewise.
3353 (minimal_language_data): Likewise.
3354 * d-lang.c (d_language_data): Likewise.
3355 * f-lang.c (f_language_data): Likewise.
3356 * go-lang.c (go_language_data): Likewise.
3357 * language.c (default_print_array_index): Delete function, move
3358 implementation to...
3359 (language_defn::print_array_index): ...here.
3360 (unknown_language_data): Delete la_print_array_index initializer.
3361 (auto_language_data): Likewise.
3362 * language.h (struct language_data): Delete la_print_array_index
3363 field.
3364 (language_defn::print_array_index): New member function.
3365 (LA_PRINT_ARRAY_INDEX): Update.
3366 (default_print_array_index): Delete declaration.
3367 * m2-lang.c (m2_language_data): Delete la_print_array_index
3368 initializer.
3369 * objc-lang.c (objc_language_data): Likewise.
3370 * opencl-lang.c (opencl_language_data): Likewise.
3371 * p-lang.c (pascal_language_data): Likewise.
3372 * rust-lang.c (rust_language_data): Likewise.
3373
3374 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * gdb/ada-lang.c (ada_language_defn): Convert to...
3377 (ada_language_data): ...this.
3378 (class ada_language): New class.
3379 (ada_language_defn): New static global.
3380 * gdb/c-lang.c (c_language_defn): Convert to...
3381 (c_language_data): ...this.
3382 (class c_language): New class.
3383 (c_language_defn): New static global.
3384 (cplus_language_defn): Convert to...
3385 (cplus_language_data): ...this.
3386 (class cplus_language): New class.
3387 (cplus_language_defn): New static global.
3388 (asm_language_defn): Convert to...
3389 (asm_language_data): ...this.
3390 (class asm_language): New class.
3391 (asm_language_defn): New static global.
3392 (minimal_language_defn): Convert to...
3393 (minimal_language_data): ...this.
3394 (class minimal_language): New class.
3395 (minimal_language_defn): New static global.
3396 * gdb/d-lang.c (d_language_defn): Convert to...
3397 (d_language_data): ...this.
3398 (class d_language): New class.
3399 (d_language_defn): New static global.
3400 * gdb/f-lang.c (f_language_defn): Convert to...
3401 (f_language_data): ...this.
3402 (class f_language): New class.
3403 (f_language_defn): New static global.
3404 * gdb/go-lang.c (go_language_defn): Convert to...
3405 (go_language_data): ...this.
3406 (class go_language): New class.
3407 (go_language_defn): New static global.
3408 * gdb/language.c (unknown_language_defn): Remove declaration.
3409 (current_language): Initialize to nullptr, real initialization is
3410 moved to _initialize_language.
3411 (languages): Delete global.
3412 (language_defn::languages): Define.
3413 (set_language_command): Use language_defn::languages.
3414 (set_language): Likewise.
3415 (range_error): Likewise.
3416 (language_enum): Likewise.
3417 (language_def): Likewise.
3418 (add_set_language_command): Use language_def::languages for the
3419 language list, and language_def to lookup language pointers.
3420 (skip_language_trampoline): Use language_defn::languages.
3421 (unknown_language_defn): Convert to...
3422 (unknown_language_data): ...this.
3423 (class unknown_language): New class.
3424 (unknown_language_defn): New static global.
3425 (auto_language_defn): Convert to...
3426 (auto_language_data): ...this.
3427 (class auto_language): New class.
3428 (auto_language_defn): New static global.
3429 (language_gdbarch_post_init): Use language_defn::languages.
3430 (_initialize_language): Initialize current_language.
3431 * gdb/language.h (struct language_defn): Rename to...
3432 (struct language_data): ...this.
3433 (struct language_defn): New.
3434 (auto_language_defn): Delete.
3435 (unknown_language_defn): Delete.
3436 (minimal_language_defn): Delete.
3437 (ada_language_defn): Delete.
3438 (asm_language_defn): Delete.
3439 (c_language_defn): Delete.
3440 (cplus_language_defn): Delete.
3441 (d_language_defn): Delete.
3442 (f_language_defn): Delete.
3443 (go_language_defn): Delete.
3444 (m2_language_defn): Delete.
3445 (objc_language_defn): Delete.
3446 (opencl_language_defn): Delete.
3447 (pascal_language_defn): Delete.
3448 (rust_language_defn): Delete.
3449 * gdb/m2-lang.c (m2_language_defn): Convert to...
3450 (m2_language_data): ...this.
3451 (class m2_language): New class.
3452 (m2_language_defn): New static global.
3453 * gdb/objc-lang.c (objc_language_defn): Convert to...
3454 (objc_language_data): ...this.
3455 (class objc_language): New class.
3456 (objc_language_defn): New static global.
3457 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3458 (opencl_language_data): ...this.
3459 (class opencl_language): New class.
3460 (opencl_language_defn): New static global.
3461 * gdb/p-lang.c (pascal_language_defn): Convert to...
3462 (pascal_language_data): ...this.
3463 (class pascal_language): New class.
3464 (pascal_language_defn): New static global.
3465 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3466 language pointer, update comment format.
3467 * gdb/rust-lang.c (rust_language_defn): Convert to...
3468 (rust_language_data): ...this.
3469 (class rust_language): New class.
3470 (rust_language_defn): New static global.
3471
3472 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3475 member variable.
3476 <m_stmt_at_address>: New member variable.
3477 (lnp_state_machine::record_line): Don't record some lines, update
3478 tracking of is_stmt at the same address.
3479 (lnp_state_machine::lnp_state_machine): Initialise new member
3480 variables.
3481
3482 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3483
3484 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3485 "-include gnu-nat-mig.h".
3486 * gnu-nat-mig.h: New file.
3487 * gnu-nat.c: Include "gnu-nat-mig.h".
3488 (exc_server, msg_reply_server, notify_server,
3489 process_reply_server): Remove declarations.
3490
3491 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3492
3493 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3494 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3495 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3496 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3497 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3498 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3499 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3500 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3501 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3502 to gnu_nat_target class.
3503 * gnu-nat.c: Likewise.
3504 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3505 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3506 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3507 object.
3508 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3509 instead of `gnu_target'.
3510
3511 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3512
3513 * i386-gnu-tdep.c: Include "gdbcore.h"
3514 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3515 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3516 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3517 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3518 i386_gnu_sigcontext_addr): New functions
3519 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3520 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3521 tdep.
3522
3523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3524
3525 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3526 before fork_inferior call. Avoid calling it if target_is_pushed returns
3527 true.
3528
3529 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3530
3531 * gnu-nat.h (gnu_target): New variable declaration.
3532 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3533 gnu_target.
3534 * gnu-nat.c (gnu_target): New variable.
3535 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3536 add_thread_silent, and add_thread calls.
3537 (gnu_nat_target::create_inferior): Pass gnu_target to
3538 add_thread_silent, thread_change_ptid call.
3539 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3540 call.
3541
3542 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3543
3544 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3545 (gnu_nat_target::find_memory_regions): Remove unused
3546 `old_address' variable.
3547
3548 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3549
3550 * gnu-nat.c: Include "gdbarch.h".
3551
3552 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3553
3554 * reply_mig_hack.awk (Error return): Cast function through
3555 void *, to bypass compiler function call check.
3556
3557 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3558
3559 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3560 $(srcdir)/reply_mig_hack.awk.
3561
3562 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3563
3564 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3565
3566 2020-05-30 Jonny Grant <jg@jguk.org>
3567
3568 * configure.ac (ACX_BUGURL): change bug URL to https.
3569
3570 2020-05-30 Pedro Alves <palves@redhat.com>
3571
3572 * cp-support.c (replace_typedefs_template): New.
3573 (replace_typedefs_qualified_name): Handle
3574 DEMANGLE_COMPONENT_TEMPLATE.
3575
3576 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3579 dwarf2/index-cache.h, dwarf2/index-write.c,
3580 dwarf2/index-write.h, dwarf2/line-header.c,
3581 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3582 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3583 variables and fields from `dwarf2_per_objfile` to just
3584 `per_objfile` throughout.
3585
3586 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3589 <push_dwarf_reg_entry_value>: Add comment.
3590
3591 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3592 Keith Seitz <keiths@redhat.com>
3593
3594 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3595 instead of PyEval_ReleaseLock.
3596 (class gdbpy_gil): Move to earlier in file.
3597 (finalize_python): Set gdb_python_initialized.
3598 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3599 when not initialized.
3600
3601 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3604 <push_dwarf_reg_entry_value>: Remove assert. Override
3605 per_objfile with caller_per_objfile.
3606
3607 2020-05-28 Tom de Vries <tdevries@suse.de>
3608
3609 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3610 PR gold/15646 workaround to symbol kind "type".
3611
3612 2020-05-27 Tom Tromey <tromey@adacore.com>
3613
3614 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3615
3616 2020-05-27 Tom Tromey <tromey@adacore.com>
3617
3618 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3619 Use htab_find_with_hash.
3620 <add_abbrev>: Remove "abbrev_number" parameter.
3621 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3622 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3623 (hash_abbrev): Add comment.
3624 (abbrev_table::lookup_abbrev): Move to header file.
3625 (abbrev_table::read): Update.
3626
3627 2020-05-27 Tom Tromey <tromey@adacore.com>
3628
3629 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3630 method.
3631 <canonical_name>: New member.
3632 <raw_name>: Rename from "name".
3633 (partial_die_info): Initialize canonical_name.
3634 (scan_partial_symbols): Check raw_name.
3635 (partial_die_parent_scope, partial_die_full_name)
3636 (add_partial_symbol, add_partial_subprogram)
3637 (add_partial_enumeration, load_partial_dies): Use "name" method.
3638 (partial_die_info::name): New method.
3639 (partial_die_info::read, guess_partial_die_structure_name)
3640 (partial_die_info::fixup): Update.
3641
3642 2020-05-27 Tom Tromey <tromey@adacore.com>
3643
3644 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3645 <get_ref_die_offset>: Inline.
3646 <get_ref_die_offset_complaint>: New method.
3647 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3648 (attribute::get_ref_die_offset_complaint): Rename from
3649 get_ref_die_offset. Just issue complaint.
3650
3651 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3652
3653 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3654
3655 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3656
3657 * exec.c (exec_file_attach): Use errno value of first openp failure.
3658
3659 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3660
3661 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3662 Don't close thread handle.
3663
3664 2020-05-27 Tom Tromey <tom@tromey.com>
3665 Simon Marchi <simon.marchi@efficios.com>
3666
3667 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3668 shared_ptr.
3669 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3670 member.
3671 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3672 dwarf2_per_bfd_objfile_data_key>: New globals.
3673 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3674 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3675 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3676 shared.
3677 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3678 short-circuit when sharing.
3679 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3680 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3681
3682 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3685 to...
3686 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3687 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3688
3689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3692 build_name_components, find_name_components_bounds>:
3693 Add per_objfile parameter.
3694 (struct mapped_index) <symbol_name_at>: Likewise.
3695 (struct mapped_debug_names): Remove constructor.
3696 <dwarf2_per_objfile>: Remove field.
3697 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3698 (mapped_index_base::find_name_components_bounds,
3699 mapped_index_base::build_name_components,
3700 dw2_expand_symtabs_matching_symbol): Likewise.
3701 (class mock_mapped_index) <symbol_name_at>: Likewise.
3702 (check_match): Likewise.
3703 (check_find_bounds_finds): Likewise.
3704 (test_mapped_index_find_name_component_bounds): Update.
3705 (CHECK_MATCH): Update.
3706 (dw2_expand_symtabs_matching): Update.
3707 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3708 per_objfile parameter.
3709 <find_vec_in_debug_names>: Likewise.
3710 <m_per_objfile>: New field.
3711 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3712 parameter.
3713 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3714 (dw2_debug_names_iterator::next): Update.
3715 (dw2_debug_names_lookup_symbol): Update.
3716 (dw2_debug_names_expand_symtabs_for_function): Update.
3717 (dw2_debug_names_map_matching_symbols): Update.
3718 (dw2_debug_names_expand_symtabs_matching): Update.
3719 (dwarf2_read_debug_names): Update.
3720
3721 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3724 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3725 move to dwarf2_per_objfile.
3726 <read_in_chain>: Remove.
3727 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3728 remove_all_cus, age_comp_units>: New methods.
3729 <m_dwarf2_cus>: New member.
3730 (struct dwarf2_per_cu_data) <cu>: Remove.
3731 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3732 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3733 moved to methods of dwarf2_per_objfile.
3734 (dwarf2_clear_marks): Remove.
3735 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3736 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3737 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3738 (dwarf2_per_objfile::remove_all_cus): New.
3739 (class free_cached_comp_units) <~free_cached_comp_units>:
3740 Update.
3741 (load_cu): Update.
3742 (dw2_do_instantiate_symtab): Adjust.
3743 (fill_in_sig_entry_from_dwo_entry): Adjust.
3744 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3745 (cutu_reader::cutu_reader): Likewise.
3746 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3747 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3748 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3749 and dwarf2_per_objfile::age_comp_units.
3750 (load_partial_comp_unit): Update.
3751 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3752 (process_queue): Likewise.
3753 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3754 backlink.
3755 (dwarf2_read_addr_index): Likewise.
3756 (follow_die_offset): Likewise.
3757 (dwarf2_fetch_die_loc_sect_off): Likewise.
3758 (dwarf2_fetch_constant_bytes): Likewise.
3759 (dwarf2_fetch_die_type_sect_off): Likewise.
3760 (follow_die_sig_1): Likewise.
3761 (load_full_type_unit): Likewise.
3762 (read_signatured_type): Likewise.
3763 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3764 (dwarf2_cu::~dwarf2_cu): Remove.
3765 (dwarf2_per_objfile::get_cu): New.
3766 (dwarf2_per_objfile::set_cu): New.
3767 (age_cached_comp_units): Rename to...
3768 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3769 to std::unordered_map.
3770 (free_one_cached_comp_unit): Rename to...
3771 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3772 to std::unordered_map.
3773 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3774 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3775 a dwarf2_per_objfile in data.
3776 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3777 (dwarf2_clear_marks): Remove.
3778
3779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3782 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3783 (init_tu_and_read_dwo_dies): Likewise.
3784 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3785 (cutu_reader::cutu_reader): Likewise.
3786 (load_partial_comp_unit): Likewise.
3787 (process_psymtab_comp_unit): Update.
3788 (build_type_psymtabs_1): Update.
3789 (process_skeletonless_type_unit): Update.
3790 (load_full_comp_unit): Update.
3791 (find_partial_die): Update.
3792 (dwarf2_read_addr_index): Update.
3793 (read_signatured_type): Update.
3794
3795 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3798 m_header_read_in>: New fields.
3799 <get_header>: New method.
3800 * dwarf2/read.c (per_cu_header_read_in): Remove.
3801 (dwarf2_per_cu_data::get_header): New.
3802 (dwarf2_per_cu_data::addr_size): Update.
3803 (dwarf2_per_cu_data::offset_size): Update.
3804 (dwarf2_per_cu_data::ref_addr_size): Update.
3805
3806 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3807
3808 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3809 (dw2_do_instantiate_symtab): Update.
3810 (queue_and_load_all_dwo_tus): Change parameter from
3811 dwarf2_per_cu_data to dwarf2_cu.
3812 (dwarf2_fetch_die_loc_sect_off): Update.
3813 (dwarf2_fetch_constant_bytes): Update.
3814 (dwarf2_fetch_die_type_sect_off): Update.
3815
3816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * dwarf2/read.c (process_full_comp_unit,
3819 process_full_type_unit): Remove per_cu, per_objfile paramters.
3820 Add dwarf2_cu parameter.
3821 (process_queue): Update.
3822
3823 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * dwarf2/read.c (create_cu_from_index_list): Replace
3826 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3827 (create_cus_from_index_list): Likewise.
3828 (create_cus_from_index): Likewise.
3829 (create_signatured_type_table_from_index): Likewise.
3830 (create_cus_from_debug_names_list): Likewise.
3831 (create_cus_from_debug_names): Likewise.
3832 (dwarf2_read_gdb_index): Update.
3833 (dwarf2_read_debug_names): Update.
3834
3835 2020-05-27 Tom Tromey <tom@tromey.com>
3836 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * dwarf2/read.h (struct dwarf2_per_objfile)
3839 <get_type_for_signatured_type, set_type_for_signatured_type>:
3840 New methods.
3841 <m_type_map>: New member.
3842 (struct signatured_type) <type>: Remove.
3843 * dwarf2/read.c
3844 (dwarf2_per_objfile::get_type_for_signatured_type,
3845 dwarf2_per_objfile::set_type_for_signatured_type): New.
3846 (get_signatured_type): Use new methods.
3847
3848 2020-05-27 Tom Tromey <tom@tromey.com>
3849 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3852 (struct dwarf2_per_objfile) <type_units>: New member.
3853 <get_type_unit_group_unshareable>: New method.
3854 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3855 num_symtabs, symtabs>: Remove; move to
3856 type_unit_group_unshareable.
3857 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3858 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3859 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3860
3861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.h (struct dwarf2_per_cu_data):
3864 <dwarf2_per_objfile>: Remove.
3865 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3866 dwarf2_per_objfile.
3867 (create_signatured_type_table_from_index): Likewise.
3868 (create_signatured_type_table_from_debug_names): Likewise.
3869 (create_debug_type_hash_table): Likewise.
3870 (fill_in_sig_entry_from_dwo_entry): Likewise.
3871 (create_type_unit_group): Likewise.
3872 (read_comp_units_from_section): Likewise.
3873 (create_cus_hash_table): Likewise.
3874
3875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3878 dwarf2_per_cu_data::dwarf2_per_objfile.
3879 (compute_compunit_symtab_includes): Likewise.
3880 (dwarf2_cu::start_symtab): Likewise.
3881
3882 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3883
3884 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3885 parameter.
3886 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3887 (read_namespace_alias): Update.
3888 (lookup_die_type): Update.
3889 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3890 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3891 Update.
3892 (disassemble_dwarf_expression): Update.
3893
3894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3895
3896 * dwarf2/read.h (struct dwarf2_queue_item): Add
3897 dwarf2_per_objfile parameter, assign new parameter.
3898 <per_objfile>: New field.
3899 * dwarf2/read.c (free_one_cached_comp_unit): Add
3900 dwarf2_per_objfile parameter.
3901 (queue_comp_unit): Likewise.
3902 (dw2_do_instantiate_symtab): Update.
3903 (process_psymtab_comp_unit): Update.
3904 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3905 (process_imported_unit_die): Update.
3906 (queue_and_load_dwo_tu): Update.
3907 (follow_die_offset): Update.
3908 (follow_die_sig_1): Update.
3909
3910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3913 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3914 (read_call_site_scope): Assign per_objfile.
3915 (dwarf2_per_cu_data::objfile): Remove.
3916 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3917 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3918 dwarf2_per_objfile parameter.
3919 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3920 dwarf2_per_objfile parameter.
3921 (dwarf_expr_reg_to_entry_parameter): Add output
3922 dwarf2_per_objfile parameter.
3923 (locexpr_get_frame_base): Update.
3924 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3925 <push_dwarf_reg_entry_value>: Update.
3926 <call_site_to_target_addr>: Update.
3927 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3928 parameter.
3929 (value_of_dwarf_reg_entry): Update.
3930 (rw_pieced_value): Update.
3931 (indirect_synthetic_pointer): Update.
3932 (dwarf2_evaluate_property): Update.
3933 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3934 parameter.
3935 (locexpr_read_variable): Update.
3936 (locexpr_get_symbol_read_needs): Update.
3937 (loclist_read_variable): Update.
3938
3939 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3942 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3943 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3944 parameter.
3945 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3946 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3947 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3948 parameter.
3949 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3950 sect_variable_value): Add dwarf2_per_objfile parameter.
3951 (class dwarf_evaluate_loc_desc) <dwarf_call,
3952 dwarf_variable_value>: Update.
3953 (fetch_const_value_from_synthetic_pointer): Add
3954 dwarf2_per_objfile parameter.
3955 (fetch_const_value_from_synthetic_pointer): Update.
3956 (coerced_pieced_ref): Update.
3957 (class symbol_needs_eval_context) <dwarf_call,
3958 dwarf_variable_value>: Update.
3959 (dwarf2_compile_expr_to_ax): Update.
3960
3961 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3962
3963 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3964 parameter.
3965 (dwarf2_evaluate_loc_desc_full): Update.
3966
3967 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3970 parameter.
3971 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3972 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3973 dwarf2_per_objfile parameter.
3974 (decode_debug_loc_dwo_addresses): Likewise.
3975 (dwarf2_find_location_expression): Update.
3976 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3977 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3978 parameter.
3979 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3980 parameter.
3981 (locexpr_describe_location_1): Likewise.
3982 (locexpr_describe_location): Update.
3983
3984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3987 Remove.
3988 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3989 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3990 (dwarf2_compile_property_to_c): Update.
3991 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3992 use text offset from objfile.
3993 (locexpr_tracepoint_var_ref): Update.
3994 (locexpr_generate_c_location): Update.
3995 (loclist_describe_location): Update.
3996 (loclist_tracepoint_var_ref): Update.
3997 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3998 dwarf2_per_objfile parameter.
3999 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4000 use text offset from objfile.
4001 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4002
4003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/expr.h (struct dwarf_expr_context)
4006 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4007 <offset>: Remove.
4008 <per_objfile>: New member.
4009 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4010 dwarf2_per_objfile parameter. Don't set offset, set
4011 per_objfile.
4012 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4013 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4014 a dwarf2_per_objfile object instead of an offset.
4015 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4016 constructor.
4017 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4018 to dwarf2_expr_executor constructor. Don't set offset.
4019 (dwarf2_fetch_cfa_info): Update.
4020 (struct dwarf2_frame_cache) <text_offset>: Remove.
4021 <per_objfile>: New field.
4022 (dwarf2_frame_cache): Update.
4023 (dwarf2_frame_prev_register): Update.
4024 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4025 <dwarf_evaluate_loc_desc>: Add constructor.
4026 (dwarf2_evaluate_loc_desc_full): Update.
4027 (dwarf2_locexpr_baton_eval): Update.
4028 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4029 Add constructor.
4030 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4031
4032 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4035 addr_sized_int_type>: Move to dwarf2_cu.
4036 <int_type>: Move to dwarf2_per_objfile.
4037 (struct dwarf2_per_objfile) <int_type>: Move here.
4038 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4039 addr_sized_int_type>: Move here.
4040 (read_func_scope): Update.
4041 (read_array_type): Update.
4042 (read_tag_string_type): Update.
4043 (attr_to_dynamic_prop): Update.
4044 (dwarf2_per_cu_data::int_type): Rename to...
4045 (dwarf2_per_objfile::int_type): ... this.
4046 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4047 (dwarf2_cu::addr_sized_int_type): ... this.
4048 (read_subrange_type): Update.
4049 (dwarf2_per_cu_data::addr_type): Rename to...
4050 (dwarf2_cu::addr_type): ... this.
4051 (set_die_type): Update.
4052
4053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4056 data through per_cu->cu.
4057
4058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4061 dwarf2_per_cu_data parameter fo dwarf2_cu.
4062 (lookup_dwo_type_unit): Likewise.
4063 (read_cutu_die_from_dwo): Likewise.
4064 (lookup_dwo_unit): Likewise.
4065 (open_and_init_dwo_file): Likewise.
4066 (lookup_dwo_cutu): Likewise.
4067 (lookup_dwo_comp_unit): Likewise.
4068 (lookup_dwo_type_unit): Likewise.
4069 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4070 (cutu_reader::cutu_reader): Update.
4071
4072 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4075 parameter.
4076 (process_full_type_unit): Likewise.
4077 (process_queue): Update.
4078
4079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * dwarf2/read.c (recursively_compute_inclusions): Add
4082 dwarf2_per_objfile parameter.
4083 (compute_compunit_symtab_includes): Likewise.
4084 (process_cu_includes): Update.
4085
4086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4089 parameter.
4090 (create_type_unit_group): Update.
4091 (process_psymtab_comp_unit_reader): Update.
4092 (build_type_psymtabs_reader): Update.
4093
4094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4097 object through m_this_cu->cu.
4098
4099 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4100
4101 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4102 the info parameter.
4103 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4104
4105 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4108 per_objfile parameter.
4109 (load_full_type_unit): Add per_objfile parameter.
4110 (read_signatured_type): Likewise.
4111 (load_full_comp_unit): Likewise.
4112 (load_cu): Likewise.
4113 (dw2_do_instantiate_symtab): Likewise.
4114 (dw2_get_file_names): Likewise.
4115 (dw2_map_symtabs_matching_filename): Update.
4116 (dw_expand_symtabs_matching_file_matcher): Update.
4117 (dw2_map_symbol_filenames): Update.
4118 (process_psymtab_comp_unit): Add per_objfile parameter.
4119 (build_type_psymtabs_1): Update.
4120 (process_skeletonless_type_unit): Update.
4121 (dwarf2_build_psymtabs_hard): Update.
4122 (load_partial_comp_unit): Add per_objfile parameter.
4123 (scan_partial_symbols): Update.
4124 (load_full_comp_unit): Add per_objfile parameter.
4125 (process_imported_unit_die): Update.
4126 (create_cus_hash_table): Update.
4127 (find_partial_die): Update.
4128 (dwarf2_read_addr_index): Update.
4129 (follow_die_offset): Update.
4130 (dwarf2_fetch_die_loc_sect_off): Update.
4131 (dwarf2_fetch_constant_bytes): Update.
4132 (dwarf2_fetch_die_type_sect_off): Update.
4133 (follow_die_sig_1): Update.
4134 (load_full_type_unit): Add per_objfile parameter.
4135 (read_signatured_type): Likewise.
4136
4137 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4140 of objfile_name.
4141
4142 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4143
4144 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4145 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4146 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4147 field.
4148 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4149 (create_cus_from_index): Update.
4150 (dwarf2_read_gdb_index): Update.
4151 (create_cus_from_debug_names): Update.
4152 (dwarf2_read_debug_names): Update.
4153 (get_abbrev_section_for_cu): Update.
4154 (create_all_comp_units): Update.
4155 (read_attribute_value): Update.
4156 (get_debug_line_section): Update.
4157 * dwarf2/index-cache.c (index_cache::store): Update.
4158 * dwarf2/index-write.c (save_gdb_index_command): Update.
4159 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4160
4161 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4164 member.
4165 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4166 dwarf2_per_cu_data::per_bfd.
4167 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4168 (create_type_unit_group): Likewise.
4169 (queue_comp_unit): Remove reference to
4170 per_cu->dwarf2_per_objfile.
4171 (maybe_queue_comp_unit): Likewise.
4172 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4173 (create_cus_hash_table): Assign new field.
4174
4175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * dwarf2/read.c: Replace
4178 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4179 dwarf2_cu->per_objfile throughout.
4180
4181 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4184 parameter, don't use per_cu->dwarf2_per_objfile.
4185 (dw2_instantiate_symtab): Likewise.
4186 (dw2_find_last_source_symtab): Update.
4187 (dw2_map_expand_apply): Update.
4188 (dw2_lookup_symbol): Update.
4189 (dw2_expand_symtabs_for_function): Update.
4190 (dw2_expand_all_symtabs): Update.
4191 (dw2_expand_symtabs_with_fullname): Update.
4192 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4193 don't use per_cu->dwarf2_per_objfile.
4194 (dw2_expand_marked_cus): Update.
4195 (dw2_find_pc_sect_compunit_symtab): Update.
4196 (dw2_debug_names_lookup_symbol): Update.
4197 (dw2_debug_names_expand_symtabs_for_function): Update.
4198 (dw2_debug_names_map_matching_symbols): Update.
4199 (dwarf2_psymtab::expand_psymtab): Update.
4200
4201 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4204 <per_objfile>: New member.
4205 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4206 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4207 call to dwarf2_cu.
4208 (cutu_reader::cutu_reader): Update.
4209 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4210
4211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4214 struct dwarf2_per_objfile.
4215 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4216 dwarf2_per_bfd.
4217 * dwarf2/read.c (set_die_type): Update.
4218 (get_die_type_at_offset): Update.
4219
4220 2020-05-27 Tom Tromey <tom@tromey.com>
4221 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4224 method.
4225 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4226 get_symtab, set_symtab>: New methods.
4227 <m_symtabs>: New field.
4228 (struct dwarf2_psymtab): Derive from partial_symtab.
4229 <readin_p, get_compunit_symtab>: Declare methods.
4230 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4231 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4232 New methods.
4233 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4234 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4235 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4236 (dw2_symtab_iter_next, dw2_print_stats)
4237 (dw2_expand_symtabs_with_fullname)
4238 (dw2_expand_symtabs_matching_one)
4239 (dw_expand_symtabs_matching_file_matcher)
4240 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4241 (dw2_debug_names_iterator::next)
4242 (dw2_debug_names_map_matching_symbols)
4243 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4244 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4245 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4246 New methods.
4247 (get_compunit_symtab, process_full_comp_unit)
4248 (process_full_type_unit): Update.
4249 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4250
4251 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4252
4253 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4254 then introduce a new dwarf2_per_objfile type.
4255 <read_line_string>: Move to the new dwarf2_per_objfile type.
4256 <objfile>: Likewise.
4257 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4258 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4259 dwarf2_per_objfile->per_bfd.
4260 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4261 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4262 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4263 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4264 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4265 (dwarf2_per_objfile::locate_sections): Rename to...
4266 (dwarf2_per_bfd::locate_sections): ... this.
4267 (dwarf2_per_objfile::get_cutu): Rename to...
4268 (dwarf2_per_bfd::get_cutu): ... this.
4269 (dwarf2_per_objfile::get_cu): Rename to...
4270 (dwarf2_per_bfd::get_cu): ... this.
4271 (dwarf2_per_objfile::get_tu): Rename to...
4272 (dwarf2_per_bfd::get_tu): ... this.
4273 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4274 (dwarf2_per_bfd::allocate_per_cu): ... this.
4275 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4276 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4277 (get_gdb_index_contents_ftype): Change parameter from
4278 dwarf2_per_objfile to dwarf2_per_bfd.
4279 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4280 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4281
4282 2020-05-27 Tom Tromey <tom@tromey.com>
4283 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4286 (allocate_piece_closure): Set "per_objfile" member.
4287 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4288 (locexpr_describe_location, loclist_describe_location): Use new
4289 member.
4290 * dwarf2/read.c (read_call_site_scope)
4291 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4292 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4293 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4294 handle_data_member_location): Set per_objfile member.
4295 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4296 member.
4297 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4298
4299 2020-05-27 Tom Tromey <tom@tromey.com>
4300
4301 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4302 allocate_signatured_type>: Declare new methods.
4303 <m_num_psymtabs>: New member.
4304 (struct dwarf2_per_cu_data) <index>: New member.
4305 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4306 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4307 (create_cu_from_index_list): Use allocate_per_cu.
4308 (create_signatured_type_table_from_index)
4309 (create_signatured_type_table_from_debug_names)
4310 (create_debug_type_hash_table, add_type_unit)
4311 (read_comp_units_from_section): Use allocate_signatured_type.
4312
4313 2020-05-27 Tom Tromey <tom@tromey.com>
4314
4315 * psymtab.c (partial_map_expand_apply)
4316 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4317 (psym_lookup_global_symbol_language)
4318 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4319 (psym_print_stats, psym_expand_symtabs_for_function)
4320 (psym_map_symbol_filenames, psym_map_matching_symbols)
4321 (psym_expand_symtabs_matching)
4322 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4323 (maintenance_check_psymtabs): Update.
4324 * psympriv.h (struct partial_symtab) <readin_p,
4325 get_compunit_symtab>: Add objfile parameter.
4326 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4327 Likewise.
4328 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4329 get_compunit_symtab>: Likewise.
4330 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4331
4332 2020-05-27 Tom Tromey <tom@tromey.com>
4333
4334 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4335 member.
4336 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4337 (create_cu_from_index_list)
4338 (create_signatured_type_table_from_index)
4339 (create_signatured_type_table_from_debug_names)
4340 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4341 (dwarf2_create_include_psymtab)
4342 (create_debug_type_hash_table, add_type_unit)
4343 (create_type_unit_group, read_comp_units_from_section)
4344 (dwarf2_compute_name, create_cus_hash_table)
4345 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4346 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4347 obstack.
4348 (dw2_get_real_path): Likewise. Change argument to
4349 dwarf2_per_objfile.
4350
4351 2020-05-27 Luis Machado <luis.machado@linaro.org>
4352
4353 PR tdep/26000
4354 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4355 for ldrd (immediate).
4356
4357 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4358
4359 * command.h: Add comment giving the name of class_tui.
4360 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4361 create the fake command for the help for class_tui.
4362
4363 2020-05-26 Tom Tromey <tromey@adacore.com>
4364
4365 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4366 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4367 (val_atr): New function.
4368 (value_val_atr): Use it.
4369 * ada-valprint.c (print_optional_low_bound): Change low bound
4370 handling for enums.
4371 (val_print_packed_array_elements): Don't call discrete_position.
4372 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4373 discrete_position for enum types.
4374 * language.c (default_print_array_index): Change type.
4375 * language.h (struct language_defn) <la_print_array_index>: Add
4376 index_type parameter, change type of index_value.
4377 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4378 (default_print_array_index): Update.
4379 * valprint.c (maybe_print_array_index): Don't call
4380 value_from_longest. Update.
4381 (value_print_array_elements): Don't call discrete_position.
4382
4383 2020-05-26 Tom Tromey <tromey@adacore.com>
4384
4385 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4386 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4387
4388 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4389
4390 PR gdb/13519
4391 * avr-tdep.c (avr_integer_to_address): Return data or code
4392 address accordingly to the second 'type' argument of the
4393 function.
4394
4395 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4396
4397 * infcmd.c, inferior.h: (construct_inferior_arguments):
4398 Moved function from here to gdbsupport/common-inferior.{h,cc}
4399
4400 2020-05-23 Tom Tromey <tom@tromey.com>
4401
4402 Revert commit eca1f90c:
4403 * NEWS: Remove entry for completion styling.
4404 * completer.c (_rl_completion_prefix_display_length): Move
4405 declaration later.
4406 (gdb_fnprint): Revert.
4407 (gdb_display_match_list_1): Likewise.
4408 * cli/cli-style.c (completion_prefix_style)
4409 (completion_difference_style, completion_suffix_style): Remove.
4410 (_initialize_cli_style): Revert.
4411 * cli/cli-style.h (completion_prefix_style)
4412 (completion_difference_style, completion_suffix_style): Don't
4413 declare.
4414
4415 2020-05-24 Pedro Alves <palves@redhat.com>
4416
4417 * symtab.c (completion_list_add_name): Return boolean indication
4418 of whether the symbol matched.
4419 (completion_list_add_symbol): Don't try to remove C++ aliases if
4420 the symbol didn't match in the first place.
4421 * symtab.h (completion_list_add_name): Return bool.
4422
4423 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4426 type::field.
4427
4428 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4429
4430 GDB 9.2 released.
4431
4432 2020-05-23 Tom Tromey <tom@tromey.com>
4433
4434 * NEWS: Add entry for completion styling.
4435 * completer.c (_rl_completion_prefix_display_length): Move
4436 declaration earlier.
4437 (gdb_fnprint): Use completion_style.
4438 (gdb_display_match_list_1): Likewise.
4439 * cli/cli-style.c (completion_prefix_style)
4440 (completion_difference_style, completion_suffix_style): New
4441 globals.
4442 (_initialize_cli_style): Register new globals.
4443 * cli/cli-style.h (completion_prefix_style)
4444 (completion_difference_style, completion_suffix_style): Declare.
4445
4446 2020-05-23 Pedro Alves <palves@redhat.com>
4447
4448 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4449 (parse_escape): Use ISDIGIT instead of isdigit.
4450 (puts_debug): Use gdb_isprint instead of isprint.
4451 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4452 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4453 ISSPACE instead of isspace.
4454 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4455 instead of isspace.
4456 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4457 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4458 instead of isxdigit and ISDIGIT instead of isdigit.
4459
4460 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (struct type) <field>: New method.
4463 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4464 or type::field.
4465
4466 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4467
4468 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4469 (TYPE_FIELDS): Use type::fields. Change all call sites that
4470 modify the propery to use type::set_fields instead.
4471
4472 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4475 type::num_fields instead.
4476
4477 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4480 methods.
4481 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4482 that modify the number of fields to use type::set_num_fields
4483 instead.
4484
4485 2020-05-22 Tom Tromey <tromey@adacore.com>
4486
4487 * compile/compile-object-load.h (munmap_list_free): Don't
4488 declare.
4489
4490 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * annotate.c (annotate_source_line): Update return type, add call
4493 to update current symtab and line.
4494 * annotate.h (annotate_source_line): Update return type, and
4495 extend header comment.
4496 * source.c (info_line_command): Check annotation_level before
4497 calling annotate_source_line.
4498 * stack.c (print_frame_info): If calling annotate_source_line
4499 returns true, then don't print any other source line information.
4500
4501 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4504
4505 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * coffread.c (patch_type): Remove NULL check before xfree.
4508 * corefile.c (set_gnutarget): Likewise.
4509 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4510 * exec.c (build_section_table): Likewise.
4511 * remote.c (remote_target::pass_signals): Likewise.
4512 * utils.c (n_spaces): Likewise.
4513 * cli/cli-script.c (document_command): Likewise.
4514 * i386-windows-tdep.c (core_process_module_section): Likewise.
4515 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4516
4517 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * symfile.c (reread_symbols): Clear objfile's section_offsets
4520 vector and section indices, re-compute them by calling
4521 sym_offsets.
4522
4523 2020-05-20 Tom Tromey <tromey@adacore.com>
4524
4525 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4526 (desc_one_bound, desc_index_type): Compute field name.
4527
4528 2020-05-20 Tom de Vries <tdevries@suse.de>
4529
4530 PR symtab/25833
4531 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4532
4533 2020-05-20 Alan Modra <amodra@gmail.com>
4534
4535 PR 25993
4536 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4537 bfd_set_filename.
4538 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4539 passed to bfd_set_filename.
4540 * symfile-mem.c (add_vsyscall_page): Likewise for string
4541 passed to symbol_file_add_from_memory.
4542 (symbol_file_add_from_memory): Make name param a const char* and
4543 don't strdup.
4544
4545 2020-05-20 Alan Modra <amodra@gmail.com>
4546
4547 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4548 rather than accessing bfd->filename directly.
4549 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4550 and use bfd_section_name.
4551 * dwarf2/frame.c (decode_frame_entry): Likewise.
4552 * exec.c (exec_set_section_address): Likewise.
4553 * solib-aix.c (solib_aix_bfd_open): Likewise.
4554 * stap-probe.c (get_stap_base_address): Likewise.
4555 * symfile.c (reread_symbols): Likewise.
4556
4557 2020-05-19 Tom Tromey <tromey@adacore.com>
4558
4559 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4560
4561 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4564
4565 2020-05-19 Pedro Alves <palves@redhat.com>
4566
4567 * NEWS (set exec-file-mismatch): Adjust entry.
4568 * exec.c: Include "build-id.h".
4569 (validate_exec_file): Try to match build IDs instead of filenames.
4570 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4571 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4572 and pass down 'warn_if_slow'.
4573 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4574 gdb_bfd_open_closure to pass it down.
4575 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4576
4577 2020-05-19 Pedro Alves <palves@redhat.com>
4578
4579 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4580 * target.c (target_fileio_open_1): Rename to target_fileio_open
4581 and make extern. Use bool.
4582 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4583 (target_fileio_read_alloc_1): Adjust.
4584 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4585 (target_fileio_open_warn_if_slow): Delete declaration.
4586
4587 2020-05-19 Pedro Alves <palves@redhat.com>
4588
4589 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4590 Adjust all callers.
4591
4592 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4593
4594 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4595 whether disp is negative.
4596
4597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * symfile.h (struct symfile_segment_data)
4600 <~symfile_segment_data>: Remove.
4601 <segment_info>: Change to std::vector.
4602 * symfile.c (default_symfile_segments): Update.
4603 * elfread.c (elf_symfile_segments): Update.
4604
4605 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4608 <segments>: New.
4609 <segment_bases, segment_sizes>: Remove.
4610 * symfile.c (default_symfile_segments): Update.
4611 * elfread.c (elf_symfile_segments): Update.
4612 * remote.c (remote_target::get_offsets): Update.
4613 * solib-target.c (solib_target_relocate_section_addresses):
4614 Update.
4615
4616 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * symfile.h (struct symfile_segment_data): Initialize fields.
4619 <~symfile_segment_data>: Add.
4620 (symfile_segment_data_up): New.
4621 (struct sym_fns) <sym_segments>: Return a
4622 symfile_segment_data_up.
4623 (default_symfile_segments): Return a symfile_segment_data_up.
4624 (free_symfile_segment_data): Remove.
4625 (get_symfile_segment_data): Return a symfile_segment_data_up.
4626 * symfile.c (default_symfile_segments): Likewise.
4627 (get_symfile_segment_data): Likewise.
4628 (free_symfile_segment_data): Remove.
4629 (symfile_find_segment_sections): Update.
4630 * elfread.c (elf_symfile_segments): Return a
4631 symfile_segment_data_up.
4632 * remote.c (remote_target::get_offsets): Update.
4633 * solib-target.c (solib_target_relocate_section_addresses):
4634 Update.
4635 * symfile-debug.c (debug_sym_segments): Return a
4636 symfile_segment_data_up.
4637
4638 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4639
4640 PR build/25981
4641 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4642 Hardcode register numbers.
4643
4644 PR build/25981
4645 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4646 procfs_find_LDT_entry): Remove.
4647 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4648 procfs_find_LDT_entry): Remove.
4649 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4650 Remove.
4651
4652 2020-05-17 Pedro Alves <palves@redhat.com>
4653 Andrew Burgess <andrew.burgess@embecosm.com>
4654 Keno Fischer <keno@juliacomputing.com>
4655
4656 PR gdb/25741
4657 * breakpoint.c (build_target_condition_list): Update comments.
4658 (build_target_command_list): Update comments and skip matching
4659 locations.
4660 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4661 a separate function. Simplify "set breakpoint auto-hw off"
4662 handling.
4663 (insert_breakpoints): Update comment.
4664 (tracepoint_locations_match): New parameter. For breakpoints,
4665 compare location types too, if the caller wants to.
4666 (handle_automatic_hardware_breakpoints): New functions.
4667 (bp_location_is_less_than): Also sort by location type and
4668 hardware breakpoint length.
4669 (update_global_location_list): Handle "set breakpoint auto-hw on"
4670 here.
4671 (update_breakpoint_locations): Ask breakpoint_locations_match to
4672 ignore location types.
4673
4674 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4677 type::name instead.
4678
4679 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * gdbtypes.h (struct type) <name, set_name>: New methods.
4682 (TYPE_CODE): Use type::name. Change all call sites used to set
4683 the name to use type::set_name instead.
4684
4685 2020-05-16 Tom Tromey <tom@tromey.com>
4686
4687 * top.c (quit_force): Update.
4688 * infrun.c (handle_no_resumed): Update.
4689 * top.h (all_uis): New function.
4690 (ALL_UIS): Remove.
4691
4692 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4693
4694 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4695
4696 2020-05-16 Pedro Alves <palves@redhat.com>
4697
4698 * ia64-linux-nat.c
4699 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4700 Declare method.
4701 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4702
4703 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4706 (sparc64_adi_info): Likewise.
4707
4708 2020-05-15 Tom Tromey <tom@tromey.com>
4709
4710 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4711 block_objfile.
4712 (lookup_objfile_from_block): Remove.
4713 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4714 (lookup_global_symbol): Use block_objfile.
4715 * symtab.h (lookup_objfile_from_block): Don't declare.
4716 * printcmd.c (clear_dangling_display_expressions): Use
4717 block_objfile.
4718 * parse.c (operator_check_standard): Use block_objfile.
4719
4720 2020-05-15 Tom Tromey <tom@tromey.com>
4721
4722 * language.c (language_alloc_type_symbol): Set
4723 SYMBOL_SECTION.
4724 * symtab.c (initialize_objfile_symbol): Remove.
4725 (allocate_symbol): Remove.
4726 (allocate_template_symbol): Remove.
4727 * dwarf2/read.c (fixup_go_packaging): Use "new".
4728 (new_symbol): Use "new".
4729 (read_variable): Don't call initialize_objfile_symbol. Use
4730 "new".
4731 (read_func_scope): Use "new".
4732 * xcoffread.c (process_xcoff_symbol): Don't call
4733 initialize_objfile_symbol.
4734 (SYMBOL_DUP): Remove.
4735 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4736 "new".
4737 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4738 (allocate_template_symbol): Don't declare.
4739 (struct symbol): Add copy constructor. Change defaults.
4740 * jit.c (finalize_symtab): Use "new".
4741 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4742 Use "new".
4743 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4744 (common_block_end): Use "new".
4745 * mdebugread.c (parse_symbol): Use "new".
4746 (new_symbol): Likewise.
4747
4748 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4749
4750 * NEWS: Mention changes to help and apropos.
4751
4752 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4753
4754 * command.h (enum command_class): Improve comments, document
4755 that class_alias is for user-defined aliases, give the class
4756 name for each class, remove unused class_xdb.
4757 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4758 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4759 by a precise class.
4760 * infcmd.c (_initialize_infcmd): Likewise.
4761 * reverse.c (_initialize_reverse): Likewise.
4762 * stack.c (_initialize_stack): Likewise.
4763 * symfile.c (_initialize_symfile): Likewise.
4764 * tracepoint.c (_initialize_tracepoint): Likewise.
4765
4766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767
4768 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4769 when their aliased command is traversed.
4770 (help_cmd): Add fput_command_names_styled call to
4771 output command name and aliases when command has an alias.
4772
4773 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774
4775 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4776 * cli/cli-decode.c (help_cmd_list): Declare as static,
4777 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4778 a command together with the command.
4779 (fput_command_name_styled, fput_command_names_styled): New functions.
4780 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4781 fput_command_name_styled.
4782 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4783 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4784
4785 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4786
4787 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4788 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4789 * command.h (cmd_show_list): Likewise.
4790 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4791 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4792
4793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * unittests/command-def-selftests.c (traverse_command_structure):
4796 Verify all commands of a list have the same prefix command and
4797 that only the top cmdlist commands have a null prefix.
4798
4799 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4802 as prefix, not one of its aliases.
4803 (set_cmd_prefix): Remove.
4804 (do_add_cmd): Centralize the setting of the prefix of a command, when
4805 command is defined after its full chain of prefix commands.
4806 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4807 (add_setshow_cmd_full): Likewise.
4808 (update_prefix_field_of_prefixed_commands): New function.
4809 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4810 update_prefix_field_of_prefixed_commands.
4811 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4812 addresses of remote_set_cmdlist and remote_show_cmdlist given
4813 as argument, not the address of an argument.
4814 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4815 * gdb/remote.c (_initialize_remote): Likewise.
4816
4817 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4818
4819 * cli/cli-cmds.c (alias_command): Check for an existing alias
4820 using lookup_cmd_composition, as valid_command_p is too strict
4821 and forbids aliases that are the prefix of an existing alias
4822 or command.
4823 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4824 command is properly recognised as a valid command.
4825
4826 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4827
4828 * unittests/help-doc-selftests.c: Rename to
4829 unittests/command-def-selftests.c
4830 * unittests/command-def-selftests.c (help_doc_tests): Update some
4831 comments.
4832 (command_structure_tests, traverse_command_structure): New namespace
4833 and function.
4834 (command_structure_invariants_tests): New function.
4835 (_initialize_command_def_selftests) Renamed from
4836 _initialize_help_doc_selftests, register command_structure_invariants
4837 selftest.
4838
4839 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4840
4841 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4842 an alias of 'show'.
4843
4844 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4845
4846 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4847 ada_is_fixed_point_type. Update all callers.
4848 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4849 all callers.
4850 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4851 Update all callers.
4852 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4853 print_fixed_point_type. Update all callers.
4854 * ada-valprint.c (ada_value_print_num): Replace call to
4855 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4856
4857 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4858
4859 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4860 processors.
4861 (cpu_supports_bts): Add CV_AMD case.
4862
4863 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4864 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * infrun.c (stop_all_threads): Collect multiple wait events at
4867 each pass.
4868
4869 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4872 type::code instead.
4873
4874 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (struct type) <code, set_code>: New methods.
4877 (TYPE_CODE): Use type::code. Change all call sites used to set
4878 the code to use type::set_code instead.
4879
4880 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4881 Tom de Vries <tdevries@suse.de>
4882 Pedro Alves <palves@redhat.com>
4883
4884 PR threads/25478
4885 * infrun.c (stop_all_threads): Do NOT ignore
4886 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4887 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4888 received.
4889 (handle_no_resumed): Remove code handling a live inferior with no
4890 threads.
4891 * remote.c (has_single_non_exited_thread): New.
4892 (remote_target::update_thread_list): Do not delete a thread if is
4893 the last thread of the process.
4894 * thread.c (thread_select): Call delete_exited_threads instead of
4895 prune_threads.
4896
4897 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4898
4899 * infrun.c (stop_all_threads): Enable/disable thread events of all
4900 targets. Move a debug message denoting the end of the function
4901 into the SCOPED_EXIT block.
4902
4903 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4904
4905 * process-stratum-target.h: Include <set>.
4906 (all_non_exited_process_targets, switch_to_target_no_thread): New
4907 function declarations.
4908 * process-stratum-target.c (all_non_exited_process_targets)
4909 (switch_to_target_no_thread): New function implementations.
4910
4911 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4912
4913 * infrun.c (handle_inferior_event): Extract out a piece of code
4914 into...
4915 (mark_non_executing_threads): ...this new function.
4916
4917 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4918
4919 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4920 use.
4921
4922 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4923
4924 * regcache.c (regcache_read_pc_protected): New function
4925 implementation that returns 0 if the PC cannot read via
4926 'regcache_read_pc'.
4927 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4928 instead of 'regcache_read_pc'.
4929 (keep_going_pass_signal): Ditto.
4930
4931 2020-05-13 Tom Tromey <tromey@adacore.com>
4932
4933 * ada-lang.c (align_value): Remove.
4934 (ada_template_to_fixed_record_type_1): Use align_up.
4935
4936 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4937
4938 * async-event.c: Update the copyright year.
4939 * async-event.h: Update the copyright year.
4940
4941 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * objfiles.h (is_addr_in_objfile,
4944 shared_objfile_contains_address_p): Return bool.
4945 * objfile.c (is_addr_in_objfile,
4946 shared_objfile_contains_address_p): Return bool.
4947
4948 2020-05-11 Tom Tromey <tromey@adacore.com>
4949
4950 * cli/cli-cmds.c (info_command): Restore.
4951 (_initialize_cli_cmds): Use add_prefix_command for "info".
4952 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4953
4954 2020-05-11 Tom Tromey <tromey@adacore.com>
4955
4956 * ada-lang.c (ada_value_primitive_field): Now public.
4957 * ada-lang.h (ada_value_primitive_field): Declare.
4958 * ada-valprint.c (print_field_values): Use
4959 ada_value_primitive_field for wrapper fields.
4960
4961 2020-05-11 Tom de Vries <tdevries@suse.de>
4962
4963 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4964 MODULE_DOMAIN.
4965
4966 2020-05-11 Tom de Vries <tdevries@suse.de>
4967
4968 PR symtab/25941
4969 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4970 with length 0, if not gdb-produced.
4971 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4972
4973 2020-05-09 Tom de Vries <tdevries@suse.de>
4974
4975 PR gdb/25955
4976 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4977 calculation.
4978
4979 2020-05-09 Tom Tromey <tom@tromey.com>
4980
4981 * top.c (server_command): Now bool.
4982 * top.h (server_command): Now bool.
4983
4984 2020-05-08 Tom Tromey <tromey@adacore.com>
4985
4986 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4987 already being processed.
4988
4989 2020-05-08 Tom Tromey <tom@tromey.com>
4990
4991 * printcmd.c (struct display) <next>: Remove.
4992 <display>: New constructor.
4993 <exp_string>: Now a std::string.
4994 <enabled_p>: Now a bool.
4995 (display_number): Move definition earlier.
4996 (displays): Rename from display_chain. Now a std::vector.
4997 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4998 (display_command): Update.
4999 (do_one_display, disable_display)
5000 (enable_disable_display_command, do_enable_disable_display):
5001 Update.
5002 (free_display): Remove.
5003 (clear_displays): Rewrite.
5004 (delete_display): Update.
5005 (map_display_numbers): Use function_view. Remove "data"
5006 parameter. Update.
5007 (do_delete_display): Remove.
5008 (undisplay_command): Update.
5009 (do_one_display, do_displays, disable_display)
5010 (info_display_command): Update.
5011 (do_enable_disable_display): Remove.
5012 (enable_disable_display_command)
5013 (clear_dangling_display_expressions): Update.
5014
5015 2020-05-08 Tom Tromey <tom@tromey.com>
5016
5017 * symtab.c (set_symbol_cache_size)
5018 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5019 (maintenance_print_symbol_cache_statistics): Update.
5020 * symmisc.c (print_symbol_bcache_statistics)
5021 (print_objfile_statistics, maintenance_print_objfiles)
5022 (maintenance_info_symtabs, maintenance_check_symtabs)
5023 (maintenance_expand_symtabs, maintenance_info_line_tables):
5024 Update.
5025 * symfile-debug.c (set_debug_symfile): Update.
5026 * source.c (forget_cached_source_info): Update.
5027 * python/python.c (gdbpy_progspaces): Update.
5028 * psymtab.c (maintenance_info_psymtabs): Update.
5029 * probe.c (parse_probes): Update.
5030 * linespec.c (iterate_over_all_matching_symtabs)
5031 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5032 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5033 * exec.c (exec_target::close): Update.
5034 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5035 * breakpoint.c (print_one_breakpoint_location)
5036 (create_longjmp_master_breakpoint)
5037 (create_std_terminate_master_breakpoint): Update.
5038 * progspace.c (program_spaces): Now a std::vector.
5039 (maybe_new_address_space): Update.
5040 (add_program_space): Remove.
5041 (program_space::program_space): Update.
5042 (remove_program_space): Update.
5043 (number_of_program_spaces): Remove.
5044 (print_program_space, update_address_spaces): Update.
5045 * progspace.h (program_spaces): Change type.
5046 (ALL_PSPACES): Remove.
5047 (number_of_program_spaces): Don't declare.
5048 (struct program_space) <next>: Remove.
5049
5050 2020-05-08 Tom Tromey <tom@tromey.com>
5051
5052 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5053 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5054 (enable_break): Update.
5055 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5056 (frv_fdpic_find_canonical_descriptor): Update.
5057 (frv_fetch_objfile_link_map): Update.
5058 * progspace.c (program_space::free_all_objfiles): Update.
5059 (program_space::solibs): New method.
5060 * progspace.h (struct program_space) <solibs>: New method.
5061 * solist.h (master_so_list): Don't declare.
5062 (ALL_SO_LIBS): Remove.
5063 * solib.h (so_list_head): Remove.
5064 (update_solib_list): Update comment.
5065 * solib.c (master_so_list): Remove.
5066 (solib_used, update_solib_list, solib_add)
5067 (info_sharedlibrary_command, clear_solib)
5068 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5069
5070 2020-05-08 Tom Tromey <tom@tromey.com>
5071
5072 * extension.c (extension_languages): Now a std::array.
5073 (ALL_EXTENSION_LANGUAGES): Remove.
5074 (get_ext_lang_defn, get_ext_lang_of_file)
5075 (eval_ext_lang_from_control_command): Update.
5076 (finish_ext_lang_initialization)
5077 (auto_load_ext_lang_scripts_for_objfile)
5078 (ext_lang_type_printers::ext_lang_type_printers)
5079 (apply_ext_lang_type_printers)
5080 (ext_lang_type_printers::~ext_lang_type_printers)
5081 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5082 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5083 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5084 (get_matching_xmethod_workers, ext_lang_colorize)
5085 (ext_lang_before_prompt): Update.
5086 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5087
5088 2020-05-08 Tom Tromey <tom@tromey.com>
5089
5090 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5091 overload.
5092 <swap_string, m_string>: Remove.
5093 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5094 Update.
5095 * stabsread.c (define_symbol, read_type): Update.
5096 * linespec.c (find_linespec_symbols): Update.
5097 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5098 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5099 * dbxread.c (read_dbx_symtab): Update.
5100 * cp-support.h (cp_canonicalize_string_full)
5101 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5102 Return unique_xmalloc_ptr.
5103 * cp-support.c (inspect_type): Update.
5104 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5105 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5106 Likewise.
5107 * c-typeprint.c (print_name_maybe_canonical): Update.
5108 * break-catch-throw.c (check_status_exception_catchpoint):
5109 Update.
5110
5111 2020-05-08 Tom de Vries <tdevries@suse.de>
5112
5113 * infrun.c (follow_fork): Copy current_line and current_symtab to
5114 child thread.
5115
5116 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * async-event.c (struct async_signal_handler, struct
5119 async_event_handler): Reformat, remove typedef.
5120
5121 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5124 access thistype->main_type->dyn_prop_list directly.
5125
5126 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5129 (remove_dyn_prop): Remove. Update all users to use
5130 type::remove_dyn_prop.
5131 * gdbtypes.c (remove_dyn_prop): Rename to...
5132 (type::remove_dyn_prop): ... this.
5133
5134 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5135
5136 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5137 (add_dyn_prop): Remove. Update all users to use
5138 type::add_dyn_prop.
5139 * gdbtypes.c (add_dyn_prop): Rename to...
5140 (type::add_dyn_prop): ... this.
5141
5142 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5145 (get_dyn_prop): Remove. Update all users to use
5146 type::dyn_prop.
5147 * gdbtypes.c (get_dyn_prop): Rename to...
5148 (type::dyn_prop): ... this.
5149
5150 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5151
5152 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5153
5154 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5157 instruction, skip it if it's there.
5158
5159 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5162
5163 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5166 * gdbtypes.c (recursive_dump_type): Remove use of
5167 TYPE_INCOMPLETE.
5168
5169 2020-05-03 Tom Tromey <tom@tromey.com>
5170
5171 * breakpoint.c (catch_command, tcatch_command): Remove.
5172 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5173 add_show_prefix_cmd.
5174 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5175 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5176 Remove.
5177 (add_internal_problem_command): Use add_basic_prefix_cmd,
5178 add_show_prefix_cmd.
5179 * mips-tdep.c (set_mipsfpu_command): Remove.
5180 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5181 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5182 (_initialize_index_cache): Use add_basic_prefix_cmd.
5183 * memattr.c (dummy_cmd): Remove.
5184 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5185 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5186 (_initialize_tui_win): Use add_basic_prefix_cmd,
5187 add_show_prefix_cmd.
5188 * cli/cli-logging.c (set_logging_command): Remove.
5189 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5190 add_show_prefix_cmd.
5191 (show_logging_command): Remove.
5192 * target.c (target_command): Remove.
5193 (add_target): Use add_basic_prefix_cmd.
5194
5195 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5196
5197 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5198
5199 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5200
5201 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5202 info_command.
5203
5204 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5205
5206 * nbsd-nat.c (nbsd_enable_proc_events)
5207 (nbsd_nat_target::post_startup_inferior): Add.
5208 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5209 (nbsd_nat_target::update_thread_list): Rewrite.
5210 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5211 "PTRACE_LWP_CREATE".
5212 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5213
5214 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5215
5216 * stack.c (_initialize_stack): Remove duplicated creation
5217 of "frame" command and "f" alias.
5218
5219 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5220
5221 PR gdb/18706
5222 * gdbtypes.c (check_typedef): Calculate size of array of
5223 stubbed type.
5224
5225 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5226
5227 PR gdb/15559
5228 * i386-tdep.c (i386_push_dummy_call): Call
5229 i386_thiscall_push_dummy_call.
5230 (i386_thiscall_push_dummy_call): New function.
5231 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5232 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5233 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5234
5235 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbarch.sh (do_read): Add shellcheck disable directive for
5238 warning SC2162.
5239
5240 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5243 "referenced but not assigned" warning.
5244
5245 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbarch.sh: Remove code that sets fallbackdefault.
5248
5249 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * gdbarch.sh: Use shell operators && and || instead of
5252 -a and -o.
5253
5254 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5255
5256 * gdbarch.sh: Use $(...) instead of `...`.
5257
5258 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * gdbarch.sh: Use double quotes around variables.
5261
5262 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbarch.sh: Use %s with printf, instead of variables in the
5265 format string.
5266
5267 2020-04-29 Tom Tromey <tromey@adacore.com>
5268
5269 PR ada/25875:
5270 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5271 type fields here.
5272 (read_enumeration_type): Call
5273 update_enumeration_type_from_children later. Update comments.
5274 (process_enumeration_scope): Don't create type fields.
5275
5276 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5277
5278 * nbsd-tdep.c: Include "xml-syscall.h".
5279 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5280
5281 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5282
5283 * nbsd-nat.c: Include "sys/wait.h".
5284 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5285 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5286 (nbsd_nat_target::remove_exec_catchpoint)
5287 (nbsd_nat_target::set_syscall_catchpoint): Add.
5288 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5289 (nbsd_nat_target::insert_exec_catchpoint)
5290 (nbsd_nat_target::remove_exec_catchpoint)
5291 (nbsd_nat_target::set_syscall_catchpoint): Add.
5292 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5293 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5294 `nbsd_get_syscall_number'.
5295
5296 2020-04-29 Tom Tromey <tom@tromey.com>
5297
5298 * stack.c (print_block_frame_labels): Remove.
5299
5300 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5301
5302 PR gdb/17320
5303 * ada-valprint.c (val_print_packed_array_elements): Move array
5304 end bracket to new line.
5305 (ada_val_print_string): Remove extra spaces before first array
5306 element.
5307 * c-valprint.c (c_value_print_array): Likewise.
5308 * m2-valprint.c (m2_print_array_contents): Likewise.
5309 (m2_value_print_inner): Likewise.
5310 * p-valprint.c (pascal_value_print_inner): Likewise.
5311 * valprint.c (generic_val_print_array): Likewise.
5312 (value_print_array_elements): Move first array element and array
5313 end bracket to new line.
5314
5315 2020-04-29 Tom de Vries <tdevries@suse.de>
5316
5317 PR symtab/25889
5318 * linespec.c (find_method): Fix ix calculation.
5319
5320 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5321
5322 * syscalls/update-netbsd.sh: New file.
5323 * syscalls/netbsd.xml: Regenerate.
5324 * data-directory/Makefile.in: Register `netbsd.xml' in
5325 `SYSCALLS_FILES'.
5326
5327 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * syscalls/update-freebsd.sh: Add double quotes.
5330
5331 2020-04-28 Tom Tromey <tom@tromey.com>
5332
5333 * NEWS: Update.
5334 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5335 (cmdpy_init): Allow class_tui.
5336
5337 2020-04-28 Mark Williams <mark@myosotissp.com>
5338
5339 PR gdb/24480
5340 * dwarf2read.c: Add missing assingments to list_in_scope when
5341 start_symtab was already called.
5342
5343 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5344
5345 PR gdb/25881
5346 * dwarf2/read.c (offset_map_type): Use
5347 gdb:hash_enum<sect_offset> as hash function.
5348
5349 2020-04-28 Tom de Vries <tdevries@suse.de>
5350
5351 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5352 with DW_AT_signature.
5353
5354 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * configure.ac: Remove check for fs_base/gs_base in
5357 user_regs_struct.
5358 * configure: Re-generate.
5359 * config.in: Re-generate.
5360 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5361 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5362 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5363
5364 2020-04-27 Luis Machado <luis.machado@linaro.org>
5365
5366 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5367 problematic inline frame unwinding situation.
5368 * frame.c (frame_id_computed_p): New function.
5369 * frame.h (frame_id_computed_p): New prototype.
5370
5371 2020-04-26 Tom Tromey <tom@tromey.com>
5372
5373 * command.h (enum command_class) <class_pseudo>: Remove.
5374
5375 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376
5377 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5378 and whitespace.
5379
5380 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5381
5382 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5383 `PT_GET_PROCESS_STATE' block.
5384
5385 2020-04-24 Tom Tromey <tom@tromey.com>
5386
5387 * symtab.h (symbol_get_demangled_name): Don't declare.
5388 * symtab.c (symbol_get_demangled_name): Remove.
5389 (general_symbol_info::natural_name)
5390 (general_symbol_info::demangled_name): Update.
5391
5392 2020-04-24 Tom Tromey <tom@tromey.com>
5393
5394 PR rust/25025:
5395 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5396
5397 2020-04-24 Tom Tromey <tom@tromey.com>
5398
5399 PR symtab/12707:
5400 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5401 exists.
5402 (new_symbol): Likewise.
5403 * compile/compile-object-load.c (get_out_value_type): Use
5404 symbol_matches_search_name.
5405
5406 2020-04-24 Tom Tromey <tom@tromey.com>
5407
5408 * dwarf2/read.c (add_partial_symbol): Do not call
5409 compute_and_set_names.
5410
5411 2020-04-24 Tom Tromey <tom@tromey.com>
5412
5413 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5414 overload.
5415
5416 2020-04-24 Tom Tromey <tom@tromey.com>
5417
5418 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5419 (add_psymbol_to_list): New overload. Make old overload call new
5420 one.
5421 * psympriv.h (add_psymbol_to_list): New overload.
5422
5423 2020-04-24 Tom Tromey <tom@tromey.com>
5424
5425 * dwarf2/read.c (partial_die_info::read) <case
5426 DW_AT_linkage_name>: Use value_as_string.
5427 (dwarf2_string_attr): Use value_as_string.
5428 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5429 method.
5430 * dwarf2/attribute.c (attribute::value_as_string): New method.
5431
5432 2020-04-24 Tom Tromey <tom@tromey.com>
5433
5434 * symtab.c (general_symbol_info::natural_name)
5435 (general_symbol_info::demangled_name): Check for language_rust.
5436
5437 2020-04-24 Tom Tromey <tom@tromey.com>
5438
5439 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5440 (dwarf2_physname): ... from here.
5441 (partial_die_info::read): Add Rust "{" hack.
5442
5443 2020-04-24 Tom Tromey <tom@tromey.com>
5444
5445 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5446 method.
5447 (symbol_set_demangled_name): Don't declare.
5448 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5449 symbol_set_demangled_name.
5450 (general_symbol_info::set_language)
5451 (general_symbol_info::compute_and_set_names): Update.
5452 * minsyms.c (minimal_symbol_reader::install): Update.
5453 * dwarf2/read.c (new_symbol): Update.
5454
5455 2020-04-24 Tom Tromey <tromey@adacore.com>
5456
5457 PR python/23662:
5458 * python/py-type.c (convert_field): Handle
5459 FIELD_LOC_KIND_DWARF_BLOCK.
5460 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5461 (typy_get_dynamic): Nw function.
5462 (type_object_getset): Add "dynamic".
5463 * NEWS: Add entry.
5464
5465 2020-04-24 Tom Tromey <tromey@adacore.com>
5466
5467 * ada-typeprint.c (print_choices, print_variant_part)
5468 (print_record_field_types_dynamic): New functions.
5469 (print_record_field_types): Use print_record_field_types_dynamic.
5470
5471 2020-04-24 Tom Tromey <tromey@adacore.com>
5472
5473 * dwarf2/read.c (handle_data_member_location): New overload.
5474 (dwarf2_add_field): Use it.
5475 (decode_locdesc): Add "computed" parameter. Update comment.
5476 * gdbtypes.c (is_dynamic_type_internal): Also look for
5477 FIELD_LOC_KIND_DWARF_BLOCK.
5478 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5479 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5480 virtual base classes.
5481 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5482 FIELD_LOC_KIND_DWARF_BLOCK.
5483
5484 2020-04-24 Tom Tromey <tromey@adacore.com>
5485
5486 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5487 * gdbtypes.c (is_dynamic_type_internal): Check
5488 TYPE_HAS_DYNAMIC_LENGTH.
5489 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5490 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5491 New macros.
5492 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5493 constant.
5494
5495 2020-04-24 Tom Tromey <tromey@adacore.com>
5496
5497 * dwarf2/read.c (struct variant_field): Rewrite.
5498 (struct variant_part_builder): New.
5499 (struct nextfield): Remove "variant" field. Add "offset".
5500 (struct field_info): Add "current_variant_part" and
5501 "variant_parts".
5502 (alloc_discriminant_info): Remove.
5503 (alloc_rust_variant): New function.
5504 (quirk_rust_enum): Update.
5505 (dwarf2_add_field): Set "offset" member. Don't handle
5506 DW_TAG_variant_part.
5507 (offset_map_type): New typedef.
5508 (convert_variant_range, create_one_variant)
5509 (create_one_variant_part, create_variant_parts)
5510 (add_variant_property): New functions.
5511 (dwarf2_attach_fields_to_type): Call add_variant_property.
5512 (read_structure_type): Don't handle DW_TAG_variant_part.
5513 (handle_variant_part, handle_variant): New functions.
5514 (handle_struct_member_die): Use them.
5515 (process_structure_scope): Don't handle variant parts.
5516 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5517 (struct discriminant_info): Remove.
5518 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5519 (struct main_type) <flag_discriminated_union>: Remove.
5520 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5521 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5522 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5523 Update.
5524 * valops.c (value_union_variant): Remove.
5525 * value.h (value_union_variant): Don't declare.
5526
5527 2020-04-24 Tom Tromey <tromey@adacore.com>
5528
5529 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5530 (ada_value_primitive_packed_val): Update.
5531 * ada-valprint.c (ada_value_print_1): Update.
5532 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5533 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5534 just an address. Use evaluate_for_locexpr_baton.
5535 (dwarf2_evaluate_property): Update.
5536 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5537 array_view.
5538 * findvar.c (default_read_var_value): Update.
5539 * gdbtypes.c (compute_variant_fields_inner)
5540 (resolve_dynamic_type_internal): Update.
5541 (resolve_dynamic_type): Change type of valaddr parameter.
5542 * gdbtypes.h (resolve_dynamic_type): Update.
5543 * valarith.c (value_subscripted_rvalue): Update.
5544 * value.c (value_from_contents_and_address): Update.
5545
5546 2020-04-24 Tom Tromey <tromey@adacore.com>
5547
5548 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5549 "push_initial_value" parameter.
5550 (dwarf2_evaluate_property): Likewise.
5551 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5552
5553 2020-04-24 Tom Tromey <tromey@adacore.com>
5554
5555 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5556 (variant::matches, compute_variant_fields_recurse)
5557 (compute_variant_fields_inner, compute_variant_fields): New
5558 functions.
5559 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5560 Use resolved_type after type is made.
5561 (operator==): Add new cases.
5562 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5563 (struct discriminant_range, struct variant, struct variant_part):
5564 New.
5565 (union dynamic_prop_data) <variant_parts, original_type>: New
5566 members.
5567 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5568 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5569 constants.
5570 * value.c (unpack_bits_as_long): Now public.
5571 * value.h (unpack_bits_as_long): Declare.
5572
5573 2020-04-24 Tom Tromey <tromey@adacore.com>
5574
5575 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5576 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5577
5578 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5579
5580 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5581
5582 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5583
5584 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5585 (remove_fork_catchpoint, post_startup_inferior)
5586 (post_attach): Move...
5587 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5588 (remove_fork_catchpoint, post_startup_inferior)
5589 (post_attach): ...here.
5590 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5591 (remove_fork_catchpoint, post_startup_inferior)
5592 (post_attach): Move...
5593 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5594 (remove_fork_catchpoint, post_startup_inferior)
5595 (post_attach): ...here.
5596
5597 2020-04-24 Tom Tromey <tromey@adacore.com>
5598
5599 * nat/windows-nat.h (struct windows_thread_info)
5600 <pc_adjusted>: New member.
5601 * windows-nat.c (windows_fetch_one_register): Check
5602 pc_adjusted.
5603 (windows_nat_target::get_windows_debug_event)
5604 (windows_nat_target::wait): Set pc_adjusted.
5605
5606 2020-04-24 Tom de Vries <tdevries@suse.de>
5607
5608 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5609 Run gdb-add-index inside temp dir.
5610
5611 2020-04-23 Tom Tromey <tromey@adacore.com>
5612
5613 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5614 in loop.
5615
5616 2020-04-23 Luis Machado <luis.machado@linaro.org>
5617
5618 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5619 get_frame_register instead of gdbarch_unwind_pc.
5620
5621 2020-04-23 Tom de Vries <tdevries@suse.de>
5622
5623 * symtab.c (lookup_global_symbol): Prefer def over decl.
5624
5625 2020-04-23 Tom de Vries <tdevries@suse.de>
5626
5627 PR symtab/25807
5628 * block.c (best_symbol, better_symbol): Promote to external.
5629 * block.h (best_symbol, better_symbol): Declare.
5630 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5631 decl.
5632
5633 2020-04-23 Tom Tromey <tromey@adacore.com>
5634
5635 PR ada/25837:
5636 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5637 "const char *", not a "const std::string &".
5638 <name_and_matcher::operator==>: Update.
5639 * unittests/lookup_name_info-selftests.c: Change type of
5640 "result".
5641
5642 2020-04-23 Tom Tromey <tom@tromey.com>
5643
5644 * inferior.h (iterate_over_inferiors): Don't declare.
5645 * inferior.c (iterate_over_inferiors): Remove.
5646 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5647 Remove.
5648 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5649 use iterate_over_inferiors.
5650 (darwin_resume_inferior_it)
5651 (struct resume_inferior_threads_param)
5652 (darwin_resume_inferior_threads_it): Remove.
5653 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5654
5655 2020-04-23 Tom de Vries <tdevries@suse.de>
5656
5657 * blockframe.c (find_pc_partial_function): Use
5658 find_pc_sect_compunit_symtab rather than
5659 objfile->sf->qf->find_pc_sect_compunit_symtab.
5660
5661 2020-04-22 Tom de Vries <tdevries@suse.de>
5662
5663 PR symtab/25764
5664 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5665 in psymtabs.
5666
5667 2020-04-22 Tom de Vries <tdevries@suse.de>
5668
5669 PR symtab/25801
5670 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5671 symtabs.
5672
5673 2020-04-22 Tom de Vries <tdevries@suse.de>
5674
5675 PR symtab/25700
5676 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5677 CU if already created.
5678
5679 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5680
5681 * infrun.c (displaced_step_fixup): Switch to the event_thread
5682 before calling displaced_step_restore, not after.
5683
5684 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5685
5686 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5687 its inferior is not recorded by us.
5688 (record_btrace_target_open): Replace call to
5689 all_non_exited_threads () with call to current_inferior
5690 ()->non_exited_threads ().
5691 (record_btrace_target::stop_recording): Likewise.
5692 (record_btrace_target::close): Likewise.
5693 (record_btrace_target::wait): Likewise.
5694 (record_btrace_target::record_stop_replaying): Likewise.
5695
5696 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5697
5698 * btrace.c (btrace_enable): Throw an error on double enables and
5699 when enabling recording fails.
5700 (btrace_disable): Throw an error if the thread is not recorded.
5701
5702 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5703
5704 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5705 request if we do not have a thread_info.
5706
5707 2020-04-21 Tom de Vries <tdevries@suse.de>
5708
5709 PR gdb/25471
5710 * thread.c
5711 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5712 exception in get_frame_id.
5713
5714 2020-04-20 Tom Tromey <tromey@adacore.com>
5715
5716 * python/python.c (struct gdbpy_event): Mark move constructor as
5717 noexcept.
5718 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5719 constructor as noexcept.
5720 * completer.h (struct completion_result): Mark move constructor as
5721 noexcept.
5722 * completer.c (completion_result::completion_result): Use
5723 initialization style. Don't call reset_match_list.
5724
5725 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5726
5727 * MAINTAINERS (Write After Approval): Add myself.
5728
5729 2020-04-18 Tom Tromey <tom@tromey.com>
5730
5731 * windows-tdep.c (init_w32_command_list)
5732 (w32_prefix_command_valid): Restore.
5733 (_initialize_windows_tdep): Call init_w32_command_list.
5734
5735 2020-04-18 Tom Tromey <tom@tromey.com>
5736
5737 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5738 * value.c (value_fn_field): Update.
5739 * valops.c (find_function_in_inferior)
5740 (value_allocate_space_in_inferior): Update.
5741 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5742 Update.
5743 * tui/tui-source.c (tui_source_window::set_contents): Update.
5744 * symtab.c (lookup_global_or_static_symbol)
5745 (find_function_start_sal_1, skip_prologue_sal)
5746 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5747 * symmisc.c (dump_msymbols, dump_symtab_1)
5748 (maintenance_print_one_line_table): Update.
5749 * symfile.c (init_entry_point_info, section_is_mapped)
5750 (list_overlays_command, simple_read_overlay_table)
5751 (simple_overlay_update_1): Update.
5752 * stap-probe.c (handle_stap_probe): Update.
5753 * stabsread.c (dbx_init_float_type, define_symbol)
5754 (read_one_struct_field, read_enum_type, read_range_type): Update.
5755 * source.c (info_line_command): Update.
5756 * python/python.c (gdbpy_source_objfile_script)
5757 (gdbpy_execute_objfile_script): Update.
5758 * python/py-type.c (save_objfile_types): Update.
5759 * python/py-objfile.c (py_free_objfile): Update.
5760 * python/py-inferior.c (python_new_objfile): Update.
5761 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5762 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5763 (maintenance_check_psymtabs): Update.
5764 * printcmd.c (info_address_command): Update.
5765 * objfiles.h (struct objfile) <arch>: New method, from
5766 get_objfile_arch.
5767 (get_objfile_arch): Don't declare.
5768 * objfiles.c (get_objfile_arch): Remove.
5769 (filter_overlapping_sections): Update.
5770 * minsyms.c (msymbol_is_function): Update.
5771 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5772 (output_nondebug_symbol): Update.
5773 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5774 (mdebug_expand_psymtab): Update.
5775 * machoread.c (macho_add_oso_symfile): Update.
5776 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5777 Update.
5778 * linux-fork.c (checkpoint_command): Update.
5779 * linespec.c (convert_linespec_to_sals): Update.
5780 * jit.c (finalize_symtab): Update.
5781 * infrun.c (insert_exception_resume_from_probe): Update.
5782 * ia64-tdep.c (ia64_find_unwind_table): Update.
5783 * hppa-tdep.c (internalize_unwinds): Update.
5784 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5785 Update.
5786 * gcore.c (call_target_sbrk): Update.
5787 * elfread.c (record_minimal_symbol, elf_symtab_read)
5788 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5789 (elf_gnu_ifunc_resolve_by_got): Update.
5790 * dwarf2/read.c (create_addrmap_from_index)
5791 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5792 (read_debug_names_from_section)
5793 (process_psymtab_comp_unit_reader, add_partial_symbol)
5794 (add_partial_subprogram, process_full_comp_unit)
5795 (read_file_scope, read_func_scope, read_lexical_block_scope)
5796 (read_call_site_scope, dwarf2_ranges_read)
5797 (dwarf2_record_block_ranges, dwarf2_add_field)
5798 (mark_common_block_symbol_computed, read_tag_pointer_type)
5799 (read_tag_string_type, dwarf2_init_float_type)
5800 (dwarf2_init_complex_target_type, read_base_type)
5801 (partial_die_info::read, partial_die_info::read)
5802 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5803 (dwarf2_fetch_die_loc_sect_off): Update.
5804 * dwarf2/loc.c (dwarf2_find_location_expression)
5805 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5806 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5807 (dwarf2_loc_desc_get_symbol_read_needs)
5808 (locexpr_describe_location_piece, locexpr_describe_location_1)
5809 (loclist_describe_location): Update.
5810 * dwarf2/index-write.c (write_debug_names): Update.
5811 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5812 * dtrace-probe.c (dtrace_process_dof): Update.
5813 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5814 (process_one_symbol): Update.
5815 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5816 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5817 (coff_read_enum_type): Update.
5818 * cli/cli-cmds.c (edit_command, list_command): Update.
5819 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5820 * breakpoint.c (create_overlay_event_breakpoint)
5821 (create_longjmp_master_breakpoint)
5822 (create_std_terminate_master_breakpoint)
5823 (create_exception_master_breakpoint, get_sal_arch): Update.
5824 * block.c (block_gdbarch): Update.
5825 * annotate.c (annotate_source_line): Update.
5826
5827 2020-04-17 Tom Tromey <tromey@adacore.com>
5828
5829 * auto-load.c (show_auto_load_cmd): Remove.
5830 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5831 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5832 (maintenance_print_arc_command): Remove.
5833 * tui/tui-win.c (tui_command): Remove.
5834 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5835 * tui/tui-layout.c (tui_layout_command): Remove.
5836 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5837 * python/python.c (user_set_python, user_show_python): Remove.
5838 (_initialize_python): Use add_basic_prefix_cmd,
5839 add_show_prefix_cmd.
5840 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5841 (install_gdb_commands): Use add_basic_prefix_cmd,
5842 add_show_prefix_cmd.
5843 (info_guile_command): Remove.
5844 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5845 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5846 add_show_prefix_cmd.
5847 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5848 Remove do_set and do_show parameters.
5849 * cli/cli-style.c (set_style, show_style): Remove.
5850 (_initialize_cli_style): Use add_basic_prefix_cmd,
5851 add_show_prefix_cmd.
5852 (cli_style_option::add_setshow_commands): Remove do_set and
5853 do_show parameters.
5854 (cli_style_option::add_setshow_commands): Use
5855 add_basic_prefix_cmd, add_show_prefix_cmd.
5856 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5857 (set_style_name): Remove.
5858 * cli/cli-dump.c (dump_command, append_command): Remove.
5859 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5860 (tekhex_dump_command, binary_dump_command)
5861 (binary_append_command): Remove.
5862 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5863 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5864 (init_w32_command_list): Remove; move into ...
5865 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5866 * valprint.c (set_print, show_print, set_print_raw)
5867 (show_print_raw): Remove.
5868 (_initialize_valprint): Use add_basic_prefix_cmd,
5869 add_show_prefix_cmd.
5870 * typeprint.c (set_print_type, show_print_type): Remove.
5871 (_initialize_typeprint): Use add_basic_prefix_cmd,
5872 add_show_prefix_cmd.
5873 * record.c (set_record_command, show_record_command): Remove.
5874 (_initialize_record): Use add_basic_prefix_cmd,
5875 add_show_prefix_cmd.
5876 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5877 add_show_prefix_cmd.
5878 (info_command, show_command, set_debug, show_debug): Remove.
5879 * top.h (set_history, show_history): Don't declare.
5880 * top.c (set_history, show_history): Remove.
5881 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5882 (unset_tdesc_cmd): Remove.
5883 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5884 add_show_prefix_cmd.
5885 * symtab.c (info_module_command): Remove.
5886 (_initialize_symtab): Use add_basic_prefix_cmd.
5887 * symfile.c (overlay_command): Remove.
5888 (_initialize_symfile): Use add_basic_prefix_cmd.
5889 * sparc64-tdep.c (info_adi_command): Remove.
5890 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5891 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5892 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5893 add_show_prefix_cmd.
5894 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5895 (_initialize_serial): Use add_basic_prefix_cmd,
5896 add_show_prefix_cmd.
5897 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5898 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5899 add_show_prefix_cmd.
5900 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5901 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5902 add_show_prefix_cmd.
5903 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5904 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5905 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5906 add_show_prefix_cmd.
5907 * remote.c (remote_command, set_remote_cmd): Remove.
5908 (_initialize_remote): Use add_basic_prefix_cmd.
5909 * record-full.c (set_record_full_command)
5910 (show_record_full_command): Remove.
5911 (_initialize_record_full): Use add_basic_prefix_cmd,
5912 add_show_prefix_cmd.
5913 * record-btrace.c (cmd_set_record_btrace)
5914 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5915 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5916 (cmd_show_record_btrace_pt): Remove.
5917 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5918 add_show_prefix_cmd.
5919 * ravenscar-thread.c (set_ravenscar_command)
5920 (show_ravenscar_command): Remove.
5921 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5922 add_show_prefix_cmd.
5923 * mips-tdep.c (show_mips_command, set_mips_command)
5924 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5925 add_show_prefix_cmd.
5926 * maint.c (maintenance_command, maintenance_info_command)
5927 (maintenance_check_command, maintenance_print_command)
5928 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5929 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 (show_per_command_cmd): Remove.
5932 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5933 Remove.
5934 (maintenance_show_test_settings_cmd): Remove.
5935 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5936 add_show_prefix_cmd.
5937 * maint-test-options.c (maintenance_test_options_command):
5938 Remove.
5939 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5940 * macrocmd.c (macro_command): Remove
5941 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5942 * language.c (set_check, show_check): Remove.
5943 (_initialize_language): Use add_basic_prefix_cmd,
5944 add_show_prefix_cmd.
5945 * infcmd.c (unset_command): Remove.
5946 (_initialize_infcmd): Use add_basic_prefix_cmd.
5947 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5948 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5949 add_show_prefix_cmd.
5950 * go32-nat.c (go32_info_dos_command): Remove.
5951 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5952 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5953 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5954 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5955 (_initialize_frame): Use add_basic_prefix_cmd,
5956 add_show_prefix_cmd.
5957 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5958 (_initialize_dcache): Use add_basic_prefix_cmd,
5959 add_show_prefix_cmd.
5960 * cp-support.c (maint_cplus_command): Remove.
5961 (_initialize_cp_support): Use add_basic_prefix_cmd.
5962 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5963 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5964 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5965 add_basic_prefix_cmd, add_show_prefix_cmd.
5966 * breakpoint.c (save_command): Remove.
5967 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5968 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5969 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5970 add_show_prefix_cmd.
5971 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5972 (set_ada_command, show_ada_command): Remove.
5973 (_initialize_ada_language): Use add_basic_prefix_cmd,
5974 add_show_prefix_cmd.
5975 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5976
5977 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5978
5979 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5980 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5981
5982 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5985 warning messages.
5986
5987 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5988
5989 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5990 import table is not at beginning of .idata section.
5991
5992 2020-04-16 Pedro Alves <palves@redhat.com>
5993
5994 * inferior.c (delete_inferior): Use delete operator directly
5995 instead of delete_program_space.
5996 * progspace.c (add_program_space): New, factored out from
5997 program_space::program_space.
5998 (remove_program_space): New, factored out from
5999 delete_program_space.
6000 (program_space::program_space): Remove intro comment. Rewrite.
6001 (program_space::~program_space): Remove intro comment. Call
6002 remove_program_space.
6003 (delete_program_space): Delete.
6004 * progspace.h (program_space::program_space): Make explicit. Move
6005 intro comment here, adjusted.
6006 (program_space::~program_space): Move intro comment here,
6007 adjusted.
6008 (delete_program_space): Remove.
6009
6010 2020-04-16 Tom Tromey <tromey@adacore.com>
6011
6012 * windows-nat.c (windows_nat::handle_access_violation): New
6013 function.
6014 * nat/windows-nat.h (handle_access_violation): Declare.
6015 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6016 windows-nat.c. Call handle_access_violation.
6017
6018 2020-04-16 Tom de Vries <tdevries@suse.de>
6019
6020 PR symtab/25791
6021 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6022 CUs without psymtab.
6023
6024 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6025
6026 * python/python.c (do_start_initialization): Don't call
6027 PyEval_InitThreads for Python 3.9 and beyond.
6028
6029 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6030
6031 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6032 thread functions.
6033 (obsd_nat_target::wait): Likewise.
6034
6035 2020-04-15 Tom Tromey <tromey@adacore.com>
6036
6037 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6038 (DEBUG_EXCEPT): Use debug_printf.
6039
6040 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * completer.c (class completion_tracker::completion_hash_entry)
6043 <hash_name>: New member function.
6044 (completion_tracker::discard_completions): New callback to hash a
6045 completion_hash_entry, pass this to htab_create_alloc.
6046
6047 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6048
6049 * windows-nat.c (windows_make_so): Warn rather than stopping with
6050 an error if realpath() fails.
6051
6052 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6053
6054 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6055 (nbsd_nat_target::info_proc): Add do_status.
6056
6057 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6058 Tom de Vries <tdevries@suse.de>
6059
6060 PR symtab/25718
6061 * psympriv.h (struct partial_symtab::read_symtab)
6062 (struct partial_symtab::expand_psymtab)
6063 (struct partial_symtab::read_dependencies): Update comments.
6064 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6065 read_symtab for includer.
6066 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6067 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6068 (struct dwarf2_include_psymtab::m_readin): Remove.
6069 (struct dwarf2_include_psymtab::includer): New member function.
6070 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6071
6072 2020-04-14 Tom de Vries <tdevries@suse.de>
6073
6074 PR symtab/25720
6075 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6076 with NULL symbol_matcher and lookup_name.
6077 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6078 and lookup_name.
6079 * dwarf2/read.c (dw2_expand_symtabs_matching)
6080 (dw2_debug_names_expand_symtabs_matching): Same.
6081 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6082 Make lookup_name a pointer. Update comment.
6083 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6084 lookup_name being a pointer.
6085 * symfile.c (expand_symtabs_matching): Same.
6086 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6087 * linespec.c (iterate_over_all_matching_symtabs): Same.
6088
6089 2020-04-13 Tom Tromey <tom@tromey.com>
6090
6091 * run-on-main-thread.c: Update include.
6092 * unittests/main-thread-selftests.c: Update include.
6093 * tui/tui-win.c: Update include.
6094 * tui/tui-io.c: Update include.
6095 * tui/tui-interp.c: Update include.
6096 * tui/tui-hooks.c: Update include.
6097 * top.h: Update include.
6098 * top.c: Update include.
6099 * ser-base.c: Update include.
6100 * remote.c: Update include.
6101 * remote-notif.c: Update include.
6102 * remote-fileio.c: Update include.
6103 * record-full.c: Update include.
6104 * record-btrace.c: Update include.
6105 * python/python.c: Update include.
6106 * posix-hdep.c: Update include.
6107 * mingw-hdep.c: Update include.
6108 * mi/mi-main.c: Update include.
6109 * mi/mi-interp.c: Update include.
6110 * main.c: Update include.
6111 * linux-nat.c: Update include.
6112 * interps.c: Update include.
6113 * infrun.c: Update include.
6114 * inf-loop.c: Update include.
6115 * event-top.c: Update include.
6116 * event-loop.c: Move to ../gdbsupport/.
6117 * event-loop.h: Move to ../gdbsupport/.
6118 * async-event.h: Update include.
6119 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6120
6121 2020-04-13 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-win.c: Include async-event.h.
6124 * remote.c: Include async-event.h.
6125 * remote-notif.c: Include async-event.h.
6126 * record-full.c: Include async-event.h.
6127 * record-btrace.c: Include async-event.h.
6128 * infrun.c: Include async-event.h.
6129 * event-top.c: Include async-event.h.
6130 * event-loop.h: Move some declarations to async-event.h.
6131 * event-loop.c: Don't include ser-event.h or top.h. Move some
6132 code to async-event.c.
6133 * async-event.h: New file.
6134 * async-event.c: New file.
6135 * Makefile.in (COMMON_SFILES): Add async-event.c.
6136 (HFILES_NO_SRCDIR): Add async-event.h.
6137
6138 2020-04-13 Tom Tromey <tom@tromey.com>
6139
6140 * utils.c (flush_streams): New function.
6141 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6142
6143 2020-04-13 Tom Tromey <tom@tromey.com>
6144
6145 * event-loop.c (handle_file_event): Use warning, not
6146 printf_unfiltered.
6147
6148 2020-04-13 Tom Tromey <tom@tromey.com>
6149
6150 * event-loop.c: Include <chrono>.
6151
6152 2020-04-13 Tom Tromey <tom@tromey.com>
6153
6154 * gdb_select.h: Move to ../gdbsupport/.
6155 * event-loop.c: Update include path.
6156 * top.c: Update include path.
6157 * ser-base.c: Update include path.
6158 * ui-file.c: Update include path.
6159 * ser-tcp.c: Update include path.
6160 * guile/scm-ports.c: Update include path.
6161 * posix-hdep.c: Update include path.
6162 * ser-unix.c: Update include path.
6163 * gdb_usleep.c: Update include path.
6164 * mingw-hdep.c: Update include path.
6165 * inflow.c: Update include path.
6166 * infrun.c: Update include path.
6167 * event-top.c: Update include path.
6168
6169 2020-04-13 Tom Tromey <tom@tromey.com>
6170
6171 * configure: Rebuild.
6172 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6173
6174 2020-04-13 Tom Tromey <tom@tromey.com>
6175
6176 * event-loop.h (start_event_loop): Don't declare.
6177 * event-loop.c (start_event_loop): Move...
6178 * main.c (start_event_loop): ...here. Now static.
6179
6180 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6181
6182 * MAINTAINERS: Update my email address.
6183
6184 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6185
6186 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6187 IP_ALL.
6188
6189 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6190
6191 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6192 (nbsd_nat_target::info_proc): Add do_cmdline.
6193
6194 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6195
6196 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6197 (nbsd_nat_target::info_proc): Add do_cwd.
6198
6199 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6200
6201 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6202
6203 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6204
6205 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6206 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6207 (nbsd_nat_target::info_proc): New functions.
6208 * nbsd-nat.c (kinfo_get_vmmap): New function.
6209 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6210 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6211 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6212 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6213 functions.
6214 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6215 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6216 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6217 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6218 (KINFO_VME_FLAG_GROWS_DOWN): New.
6219
6220 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6221
6222 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6223 bit shift.
6224
6225 2020-04-10 Tom Tromey <tromey@adacore.com>
6226
6227 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6228
6229 2020-04-10 Tom Tromey <tromey@adacore.com>
6230
6231 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6232 separate debug files.
6233
6234 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6235
6236 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6237 Move to...
6238 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6239 ... here.
6240 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6241 Check for STATUS_WX86_BREAKPOINT.
6242 (windows_nat_target::wait): Same.
6243
6244 2020-04-10 Tom de Vries <tdevries@suse.de>
6245
6246 PR cli/25808
6247 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6248
6249 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6252 (Write After Approval): Remove Tom de Vries.
6253
6254 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6255
6256 revert partially:
6257 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6258
6259 * buildsym.c (record_line): Fix undefined behavior and preserve
6260 lines at eof.
6261
6262 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6263
6264 * auxv.h (svr4_auxv_parse): New.
6265 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6266 and generic_auxv_parse.
6267 (svr4_auxv_parse): Add.
6268 * obsd-tdep.c: Include "auxv.h".
6269 (obsd_auxv_parse): Remove.
6270 (obsd_init_abi): Remove comment.
6271 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6272 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6273 * nbsd-tdep.c: Include "auxv.h".
6274 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6275
6276 2020-04-08 Tom Tromey <tromey@adacore.com>
6277
6278 * nat/windows-nat.h (last_wait_event): Don't declare.
6279 (wait_for_debug_event): Update comment.
6280 * nat/windows-nat.c (last_wait_event): Now static.
6281
6282 2020-04-08 Tom Tromey <tromey@adacore.com>
6283
6284 * windows-nat.c (wait_for_debug_event): Move to
6285 nat/windows-nat.c.
6286 * nat/windows-nat.h (wait_for_debug_event): Declare.
6287 * nat/windows-nat.c (wait_for_debug_event): Move from
6288 windows-nat.c. No longer static.
6289
6290 2020-04-08 Tom Tromey <tromey@adacore.com>
6291
6292 * windows-nat.c (get_windows_debug_event): Use
6293 fetch_pending_stop.
6294 * nat/windows-nat.h (fetch_pending_stop): Declare.
6295 * nat/windows-nat.c (fetch_pending_stop): New function.
6296
6297 2020-04-08 Tom Tromey <tromey@adacore.com>
6298
6299 * windows-nat.c (windows_continue): Use matching_pending_stop and
6300 continue_last_debug_event.
6301 * nat/windows-nat.h (matching_pending_stop)
6302 (continue_last_debug_event): Declare.
6303 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6304 (matching_pending_stop, continue_last_debug_event): New
6305 functions.
6306
6307 2020-04-08 Tom Tromey <tromey@adacore.com>
6308
6309 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6310 (handle_exception_result): Move to nat/windows-nat.h.
6311 (DEBUG_EXCEPTION_SIMPLE): Remove.
6312 (windows_nat::handle_ms_vc_exception): New function.
6313 (handle_exception): Move to nat/windows-nat.c.
6314 (get_windows_debug_event): Update.
6315 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6316 nat/windows-nat.c.
6317 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6318 (handle_exception_result): Move from windows-nat.c.
6319 (handle_exception): Declare.
6320 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6321 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6322 windows-nat.c.
6323
6324 2020-04-08 Tom Tromey <tromey@adacore.com>
6325
6326 * windows-nat.c (exception_count, event_count): Remove.
6327 (handle_exception, get_windows_debug_event)
6328 (do_initial_windows_stuff): Update.
6329
6330 2020-04-08 Tom Tromey <tromey@adacore.com>
6331
6332 * windows-nat.c (windows_nat::handle_load_dll)
6333 (windows_nat::handle_unload_dll): Rename. No longer static.
6334 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6335 Declare.
6336
6337 2020-04-08 Tom Tromey <tromey@adacore.com>
6338
6339 * complaints.h (stop_whining): Declare at top-level.
6340 (complaint): Don't declare stop_whining.
6341
6342 2020-04-08 Tom Tromey <tromey@adacore.com>
6343
6344 * windows-nat.c (windows_nat::handle_output_debug_string):
6345 Rename. No longer static.
6346 * nat/windows-nat.h (handle_output_debug_string): Declare.
6347
6348 2020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (current_process_handle, current_process_id)
6351 (main_thread_id, last_sig, current_event, last_wait_event)
6352 (current_windows_thread, desired_stop_thread_id, pending_stops)
6353 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6354 (display_selectors, fake_create_process)
6355 (get_windows_debug_event): Update.
6356 * nat/windows-nat.h (current_process_handle, current_process_id)
6357 (main_thread_id, last_sig, current_event, last_wait_event)
6358 (current_windows_thread, desired_stop_thread_id, pending_stops)
6359 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6360 * nat/windows-nat.c (current_process_handle, current_process_id)
6361 (main_thread_id, last_sig, current_event, last_wait_event)
6362 (current_windows_thread, desired_stop_thread_id, pending_stops)
6363 (siginfo_er): New globals. Move from windows-nat.c.
6364
6365 2020-04-08 Tom Tromey <tromey@adacore.com>
6366
6367 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6368 (handle_load_dll): Update.
6369 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6370
6371 2020-04-08 Tom Tromey <tromey@adacore.com>
6372
6373 * windows-nat.c (enum thread_disposition_type): Move to
6374 nat/windows-nat.h.
6375 (windows_nat::thread_rec): Rename from thread_rec. No longer
6376 static.
6377 (windows_add_thread, windows_nat_target::fetch_registers)
6378 (windows_nat_target::store_registers, handle_exception)
6379 (windows_nat_target::resume, get_windows_debug_event)
6380 (windows_nat_target::get_tib_address)
6381 (windows_nat_target::thread_name)
6382 (windows_nat_target::thread_alive): Update.
6383 * nat/windows-nat.h (enum thread_disposition_type): Move from
6384 windows-nat.c.
6385 (thread_rec): Declare.
6386
6387 2020-04-08 Tom Tromey <tromey@adacore.com>
6388
6389 * windows-nat.c: Add "using namespace".
6390 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6391 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6392
6393 2020-04-08 Tom Tromey <tromey@adacore.com>
6394
6395 * nat/windows-nat.h (struct windows_thread_info): Declare
6396 destructor.
6397 * nat/windows-nat.c (~windows_thread_info): New.
6398
6399 2020-04-08 Tom Tromey <tromey@adacore.com>
6400
6401 PR gdb/22992
6402 * windows-nat.c (current_event): Update comment.
6403 (last_wait_event, desired_stop_thread_id): New globals.
6404 (struct pending_stop): New.
6405 (pending_stops): New global.
6406 (windows_nat_target) <stopped_by_sw_breakpoint>
6407 <supports_stopped_by_sw_breakpoint>: New methods.
6408 (windows_fetch_one_register): Add assertions. Adjust PC.
6409 (windows_continue): Handle pending stops. Suspend other threads
6410 when stepping. Use last_wait_event
6411 (wait_for_debug_event): New function.
6412 (get_windows_debug_event): Use wait_for_debug_event. Handle
6413 pending stops. Queue spurious stops.
6414 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6415 (windows_nat_target::kill): Use wait_for_debug_event.
6416 * nat/windows-nat.h (struct windows_thread_info)
6417 <stopped_at_software_breakpoint>: New field.
6418 * nat/windows-nat.c (windows_thread_info::resume): Clear
6419 stopped_at_software_breakpoint.
6420
6421 2020-04-08 Tom Tromey <tromey@adacore.com>
6422
6423 * windows-nat.c (enum thread_disposition_type): New.
6424 (thread_rec): Replace "get_context" parameter with "disposition";
6425 change type.
6426 (windows_add_thread, windows_nat_target::fetch_registers)
6427 (windows_nat_target::store_registers, handle_exception)
6428 (windows_nat_target::resume, get_windows_debug_event)
6429 (windows_nat_target::get_tib_address)
6430 (windows_nat_target::thread_name)
6431 (windows_nat_target::thread_alive): Update.
6432
6433 2020-04-08 Tom Tromey <tromey@adacore.com>
6434
6435 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6436 (windows_continue): Use windows_continue::resume.
6437 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6438 resume>: Declare new methods.
6439 * nat/windows-nat.c: New file.
6440 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6441
6442 2020-04-08 Tom Tromey <tromey@adacore.com>
6443
6444 * windows-nat.c (windows_add_thread, windows_delete_thread)
6445 (windows_nat_target::fetch_registers)
6446 (windows_nat_target::store_registers, fake_create_process)
6447 (windows_nat_target::resume, windows_nat_target::resume)
6448 (get_windows_debug_event, windows_nat_target::wait)
6449 (windows_nat_target::pid_to_str)
6450 (windows_nat_target::get_tib_address)
6451 (windows_nat_target::get_ada_task_ptid)
6452 (windows_nat_target::thread_name)
6453 (windows_nat_target::thread_alive): Use lwp, not tid.
6454
6455 2020-04-08 Tom Tromey <tromey@adacore.com>
6456
6457 * windows-nat.c (handle_exception)
6458 (windows_nat_target::thread_name): Update.
6459 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6460 <name>: Now unique_xmalloc_ptr.
6461
6462 2020-04-08 Tom Tromey <tromey@adacore.com>
6463
6464 * windows-nat.c (thread_rec)
6465 (windows_nat_target::fetch_registers): Update.
6466 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6467 Update comment.
6468 <debug_registers_changed, reload_context>: Now bool.
6469
6470 2020-04-08 Tom Tromey <tromey@adacore.com>
6471
6472 * windows-nat.c (windows_add_thread): Use new.
6473 (windows_init_thread_list, windows_delete_thread): Use delete.
6474 (get_windows_debug_event): Update.
6475 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6476 destructor, and initializers.
6477
6478 2020-04-08 Tom Tromey <tromey@adacore.com>
6479
6480 * windows-nat.c (struct windows_thread_info): Remove.
6481 * nat/windows-nat.h: New file.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6486 (thread_rec, windows_add_thread, windows_delete_thread)
6487 (windows_continue): Update.
6488
6489 2020-04-08 Tom Tromey <tromey@adacore.com>
6490
6491 * windows-nat.c (struct windows_thread_info): Remove typedef.
6492 (thread_head): Remove.
6493 (thread_list): New global.
6494 (thread_rec, windows_add_thread, windows_init_thread_list)
6495 (windows_delete_thread, windows_continue): Update.
6496
6497 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6498
6499 * windows-tdep.h (windows_init_abi): Add comment.
6500 (cygwin_init_abi): New declaration.
6501 * windows-tdep.c: Split signal enumeration in two, one for
6502 Windows and one for Cygwin.
6503 (windows_gdb_signal_to_target): Only deal with signal of the
6504 Windows OS ABI.
6505 (cygwin_gdb_signal_to_target): New function.
6506 (windows_init_abi): Rename to windows_init_abi_common, don't set
6507 gdb_signal_to_target gdbarch method. Add new new function with
6508 this name.
6509 (cygwin_init_abi): New function.
6510 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6511 comment. Don't call windows_init_abi.
6512 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6513 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6514 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6515 i386_windows_init_abi_common, don't call windows_init_abi. Add
6516 a new function of this name.
6517 (i386_cygwin_init_abi): New function.
6518 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6519 OS ABI Cygwin.
6520
6521 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6524 parameter.c.
6525 (dwarf2_read_gdb_index): Update.
6526
6527 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6528
6529 * nbsd-tdep.c: Include "objfiles.h".
6530 (nbsd_skip_solib_resolver): New.
6531 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6532
6533 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6534
6535 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6536 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6537 with DW_LLE_base_addressx are being emitted in DWARFv5.
6538 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6539 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6540 unsigned integer.
6541
6542 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6543
6544 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6545 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6546 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6547 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6548 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6549 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6550 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6551
6552
6553 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6554
6555 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6556 (read_loclist_index): New function definition.
6557 (lookup_loclist_base): New function definition.
6558 (read_loclist_header): New function definition.
6559 (dwarf2_cu): Add loclist_base and loclist_header field.
6560 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6561 (read_full_die_1): Read the value of DW_AT_loclists_base.
6562 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6563 (read_attribute_value): Handle DW_FORM_loclistx.
6564 (skip_one_die): Handle DW_FORM_loclistx.
6565 (loclist_header): New structure declaration.
6566 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6567
6568 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6571 constructor. Remove `addr` parameter from other constructor and
6572 add `per_cu` parameter.
6573 * dwarf2/read.c (create_partial_symtab): Update.
6574
6575 2020-04-07 Tom de Vries <tdevries@suse.de>
6576
6577 PR symtab/25796
6578 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6579 (partial_die_info::fixup): Inherit has_const_value.
6580
6581 2020-04-07 Tom de Vries <tdevries@suse.de>
6582
6583 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6584 symbols without address.
6585
6586 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6587
6588 * nbsd-nat.h (struct thread_info): Add forward declaration.
6589 (nbsd_nat_target::thread_alive): Add.
6590 (nbsd_nat_target::thread_name): Likewise.
6591 (nbsd_nat_target::update_thread_list): Likewise.
6592 (update_thread_list::post_attach): Likewise.
6593 (post_attach::pid_to_str): Likewise.
6594 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6595 (nbsd_thread_lister): Add.
6596 (nbsd_nat_target::thread_alive): Likewise.
6597 (nbsd_nat_target::thread_name): Likewise.
6598 (nbsd_add_threads): Likewise.
6599 (update_thread_list::post_attach): Likewise.
6600 (nbsd_nat_target::update_thread_list): Likewise.
6601 (post_attach::pid_to_str): Likewise.
6602
6603 2020-04-06 Tom Tromey <tromey@adacore.com>
6604
6605 * ada-valprint.c (print_variant_part): Extract the variant field.
6606 (print_field_values): Use the field as the outer value when
6607 recursing.
6608
6609 2020-04-06 Tom Tromey <tromey@adacore.com>
6610
6611 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6612 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6613 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6614 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6615 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6616
6617 2020-04-06 Tom Tromey <tromey@adacore.com>
6618
6619 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6620 TYPE_CODE_ERROR.
6621
6622 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6623
6624 * nbsd-tdep.c: Include "gdbarch.h".
6625 Define enum with NetBSD signal numbers.
6626 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6627 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6628 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6629 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6630 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6631 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6632 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6633 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6634 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6635 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6636 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6637 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6638
6639 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6640
6641 PR gdb/25325
6642 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6643
6644 2020-04-03 Tom Tromey <tromey@adacore.com>
6645
6646 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6647 Read constant block.
6648
6649 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6652 (gdb_bfd_get_full_section_contents): New declaration.
6653 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6654 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6655 gdb_bfd_get_full_section_contents.
6656
6657 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6658
6659 * exec.c (build_section_table): Replace internal_error with
6660 gdb_assert.
6661 (section_table_xfer_memory_partial): Likewise.
6662 * mdebugread.c (parse_partial_symbols): Likewise.
6663 * psymtab.c (lookup_partial_symbol): Likewise.
6664 * utils.c (wrap_here): Likewise.
6665
6666 2020-04-02 Tom Tromey <tromey@adacore.com>
6667
6668 * f-lang.c (build_fortran_types): Use arch_type to initialize
6669 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6670
6671 2020-04-02 Tom Tromey <tromey@adacore.com>
6672
6673 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6674 of attributes.
6675
6676 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6677 Bernd Edlinger <bernd.edlinger@hotmail.de>
6678 Tom Tromey <tromey@adacore.com>
6679
6680 * buildsym.c (buildsym_compunit::record_line): Remove
6681 deduplication code.
6682
6683 2020-04-02 Tom de Vries <tdevries@suse.de>
6684
6685 PR ada/24671
6686 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6687
6688 2020-04-02 Tom de Vries <tdevries@suse.de>
6689
6690 * dwarf2/read.c (dwarf2_gdb_index_functions,
6691 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6692 NULL.
6693 * psymtab.c (psym_lookup_global_symbol_language): New function.
6694 (psym_functions): Init psym_lookup_global_symbol_language with
6695 psym_lookup_global_symbol_language.
6696 * symfile-debug.c (debug_sym_quick_functions): Init
6697 lookup_global_symbol_language with NULL.
6698 * symfile.c (set_initial_language): Remove fixme comment.
6699 * symfile.h (struct quick_symbol_functions): Add
6700 lookup_global_symbol_language.
6701 * symtab.c (find_quick_global_symbol_language): New function.
6702 (find_main_name): Use find_quick_global_symbol_language.
6703
6704 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6707
6708 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6709
6710 * buildsym.c (record_line): Fix undefined behavior and preserve
6711 lines at eof.
6712
6713 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6714
6715 * buildsym.c (record_line): Fix the resizing condition.
6716
6717 2020-04-01 Tom Tromey <tom@tromey.com>
6718
6719 * value.h (value_literal_complex): Add comment.
6720 * valops.c (value_literal_complex): Refer to value.h.
6721
6722 2020-04-01 Tom Tromey <tom@tromey.com>
6723
6724 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6725 (scalar_type): New rule, from typebase.
6726 (typebase): Use scalar_type. Recognize complex types.
6727 (field_name): Handle FLOAT_KEYWORD.
6728 (ident_tokens): Add _Complex and __complex__.
6729
6730 2020-04-01 Tom Tromey <tom@tromey.com>
6731
6732 PR exp/25299:
6733 * valarith.c (promotion_type, complex_binop): New functions.
6734 (scalar_binop): Handle complex numbers. Use promotion_type.
6735 (value_pos, value_neg, value_complement): Handle complex numbers.
6736
6737 2020-04-01 Tom Tromey <tom@tromey.com>
6738
6739 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6740 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6741 (parse_number): Handle complex numbers.
6742
6743 2020-04-01 Tom Tromey <tom@tromey.com>
6744
6745 * c-valprint.c (c_decorations): Change complex suffix to "i".
6746
6747 2020-04-01 Tom Tromey <tom@tromey.com>
6748
6749 * valprint.c (generic_value_print_complex): Use accessors.
6750 * value.h (value_real_part, value_imaginary_part): Declare.
6751 * valops.c (value_real_part, value_imaginary_part): New
6752 functions.
6753 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6754
6755 2020-04-01 Tom Tromey <tom@tromey.com>
6756
6757 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6758 (read_range_type): Update.
6759 * mdebugread.c (basic_type): Update.
6760 * go-lang.c (build_go_types): Use init_complex_type.
6761 * gdbtypes.h (struct main_type) <complex_type>: New member.
6762 (init_complex_type): Update.
6763 (arch_complex_type): Don't declare.
6764 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6765 Make name if none given. Use alloc_type_copy. Look for cached
6766 complex type.
6767 (arch_complex_type): Remove.
6768 (gdbtypes_post_init): Use init_complex_type.
6769 * f-lang.c (build_fortran_types): Use init_complex_type.
6770 * dwarf2/read.c (read_base_type): Update.
6771 * d-lang.c (build_d_types): Use init_complex_type.
6772 * ctfread.c (read_base_type): Update.
6773
6774 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6775
6776 * infrun.c (stop_all_threads): Update assertion, plus when
6777 stopping threads, take into account that we might be trying
6778 to stop an all-stop target.
6779 (stop_waiting): Call 'stop_all_threads' if there exists a
6780 non-stop target.
6781
6782 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6783
6784 * target.h (exists_non_stop_target): New function declaration.
6785 * target.c (exists_non_stop_target): New function.
6786
6787 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6788
6789 PR gdb/24789
6790 * eval.c (is_integral_or_integral_reference): New function.
6791 (evaluate_subexp_standard): Allow integer references in
6792 pointer arithmetic.
6793
6794 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6795
6796 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6797 check for no ptid in the stop reply when the target is non-stop.
6798
6799 2020-04-01 Tom Tromey <tromey@adacore.com>
6800
6801 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6802 "name" parameter to rvalue reference. Initialize m_name_holder.
6803 <lookup_name_info>: New overloads.
6804 <name>: Return gdb::string_view.
6805 <c_str>: New method.
6806 <make_ignore_params>: Update.
6807 <search_name_hash>: Update.
6808 <language_lookup_name>: Return const char *.
6809 <m_name>: Change type.
6810 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6811 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6812 (lookup_name_info::match_any): Update.
6813 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6814 Update.
6815 * minsyms.c (linkage_name_str): Update.
6816 * language.c (default_symbol_name_matcher): Update.
6817 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6818 Update.
6819 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6820 (ada_lookup_name_info::ada_lookup_name_info): Update.
6821 (literal_symbol_name_matcher): Update.
6822
6823 2020-04-01 Tom Tromey <tromey@adacore.com>
6824
6825 * psymtab.c (psymtab_search_name): Remove function.
6826 (psym_lookup_symbol): Create search name and lookup name here.
6827 (lookup_partial_symbol): Remove "name" parameter; add
6828 lookup_name.
6829 (psym_expand_symtabs_for_function): Update.
6830
6831 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6832
6833 PR tui/25597:
6834 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6835
6836 2020-03-31 Tom Tromey <tromey@adacore.com>
6837
6838 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6839 memcpy.
6840
6841 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6842
6843 * features/riscv/32bit-csr.xml: Regenerated.
6844 * features/riscv/64bit-csr.xml: Regenerated.
6845
6846 2020-03-30 Tom Tromey <tromey@adacore.com>
6847
6848 * ada-valprint.c (print_variant_part): Update.
6849 * ada-lang.h (ada_which_variant_applies): Update.
6850 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6851 outer_valaddr parameters; replace with "outer" value parameter.
6852 (to_fixed_variant_branch_type): Update.
6853
6854 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6855
6856 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6857 <list>. Remove inclusion of observable.h.
6858 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6859 (struct arch_lwp_info): New struct.
6860 (class ppc_linux_dreg_interface): New class.
6861 (struct ppc_linux_process_info): New struct.
6862 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6863 <low_new_clone, low_forget_process, low_prepare_to_resume>
6864 <copy_thread_dreg_state, mark_thread_stale>
6865 <mark_debug_registers_changed, register_hw_breakpoint>
6866 <clear_hw_breakpoint, register_wp, clear_wp>
6867 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6868 <num_memory_accesses, get_trigger_type>
6869 <create_watchpoint_request, hwdebug_point_cmp>
6870 <init_arch_lwp_info, get_arch_lwp_info>
6871 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6872 methods.
6873 <struct ptid_hash>: New inner struct.
6874 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6875 members.
6876 (saved_dabr_value, hwdebug_info, max_slots_number)
6877 (struct hw_break_tuple, struct thread_points, ppc_threads)
6878 (have_ptrace_hwdebug_interface)
6879 (hwdebug_find_thread_points_by_tid)
6880 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6881 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6882 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6883 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6884 use m_dreg_interface.
6885 (hwdebug_point_cmp): Change to...
6886 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6887 reference arguments instead of pointers.
6888 (ppc_linux_nat_target::ranged_break_num_registers): Use
6889 m_dreg_interface.
6890 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6891 m_dreg_interface. Call register_hw_breakpoint.
6892 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6893 m_dreg_interface. Call clear_hw_breakpoint.
6894 (get_trigger_type): Change to...
6895 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6896 comment.
6897 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6898 use m_dreg_interface. Call register_hw_breakpoint.
6899 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6900 use m_dreg_interface. Call clear_hw_breakpoint.
6901 (can_use_watchpoint_cond_accel): Change to...
6902 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6903 method. Update comment, use m_dreg_interface and
6904 m_process_info.
6905 (calculate_dvc): Change to...
6906 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6907 m_dreg_interface.
6908 (num_memory_accesses): Change to...
6909 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6910 (check_condition): Change to...
6911 (ppc_linux_nat_target::check_condition): ...this method.
6912 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6913 comment, use m_dreg_interface.
6914 (create_watchpoint_request): Change to...
6915 (ppc_linux_nat_target::create_watchpoint_request): ...this
6916 method. Use m_dreg_interface.
6917 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6918 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6919 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6920 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6921 (ppc_linux_nat_target::low_forget_process)
6922 (ppc_linux_nat_target::low_new_fork)
6923 (ppc_linux_nat_target::low_new_clone)
6924 (ppc_linux_nat_target::low_delete_thread)
6925 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6926 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6927 only call mark_thread_stale.
6928 (ppc_linux_thread_exit): Remove.
6929 (ppc_linux_nat_target::stopped_data_address): Change to...
6930 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6931 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6932 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6933 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6934 comment. Call low_stopped_data_address.
6935 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6936 m_dreg_interface.
6937 (ppc_linux_nat_target::masked_watch_num_registers): Use
6938 m_dreg_interface.
6939 (ppc_linux_nat_target::copy_thread_dreg_state)
6940 (ppc_linux_nat_target::mark_thread_stale)
6941 (ppc_linux_nat_target::mark_debug_registers_changed)
6942 (ppc_linux_nat_target::register_hw_breakpoint)
6943 (ppc_linux_nat_target::clear_hw_breakpoint)
6944 (ppc_linux_nat_target::register_wp)
6945 (ppc_linux_nat_target::clear_wp)
6946 (ppc_linux_nat_target::init_arch_lwp_info)
6947 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6948 (_initialize_ppc_linux_nat): Remove observer callback.
6949
6950 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6951
6952 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6953 (ppc_linux_nat_target::auxv_parse)
6954 (ppc_linux_nat_target::read_description)
6955 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6956 Move up.
6957
6958 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6959
6960 * linux-nat.h (low_new_clone): New method.
6961 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6962
6963 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6966 (dbx_expand_psymtab): ... this.
6967 (start_psymtab): Update.
6968 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6969 (mdebug_expand_psymtab): ... this.
6970 (parse_partial_symbols): Update.
6971 (new_psymtab): Update.
6972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6973 (xcoff_expand_psymtab): ... this.
6974 (xcoff_start_psymtab): Update.
6975
6976 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6977
6978 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6979 <expand_dependencies>: ... this.
6980 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6981 (partial_symtab::expand_dependencies): ... this.
6982 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6983 Update.
6984 (dwarf2_psymtab::expand_psymtab): Update.
6985 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6986 * mdebugread.c (psymtab_to_symtab_1): Update.
6987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6988
6989 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6990
6991 * psympriv.h (discard_psymtab): Remove.
6992 * dbxread.c (dbx_end_psymtab): Update.
6993 * xcoffread.c (xcoff_end_psymtab): Update.
6994
6995 2020-03-28 Tom Tromey <tom@tromey.com>
6996
6997 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6998 comment.
6999
7000 2020-03-28 Tom Tromey <tom@tromey.com>
7001
7002 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7003
7004 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7005
7006 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7007
7008 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7009
7010 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7011
7012 2020-03-26 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7015 (mark_common_block_symbol_computed, read_tag_string_type)
7016 (attr_to_dynamic_prop, read_subrange_type): Update.
7017 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7018 to be methods on struct attribute.
7019 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7020 (read_call_site_scope, partial_die_info::read)
7021 (partial_die_info::read, lookup_die_type, follow_die_ref):
7022 Update.
7023 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7024 from dwarf2_get_ref_die_offset.
7025 (attribute::constant_value): New method, from
7026 dwarf2_get_attr_constant_value.
7027 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7028 Declare method.
7029 <constant_value>: New method.
7030
7031 2020-03-26 Tom Tromey <tom@tromey.com>
7032
7033 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7034 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7035 (dwarf_type_encoding_name): Move to stringify.c.
7036 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7037 * dwarf2/stringify.c: New file.
7038 * dwarf2/stringify.h: New file.
7039
7040 2020-03-26 Tom Tromey <tom@tromey.com>
7041
7042 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7043 Rewrite.
7044
7045 2020-03-26 Tom Tromey <tom@tromey.com>
7046
7047 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7048 methods.
7049 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7050 (lookup_ranges_base): Likewise.
7051 (read_cutu_die_from_dwo, read_full_die_1): Update.
7052
7053 2020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/read.c (read_import_statement, read_file_scope)
7056 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7057 (read_lexical_block_scope, read_call_site_scope)
7058 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7059 (handle_struct_member_die, process_structure_scope)
7060 (update_enumeration_type_from_children)
7061 (process_enumeration_scope, read_array_type, read_common_block)
7062 (read_namespace, read_module, read_subroutine_type): Update.
7063 (sibling_die): Remove.
7064
7065 2020-03-26 Tom Tromey <tom@tromey.com>
7066
7067 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7068 (build_type_psymtabs_reader, read_structure_type)
7069 (read_enumeration_type, read_full_die_1): Update.
7070 (dwarf2_attr_no_follow): Move to die.h.
7071 * dwarf2/die.h (struct die_info) <attr>: New method.
7072
7073 2020-03-26 Tom Tromey <tom@tromey.com>
7074
7075 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7076 <base_address>: Now an optional.
7077 (dwarf2_find_base_address, dwarf2_rnglists_process)
7078 (dwarf2_ranges_process, fill_in_loclist_baton)
7079 (dwarf2_symbol_mark_computed): Update.
7080
7081 2020-03-26 Tom Tromey <tom@tromey.com>
7082
7083 * dwarf2/read.c (struct die_info): Move to die.h.
7084 * dwarf2/die.h: New file.
7085
7086 2020-03-26 Tom Tromey <tom@tromey.com>
7087
7088 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7089 * dwarf2/read.c
7090 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7091 Move to line-header.c.
7092 (read_checked_initial_length_and_offset, read_formatted_entries):
7093 Likewise.
7094 (dwarf_decode_line_header): Split into two.
7095 * dwarf2/line-header.c
7096 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7097 Move from read.c.
7098 (read_checked_initial_length_and_offset, read_formatted_entries):
7099 Likewise.
7100 (dwarf_decode_line_header): New function, split from read.c.
7101
7102 2020-03-26 Tom Tromey <tom@tromey.com>
7103
7104 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7105 Declare method.
7106 * dwarf2/read.c (read_attribute_value): Update.
7107 (dwarf2_per_objfile::read_line_string): Rename from
7108 read_indirect_line_string.
7109 (read_formatted_entries): Update.
7110
7111 2020-03-26 Tom Tromey <tom@tromey.com>
7112
7113 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7114 variable.
7115
7116 2020-03-26 Tom Tromey <tom@tromey.com>
7117
7118 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7119 const.
7120 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7121 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7122 parameter const.
7123
7124 2020-03-26 Tom Tromey <tom@tromey.com>
7125
7126 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7127 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7128 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7129 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7130
7131 2020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7134 file_names_size, file_full_name, file_file_name>: Use const.
7135 <file_name_at, file_names>: Add const overload.
7136 * dwarf2/line-header.c (line_header::file_file_name)
7137 (line_header::file_full_name): Update.
7138
7139 2020-03-26 Tom Tromey <tom@tromey.com>
7140
7141 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7142 (macro_start_file, consume_improper_spaces)
7143 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7144 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7145 (dwarf_decode_macros): Move to macro.c.
7146 * dwarf2/macro.c: New file.
7147 * dwarf2/macro.h: New file.
7148 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7149
7150 2020-03-26 Tom Tromey <tom@tromey.com>
7151
7152 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7153 method.
7154 * dwarf2/section.c: New method. From
7155 read_indirect_string_at_offset_from.
7156 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7157 (read_indirect_string_at_offset_from): Move to section.c.
7158 (read_indirect_string_at_offset): Rewrite.
7159 (read_indirect_line_string_at_offset): Remove.
7160 (read_indirect_string, read_indirect_line_string)
7161 (dwarf_decode_macro_bytes): Update.
7162
7163 2020-03-26 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2/section.h (struct dwarf2_section_info)
7166 <overload_complaint>: Declare.
7167 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7168 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7169 Rename from dwarf2_section_buffer_overflow_complaint.
7170 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7171 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7172
7173 2020-03-26 Tom Tromey <tom@tromey.com>
7174
7175 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7176 Declare.
7177 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7178 Move from read.c.
7179 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7180 to section.c.
7181
7182 2020-03-26 Tom Tromey <tom@tromey.com>
7183
7184 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7185
7186 2020-03-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7189 "builder".
7190 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7191 parameter.
7192 (dwarf_decode_macros): Update.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/read.c (read_attribute_value): Update.
7197 (read_indirect_string_from_dwz): Move to dwz.c; change into
7198 method.
7199 (dwarf_decode_macro_bytes): Update.
7200 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7201 * dwarf2/dwz.c: New file.
7202 * Makefile.in (COMMON_SFILES): Add dwz.c.
7203
7204 2020-03-26 Tom Tromey <tom@tromey.com>
7205
7206 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7207 * dwarf2/read.c: Add include.
7208 * dwarf2/index-write.c: Add include.
7209 * dwarf2/index-cache.c: Add include.
7210 * dwarf2/dwz.h: New file.
7211
7212 2020-03-25 Tom Tromey <tom@tromey.com>
7213
7214 * compile/compile-object-load.c (get_out_value_type): Mention
7215 correct symbol name in error message.
7216
7217 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7218
7219 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7220
7221 2020-03-25 Tom de Vries <tdevries@suse.de>
7222
7223 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7224 * symmisc.c (dump_symtab_1): Print user and includes fields.
7225 (maintenance_info_symtabs): Same.
7226
7227 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 PR gdb/25534
7230 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7231 (riscv_regcache_cooked_write): New function.
7232 (riscv_push_dummy_call): Use new function.
7233 (riscv_return_value): Likewise.
7234
7235 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7236
7237 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7238 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7239 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7240 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7241 * infrun.c (follow_fork): Likewise.
7242 (follow_fork_inferior): Likewise.
7243 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7244 * linux-nat.h (class linux_nat_target): Likewise.
7245 * remote.c (class remote_target) <follow_fork>: Likewise.
7246 (remote_target::follow_fork): Likewise.
7247 * target-delegates.c: Re-generate.
7248 * target.c (default_follow_fork): Likewise.
7249 (target_follow_fork): Likewise.
7250 * target.h (struct target_ops) <follow_fork>: Likewise.
7251 (target_follow_fork): Likewise.
7252
7253 2020-03-24 Tom de Vries <tdevries@suse.de>
7254
7255 * psymtab.c (maintenance_info_psymtabs): Print user field.
7256
7257 2020-03-20 Tom Tromey <tromey@adacore.com>
7258
7259 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7260 const.
7261 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7262 const.
7263
7264 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * ptrace.m4: Don't check for ptrace declaration.
7267 * config.in: Re-generate.
7268 * configure: Re-generate.
7269 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7270 not defined.
7271
7272 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7273
7274 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7275 `PTRACE_TYPE_RET'.
7276 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7277 * sparc-nat.c (gdb_ptrace): Likewise.
7278 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7279
7280 2020-03-20 Tom Tromey <tromey@adacore.com>
7281
7282 * c-exp.y (lex_one_token): Fix assert.
7283
7284 2020-03-20 Tom Tromey <tromey@adacore.com>
7285
7286 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7287 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7288 strncpy call.
7289
7290 2020-03-20 Tom Tromey <tromey@adacore.com>
7291
7292 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7293
7294 2020-03-20 Tom Tromey <tromey@adacore.com>
7295
7296 * ada-valprint.c (print_variant_part): Remove parameters; switch
7297 to value-based API.
7298 (print_field_values): Likewise.
7299 (ada_val_print_struct_union): Likewise.
7300 (ada_value_print_1): Update.
7301
7302 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7303
7304 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7305 nbsd_nat_target instead of inf_ptrace_target.
7306 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7307 nbsd_nat_target.
7308
7309 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7310
7311 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7312 it to the ptrace call.
7313 * (store_registers): Likewise.
7314
7315 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7316
7317 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7318 it to the ptrace call.
7319 * (store_registers): Likewise.
7320
7321 2020-03-19 Luis Machado <luis.machado@linaro.org>
7322
7323 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7324 valid, fetch vg value from ptrace.
7325
7326 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7327 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7328 * inf-ptrace.c: Likewise.
7329 * (gdb_ptrace): Add.
7330 * (inf_ptrace_target::resume): Update.
7331 * (inf_ptrace_target::xfer_partial): Likewise.
7332 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7333 * (inf_ptrace_peek_poke): Update.
7334
7335 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7336
7337 * x86-bsd-nat.c (gdb_ptrace): New.
7338 * (x86bsd_dr_set): Add new argument `ptid'.
7339 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7340 x86bsd_dr_set_addr): Update.
7341
7342 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7343
7344 * remote.c (remote_target::process_stop_reply): Handle events for
7345 all threads differently.
7346
7347 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * completer.c (completion_tracker::remove_completion): Define new
7350 function.
7351 * completer.h (completion_tracker::remove_completion): Declare new
7352 function.
7353 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7354 when adding a C++ function symbol.
7355
7356 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7357
7358 * completer.c (completion_tracker::completion_hash_entry): Define
7359 new class.
7360 (advance_to_filename_complete_word_point): Call
7361 recompute_lowest_common_denominator.
7362 (completion_tracker::completion_tracker): Call discard_completions
7363 to setup the hash table.
7364 (completion_tracker::discard_completions): Allow for being called
7365 from the constructor, pass new equal function, and element deleter
7366 when constructing the hash table. Initialise new class member
7367 variables.
7368 (completion_tracker::maybe_add_completion): Remove use of
7369 m_entries_vec, and store more information into m_entries_hash.
7370 (completion_tracker::recompute_lcd_visitor): New function, most
7371 content taken from...
7372 (completion_tracker::recompute_lowest_common_denominator):
7373 ...here, this now just visits each item in the hash calling the
7374 above visitor.
7375 (completion_tracker::build_completion_result): Remove use of
7376 m_entries_vec, call recompute_lowest_common_denominator.
7377 * completer.h (completion_tracker::have_completions): Remove use
7378 of m_entries_vec.
7379 (completion_tracker::completion_hash_entry): Declare new class.
7380 (completion_tracker::recompute_lowest_common_denominator): Change
7381 function signature.
7382 (completion_tracker::recompute_lcd_visitor): Declare new function.
7383 (completion_tracker::m_entries_vec): Delete.
7384 (completion_tracker::m_entries_hash): Initialize to NULL.
7385 (completion_tracker::m_lowest_common_denominator_valid): New
7386 member variable.
7387 (completion_tracker::m_lowest_common_denominator_max_length): New
7388 member variable.
7389
7390 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7391
7392 * regformats/regdef.h: Put reg in gdb namespace.
7393
7394 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7395
7396 * i386-bsd-nat.c (gdb_ptrace): New.
7397 * (i386bsd_fetch_inferior_registers,
7398 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7399 * (i386bsd_fetch_inferior_registers,
7400 i386bsd_store_inferior_registers) Use gdb_ptrace.
7401
7402 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7403
7404 * amd64-bsd-nat.c (gdb_ptrace): New.
7405 * (amd64bsd_fetch_inferior_registers,
7406 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7407 * (amd64bsd_fetch_inferior_registers,
7408 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7409
7410 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7411
7412 * user-regs.c (user_reg::read): Rename to...
7413 (user_reg::xread): ...this.
7414 * (append_user_reg): Rename argument `read' to `xread'.
7415 * (user_reg_add_builtin): Likewise.
7416 * (user_reg_add): Likewise.
7417 * (value_of_user_reg): Likewise.
7418
7419 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7420
7421 * sparc-nat.c (gdb_ptrace): New.
7422 * sparc-nat.c (sparc_fetch_inferior_registers)
7423 (sparc_store_inferior_registers) Remove obsolete comment.
7424 * sparc-nat.c (sparc_fetch_inferior_registers)
7425 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7426 * sparc-nat.c (sparc_fetch_inferior_registers)
7427 (sparc_store_inferior_registers) Use gdb_ptrace.
7428
7429 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7430
7431 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7432 it to the ptrace call.
7433 * sh-nbsd-nat.c (store_registers): Likewise.
7434
7435 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7436
7437 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7438 nbsd_nat_target instead of inf_ptrace_target.
7439 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7440 nbsd_nat_target.
7441
7442 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7443
7444 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7445
7446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7447
7448 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7449 <sys/sysctl.h>.
7450 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7451
7452 2020-03-17 Tom de Vries <tdevries@suse.de>
7453
7454 PR gdb/23710
7455 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7456 fields.
7457 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7458 fields.
7459 (process_imported_unit_die): Skip import of c++ CUs.
7460
7461 2020-03-16 Tom Tromey <tom@tromey.com>
7462
7463 * p-valprint.c (pascal_object_print_value): Initialize
7464 base_value.
7465
7466 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7467 Shahab Vahedi <shahab@synopsys.com>
7468
7469 * Makefile.in: Add arch/arc.o
7470 * configure.tgt: Likewise.
7471 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7472 (_initialize_arc_tdep): Don't initialize old target descriptions.
7473 (arc_read_description): New function to cache target descriptions.
7474 * arc-tdep.h (arc_read_description): Add proto type.
7475 * arch/arc.c: New file.
7476 * arch/arc.h: Likewise.
7477 * features/Makefile: Replace old target descriptions with new.
7478 * features/arc-arcompact.c: Remove.
7479 * features/arc-arcompact.xml: Likewise.
7480 * features/arc-v2.c: Likewise
7481 * features/arc-v2.xml: Likewise
7482 * features/arc/aux-arcompact.xml: New file.
7483 * features/arc/aux-v2.xml: Likewise.
7484 * features/arc/core-arcompact.xml: Likewise.
7485 * features/arc/core-v2.xml: Likewise.
7486 * features/arc/aux-arcompact.c: Generate.
7487 * features/arc/aux-v2.c: Likewise.
7488 * features/arc/core-arcompact.c: Likewise.
7489 * features/arc/core-v2.c: Likewise.
7490 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7491
7492 2020-03-16 Tom Tromey <tromey@adacore.com>
7493
7494 PR gdb/25663:
7495 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7496 putting value into bcache.
7497
7498 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7499
7500 PR gdb/21500
7501 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7502 to...
7503 (amd64_windows_init_abi_common): ... this. Don't set size of
7504 long type.
7505 (amd64_windows_init_abi): New function.
7506 (amd64_cygwin_init_abi): New function.
7507 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7508 the Cygwin OS ABI.
7509 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7510 comment.
7511
7512 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7515 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7516 (pe_import_directory_entry): New struct type.
7517 (is_linked_with_cygwin_dll): New function.
7518 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7519 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7520 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7521
7522 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7525 i386_cygwin_core_osabi_sniffer.
7526
7527 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * i386-cygwin-tdep.c: Rename to...
7530 * i386-windows-tdep.c: ... this.
7531 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7532 i386-windows-tdep.c.
7533 * configure.tgt: Likewise.
7534
7535 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7538 * osabi.c (gdb_osabi_names): Add "Windows".
7539 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7540 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7541 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7542 i386_cygwin_osabi_sniffer.
7543 (_initialize_i386_cygwin_tdep): Register OS ABI
7544 GDB_OSABI_WINDOWS for i386.
7545 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7546 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7547 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7548 for x86-64.
7549 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7550 when the target matches '*-*-mingw*'.
7551
7552 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * defs.h (enum gdb_osabi): Move to...
7555 * osabi.h (enum gdb_osabi): ... here.
7556 * gdbarch.sh: Include osabi.h in gdbarch.h.
7557 * gdbarch.h: Re-generate.
7558
7559 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7562 function.
7563 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7564
7565 2020-03-14 Tom Tromey <tom@tromey.com>
7566
7567 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7568 for C++.
7569 (c_type_print_modifier): Likewise. Add "language" parameter.
7570 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7571 (c_type_print_base_1): Update.
7572 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7573 constants.
7574 * type-stack.c (type_stack::insert): Handle tp_atomic and
7575 tp_restrict.
7576 (type_stack::follow_type_instance_flags): Likewise.
7577 (type_stack::follow_types): Likewise. Merge type-following code.
7578 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7579 (space_identifier, cv_with_space_id)
7580 (const_or_volatile_or_space_identifier_noopt)
7581 (const_or_volatile_or_space_identifier): Remove.
7582 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7583 rules.
7584 (ptr_operator, typebase): Update.
7585 (enum token_flag) <FLAG_C>: New constant.
7586 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7587 "_Atomic".
7588 (lex_one_token): Handle FLAG_C.
7589
7590 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7591
7592 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7593 it to the ptrace call.
7594 * m68k-bsd-nat.c (store_registers): Likewise.
7595
7596 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7597
7598 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7599 gdb_byte *.
7600 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7601 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7602 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7603
7604 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7605
7606 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7607 nbsd_nat_target instead of inf_ptrace_target.
7608 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7609 nbsd_nat_target.
7610
7611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7612
7613 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7614 register_t.
7615
7616 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7617
7618 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7619 it to the ptrace call.
7620 * alpha-bsd-nat.c (store_registers): Likewise.
7621
7622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7623
7624 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7625 includes.
7626 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7627 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7628 fill_fpregset): Likewise.
7629
7630 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7631
7632 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7633 nbsd_nat_target instead of inf_ptrace_target.
7634 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7635 nbsd_nat_target.
7636
7637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7638
7639 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7640 register_t.
7641
7642 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7643
7644 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7645 it to the ptrace call.
7646 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7647 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7648 * arm-nbsd-nat.c (store_register): Likewise.
7649 * arm-nbsd-nat.c (store_regs): Likewise.
7650 * arm-nbsd-nat.c (store_fp_register): Likewise.
7651 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7652
7653 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7654
7655 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7656 nbsd_nat_target instead of inf_ptrace_target.
7657 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7658 nbsd_nat_target.
7659
7660 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7661
7662 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7663 it to the ptrace call.
7664 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7669 it to the ptrace call.
7670 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7671
7672 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7673
7674 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7675 gdb_byte *.
7676 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7677
7678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7681 instead of inf_ptrace_target.
7682 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7683 nbsd_nat_target.
7684
7685 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7686
7687 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7688 register_t.
7689
7690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7691
7692 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7693 register_t.
7694
7695 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7696
7697 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7698 register_t.
7699
7700 2020-03-13 Tom Tromey <tom@tromey.com>
7701
7702 * value.h (val_print): Don't declare.
7703 * valprint.h (val_print_array_elements)
7704 (val_print_scalar_formatted, generic_val_print): Don't declare.
7705 * valprint.c (generic_val_print_array): Take a struct value.
7706 (generic_val_print_ptr, generic_val_print_memberptr)
7707 (generic_val_print_bool, generic_val_print_int)
7708 (generic_val_print_char, generic_val_print_complex)
7709 (generic_val_print): Remove.
7710 (generic_value_print): Update.
7711 (do_val_print): Remove unused parameters. Don't call
7712 la_val_print.
7713 (val_print): Remove.
7714 (common_val_print): Update. Don't call value_check_printable.
7715 (val_print_scalar_formatted, val_print_array_elements): Remove.
7716 * rust-lang.c (rust_val_print): Remove.
7717 (rust_language_defn): Update.
7718 * p-valprint.c (pascal_val_print): Remove.
7719 (pascal_value_print_inner): Update.
7720 (pascal_object_print_val_fields, pascal_object_print_val):
7721 Remove.
7722 (pascal_object_print_static_field): Update.
7723 * p-lang.h (pascal_val_print): Don't declare.
7724 * p-lang.c (pascal_language_defn): Update.
7725 * opencl-lang.c (opencl_language_defn): Update.
7726 * objc-lang.c (objc_language_defn): Update.
7727 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7728 * m2-lang.h (m2_val_print): Don't declare.
7729 * m2-lang.c (m2_language_defn): Update.
7730 * language.h (struct language_defn) <la_val_print>: Remove.
7731 * language.c (unk_lang_value_print_inner): Rename. Change
7732 argument types.
7733 (unknown_language_defn, auto_language_defn): Update.
7734 * go-valprint.c (go_val_print): Remove.
7735 * go-lang.h (go_val_print): Don't declare.
7736 * go-lang.c (go_language_defn): Update.
7737 * f-valprint.c (f_val_print): Remove.
7738 * f-lang.h (f_value_print): Don't declare.
7739 * f-lang.c (f_language_defn): Update.
7740 * d-valprint.c (d_val_print): Remove.
7741 * d-lang.h (d_value_print): Don't declare.
7742 * d-lang.c (d_language_defn): Update.
7743 * cp-valprint.c (cp_print_value_fields)
7744 (cp_print_value_fields_rtti, cp_print_value): Remove.
7745 (cp_print_static_field): Update.
7746 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7747 (c_val_print_struct, c_val_print_union, c_val_print_int)
7748 (c_val_print_memberptr, c_val_print): Remove.
7749 * c-lang.h (c_val_print_array, cp_print_value_fields)
7750 (cp_print_value_fields_rtti): Don't declare.
7751 * c-lang.c (c_language_defn, cplus_language_defn)
7752 (asm_language_defn, minimal_language_defn): Update.
7753 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7754 (ada_val_print_enum): Take a struct value.
7755 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7756 (ada_val_print): Remove.
7757 (ada_value_print_1): Update.
7758 (printable_val_type): Remove.
7759 * ada-lang.h (ada_val_print): Don't declare.
7760 * ada-lang.c (ada_language_defn): Update.
7761
7762 2020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * valprint.c (do_val_print): Update.
7765 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7766 a struct value.
7767 (value_to_value_object_no_release): Declare.
7768 * python/py-value.c (value_to_value_object_no_release): New
7769 function.
7770 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7771 struct value.
7772 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7773 function.
7774 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7775 a struct value.
7776 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7777 Declare.
7778 (gdbscm_apply_val_pretty_printer): Take a struct value.
7779 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7780 value.
7781 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7782 value.
7783 * extension-priv.h (struct extension_language_ops)
7784 <apply_val_pretty_printer>: Take a struct value.
7785 * cp-valprint.c (cp_print_value): Create a struct value.
7786 (cp_print_value): Update.
7787
7788 2020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * ada-valprint.c (print_field_values): Call common_val_print.
7791
7792 2020-03-13 Tom Tromey <tom@tromey.com>
7793
7794 * ada-valprint.c (val_print_packed_array_elements): Remove
7795 bitoffset and val parameters. Call common_val_print.
7796 (ada_val_print_string): Remove offset, address, and original_value
7797 parameters.
7798 (ada_val_print_array): Update.
7799 (ada_value_print_array): New function.
7800 (ada_value_print_1): Call it.
7801
7802 2020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * ada-valprint.c (ada_value_print): Use common_val_print.
7805
7806 2020-03-13 Tom Tromey <tom@tromey.com>
7807
7808 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7809
7810 2020-03-13 Tom Tromey <tom@tromey.com>
7811
7812 * ada-valprint.c (ada_value_print_num): New function.
7813 (ada_value_print_1): Use it.
7814
7815 2020-03-13 Tom Tromey <tom@tromey.com>
7816
7817 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7818
7819 2020-03-13 Tom Tromey <tom@tromey.com>
7820
7821 * ada-valprint.c (ada_value_print_ptr): New function.
7822 (ada_value_print_1): Use it.
7823
7824 2020-03-13 Tom Tromey <tom@tromey.com>
7825
7826 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7827 call common_val_print.
7828 (ada_val_print_1): Update.
7829 (ada_value_print_1): New function.
7830 (ada_value_print_inner): Rewrite.
7831
7832 2020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * cp-valprint.c (cp_print_value_fields): Update.
7835 (cp_print_value): New function.
7836
7837 2020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * m2-valprint.c (m2_value_print_inner): Use
7840 cp_print_value_fields.
7841 * cp-valprint.c (cp_print_value_fields): New function.
7842 * c-valprint.c (c_value_print_struct): New function.
7843 (c_value_print_inner): Use c_value_print_struct.
7844 * c-lang.h (cp_print_value_fields): Declare.
7845
7846 2020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * c-valprint.c (c_value_print_array): New function.
7849 (c_value_print_inner): Use it.
7850
7851 2020-03-13 Tom Tromey <tom@tromey.com>
7852
7853 * c-valprint.c (c_value_print_memberptr): New function.
7854 (c_value_print_inner): Use it.
7855
7856 2020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * c-valprint.c (c_value_print_int): New function.
7859 (c_value_print_inner): Use it.
7860
7861 2020-03-13 Tom Tromey <tom@tromey.com>
7862
7863 * c-valprint.c (c_value_print_ptr): New function.
7864 (c_value_print_inner): Use it.
7865
7866 2020-03-13 Tom Tromey <tom@tromey.com>
7867
7868 * c-valprint.c (c_value_print_inner): Rewrite.
7869
7870 2020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * valprint.c (generic_value_print_complex): New function.
7873 (generic_value_print): Use it.
7874
7875 2020-03-13 Tom Tromey <tom@tromey.com>
7876
7877 * valprint.c (generic_val_print_float): Don't call
7878 val_print_scalar_formatted.
7879 (generic_val_print, generic_value_print): Update.
7880
7881 2020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * valprint.c (generic_value_print_char): New function
7884 (generic_value_print): Use it.
7885
7886 2020-03-13 Tom Tromey <tom@tromey.com>
7887
7888 * valprint.c (generic_value_print_int): New function.
7889 (generic_value_print): Use it.
7890
7891 2020-03-13 Tom Tromey <tom@tromey.com>
7892
7893 * valprint.c (generic_value_print_bool): New function.
7894 (generic_value_print): Use it.
7895
7896 2020-03-13 Tom Tromey <tom@tromey.com>
7897
7898 * valprint.c (generic_val_print_func): Simplify.
7899 (generic_val_print, generic_value_print): Update.
7900
7901 2020-03-13 Tom Tromey <tom@tromey.com>
7902
7903 * valprint.c (generic_val_print_flags): Remove.
7904 (generic_val_print, generic_value_print): Update.
7905 (val_print_type_code_flags): Add original_value parameter.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * valprint.c (generic_val_print): Update.
7910 (generic_value_print): Update.
7911 * valprint.c (generic_val_print_enum): Don't call
7912 val_print_scalar_formatted.
7913
7914 2020-03-13 Tom Tromey <tom@tromey.com>
7915
7916 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7917 * valprint.c (generic_value_print_ptr): New function.
7918
7919 2020-03-13 Tom Tromey <tom@tromey.com>
7920
7921 * valprint.c (generic_value_print): Rewrite.
7922
7923 2020-03-13 Tom Tromey <tom@tromey.com>
7924
7925 * p-valprint.c (pascal_object_print_value_fields)
7926 (pascal_object_print_value): New functions.
7927
7928 2020-03-13 Tom Tromey <tom@tromey.com>
7929
7930 * p-valprint.c (pascal_value_print_inner): Rewrite.
7931
7932 2020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * f-valprint.c (f_value_print_innner): Rewrite.
7935
7936 2020-03-13 Tom Tromey <tom@tromey.com>
7937
7938 * m2-valprint.c (m2_print_unbounded_array): New overload.
7939 (m2_print_unbounded_array): Update.
7940 (m2_print_array_contents): Take a struct value.
7941 (m2_value_print_inner): Rewrite.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7946 (d_value_print_inner): New function.
7947 * d-lang.h (d_value_print_inner): Declare.
7948 * d-lang.c (d_language_defn): Use d_value_print_inner.
7949
7950 2020-03-13 Tom Tromey <tom@tromey.com>
7951
7952 * go-valprint.c (go_value_print_inner): New function.
7953 * go-lang.h (go_value_print_inner): Declare.
7954 * go-lang.c (go_language_defn): Use go_value_print_inner.
7955
7956 2020-03-13 Tom Tromey <tom@tromey.com>
7957
7958 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7959 API.
7960 (rust_val_print): Rewrite.
7961 (rust_value_print_inner): New function, from rust_val_print.
7962 (rust_language_defn): Use rust_value_print_inner.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * ada-valprint.c (ada_value_print_inner): New function.
7967 * ada-lang.h (ada_value_print_inner): Declare.
7968 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7969
7970 2020-03-13 Tom Tromey <tom@tromey.com>
7971
7972 * f-valprint.c (f_value_print_innner): New function.
7973 * f-lang.h (f_value_print_innner): Declare.
7974 * f-lang.c (f_language_defn): Use f_value_print_innner.
7975
7976 2020-03-13 Tom Tromey <tom@tromey.com>
7977
7978 * p-valprint.c (pascal_value_print_inner): New function.
7979 * p-lang.h (pascal_value_print_inner): Declare.
7980 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7981
7982 2020-03-13 Tom Tromey <tom@tromey.com>
7983
7984 * m2-valprint.c (m2_value_print_inner): New function.
7985 * m2-lang.h (m2_value_print_inner): Declare.
7986 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7987
7988 2020-03-13 Tom Tromey <tom@tromey.com>
7989
7990 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7991 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7992 * c-valprint.c (c_value_print_inner): New function.
7993 * c-lang.h (c_value_print_inner): Declare.
7994 * c-lang.c (c_language_defn, cplus_language_defn)
7995 (asm_language_defn, minimal_language_defn): Use
7996 c_value_print_inner.
7997
7998 2020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * p-valprint.c (pascal_object_print_value_fields): Now static.
8001 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8002
8003 2020-03-13 Tom Tromey <tom@tromey.com>
8004
8005 * c-valprint.c (c_val_print_array): Simplify.
8006
8007 2020-03-13 Tom Tromey <tom@tromey.com>
8008
8009 * valprint.c (value_print_array_elements): New function.
8010 * valprint.h (value_print_array_elements): Declare.
8011
8012 2020-03-13 Tom Tromey <tom@tromey.com>
8013
8014 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8015 * mips-tdep.c (mips_print_register): Use
8016 value_print_scalar_formatted.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * valprint.h (value_print_scalar_formatted): Declare.
8021 * valprint.c (value_print_scalar_formatted): New function.
8022
8023 2020-03-13 Tom Tromey <tom@tromey.com>
8024
8025 * valprint.h (generic_value_print): Declare.
8026 * valprint.c (generic_value_print): New function.
8027
8028 2020-03-13 Tom Tromey <tom@tromey.com>
8029
8030 * valprint.c (do_val_print): Call la_value_print_inner, if
8031 available.
8032 * rust-lang.c (rust_language_defn): Update.
8033 * p-lang.c (pascal_language_defn): Update.
8034 * opencl-lang.c (opencl_language_defn): Update.
8035 * objc-lang.c (objc_language_defn): Update.
8036 * m2-lang.c (m2_language_defn): Update.
8037 * language.h (struct language_defn) <la_value_print_inner>: New
8038 member.
8039 * language.c (unknown_language_defn, auto_language_defn): Update.
8040 * go-lang.c (go_language_defn): Update.
8041 * f-lang.c (f_language_defn): Update.
8042 * d-lang.c (d_language_defn): Update.
8043 * c-lang.c (c_language_defn, cplus_language_defn)
8044 (asm_language_defn, minimal_language_defn): Update.
8045 * ada-lang.c (ada_language_defn): Update.
8046
8047 2020-03-13 Tom Tromey <tom@tromey.com>
8048
8049 * c-valprint.c (c_value_print): Use common_val_print.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * f-valprint.c (f77_print_array_1, f_val_print): Use
8058 common_val_print.
8059
8060 2020-03-13 Tom Tromey <tom@tromey.com>
8061
8062 * riscv-tdep.c (riscv_print_one_register_info): Use
8063 common_val_print.
8064
8065 2020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * mi/mi-main.c (output_register): Use common_val_print.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * infcmd.c (default_print_one_register_info): Use
8072 common_val_print.
8073
8074 2020-03-13 Tom Tromey <tom@tromey.com>
8075
8076 * valprint.h (common_val_print_checked): Declare.
8077 * valprint.c (common_val_print_checked): New function.
8078 * stack.c (print_frame_arg): Use common_val_print_checked.
8079
8080 2020-03-13 Tom Tromey <tom@tromey.com>
8081
8082 * valprint.c (do_val_print): New function, from val_print.
8083 (val_print): Use do_val_print.
8084 (common_val_print): Use do_val_print.
8085
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * valprint.c (value_print): Use scoped_value_mark.
8089
8090 2020-03-13 Tom de Vries <tdevries@suse.de>
8091
8092 PR symtab/25646
8093 * psymtab.c (partial_symtab::partial_symtab): Don't set
8094 globals_offset and statics_offset. Push element onto
8095 current_global_psymbols and current_static_psymbols stacks.
8096 (concat): New function.
8097 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8098 element from current_global_psymbols and current_static_psymbols
8099 stacks. Concat popped elements to global_psymbols and
8100 static_symbols.
8101 (add_psymbol_to_list): Use current_global_psymbols and
8102 current_static_psymbols stacks.
8103 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8104 current_static_psymbols fields.
8105
8106 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8107
8108 * corelow.c (sniff_core_bfd): Remove.
8109 (class core_target) <m_core_vec>: Remove.
8110 (core_target::core_target): Update.
8111 (core_file_fns): Remove.
8112 (deprecated_add_core_fns): Remove.
8113 (default_core_sniffer): Remove.
8114 (sniff_core_bfd): Remove.
8115 (default_check_format): Remove.
8116 (gdb_check_format): Remove.
8117 (core_target_open): Update.
8118 (core_target::get_core_register_section): Update.
8119 (get_core_registers_cb): Update.
8120 (core_target::fetch_registers): Update.
8121 * gdbcore.h (struct core_fns): Remove.
8122 (deprecated_add_core_fns): Remove.
8123 (default_core_sniffer): Remove.
8124 (default_check_format): Remove.
8125
8126 2020-03-12 Tom Tromey <tom@tromey.com>
8127
8128 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8129 CORE_ADDR.
8130 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8131
8132 2020-03-12 Tom Tromey <tom@tromey.com>
8133
8134 * remote.c (remote_target::download_tracepoint)
8135 (remote_target::enable_tracepoint)
8136 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8137 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8138 sprintf_vma.
8139
8140 2020-03-12 Tom Tromey <tom@tromey.com>
8141
8142 * symfile-mem.c: Update CORE_ADDR size assert.
8143
8144 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * selftest.m4: Move to gdbsupport/.
8147 * acinclude.m4: Update path to selftest.m4.
8148
8149 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8150
8151 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8152 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8153 gdbarch-selfselftests.c and selftest-arch.c.
8154 (SUBDIR_UNITTESTS_OBS): Rename to...
8155 (SELFTESTS_OBS): ... this.
8156 (COMMON_SFILES): Remove disasm-selftests.c and
8157 gdbarch-selftests.c.
8158 * configure.ac: Don't add selftest-arch.{c,o} to
8159 CONFIG_{SRCS,OBS}.
8160 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8161 preprocessor conditions.
8162
8163 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * configure.ac: Don't source bfd/development.sh.
8166 * selftest.m4: Modify comment.
8167 * configure: Re-generate.
8168
8169 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8170
8171 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8172 not "true" or "false".
8173 * configure: Re-generate.
8174
8175 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8176
8177 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8178 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8179 renamed to arm_nbsd_supply_gregset.
8180 (fetch_register): Update to call arm_nbsd_supply_gregset.
8181 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8182 (arm_netbsd_nat_target::fetch_registers): Update.
8183 (fetch_elfcore_registers): Removed.
8184 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8185 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8186 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8187 not require NetBSD system headers.
8188 (arm_nbsd_regset): New struct.
8189 (arm_nbsd_iterate_over_regset_sections): New function.
8190 (arm_netbsd_init_abi_common): Updated to call
8191 set_gdbarch_iterate_over_regset_sections.
8192 * arm-nbsd-tdep.h: New file.
8193
8194 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8195
8196 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8197 recursion.
8198
8199 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * configure: Re-generate.
8202
8203 2020-03-11 Tom Tromey <tromey@adacore.com>
8204
8205 * ada-typeprint.c (print_choices): Fix comment.
8206
8207 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8208
8209 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8210 previous item in the list, when the list has no items.
8211
8212 2020-03-11 Tom de Vries <tdevries@suse.de>
8213
8214 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8215 PROP_LOCLIST handling code.
8216
8217 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8218
8219 * buildsym-legacy.c (record_line): Pass extra parameter to
8220 record_line.
8221 * buildsym.c (buildsym_compunit::record_line): Take an extra
8222 parameter, reduce duplication in the line table, and record the
8223 is_stmt flag in the line table.
8224 * buildsym.h (buildsym_compunit::record_line): Add extra
8225 parameter.
8226 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8227 non-statement lines.
8228 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8229 this to the symtab builder.
8230 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8231 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8232 through to dwarf_record_line_1.
8233 * infrun.c (process_event_stop_test): When stepping, don't stop at
8234 a non-statement instruction, and only refresh the step info when
8235 we land in the middle of a line's range. Also add an extra
8236 comment.
8237 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8238 field.
8239 * record-btrace.c (btrace_find_line_range): Only record lines
8240 marked as is-statement.
8241 * stack.c (frame_show_address): Show the frame address if we are
8242 in a non-statement sal.
8243 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8244 (maintenance_print_one_line_table): Print a header for the is_stmt
8245 column, and include is_stmt information in the output.
8246 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8247 preference to non-statements.
8248 (find_pcs_for_symtab_line): Prefer is-statement entries.
8249 (find_line_common): Likewise.
8250 * symtab.h (struct linetable_entry): Add is_stmt field.
8251 (struct symtab_and_line): Likewise.
8252 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8253 arranging the line table.
8254
8255 2020-03-07 Tom de Vries <tdevries@suse.de>
8256
8257 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8258 DIE.
8259
8260 2020-03-07 Tom Tromey <tom@tromey.com>
8261
8262 * valops.c (value_literal_complex): Remove obsolete comment.
8263 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8264 comment.
8265
8266 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * infrun.h: Forward-declare thread_info.
8269 (set_step_info): Add thread_info parameter, add doc.
8270 * infrun.c (set_step_info): Add thread_info parameter, move doc
8271 to header.
8272 * infrun.c (process_event_stop_test): Pass thread to
8273 set_step_info call.
8274 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8275 set_step_info.
8276 (prepare_one_step): Add thread_info parameter, pass it to
8277 set_step_frame and prepare_one_step (recursive) call.
8278 (step_1): Pass thread to prepare_one_step call.
8279 (step_command_fsm::should_stop): Pass thread to
8280 prepare_one_step.
8281 (until_next_fsm): Pass thread to set_step_frame call.
8282 (finish_command): Pass thread to set_step_info call.
8283
8284 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8285
8286 * windows-tdep.c (windows_solib_create_inferior_hook):
8287 Check if inferior is running.
8288
8289 2020-03-06 Tom de Vries <tdevries@suse.de>
8290
8291 * NEWS: Fix "the the".
8292 * ctfread.c: Same.
8293
8294 2020-03-06 Tom de Vries <tdevries@suse.de>
8295
8296 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8297
8298 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * .dir-locals.el: Add a comment referencing the other copies of
8301 this file.
8302
8303 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8304
8305 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8306 psargs.
8307
8308 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8309
8310 * .gitattributes: New file.
8311
8312 2020-03-04 Tom Tromey <tom@tromey.com>
8313
8314 * symmisc.c (print_symbol_bcache_statistics)
8315 (print_objfile_statistics): Update.
8316 * symfile.c (allocate_symtab): Use intern.
8317 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8318 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8319 macro_cache>: Remove.
8320 <string_cache>: New member.
8321 (struct objfile) <intern>: New methods.
8322 * elfread.c (elf_symtab_read): Use intern.
8323 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8324 (dwarf2_compute_name, dwarf2_physname)
8325 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8326 names.
8327 (guess_partial_die_structure_name): Update.
8328 (partial_die_info::fixup): Intern name.
8329 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8330 name.
8331 (dwarf2_name): Intern name. Update.
8332 * buildsym.c (buildsym_compunit::get_macro_table): Use
8333 string_cache.
8334
8335 2020-03-04 Tom Tromey <tom@tromey.com>
8336
8337 * jit.c (bfd_open_from_target_memory): Make "target" const.
8338 * corefile.c (gnutarget): Now const.
8339 * gdbcore.h (gnutarget): Now const.
8340
8341 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8342
8343 * NEWS: Mention support for WOW64 processes.
8344 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8345 (amd64_windows_segment_register_p): Remove static.
8346 (_initialize_amd64_windows_nat): Update.
8347 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8348 * i386-windows-nat.c (context_offset): Update.
8349 (i386_mappings): Rename and remove static.
8350 (i386_windows_segment_register_p): Remove static.
8351 (_initialize_i386_windows_nat): Update.
8352 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8353 (STATUS_WX86_SINGLE_STEP): New macro.
8354 (EnumProcessModulesEx): New macro.
8355 (Wow64SuspendThread): New macro.
8356 (Wow64GetThreadContext): New macro.
8357 (Wow64SetThreadContext): New macro.
8358 (Wow64GetThreadSelectorEntry): New macro.
8359 (windows_set_context_register_offsets): Add static.
8360 (windows_set_segment_register_p): Likewise.
8361 (windows_add_thread): Adapt for WOW64 processes.
8362 (windows_fetch_one_register): Likewise.
8363 (windows_nat_target::fetch_registers): Likewise.
8364 (windows_store_one_register): Likewise.
8365 (display_selector): Likewise.
8366 (display_selectors): Likewise.
8367 (handle_exception): Likewise.
8368 (windows_continue): Likewise.
8369 (windows_nat_target::resume): Likewise.
8370 (windows_add_all_dlls): Likewise.
8371 (do_initial_windows_stuff): Likewise.
8372 (windows_nat_target::attach): Likewise.
8373 (windows_get_exec_module_filename): Likewise.
8374 (windows_nat_target::create_inferior): Likewise.
8375 (windows_xfer_siginfo): Likewise.
8376 (_initialize_loadable): Initialize Wow64SuspendThread,
8377 Wow64GetThreadContext, Wow64SetThreadContext,
8378 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8379 * windows-nat.h (windows_set_context_register_offsets):
8380 Remove declaration.
8381 (windows_set_segment_register_p): Likewise.
8382 (i386_windows_segment_register_p): Add declaration.
8383 (amd64_windows_segment_register_p): Likewise.
8384
8385 2020-03-04 Luis Machado <luis.machado@linaro.org>
8386
8387 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8388 in "info registers" for AArch64/ARM.
8389
8390 The change caused "info registers" to not print GPR's.
8391
8392 gdb/ChangeLog:
8393
8394 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8395
8396 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8397 when reg->group is empty and reggroup is not.
8398
8399 2020-03-03 Tom Tromey <tromey@adacore.com>
8400
8401 * dwarf2/frame.c (struct dwarf2_frame_cache)
8402 <checked_tailcall_bottom, entry_cfa_sp_offset,
8403 entry_cfa_sp_offset_p>: Remove members.
8404 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8405 (dwarf2_frame_prev_register): Don't call
8406 dwarf2_tailcall_sniffer_first.
8407 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8408 * frame-unwind.c (add_unwinder): New fuction.
8409 (frame_unwind_init): Use it. Add tailcall unwinder.
8410
8411 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8412 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8413
8414 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8415 value should be printed as true.
8416
8417 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8418
8419 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8420 (windows_init_abi): Set and use windows_so_ops.
8421
8422 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8423
8424 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8425 when verifying if dealing with a convenience variable.
8426
8427 2020-03-03 Luis Machado <luis.machado@linaro.org>
8428
8429 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8430
8431 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8432
8433 * infrun.c (gdbarch_supports_displaced_stepping): New.
8434 (use_displaced_stepping): Break up conditions in smaller pieces.
8435 Use gdbarch_supports_displaced_stepping.
8436 (displaced_step_prepare_throw): Use
8437 gdbarch_supports_displaced_stepping.
8438
8439 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8440
8441 * NEWS: Mention new behaviour of the history filename.
8442 * top.c (write_history_p): Add comment.
8443 (show_write_history_p): Add header comment, give a different
8444 message when history writing is on, but the history filename is
8445 empty.
8446 (history_filename): Add comment.
8447 (history_filename_empty): New function.
8448 (show_history_filename): Add header comment, give a different
8449 message when the filename is empty.
8450 (init_history): Compare history_filename against nullptr, and only
8451 read history if the filename is not empty.
8452 (set_history_filename): Add header comment, and only make
8453 non-empty filenames absolute.
8454 (init_main): Make the filename argument to 'set history filename'
8455 optional.
8456
8457 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8458
8459 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8460 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8461 (fetch_fp_register): Update.
8462 (fetch_fp_regs): Update.
8463 (store_fp_register): Update.
8464 (store_fp_regs): Update.
8465 (arm_netbsd_nat_target::read_description): New function.
8466 (fetch_elfcore_registers): Update.
8467
8468 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8469
8470 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8471 general_thread if the stop reply is missing a thread-id.
8472 (remote_target::process_stop_reply): Use the first non-exited
8473 thread if the target didn't pass a thread-id.
8474 * infrun.c (do_target_wait): Move call to
8475 switch_to_inferior_no_thread to ....
8476 (do_target_wait_1): ... here.
8477
8478 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8479
8480 * debuginfod-support.c: Include defs.h first.
8481
8482 2020-02-28 Tom de Vries <tdevries@suse.de>
8483
8484 * symfile.c (set_initial_language): Use default language for lookup.
8485
8486 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8487
8488 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8489 reader variable, pass `this` to read_cutu_die_from_dwo.
8490
8491 2020-02-27 Aaron Merey <amerey@redhat.com>
8492
8493 * source.c (open_source_file): Check for nullptr when computing
8494 srcpath.
8495
8496 2020-02-27 Tom Tromey <tromey@adacore.com>
8497
8498 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8499 member.
8500 (dwarf2_add_field): Don't update nfields.
8501 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8502
8503 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8506 abs.
8507
8508 2020-02-26 Tom Tromey <tom@tromey.com>
8509
8510 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8511 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8512 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8513 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8514 per_cu_data.
8515
8516 2020-02-26 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2/index-write.c (psym_index_map): Change type.
8519 (add_address_entry_worker, write_one_signatured_type)
8520 (recursively_count_psymbols, recursively_write_psymbols)
8521 (class debug_names, psyms_seen_size, write_gdbindex)
8522 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8523
8524 2020-02-26 Aaron Merey <amerey@redhat.com>
8525
8526 * Makefile.in: Handle optional debuginfod support.
8527 * NEWS: Update.
8528 * README: Add --with-debuginfod summary.
8529 * config.in: Regenerate.
8530 * configure: Regenerate.
8531 * configure.ac: Handle optional debuginfod support.
8532 * debuginfod-support.c: debuginfod helper functions.
8533 * debuginfod-support.h: Ditto.
8534 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8535 summary.
8536 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8537 when a dwz file cannot be found.
8538 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8539 debuginfo file cannot be found.
8540 * source.c (open_source_file): Query debuginfod servers when a
8541 source file cannot be found.
8542 * top.c (print_gdb_configuration): Include
8543 --{with,without}-debuginfod in the output.
8544
8545 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8546
8547 * thread.c (thr_try_catch_cmd): Print thread name.
8548
8549 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8552 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8553 dwarf2_fetch_die_type_sect_off): Move to...
8554 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8556 dwarf2_fetch_die_type_sect_off): ... here.
8557 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8558 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8559 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8560
8561 2020-02-26 Tom de Vries <tdevries@suse.de>
8562
8563 PR gdb/25603
8564 * symfile.c (set_initial_language): Exit-early if
8565 language_mode == language_mode_manual.
8566
8567 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8568
8569 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8570 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8571 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8572
8573 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * gdbtypes.c (create_array_type_with_stride): Handle negative
8576 array strides.
8577 * valarith.c (value_subscripted_rvalue): Likewise.
8578
8579 2020-02-25 Luis Machado <luis.machado@linaro.org>
8580
8581 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8582
8583 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8584
8585 * loc.h (dwarf2_get_die_type): Move to...
8586 * read.h (dwarf2_get_die_type): ... here.
8587 * read.c (dwarf2_get_die_type): Move doc to header.
8588
8589 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8590
8591 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8592 'gnulib/Makefile.in' to the list.
8593
8594 2020-02-24 Tom Tromey <tom@tromey.com>
8595
8596 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8597 Remove.
8598 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8599 XOBNEWVEC.
8600
8601 2020-02-24 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8604 New method.
8605 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8606 (dw2_do_instantiate_symtab, dw2_get_file_names)
8607 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8608
8609 2020-02-24 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8612 make_scoped_restore.
8613 (dwarf2_psymtab::read_symtab): Don't clear
8614 reading_partial_symbols.
8615
8616 2020-02-24 Tom de Vries <tdevries@suse.de>
8617
8618 PR gdb/25592
8619 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8620
8621 2020-02-24 Tom de Vries <tdevries@suse.de>
8622
8623 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8624 commands layout next/prev/regs.
8625
8626 2020-02-22 Tom Tromey <tom@tromey.com>
8627
8628 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8629 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8630
8631 2020-02-22 Tom Tromey <tom@tromey.com>
8632
8633 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8634
8635 2020-02-22 Tom Tromey <tom@tromey.com>
8636
8637 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8638 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8639 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8640 * tui/tui.c (_initialize_tui): Add usage text.
8641
8642 2020-02-22 Tom Tromey <tom@tromey.com>
8643
8644 * tui/tui-win.c (tui_set_focus_command)
8645 (tui_set_win_height_command): Use error_no_arg.
8646 (_initialize_tui_win): Update help text.
8647 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8648
8649 2020-02-22 Tom Tromey <tom@tromey.com>
8650
8651 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8652 * tui/tui-disasm.h (struct tui_disasm_window)
8653 <display_start_addr>: Declare.
8654 * tui/tui-source.h (struct tui_source_window)
8655 <display_start_addr>: Declare.
8656 * tui/tui-winsource.h (struct tui_source_window_base)
8657 <show_source_line, display_start_addr>: New methods.
8658 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8659 Rename and move to protected section.
8660 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8661 (tui_source_window_base::do_erase_source_content): Update.
8662 (tui_source_window_base::show_source_line): Now a method.
8663 (tui_source_window_base::show_source_content)
8664 (tui_source_window_base::tui_source_window_base)
8665 (tui_source_window_base::rerender)
8666 (tui_source_window_base::refill)
8667 (tui_source_window_base::do_scroll_horizontal)
8668 (tui_source_window_base::set_is_exec_point_at)
8669 (tui_source_window_base::update_breakpoint_info)
8670 (tui_source_window_base::update_exec_info): Update.
8671 * tui/tui-source.c (tui_source_window::set_contents)
8672 (tui_source_window::showing_source_p)
8673 (tui_source_window::do_scroll_vertical)
8674 (tui_source_window::location_matches_p)
8675 (tui_source_window::line_is_displayed): Update.
8676 (tui_source_window::display_start_addr): New method.
8677 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8678 (tui_disasm_window::do_scroll_vertical)
8679 (tui_disasm_window::location_matches_p): Update.
8680 (tui_disasm_window::display_start_addr): New method.
8681
8682 2020-02-22 Tom Tromey <tom@tromey.com>
8683
8684 * NEWS: Add entry for gdb.register_window_type.
8685 * tui/tui-layout.h (window_factory): New typedef.
8686 (tui_register_window): Declare.
8687 * tui/tui-layout.c (saved_tui_windows): New global.
8688 (tui_apply_current_layout): Use it.
8689 (tui_register_window): New function.
8690 * python/python.c (do_start_initialization): Call
8691 gdbpy_initialize_tui.
8692 (python_GdbMethods): Add "register_window_type" function.
8693 * python/python-internal.h (gdbpy_register_tui_window)
8694 (gdbpy_initialize_tui): Declare.
8695 * python/py-tui.c: New file.
8696 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8697
8698 2020-02-22 Tom Tromey <tom@tromey.com>
8699
8700 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8701
8702 2020-02-22 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8705 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8706 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8707 (tui_set_win_focus_to): Move from tui-win.c.
8708
8709 2020-02-22 Tom Tromey <tom@tromey.com>
8710
8711 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8712 functions.
8713 (known_window_types): New global.
8714 (tui_get_window_by_name): Reimplement.
8715 (initialize_known_windows): New function.
8716 (validate_window_name): Rewrite.
8717 (_initialize_tui_layout): Call initialize_known_windows.
8718
8719 2020-02-22 Tom Tromey <tom@tromey.com>
8720
8721 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8722 Remove constants.
8723 * tui/tui-winsource.h (struct tui_source_window_base)
8724 <tui_source_window_base>: Remove parameter.
8725 * tui/tui-winsource.c
8726 (tui_source_window_base::tui_source_window_base): Remove
8727 parameter.
8728 (tui_source_window_base::refill): Update.
8729 * tui/tui-stack.h (struct tui_locator_window)
8730 <tui_locator_window>: Update.
8731 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8732 Default the constructor.
8733 * tui/tui-regs.h (struct tui_data_item_window)
8734 <tui_data_item_window>: Default the constructor.
8735 (struct tui_data_window) <tui_data_window>: Likewise.
8736 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8737 Default the constructor.
8738 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8739 Default the constructor.
8740 <type>: Remove.
8741 (struct tui_win_info) <tui_win_info>: Default the constructor.
8742 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8743 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8744 Default the constructor.
8745
8746 2020-02-22 Tom Tromey <tom@tromey.com>
8747
8748 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8749 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8750 * tui/tui-win.c (tui_resize_all): Don't call
8751 tui_delete_invisible_windows.
8752 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8753 done.
8754 (tui_set_layout): Update.
8755 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8756 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8757 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8758
8759 2020-02-22 Tom Tromey <tom@tromey.com>
8760
8761 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8762 correctly.
8763
8764 2020-02-22 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8767
8768 2020-02-22 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-winsource.h (struct tui_source_window_iterator)
8771 <inner_iterator>: New etytypedef.
8772 <tui_source_window_iterator>: Take "end" parameter.
8773 <tui_source_window_iterator>: Take iterator.
8774 <operator*, advance>: Update.
8775 <m_iter>: Change type.
8776 <m_end>: New field.
8777 (struct tui_source_windows) <begin, end>: Update.
8778 * tui/tui-layout.c (tui_windows): New global.
8779 (tui_apply_current_layout): Clear tui_windows.
8780 (tui_layout_window::apply): Update tui_windows.
8781 * tui/tui-data.h (tui_windows): Declare.
8782 (all_tui_windows): Now inline function.
8783 (class tui_window_iterator, struct all_tui_windows): Remove.
8784
8785 2020-02-22 Tom Tromey <tom@tromey.com>
8786
8787 PR tui/17850:
8788 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8789 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8790 "height" argument.
8791 (class tui_layout_window) <get_sizes>: Likewise.
8792 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8793 argument.
8794 <get_sizes>: Add "height" argument.
8795 <m_vertical>: New field.
8796 * tui/tui-layout.c (tui_layout_split::clone): Update.
8797 (tui_layout_split::get_sizes): Add "height" argument.
8798 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8799 (tui_new_layout_command): Parse "-horizontal".
8800 (_initialize_tui_layout): Update help string.
8801 (tui_layout_split::specification): Add "-horizontal" when needed.
8802 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8803 argument.
8804 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8805 New methods.
8806
8807 2020-02-22 Tom Tromey <tom@tromey.com>
8808
8809 * tui/tui-layout.h (enum tui_adjust_result): New.
8810 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8811 (class tui_layout_window) <adjust_size>: Return
8812 tui_adjust_result. Rewrite.
8813 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8814 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8815
8816 2020-02-22 Tom Tromey <tom@tromey.com>
8817
8818 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8819 parameter and return types.
8820 (class tui_layout_base) <specification>: Add "depth".
8821 (class tui_layout_window) <specification>: Add "depth".
8822 (class tui_layout_split) <specification>: Add "depth".
8823 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8824 and return types.
8825 (tui_new_layout_command): Parse sub-layouts.
8826 (_initialize_tui_layout): Update help string.
8827 (tui_layout_window::specification): Add "depth".
8828 (add_layout_command): Update.
8829
8830 2020-02-22 Tom Tromey <tom@tromey.com>
8831
8832 * NEWS: Add "tui new-layout" item.
8833 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8834 Add new-layout command to help text.
8835 (validate_window_name): New function.
8836 (tui_new_layout_command): New function.
8837 (_initialize_tui_layout): Register "new-layout".
8838 (tui_layout_window::specification): New method.
8839 (tui_layout_window::specification): New method.
8840 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8841 method.
8842 (class tui_layout_window) <specification>: New method.
8843 (class tui_layout_split) <specification>: New method.
8844
8845 2020-02-22 Tom Tromey <tom@tromey.com>
8846
8847 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8848 * tui/tui-win.c (window_name_completer): Update comment.
8849 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8850 Declare method.
8851 (class tui_layout_window) <replace_window>: Likewise.
8852 (class tui_layout_split) <replace_window>: Likewise.
8853 (tui_set_layout): Don't declare.
8854 (tui_set_initial_layout): Declare function.
8855 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8856 (asm_regs_layout): New globals.
8857 (tui_current_layout, show_layout): Remove.
8858 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8859 (find_layout, tui_apply_layout): New function.
8860 (layout_completer): Remove.
8861 (tui_next_layout): Reimplement.
8862 (tui_next_layout_command): New function.
8863 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8864 (tui_regs_layout): Reimplement.
8865 (tui_regs_layout_command): New function.
8866 (extract_display_start_addr): Rewrite.
8867 (next_layout, prev_layout): Remove.
8868 (tui_layout_window::replace_window): New method.
8869 (tui_layout_split::replace_window): New method.
8870 (destroy_layout): New function.
8871 (layout_list): New global.
8872 (add_layout_command): New function.
8873 (initialize_layouts): Update.
8874 (tui_layout_command): New function.
8875 (_initialize_tui_layout): Install "layout" commands.
8876 * tui/tui-data.h (enum tui_layout_type): Remove.
8877 (tui_current_layout): Don't declare.
8878
8879 2020-02-22 Tom Tromey <tom@tromey.com>
8880
8881 * tui/tui-regs.c (tui_reg_layout): Remove.
8882 (tui_reg_command): Use tui_regs_layout.
8883 * tui/tui-layout.h (tui_reg_command): Declare.
8884 * tui/tui-layout.c (tui_reg_command): New function.
8885
8886 2020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui.c (tui_rl_delete_other_windows): Call
8889 tui_remove_some_windows.
8890 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8891 Declare method.
8892 (class tui_layout_window) <remove_windows>: New method.
8893 (class tui_layout_split) <remove_windows>: Declare.
8894 (tui_remove_some_windows): Declare.
8895 * tui/tui-layout.c (tui_remove_some_windows): New function.
8896 (tui_layout_split::remove_windows): New method.
8897
8898 2020-02-22 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8901 * tui/tui-layout.h (tui_next_layout): Declare.
8902 * tui/tui-layout.c (tui_next_layout): New function.
8903
8904 2020-02-22 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8907 correct coordinates.
8908
8909 2020-02-22 Tom Tromey <tom@tromey.com>
8910
8911 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8912 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8913 DATA_WIN case.
8914
8915 2020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8918 TUI_DISASM_WIN, not tui_win_list.
8919
8920 2020-02-22 Tom Tromey <tom@tromey.com>
8921
8922 * valprint.c (generic_val_print_enum_1)
8923 (val_print_type_code_flags): Style member names.
8924 * rust-lang.c (val_print_struct, rust_print_enum)
8925 (rust_print_struct_def, rust_internal_print_type): Style member
8926 names.
8927 * p-valprint.c (pascal_object_print_value_fields): Style member
8928 names. Only call fprintf_symbol_filtered for static members.
8929 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8930 * f-valprint.c (f_val_print): Style member names.
8931 * f-typeprint.c (f_type_print_base): Style member names.
8932 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8933 call fprintf_symbol_filtered for static members.
8934 (cp_print_class_member): Style member names.
8935 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8936 member names.
8937 * ada-valprint.c (ada_print_scalar): Style enum names.
8938 (ada_val_print_enum): Likewise.
8939 * ada-typeprint.c (print_enum_type): Style enum names.
8940
8941 2020-02-21 Tom Tromey <tom@tromey.com>
8942
8943 * psympriv.h (struct partial_symtab): Update comment.
8944
8945 2020-02-21 Tom Tromey <tromey@adacore.com>
8946
8947 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8948 type is CORE_ADDR.
8949
8950 2020-02-21 Tom de Vries <tdevries@suse.de>
8951
8952 PR gdb/25534
8953 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8954 if dependencies[i]->user != NULL.
8955
8956 2020-02-21 Ali Tamur <tamur@google.com>
8957
8958 * dwarf2/read.c (dwarf2_name): Add null check.
8959
8960 2020-02-20 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8963 ">=", in binary search.
8964 (dwarf2_find_containing_comp_unit): New overload.
8965 (run_test): New self-test.
8966 (_initialize_dwarf2_read): Register new test.
8967
8968 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8969
8970 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8971 * riscv-tdep.h: Likewise.
8972 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8973 rv32-only CSR.
8974 * features/riscv/64bit-csr.xml: Regenerated.
8975
8976 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8977 Tom Tromey <tom@tromey.com>
8978
8979 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8980 of 'fputc_unfiltered'.
8981 (putchar_unfiltered): Call 'fputc_unfiltered'.
8982 (fputc_unfiltered): Call 'fputs_unfiltered'.
8983
8984 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * config.in: Regenerate.
8987 * configure: Regenerate.
8988 * configure.ac: Add --with-python-libdir option.
8989 * main.c: Use WITH_PYTHON_LIBDIR.
8990
8991 2020-02-19 Tom Tromey <tom@tromey.com>
8992
8993 * symtab.c (general_symbol_info::compute_and_set_names): Use
8994 obstack_strndup. Simplify call to symbol_set_demangled_name.
8995
8996 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8997
8998 * dwarf2/read.c (allocate_signatured_type_table,
8999 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9000 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9001 Remove objfile parameter, update all callers.
9002
9003 2020-02-19 Doug Evans <dje@google.com>
9004
9005 PR rust/25535
9006 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9007 rust_enum_variant calculation.
9008
9009 2020-02-19 Tom Tromey <tromey@adacore.com>
9010
9011 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9012
9013 2020-02-19 Tom Tromey <tromey@adacore.com>
9014
9015 * ada-lang.c (cache_symbol): Use obstack_strdup.
9016
9017 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * configure: Regenerate.
9020
9021 2020-02-19 Tom Tromey <tromey@adacore.com>
9022
9023 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9024 NULL check.
9025
9026 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9027
9028 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9029
9030 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9033 if GDBSERVER is not defined.
9034 (riscv_tdesc_cache): Likewise, also store const target_desc.
9035 (STATIC_IN_GDB): Define.
9036 (riscv_create_target_description): Update declaration with
9037 STATIC_IN_GDB.
9038 (riscv_lookup_target_description): New function, only define if
9039 GDBSERVER is not defined.
9040 * arch/riscv.h (riscv_create_target_description): Declare only
9041 when GDBSERVER is defined.
9042 (riscv_lookup_target_description): New declaration when GDBSERVER
9043 is not defined.
9044 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9045 (riscv_linux_read_features): ...this, and return
9046 riscv_gdbarch_features instead of target_desc.
9047 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9048 (riscv_linux_read_description): Rename to...
9049 (riscv_linux_read_features): ...this.
9050 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9051 Update to use riscv_gdbarch_features and
9052 riscv_lookup_target_description.
9053 * riscv-tdep.c (riscv_find_default_target_description): Use
9054 riscv_lookup_target_description instead of
9055 riscv_create_target_description.
9056
9057 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * valprint.c (generic_val_print_enum_1): When printing a flag
9060 enum with value 0 and there is no enumerator with value 0, print
9061 just "0" instead of "(unknown: 0x0)".
9062
9063 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * valprint.c (generic_val_print_enum_1): Print unknown part of
9066 flag enum in hex.
9067
9068 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9069
9070 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9071 flag enums to contain duplicate enumerators.
9072 * valprint.c (generic_val_print_enum_1): Update comment.
9073
9074 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * dwarf2/read.c: Include "count-one-bits.h".
9077 (update_enumeration_type_from_children): If an enumerator has
9078 multiple bits set, don't treat the enumeration as a "flag enum".
9079 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9080 of flag enums have 0 or 1 bit set.
9081
9082 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9083
9084 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9085 conversion.
9086 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9087 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9088 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9089 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9090 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9091
9092 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9095
9096 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9099 displaced_step_closure_up.
9100 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9101 (struct displaced_step_closure_up):
9102 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9103 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9104 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9105 Likewise.
9106 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9107 * gdbarch.c, gdbarch.h: Re-generate.
9108 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9109 displaced_step_closure_up.
9110 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9111 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9112 * infrun.h (displaced_step_closure_up): New type alias.
9113 (struct displaced_step_inferior_state) <step_closure>: Change
9114 type to displaced_step_closure_up.
9115 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9116 displaced_step_closure_up.
9117 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9118
9119 2020-02-14 Tom Tromey <tom@tromey.com>
9120
9121 * minidebug.c (gnu_debug_key): New global.
9122 (find_separate_debug_file_in_section): Use it.
9123
9124 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9125
9126 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9127 std::unique_ptr.
9128 * gdbarch.c: Re-generate.
9129 * gdbarch.h: Re-generate.
9130 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9131 change.
9132 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9133 type to std::unique_ptr.
9134 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9135 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9136 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9137 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9138 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9139 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9140 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9141 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9142 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9143
9144 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9147 std::unique_ptr.
9148 (displaced_step_clear): Rename to...
9149 (displaced_step_reset): ... this. Just call displaced->reset ().
9150 (displaced_step_clear_cleanup): Rename to...
9151 (displaced_step_reset_cleanup): ... this.
9152 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9153 (displaced_step_fixup): Likewise.
9154 (resume_1): Likewise.
9155 (handle_inferior_event): Restore child's memory before calling
9156 displaced_step_fixup on the parent.
9157 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9158 to std::unique_ptr.
9159 <step_closure>: Change type to std::unique_ptr.
9160
9161 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * arm-tdep.c: Include count-one-bits.h.
9164 (cleanup_block_store_pc): Use count_one_bits.
9165 (cleanup_block_load_pc): Use count_one_bits.
9166 (arm_copy_block_xfer): Use count_one_bits.
9167 (thumb2_copy_block_xfer): Use count_one_bits.
9168 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9169 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9170 (thumb_get_next_pcs_raw): Use count_one_bits.
9171 (arm_get_next_pcs_raw): Use count_one_bits_l.
9172 * arch/arm.c (bitcount): Remove.
9173 * arch/arm.h (bitcount): Remove.
9174
9175 2020-02-14 Tom Tromey <tromey@adacore.com>
9176
9177 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9178 Update.
9179 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9180 * dwarf2/loc.c (call_site_find_chain_1): Return
9181 unique_xmalloc_ptr.
9182 (call_site_find_chain): Likewise.
9183
9184 2020-02-14 Richard Biener <rguenther@suse.de>
9185
9186 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9187 on expression with division operators.
9188
9189 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9190
9191 * MAINTAINERS (Write After Approval): Adding myself.
9192
9193 2020-02-12 Tom Tromey <tom@tromey.com>
9194
9195 * event-loop.c (event_data, gdb_event, event_handler_func):
9196 Remove.
9197
9198 2020-02-12 Tom Tromey <tom@tromey.com>
9199
9200 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9201 (dwarf2_frame_objfile_data): Add comment.
9202 (find_comp_unit, set_comp_unit): New functions.
9203 (dwarf2_frame_find_fde): Use find_comp_unit.
9204 (dwarf2_build_frame_info): Use set_comp_unit.
9205
9206 2020-02-12 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9209 (comp_unit): Don't initialize objfile.
9210 (execute_cfa_program): Add text_offset parameter.
9211 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9212 (dwarf2_frame_cache): Update.
9213 (dwarf2_build_frame_info): Don't set "objfile" member.
9214
9215 2020-02-12 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9218 (decode_frame_entry): Likewise.
9219 (dwarf2_build_frame_info): Update.
9220
9221 2020-02-12 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9224 (decode_frame_entry_1): Use the comp_unit obstack.
9225
9226 2020-02-12 Tom Tromey <tom@tromey.com>
9227
9228 * dwarf2/frame.c (struct comp_unit): Add initializers and
9229 constructor.
9230 (dwarf2_frame_objfile_data): Store a comp_unit.
9231 (dwarf2_frame_find_fde): Update.
9232 (dwarf2_build_frame_info): Use "new".
9233
9234 2020-02-12 Tom Tromey <tom@tromey.com>
9235
9236 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9237 (dwarf2_fde_table): Typedef for std::vector.
9238 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9239 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9240 (decode_frame_entry): Update.
9241 (dwarf2_build_frame_info): Use "new".
9242
9243 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9244
9245 * arm-tdep.c (arm_gdbarch_init): Update.
9246 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9247 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9248 have_neon, is_m>: Change to bool.
9249
9250 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9251
9252 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9253
9254 2020-02-12 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9257
9258 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9259
9260 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9261 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9262
9263 2020-02-11 Tom Tromey <tom@tromey.com>
9264
9265 * psymtab.h: Update comment.
9266
9267 2020-02-11 Tom Tromey <tom@tromey.com>
9268
9269 * gdb_obstack.h (struct auto_obstack): Use
9270 DISABLE_COPY_AND_ASSIGN.
9271
9272 2020-02-11 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/frame.h (struct objfile): Don't forward declare.
9275
9276 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9277
9278 * cris-tdep.c (cris_supply_gregset): Change signature to match
9279 what struct regset expects.
9280 (cris_regset): New struct.
9281 (fetch_core_registers): Remove.
9282 (cris_iterate_over_regset_sections): New function.
9283 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9284 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9285
9286 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9287
9288 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9289 registers.
9290
9291 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9292
9293 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9294
9295 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * configure: Re-generate.
9298
9299 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * configure: Re-generate.
9302
9303 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * acinclude: Update warning.m4 path.
9306 * warning.m4: Move to gdbsupport.
9307
9308 2020-02-11 Tom Tromey <tromey@adacore.com>
9309
9310 * remote.c (remote_console_output): Update.
9311 * printcmd.c (printf_command): Update.
9312 * event-loop.c (gdb_wait_for_event): Update.
9313 * linux-nat.c (sigchld_handler): Update.
9314 * remote-sim.c (gdb_os_write_stdout): Update.
9315 (gdb_os_flush_stdout): Update.
9316 (gdb_os_flush_stderr): Update.
9317 (gdb_os_write_stderr): Update.
9318 * exceptions.c (print_exception): Update.
9319 * remote-fileio.c (remote_fileio_func_read): Update.
9320 (remote_fileio_func_write): Update.
9321 * tui/tui.c (tui_enable): Update.
9322 * tui/tui-interp.c (tui_interp::init): Update.
9323 * utils.c (init_page_info): Update.
9324 (putchar_unfiltered, fputc_unfiltered): Update.
9325 (gdb_flush): Update.
9326 (emit_style_escape): Update.
9327 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9328 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9329 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9330 (stderr_file::write): Update.
9331 (stderr_file::puts): Update.
9332 * ui-file.h (ui_file_isatty, ui_file_write)
9333 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9334 (ui_file_puts): Don't declare.
9335
9336 2020-02-10 Tom de Vries <tdevries@suse.de>
9337
9338 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9339 sentinel to char *.
9340
9341 2020-02-09 Tom de Vries <tdevries@suse.de>
9342
9343 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9344 filename if it matches "<artificial>".
9345
9346 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9347
9348 * windows-tdep.c (struct enum_value_name): New struct.
9349 (create_enum): New function.
9350 (windows_get_siginfo_type): Create and use enum types.
9351
9352 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9353
9354 * NEWS: Mention $_siginfo support for Windows.
9355 * windows-nat.c (handle_exception): Set siginfo_er.
9356 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9357 (windows_xfer_siginfo): New function.
9358 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9359 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9360 (init_windows_gdbarch_data): New function.
9361 (get_windows_gdbarch_data): New function.
9362 (windows_get_siginfo_type): New function.
9363 (windows_init_abi): Register windows_get_siginfo_type.
9364 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9365
9366 2020-02-08 Tom Tromey <tom@tromey.com>
9367
9368 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9369 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9370 <keep>: Declare method.
9371 <m_keep>: Remove member.
9372 <~cutu_reader>: Remove.
9373 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9374 (cutu_reader::cutu_reader): Update.
9375 (cutu_reader::keep): Rename from ~cutu_reader.
9376 (process_psymtab_comp_unit, build_type_psymtabs_1)
9377 (process_skeletonless_type_unit, load_partial_comp_unit)
9378 (load_full_comp_unit, dwarf2_read_addr_index)
9379 (read_signatured_type): Update.
9380
9381 2020-02-08 Tom Tromey <tom@tromey.com>
9382
9383 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9384 "want_partial_unit" parameter.
9385 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9386 Inline check for DW_TAG_partial_unit.
9387 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9388
9389 2020-02-08 Tom Tromey <tom@tromey.com>
9390
9391 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9392 read.c.
9393 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9394 read.c.
9395
9396 2020-02-08 Tom Tromey <tom@tromey.com>
9397
9398 * dwarf2/read.c (read_address): Move to comp-unit.c.
9399 (dwarf2_rnglists_process, dwarf2_ranges_process)
9400 (read_attribute_value, dwarf_decode_lines_1)
9401 (var_decode_location, decode_locdesc): Update.
9402 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9403 read.c. Remove "cu" parameter.
9404 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9405 method.
9406
9407 2020-02-08 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9410 (read_indirect_line_string): Update.
9411 * dwarf2/comp-unit.c (read_offset): Remove.
9412 (read_comp_unit_head): Update.
9413 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9414 method.
9415 (read_offset): Don't declare.
9416
9417 2020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9420 * dwarf2/read.c (struct comp_unit_head): Move to
9421 dwarf2/comp-unit.h.
9422 (enum class rcuh_kind): Move to comp-unit.h.
9423 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9424 (read_comp_unit_head, error_check_comp_unit_head)
9425 (read_and_check_comp_unit_head): Move to comp-unit.c.
9426 (read_offset, dwarf_unit_type_name): Likewise.
9427 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9428 (cutu_reader::cutu_reader, read_call_site_scope)
9429 (find_partial_die, follow_die_offset): Update.
9430 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9431
9432 2020-02-08 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2/read.c (read_offset_1): Move to leb.c.
9435 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9436 (dwarf_decode_macro_bytes): Update.
9437 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9438 * dwarf2/leb.h (read_offset): Declare.
9439
9440 2020-02-08 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/read.c (dwarf2_section_size): Remove.
9443 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9444 Update.
9445 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9446
9447 2020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (read_initial_length): Move to leb.c.
9450 * dwarf2/leb.h (read_initial_length): Declare.
9451 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9452 handle_nonstd parameter.
9453 * dwarf2/frame.c (read_initial_length): Remove.
9454 (decode_frame_entry_1): Update.
9455
9456 2020-02-08 Tom Tromey <tom@tromey.com>
9457
9458 * dwarf2/loc.c (dwarf2_find_location_expression)
9459 (dwarf_evaluate_loc_desc::get_tls_address)
9460 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9461 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9462 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9463 (dwarf2_compile_property_to_c)
9464 (dwarf2_loc_desc_get_symbol_read_needs)
9465 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9466 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9467 (loclist_describe_location, loclist_tracepoint_var_ref)
9468 (loclist_generate_c_location): Update.
9469 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9470 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9471 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9472 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9473 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9474 (dwarf2_per_cu_data::addr_size)
9475 (dwarf2_per_cu_data::ref_addr_size)
9476 (dwarf2_per_cu_data::text_offset)
9477 (dwarf2_per_cu_data::addr_type): Now methods.
9478 (per_cu_header_read_in): Make per_cu "const".
9479 (dwarf2_version): Remove.
9480 (dwarf2_per_cu_data::int_type): Now a method.
9481 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9482 (set_die_type, read_array_type, read_subrange_index_type)
9483 (read_tag_string_type, read_subrange_type): Update.
9484 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9485 offset_size, ref_addr_size, text_offset, addr_type, version,
9486 objfile, int_type, addr_sized_int_type>: Declare methods.
9487
9488 2020-02-08 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9491 Move earlier.
9492
9493 2020-02-08 Tom Tromey <tom@tromey.com>
9494
9495 * dwarf2/read.h (dwarf_line_debug): Declare.
9496 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9497 * dwarf2/read.c: Move line_header code to new files.
9498 (dwarf_line_debug): No longer static.
9499 * dwarf2/line-header.c: New file.
9500 * dwarf2/line-header.h: New file.
9501
9502 2020-02-08 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/read.c (struct line_header) <file_full_name,
9505 file_file_name>: Return unique_xmalloc_ptr.
9506 (line_header::file_file_name): Update.
9507 (line_header::file_full_name): Update.
9508 (dw2_get_file_names_reader): Update.
9509 (macro_start_file): Update.
9510
9511 2020-02-08 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/read.c (struct line_header) <file_full_name,
9514 file_file_name>: Declare methods.
9515 (dw2_get_file_names_reader): Update.
9516 (file_file_name): Now a method.
9517 (file_full_name): Likewise.
9518 (macro_start_file): Update.
9519
9520 2020-02-08 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2/read.c (dwarf_always_disassemble)
9523 (show_dwarf_always_disassemble): Move to loc.c.
9524 (_initialize_dwarf2_read): Move "always-disassemble" registration
9525 to loc.c.
9526 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9527 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9528 static.
9529 (show_dwarf_always_disassemble): Move from read.c.
9530 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9531
9532 2020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9535 (create_quick_file_names_table): Return htab_up.
9536 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9537 Update.
9538 * dwarf2/read.h (struct dwarf2_per_objfile)
9539 <quick_file_names_table>: Now htab_up.
9540
9541 2020-02-08 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9544
9545 2020-02-08 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9548 Rewrite.
9549 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9550 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9551 (abbrev_table::abbrev_table): No longer inline.
9552 (ABBREV_HASH_SIZE): Remove.
9553 (abbrev_table::m_abbrevs): Now an htab_up.
9554
9555 2020-02-08 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9558 (cutu_reader): Update.
9559 (build_type_psymtabs_1): Update.
9560 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9561 (abbrev_table::alloc_abbrev): Update.
9562 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9563 (abbrev_table::read): New static method, renamed from
9564 abbrev_table_read_table.
9565 (abbrev_table::alloc_abbrev)
9566 (abbrev_table::add_abbrev): Now private.
9567 (abbrev_table::abbrev_table): Now private.
9568 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9569
9570 2020-02-08 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9573 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9574 htab_up.
9575
9576 2020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9579 htab_up.
9580 (lookup_dwo_unit_in_dwp): Update.
9581 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9582 on obstack.
9583
9584 2020-02-08 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9587 obstack.
9588
9589 2020-02-08 Tom Tromey <tom@tromey.com>
9590
9591 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9592 line_header_hash.
9593 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9594 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9595 Change type to htab_up.
9596
9597 2020-02-08 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9600 htab_up. Don't allocate on obstack.
9601 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9602 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9603 Change type to htab_up.
9604
9605 2020-02-08 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9608 Change type to htab_up.
9609 * dwarf2/read.c (create_signatured_type_table_from_index)
9610 (create_signatured_type_table_from_debug_names)
9611 (create_all_type_units, add_type_unit)
9612 (lookup_dwo_signatured_type, lookup_signatured_type)
9613 (process_skeletonless_type_unit): Update.
9614 (create_debug_type_hash_table, create_debug_types_hash_table):
9615 Change type of types_htab.
9616 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9617 htab_up. Don't allocate on obstack.
9618 (create_cus_hash_table): Change type of cus_htab parameter.
9619 (struct dwo_file) <cus, tus>: Now htab_up.
9620 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9621 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9622 (queue_and_load_all_dwo_tus): Update.
9623 * dwarf2/index-write.c (write_gdbindex): Update.
9624 (write_debug_names): Update.
9625
9626 2020-02-08 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9629 dwarf2/read.c. Remove "next" member. Add constructor ntad
9630 destructor.
9631 (struct dwarf2_per_objfile) <queue>: New member.
9632 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9633 dwarf2/read.h.
9634 (dwarf2_queue, dwarf2_queue_tail): Remove.
9635 (class dwarf2_queue_guard): Add parameter to constructor. Use
9636 DISABLE_COPY_AND_ASSIGN.
9637 <m_per_objfile>: New member.
9638 <~dwarf2_queue_guard>: Rewrite.
9639 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9640 Update.
9641 (~dwarf2_queue_item): New.
9642
9643 2020-02-08 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/read.c (struct die_info) <has_children>: New member.
9646 (dw2_get_file_names_reader): Remove has_children.
9647 (dw2_get_file_names): Update.
9648 (read_cutu_die_from_dwo): Remove has_children.
9649 (cutu_reader::init_tu_and_read_dwo_dies)
9650 (cutu_reader::cutu_reader): Update.
9651 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9652 Remove has_children.
9653 (build_type_psymtabs_1, process_skeletonless_type_unit)
9654 (load_partial_comp_unit, load_full_comp_unit): Update.
9655 (create_dwo_cu_reader): Remove has_children.
9656 (create_cus_hash_table, read_die_and_children): Update.
9657 (read_full_die_1,read_full_die): Remove has_children.
9658 (read_signatured_type): Update.
9659 (class cutu_reader) <has_children>: Remove.
9660
9661 2020-02-08 Tom Tromey <tom@tromey.com>
9662
9663 * dwarf2/expr.c: Rename from dwarf2expr.c.
9664 * dwarf2/expr.h: Rename from dwarf2expr.h.
9665 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9666 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9667 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9668 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9669 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9670 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9671 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9672 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9673 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9674 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9675 * dwarf2/loc.c: Rename from dwarf2loc.c.
9676 * dwarf2/loc.h: Rename from dwarf2loc.h.
9677 * dwarf2/read.c: Rename from dwarf2read.c.
9678 * dwarf2/read.h: Rename from dwarf2read.h.
9679 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9680 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9681 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9682 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9683 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9684 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9685 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9686 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9687 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9688 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9689 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9690 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9691 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9692 Update.
9693 * Makefile.in (COMMON_SFILES): Update.
9694 (HFILES_NO_SRCDIR): Update.
9695
9696 2020-02-08 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9699 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9700
9701 2020-02-08 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2read.h (struct die_info): Don't declare.
9704
9705 2020-02-08 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2read.h (die_info_ptr): Remove typedef.
9708
9709 2020-02-08 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2read.c (read_call_site_scope)
9712 (handle_data_member_location, dwarf2_add_member_fn)
9713 (mark_common_block_symbol_computed, read_common_block)
9714 (attr_to_dynamic_prop, partial_die_info::read)
9715 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9716 (dwarf2_symbol_mark_computed, set_die_type): Update.
9717 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9718 method.
9719 (attr_form_is_block): Don't declare.
9720 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9721
9722 2020-02-08 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2read.c (dwarf2_find_base_address, )
9725 (read_call_site_scope, rust_containing_type)
9726 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9727 (handle_data_member_location, dwarf2_add_member_fn)
9728 (get_alignment, read_structure_type, process_structure_scope)
9729 (mark_common_block_symbol_computed, read_common_block)
9730 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9731 (partial_die_info::read, read_attribute_value, new_symbol)
9732 (lookup_die_type, dwarf2_get_ref_die_offset)
9733 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9734 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9735 (dwarf2_symbol_mark_computed): Update.
9736 * dwarf2/attribute.h (struct attribute) <value_as_address,
9737 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9738 methods.
9739 (value_as_address, attr_form_is_section_offset)
9740 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9741 * dwarf2/attribute.c (attribute::value_as_address)
9742 (attribute::form_is_section_offset, attribute::form_is_constant)
9743 (attribute::form_is_ref): Now methods.
9744
9745 2020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2read.c (struct attribute, DW_STRING)
9748 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9749 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9750 (attr_form_is_block, attr_form_is_section_offset)
9751 (attr_form_is_constant, attr_form_is_ref): Move.
9752 * dwarf2/attribute.h: New file.
9753 * dwarf2/attribute.c: New file, from dwarf2read.c.
9754 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9755
9756 2020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9759 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9760 Move.
9761 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9762 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9763 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9764 abbrev.c.
9765 * dwarf2/abbrev.h: New file.
9766 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9767 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9768
9769 2020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9772 (dwarf2_section_size, dwarf2_get_section_info)
9773 (create_signatured_type_table_from_debug_names)
9774 (create_addrmap_from_aranges, read_debug_names_from_section)
9775 (get_gdb_index_contents_from_section, read_comp_unit_head)
9776 (error_check_comp_unit_head, read_abbrev_offset)
9777 (create_debug_type_hash_table, init_cu_die_reader)
9778 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9779 (read_comp_units_from_section, create_cus_hash_table)
9780 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9781 (create_dwp_v2_section, dwarf2_rnglists_process)
9782 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9783 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9784 (read_indirect_string_from_dwz, read_addr_index_1)
9785 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9786 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9787 (fill_in_loclist_baton): Update.
9788 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9789 get_containing_section, get_bfd_owner, get_bfd_section,
9790 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9791 (dwarf2_read_section, get_section_name, get_section_file_name)
9792 (get_containing_section, get_section_bfd_owner)
9793 (get_section_bfd_section, get_section_name, get_section_file_name)
9794 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9795 declare.
9796 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9797 (dwarf2_section_info::get_bfd_owner)
9798 (dwarf2_section_info::get_bfd_section)
9799 (dwarf2_section_info::get_name)
9800 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9801 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9802 (dwarf2_section_info::read): Now methods.
9803 * dwarf-index-write.c (class debug_names): Update.
9804
9805 2020-02-08 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9808 Move to dwarf2/section.h.
9809 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9810 (get_section_bfd_section, get_section_name)
9811 (get_section_file_name, get_section_id, get_section_flags)
9812 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9813 dwarf2/section.c.
9814 * dwarf2/section.h: New file.
9815 * dwarf2/section.c: New file, from dwarf2read.c.
9816 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9817
9818 2020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9821 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9822 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9823 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9824 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9825 * dwarf2/leb.h: New file, from dwarf2read.c.
9826 * dwarf2/leb.c: New file, from dwarf2read.c.
9827 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9828 Remove.
9829 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9830 (COMMON_SFILES): Add dwarf2/leb.c.
9831
9832 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9833
9834 GDB 9.1 released.
9835
9836 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9837
9838 PR gdb/25190:
9839 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9840 * gdb/remote.c (remote_console_output): Update.
9841 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9842 (ui_file_puts): ...this.
9843 * gdb/ui-file.h (ui_file_puts): Add declaration.
9844 * gdb/utils.c (emit_style_escape): Update.
9845 (flush_wrap_buffer): Update.
9846 (fputs_maybe_filtered): Update.
9847 (fputs_unfiltered): Add function.
9848
9849 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9850
9851 * gdb/event-loop.c (gdb_wait_for_event): Update.
9852 * gdb/printcmd.c (printf_command): Update.
9853 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9854 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9855 (gdb_os_flush_stderr): Update.
9856 * gdb/remote.c (remote_console_output): Update.
9857 * gdb/ui-file.c (gdb_flush): Rename to...
9858 (ui_file_flush): ...this.
9859 (stderr_file::write): Update.
9860 (stderr_file::puts): Update.
9861 * gdb/ui-file.h (gdb_flush): Rename to...
9862 (ui_file_flush): ...this.
9863 * gdb/utils.c (gdb_flush): Add function.
9864 * gdb/utils.h (gdb_flush): Add declaration.
9865
9866 2020-02-07 Tom Tromey <tromey@adacore.com>
9867
9868 PR breakpoints/24915:
9869 * source.c (find_and_open_source): Do not check basenames_may_differ.
9870
9871 2020-02-07 Tom Tromey <tom@tromey.com>
9872
9873 * README: Update gdbserver documentation.
9874 * gdbserver: Move to top level.
9875 * configure.tgt (build_gdbserver): Remove.
9876 * configure.ac: Remove --enable-gdbserver.
9877 * configure: Rebuild.
9878 * Makefile.in (distclean): Don't mention gdbserver.
9879
9880 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9881
9882 * source-cache.c (source_cache::ensure): Surround
9883 get_plain_source_lines with a try/catch.
9884 (source_cache::get_line_charpos): Get rid of try/catch
9885 and only check for the return value of "ensure".
9886 * tui/tui-source.c (tui_source_window::set_contents):
9887 Simplify "nlines" calculation.
9888
9889 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9890
9891 * MAINTAINERS (Write After Approval): Add myself.
9892
9893 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9894
9895 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9896 function call.
9897
9898 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9899
9900 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9901
9902 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9903
9904 * nat/riscv-linux-tdesc.h: New file.
9905 * nat/riscv-linux-tdesc.c: New file, taking code from...
9906 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9907 ... here.
9908 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9909 NATDEPFILES.
9910
9911 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9914 we don't set the fake simulator ptid to the null_ptid.
9915
9916 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9919 * gdbthread.h (class thread_info) <resumed>: Likewise.
9920 * infrun.c (resume_1): Likewise.
9921 (proceed): Likewise.
9922 (infrun_thread_stop_requested): Likewise.
9923 (stop_all_threads): Likewise.
9924 (handle_inferior_event): Likewise.
9925 (restart_threads): Likewise.
9926 (finish_step_over): Likewise.
9927 (keep_going_stepped_thread): Likewise.
9928 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9929 (linux_handle_extended_wait): Likewise.
9930 * record-btrace.c (get_thread_current_frame_id): Likewise.
9931 * record-full.c (record_full_wait_1): Likewise.
9932 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9933 * target.c (target_resume): Likewise.
9934 * thread.c (set_running_thread): Likewise.
9935
9936 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9937
9938 * f-valprint.c (f77_print_array_1): Changed datatype of index
9939 variable to LONGEST from int to enable it to contain bound
9940 values correctly.
9941
9942 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9943
9944 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9945 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9946 offsets according to FLEN determined.
9947 (riscv_linux_nat_target::read_description): Determine FLEN
9948 dynamically.
9949 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9950 according to FLEN determined.
9951 (riscv_linux_nat_target::store_registers): Likewise.
9952
9953 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9954
9955 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9956 when reg->group is empty and reggroup is not.
9957
9958 2020-01-31 Tom Tromey <tromey@adacore.com>
9959
9960 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9961 Call beneath target's mourn_inferior after unpushing.
9962
9963 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 PR tui/9765
9966 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9967 have enough lines to fill the screen, still return the lowest
9968 address we found.
9969
9970 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9971
9972 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9973 '-', '<', and '>' commands.
9974
9975 2020-01-29 Pedro Alves <palves@redhat.com>
9976 Sergio Durigan Junior <sergiodj@redhat.com>
9977
9978 * infcmd.c (construct_inferior_arguments): Assert that
9979 'argc' is greater than 0.
9980
9981 2020-01-29 Luis Machado <luis.machado@linaro.org>
9982
9983 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9984 (BRK_INSN_MASK): Define to 0xd4200000.
9985 (aarch64_program_breakpoint_here_p): New function.
9986 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9987 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9988 breakpoint.c.
9989 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9990 breakpoint.h
9991 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9992 call gdbarch_program_breakpoint_here_p.
9993 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9994 default_program_breakpoint_here_p, changed return type to bool and
9995 simplified.
9996 * breakpoint.h (program_breakpoint_here): Moved prototype to
9997 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9998 return type to bool.
9999 * gdbarch.c: Regenerate.
10000 * gdbarch.h: Regenerate.
10001 * gdbarch.sh (program_breakpoint_here_p): New method.
10002 * infrun.c (handle_signal_stop): Call
10003 gdbarch_program_breakpoint_here_p.
10004
10005 2020-01-26 Tom Tromey <tom@tromey.com>
10006
10007 * ctfread.c (struct ctf_fp_info): Reindent.
10008 (_initialize_ctfread): Remove.
10009
10010 2020-01-26 Tom Tromey <tom@tromey.com>
10011
10012 * psymtab.c (partial_map_expand_apply)
10013 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10014 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10015 (psym_print_stats, psym_expand_symtabs_for_function)
10016 (psym_map_symbol_filenames, psym_map_matching_symbols)
10017 (psym_expand_symtabs_matching)
10018 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10019 (maintenance_check_psymtabs): Use new methods.
10020 * psympriv.h (struct partial_symtab) <readin_p,
10021 get_compunit_symtab>: New methods.
10022 <readin, compunit_symtab>: Remove members.
10023 (struct standard_psymtab): New.
10024 (struct legacy_psymtab): Derive from standard_psymtab.
10025 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10026 standard_psymtab.
10027 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10028
10029 2020-01-26 Tom Tromey <tom@tromey.com>
10030
10031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10032 read_dependencies. Add assert.
10033 * psymtab.c (partial_symtab::read_dependencies): New method.
10034 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10035 method.
10036 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10037 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10038 read_dependencies.
10039 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10040 Add assert.
10041
10042 2020-01-26 Tom Tromey <tom@tromey.com>
10043
10044 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10045 Call expand_psymtab.
10046 (xcoff_read_symtab): Call expand_psymtab.
10047 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10048 legacy_expand_psymtab.
10049 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10050 method.
10051 (struct legacy_psymtab) <expand_psymtab>: Implement.
10052 <legacy_expand_psymtab>: New member.
10053 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10054 (parse_partial_symbols): Set legacy_expand_psymtab.
10055 (psymtab_to_symtab_1): Change argument order. Call
10056 expand_psymtab.
10057 (new_psymtab): Set legacy_expand_psymtab.
10058 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10059 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10060 expand_psymtab.
10061 (dwarf2_psymtab::expand_psymtab): Rename from
10062 psymtab_to_symtab_1. Call expand_psymtab.
10063 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10064 (dbx_end_psymtab): Likewise.
10065 (dbx_psymtab_to_symtab_1): Change argument order. Call
10066 expand_psymtab.
10067 (dbx_read_symtab): Call expand_psymtab.
10068 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10069 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10070 (ctf_psymtab::read_symtab): Call expand_psymtab.
10071
10072 2020-01-26 Tom Tromey <tom@tromey.com>
10073
10074 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10075 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10076 messages.
10077 * mdebugread.c (mdebug_read_symtab): Remove prints.
10078 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10079 assert.
10080 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10081
10082 2020-01-26 Tom Tromey <tom@tromey.com>
10083
10084 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10085 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10086 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10087 legacy_symtab.
10088 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10089 * psymtab.c (psymtab_to_symtab): Call method.
10090 (dump_psymtab): Update.
10091 * psympriv.h (struct partial_symtab): Add virtual destructor.
10092 <read_symtab>: New method.
10093 (struct legacy_symtab): New.
10094 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10095 (struct pst_map) <pst>: Now a legacy_psymtab.
10096 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10097 (new_psymtab): Use legacy_psymtab.
10098 * dwarf2read.h (struct dwarf2_psymtab): New.
10099 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10100 * dwarf2read.c (dwarf2_create_include_psymtab)
10101 (dwarf2_build_include_psymtabs, create_type_unit_group)
10102 (create_partial_symtab, process_psymtab_comp_unit_reader)
10103 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10104 (set_partial_user): Use dwarf2_psymtab.
10105 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10106 (psymtab_to_symtab_1, process_full_comp_unit)
10107 (process_full_type_unit, dwarf2_ranges_read)
10108 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10109 (dwarf_decode_lines): Use dwarf2_psymtab.
10110 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10111 (add_address_entry_worker, write_one_signatured_type)
10112 (recursively_count_psymbols, recursively_write_psymbols)
10113 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10114 (write_debug_names): Likewise.
10115 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10116 <pst>: Now a legacy_psymtab.
10117 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10118 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10119 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10120 * ctfread.c (struct ctf_psymtab): New.
10121 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10122 ctf_psymtab.
10123 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10124 (create_partial_symtab): Return a ctf_psymtab.
10125 (scan_partial_symbols): Update.
10126
10127 2020-01-26 Tom Tromey <tom@tromey.com>
10128
10129 * xcoffread.c (xcoff_start_psymtab): Use new.
10130 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10131 renamed from start_psymtab_common.
10132 * psympriv.h (struct partial_symtab): Add new constructor.
10133 (start_psymtab_common): Don't declare.
10134 * mdebugread.c (parse_partial_symbols): Use new.
10135 * dwarf2read.c (create_partial_symtab): Use new.
10136 * dbxread.c (start_psymtab): Use new.
10137 * ctfread.c (create_partial_symtab): Use new.
10138
10139 2020-01-26 Tom Tromey <tom@tromey.com>
10140
10141 * xcoffread.c (xcoff_end_psymtab): Use new.
10142 * psymtab.c (start_psymtab_common): Use new.
10143 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10144 Update.
10145 * psympriv.h (struct partial_symtab): Add parameters to
10146 constructor. Don't inline.
10147 (allocate_psymtab): Don't declare.
10148 * mdebugread.c (new_psymtab): Use new.
10149 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10150 * dbxread.c (dbx_end_psymtab): Use new.
10151
10152 2020-01-26 Tom Tromey <tom@tromey.com>
10153
10154 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10155 allocate_psymtab. Update documentation.
10156 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10157 allocate_psymtab. Do not use new.
10158 (allocate_psymtab): Use new. Update.
10159
10160 2020-01-26 Tom Tromey <tom@tromey.com>
10161
10162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10163 * psymtab.c (psym_print_stats): Update.
10164 * psympriv.h (struct partial_symtab) <readin,
10165 psymtabs_addrmap_supported, anonymous>: Now bool.
10166 * mdebugread.c (psymtab_to_symtab_1): Update.
10167 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10168 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10169 (process_full_comp_unit, process_full_type_unit): Update.
10170 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10171 * ctfread.c (psymtab_to_symtab): Update.
10172
10173 2020-01-26 Tom Tromey <tom@tromey.com>
10174
10175 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10176 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10177 * psymtab.c (psymtab_storage): Delete psymtabs.
10178 (psymtab_storage::allocate_psymtab): Use new.
10179 (psymtab_storage::discard_psymtab): Use delete.
10180 * psympriv.h (struct partial_symtab): Add constructor and
10181 initializers.
10182
10183 2020-01-26 Tom Tromey <tom@tromey.com>
10184
10185 * machoread.c: Do not include psympriv.h.
10186
10187 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10188
10189 * NEWS: Mention the new option and the set/show commands.
10190
10191 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10192
10193 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10194 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10195 (validate_exec_file): New variables, enums, functions.
10196 (exec_file_locate_attach, print_section_info): Style the filenames.
10197 (_initialize_exec): Install show_exec_file_mismatch_command and
10198 set_exec_file_mismatch_command.
10199 * gdbcore.h (validate_exec_file): Declare.
10200 * infcmd.c (attach_command): Call validate_exec_file.
10201 * remote.c ( remote_target::remote_add_inferior): Likewise.
10202
10203 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * frame.c (find_frame_sal): Move call to get_next_frame into more
10206 inner scope.
10207 * inline-frame.c (inilne_state) <inline_state>: Update argument
10208 types.
10209 (inilne_state) <skipped_symbol>: Rename to...
10210 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10211 (skip_inline_frames): Build vector of skipped symbols and use this
10212 to reate the inline_state.
10213 (inline_skipped_symbol): Add a comment and some assertions, fetch
10214 skipped symbol from the list.
10215
10216 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10217
10218 * buildsym.c (lte_is_less_than): Delete.
10219 (buildsym_compunit::end_symtab_with_blockvector): Create local
10220 lambda function to sort line table entries, and use
10221 std::stable_sort instead of std::sort.
10222 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10223 markers when looking for a previous line.
10224
10225 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10226
10227 * dwarf2read.c (lnp_state_machine::record_line): Include
10228 end_sequence parameter in debug print out. Record the line if we
10229 are at an end_sequence marker even if it's not the start of a
10230 statement.
10231 * symmisc.c (maintenance_print_one_line_table): Print end of
10232 sequence markers with 'END' not '0'.
10233
10234 2020-01-24 Pedro Alves <palves@redhat.com>
10235
10236 PR gdb/25410
10237 * thread.c (scoped_restore_current_thread::restore): Use
10238 switch_to_inferior_no_thread.
10239 * exec.c: Include "progspace-and-thread.h".
10240 (add_target_sections, remove_target_sections):
10241 scoped_restore_current_pspace_and_thread instead of
10242 scoped_restore_current_thread.
10243 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10244 and aspace to the inferior before calling clone_program_space.
10245 Remove stale comment.
10246
10247 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10248
10249 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10250 (arm_netbsd_nat_target::fetch_registers): ...this.
10251 (arm_nbsd_nat_target::store_registers): Rename to...
10252 (arm_netbsd_nat_target::store_registers): ...this.
10253
10254 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10255
10256 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10257 register_t.
10258
10259 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10260
10261 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10262 Update comment.
10263 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10264 Likewise.
10265 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10266 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10267 the correct replacement (iterate_over_regset_sections).
10268 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10269 Update comment.
10270
10271 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10272
10273 PR gdb/23718
10274 * gdb/python/python.c (execute_gdb_command): Call
10275 async_enable_stdin in catch block.
10276
10277 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10280 SWITCH_THRU_ALL_UIS.
10281
10282 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 PR tui/9765
10285 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10286 comment, add extra parameter, and update to store previous symbol
10287 when appropriate.
10288 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10289 add extra parameter.
10290 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10291 remove unneeded parameter, add try/catch around gdb_print_insn,
10292 rewrite to add items to asm_lines vector.
10293 (tui_find_backward_disassembly_start_address): New function.
10294 (tui_find_disassembly_address): Updated throughout.
10295 (tui_disasm_window::set_contents): Update for changes to
10296 tui_disassemble.
10297 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10298 number of lines to scroll.
10299
10300 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10303 (SECT_OFF_DATA): Likewise.
10304 (SECT_OFF_RODATA): Likewise.
10305 (SECT_OFF_TEXT): Likewise.
10306 (SECT_OFF_BSS): Likewise.
10307 (struct objfile) <text_section_offset, data_section_offset>: New
10308 methods.
10309 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10310 objfile::text_section_offset.
10311 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10312 * coffread.c (coff_symtab_read): Likewise.
10313 (enter_linenos): Likewise.
10314 (process_coff_symbol): Likewise.
10315 * ctfread.c (get_objfile_text_range): Likewise.
10316 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10317 Use objfile::data_section_offset.
10318 * dwarf2-frame.c (execute_cfa_program): Use
10319 objfile::text_section_offset.
10320 (dwarf2_frame_find_fde): Likewise.
10321 * dwarf2read.c (create_addrmap_from_index): Likewise.
10322 (create_addrmap_from_aranges): Likewise.
10323 (dw2_find_pc_sect_compunit_symtab): Likewise.
10324 (process_psymtab_comp_unit_reader): Likewise.
10325 (add_partial_symbol): Likewise.
10326 (add_partial_subprogram): Likewise.
10327 (process_full_comp_unit): Likewise.
10328 (read_file_scope): Likewise.
10329 (read_func_scope): Likewise.
10330 (read_lexical_block_scope): Likewise.
10331 (read_call_site_scope): Likewise.
10332 (dwarf2_rnglists_process): Likewise.
10333 (dwarf2_ranges_process): Likewise.
10334 (dwarf2_ranges_read): Likewise.
10335 (dwarf_decode_lines_1): Likewise.
10336 (new_symbol): Likewise.
10337 (dwarf2_fetch_die_loc_sect_off): Likewise.
10338 (dwarf2_per_cu_text_offset): Likewise.
10339 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10340 * hppa-tdep.c (read_unwind_info): Likewise.
10341 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10342 * psympriv.h (struct partial_symtab): Likewise.
10343 * psymtab.c (find_pc_sect_psymtab): Likewise.
10344 * solib-svr4.c (enable_break): Likewise.
10345 * stap-probe.c (relocate_address): Use
10346 objfile::data_section_offset.
10347 * xcoffread.c (enter_line_range): Use
10348 objfile::text_section_offset.
10349 (read_xcoff_symtab): Likewise.
10350
10351 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10354 declaration to narrower scopes.
10355
10356 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * darwin-nat.h (struct darwin_exception_msg, enum
10359 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10360 Move up.
10361 (class darwin_nat_target) <wait_1, check_new_threads,
10362 decode_exception_message, decode_message, stop_inferior,
10363 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10364 * darwin-nat.c (darwin_check_new_threads): Rename to...
10365 (darwin_nat_target::check_new_threads): ... this.
10366 (darwin_suspend_inferior_it): Remove.
10367 (darwin_decode_exception_message): Rename to...
10368 (darwin_nat_target::decode_exception_message): ... this.
10369 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10370 (darwin_decode_message): Rename to...
10371 (darwin_nat_target::decode_message): ... this.
10372 (cancel_breakpoint): Rename to...
10373 (darwin_nat_target::cancel_breakpoint): ... this.
10374 (darwin_wait): Rename to...
10375 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10376 instead of iterate_over_inferiors.
10377 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10378 (darwin_stop_inferior): Rename to...
10379 (darwin_nat_target::stop_inferior): ... this.
10380 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10381 (darwin_init_thread_list): Rename to...
10382 (darwin_nat_target::init_thread_list): ... this.
10383 (darwin_ptrace_him): Rename to...
10384 (darwin_nat_target::ptrace_him): ... this.
10385 (darwin_nat_target::create_inferior): Pass lambda function to
10386 fork_inferior.
10387 (darwin_nat_target::detach): Call stop_inferior instead of
10388 darwin_stop_inferior.
10389 * fork-inferior.h (fork_inferior): Change init_trace_fun
10390 parameter to gdb::function_view.
10391 * fork-inferior.c (fork_inferior): Likewise.
10392
10393 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10394
10395 * i386-cygwin-tdep.c (core_process_module_section): Update.
10396 * windows-nat.c (struct lm_info_windows): Add text_offset.
10397 (windows_xfer_shared_libraries): Update.
10398 * windows-tdep.c (windows_xfer_shared_library):
10399 Add text_offset_cached argument.
10400 * windows-tdep.h (windows_xfer_shared_library): Update.
10401
10402 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10403
10404 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10405
10406 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10409 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10410 replace with range-based for.
10411 (gdbsim_interrupt_inferior): Remove.
10412 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10413 with a range-based for. Inline code from
10414 gdbsim_interrupt_inferior.
10415
10416 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * infrun.c (proceed): Fix indentation.
10419
10420 2020-01-21 Tom Tromey <tromey@adacore.com>
10421
10422 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10423 * python/python.c (python_extension_ops): Update.
10424 (gdbpy_colorize): New function.
10425 * python/lib/gdb/__init__.py (colorize): New function.
10426 * extension.h (ext_lang_colorize): Declare.
10427 * extension.c (ext_lang_colorize): New function.
10428 * extension-priv.h (struct extension_language_ops) <colorize>: New
10429 member.
10430 * cli/cli-style.c (_initialize_cli_style): Update help text.
10431
10432 2020-01-21 Luis Machado <luis.machado@linaro.org>
10433
10434 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10435 <cond>: Change type to bool.
10436 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10437 (aarch64_displaced_step_cb): Likewise.
10438 (aarch64_displaced_step_tb): Likewise.
10439
10440 2020-01-21 Luis Machado <luis.machado@linaro.org>
10441
10442 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10443 output.
10444
10445 2020-01-21 Luis Machado <luis.machado@linaro.org>
10446
10447 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10448 <pc_adjust>: Adjust the documentation.
10449 (aarch64_displaced_step_fixup): Check if PC really moved before
10450 adjusting it.
10451
10452 2020-01-19 Tom Tromey <tom@tromey.com>
10453
10454 * disasm.c (~gdb_disassembler): New destructor.
10455 (gdb_buffered_insn_length): Call disassemble_free_target.
10456 * disasm.h (class gdb_disassembler): Declare destructor. Use
10457 DISABLE_COPY_AND_ASSIGN.
10458
10459 2020-01-19 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10462 (die_reader_func_ftype): Remove.
10463 (cutu_reader): New class.
10464 (dw2_get_file_names_reader): Remove "data" parameter.
10465 (dw2_get_file_names): Use cutu_reader.
10466 (create_debug_type_hash_table): Update.
10467 (read_cutu_die_from_dwo): Update comment.
10468 (lookup_dwo_unit): Add dwo_name parameter.
10469 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10470 die_reader_func_ftype and data parameters.
10471 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10472 Remove die_reader_func_ftype and data parameters.
10473 (~cutu_reader): New; from init_cutu_and_read_dies.
10474 (cutu_reader::cutu_reader): Rename from
10475 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10476 and data parameters.
10477 (init_cutu_and_read_dies_simple): Remove.
10478 (struct process_psymtab_comp_unit_data): Remove.
10479 (process_psymtab_comp_unit_reader): Remove data parameter; add
10480 want_partial_unit and pretend_language parameters.
10481 (process_psymtab_comp_unit): Use cutu_reader.
10482 (build_type_psymtabs_reader): Remove data parameter.
10483 (build_type_psymtabs_1): Use cutu_reader.
10484 (process_skeletonless_type_unit): Likewise.
10485 (load_partial_comp_unit_reader): Remove.
10486 (load_partial_comp_unit): Use cutu_reader.
10487 (load_full_comp_unit_reader): Remove.
10488 (load_full_comp_unit): Use cutu_reader.
10489 (struct create_dwo_cu_data): Remove.
10490 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10491 dwo_unit parameters.
10492 (create_cus_hash_table): Use cutu_reader.
10493 (struct dwarf2_read_addr_index_data): Remove.
10494 (dwarf2_read_addr_index_reader): Remove.
10495 (dwarf2_read_addr_index): Use cutu_reader.
10496 (read_signatured_type_reader): Remove.
10497 (read_signatured_type): Use cutu_reader.
10498
10499 2020-01-19 Tom Tromey <tom@tromey.com>
10500
10501 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10502 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10503 (tui_wrefresh): Declare.
10504 * tui/tui-wingeneral.c (suppress_output): New global.
10505 (tui_suppress_output, ~tui_suppress_output): New constructor and
10506 destructor.
10507 (tui_wrefresh): New function.
10508 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10509 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10510 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10511 method.
10512 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10513 tui_wrefresh.
10514 (tui_data_window::no_refresh): New method.
10515 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10516 (tui_reg_command): Use tui_suppress_output
10517 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10518 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10519 method.
10520 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10521
10522 2020-01-19 Tom Tromey <tom@tromey.com>
10523
10524 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10525 Handle case where symtab is null.
10526
10527 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10528
10529 * linux-fork.c (one_fork_p): Simplify.
10530
10531 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * top.c (struct qt_args): Remove.
10534 (kill_or_detach): Change return type to void, replace `void *`
10535 parameter with a proper one.
10536 (print_inferior_quit_action): Likewise.
10537 (quit_confirm): Use range-based for loop to iterate over inferiors.
10538 (quit_force): Likewise.
10539
10540 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10541
10542 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10543 `void *` parameter with proper parameters.
10544 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10545 (print_one_inferior): Change return type to void, replace `void *`
10546 parameter with proper parameters.
10547 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10548 inferiors.
10549 (get_other_inferior): Remove.
10550 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10551 inferiors.
10552
10553 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10554
10555 * mi/mi-interp.c (report_initial_inferior): Remove.
10556 (mi_interp::init): Use range-based for to iterate over inferiors.
10557
10558 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10559
10560 * python/py-inferior.c (build_inferior_list): Remove.
10561 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10562
10563 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10564
10565 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10566 (btrace_stitch_trace): Likewise.
10567 * charset.c (intermediate_encoding): Likewise (vaild).
10568 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10569 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10570 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10571
10572 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10573
10574 * windows-tdep.c (windows_get_tlb_type):
10575 Add rtl_user_process_parameters type.
10576
10577 2020-01-16 Pedro Alves <palves@redhat.com>
10578 Norbert Lange <nolange79@gmail.com>
10579
10580 PR build/24805
10581 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10582 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10583 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10584 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10585 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10586 (ps_plog): Redeclare exported functions with default visibility.
10587
10588 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10589
10590 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10591 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10592
10593 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * infcmd.c (post_create_inferior): Use get_thread_regcache
10596 instead of get_current_regcache.
10597
10598 2020-01-14 Tom Tromey <tom@tromey.com>
10599
10600 PR symtab/12535:
10601 * python/python.c (gdbpy_decode_line): Treat empty string the same
10602 as no argument.
10603
10604 2020-01-14 Tom Tromey <tom@tromey.com>
10605
10606 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10607
10608 2020-01-14 Tom Tromey <tom@tromey.com>
10609
10610 * nat/linux-btrace.c: Don't include <config.h>.
10611 * nat/linux-ptrace.c: Don't include <config.h>.
10612 * nat/x86-linux-dregs.c: Don't include <config.h>.
10613
10614 2020-01-14 Tom Tromey <tom@tromey.com>
10615
10616 * configure: Rebuild.
10617 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10618
10619 2020-01-14 Tom Tromey <tom@tromey.com>
10620
10621 * nat/x86-linux-dregs.c: Include configh.h.
10622 * nat/linux-ptrace.c: Include configh.h.
10623 * nat/linux-btrace.c: Include configh.h.
10624 * defs.h: Include config.h, bfd.h.
10625 * configure.ac: Don't source common.host.
10626 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10627 * configure: Rebuild.
10628 * acinclude.m4: Update path.
10629 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10630 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10631 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10632 (CLIBS): Add LIBSUPPORT.
10633 (CDEPS): Likewise.
10634 (COMMON_SFILES): Remove gdbsupport files.
10635 (HFILES_NO_SRCDIR): Likewise.
10636 (stamp-version): Update path to create-version.sh.
10637 (ALLDEPFILES): Remove gdbsupport files.
10638
10639 2020-01-14 Tom Tromey <tom@tromey.com>
10640
10641 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10642 USE_WIN32API when needed.
10643 * configure.ac (USE_WIN32API): Don't define.
10644 (WIN32LIBS): Use WIN32APILIBS.
10645 * configure: Rebuild.
10646
10647 2020-01-14 Tom Tromey <tom@tromey.com>
10648
10649 * configure: Rebuild.
10650 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10651
10652 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10653
10654 * skip.c (skip_function_command): Make skip w/o arguments use the
10655 name of the inlined function if pc is inside any inlined function.
10656
10657 2020-01-14 Luis Machado <luis.machado@linaro.org>
10658
10659 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10660 * infrun.c (resume_1): Likewise.
10661 (handle_inferior_event): Remove stale comment.
10662 * linux-nat.c (linux_nat_target::resume): Update comments.
10663 (save_stop_reason): Likewise.
10664 (linux_nat_filter_event): Likewise.
10665 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10666
10667 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * elfread.c (record_minimal_symbol): Set section index to 0 for
10670 non-allocatable sections.
10671
10672
10673 2020-01-13 Ali Tamur <tamur@google.com>
10674
10675 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10676 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10677 to gdb::optional. Update comments.
10678 (dwo_file): Update comments.
10679 (read_attribute): Update API to take an additional out parameter,
10680 need_reprocess. This is used to mark attributes that need other
10681 attributes (e.g. str_offsets_base) for correct computation which may not
10682 have been read yet.
10683 (read_attribute_reprocess): New function declaration.
10684 (read_addr_index): Likewise.
10685 (read_dwo_str_index): Likewise.
10686 (read_stub_str_index): Likewise.
10687 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10688 (lookup_addr_base): New function definition.
10689 (lookup_ranges_base): Likewise.
10690 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10691 lookup_ranges_base.
10692 (init_cutu_and_read_dies): Update comments.
10693 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10694 unit. This is used to inherit parent's str_offsets_base and addr_base.
10695 Update comments.
10696 (init_cutu_and_read_dies_simple): Reflect API changes.
10697 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10698 (create_cus_hash_table): Change API to take parent compile unit.
10699 Reflect API changes.
10700 (open_and_init_dwo_file): Reflect API changes.
10701 (dwarf2_get_pc_bounds): Update comments.
10702 (dwarf2_record_block_ranges): Likewise.
10703 (read_full_die_1): Change implementation to reprocess attributes that
10704 need str_offsets_base and addr_base.
10705 (partial_die_info::read): Likewise.
10706 (read_attribute_reprocess): New function definition.
10707 (read_attribute_value): Change API to take an additional out parameter,
10708 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10709 when a non-dwo compile unit has index based attributes.
10710 (read_attribute): Reflect API changes.
10711 (read_addr_index_1): Reflect API changes. Update comments.
10712 (dwarf2_read_addr_index_data): Reflect API changes.
10713 (dwarf2_read_addr_index): Likewise.
10714 (read_str_index): Change API and implementation. This becomes a helper
10715 to be used by the new string index related methods. Update error
10716 message and comments.
10717 (read_dwo_str_index): New function definition.
10718 (read_stub_str_index): Likewise.
10719 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10720 * symfile.h (dwarf2_debug_sections): Likewise.
10721 * xcoffread.c (dwarf2_debug_sections): Likewise.
10722
10723 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10724
10725 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10726 core_reg_sect type to gdb_byte *.
10727 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10728 * cris-tdep.c (fetch_core_registers): Likewise.
10729 * corelow.c (core_target::get_core_register_section): Change
10730 type of `contents` to gdb::byte_vector.
10731
10732 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * tui/tui-wingeneral.c (box_win): Position the title in the center
10735 of the border.
10736
10737 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10738
10739 * corelow.c (core_target::get_core_register_section): Use
10740 std::vector instead of alloca.
10741
10742 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10743
10744 * warning.m4: Add -Wmissing-declarations to build_warnings.
10745 * configure: Re-generate.
10746
10747 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * python/python.c (init__gdb_module): Add declaration.
10750
10751 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10754 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10755 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10756 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10757 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10758 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10759 * ada-exp.y (_initialize_ada_exp): Add declaration.
10760 * ada-lang.c (_initialize_ada_language): Add declaration.
10761 * ada-tasks.c (_initialize_tasks): Add declaration.
10762 * agent.c (_initialize_agent): Add declaration.
10763 * aix-thread.c (_initialize_aix_thread): Add declaration.
10764 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10765 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10766 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10767 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10768 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10769 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10770 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10771 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10772 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10773 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10774 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10775 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10776 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10777 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10778 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10779 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10780 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10781 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10782 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10783 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10784 * annotate.c (_initialize_annotate): Add declaration.
10785 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10786 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10787 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10788 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10789 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10790 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10791 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10792 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10793 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10794 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10795 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10796 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10797 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10798 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10799 * auto-load.c (_initialize_auto_load): Add declaration.
10800 * auxv.c (_initialize_auxv): Add declaration.
10801 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10802 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10803 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10804 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10805 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10806 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10807 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10808 * breakpoint.c (_initialize_breakpoint): Add declaration.
10809 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10810 * btrace.c (_initialize_btrace): Add declaration.
10811 * charset.c (_initialize_charset): Add declaration.
10812 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10813 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10814 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10815 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10816 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10817 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10818 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10819 * coffread.c (_initialize_coffread): Add declaration.
10820 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10821 * compile/compile.c (_initialize_compile): Add declaration.
10822 * complaints.c (_initialize_complaints): Add declaration.
10823 * completer.c (_initialize_completer): Add declaration.
10824 * copying.c (_initialize_copying): Add declaration.
10825 * corefile.c (_initialize_core): Add declaration.
10826 * corelow.c (_initialize_corelow): Add declaration.
10827 * cp-abi.c (_initialize_cp_abi): Add declaration.
10828 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10829 * cp-support.c (_initialize_cp_support): Add declaration.
10830 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10831 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10832 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10833 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10834 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10835 * ctfread.c (_initialize_ctfread): Add declaration.
10836 * d-lang.c (_initialize_d_language): Add declaration.
10837 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10838 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10839 * dbxread.c (_initialize_dbxread): Add declaration.
10840 * dcache.c (_initialize_dcache): Add declaration.
10841 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10842 * disasm.c (_initialize_disasm): Add declaration.
10843 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10844 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10845 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10846 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10847 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10848 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10849 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10850 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10851 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10852 * elfread.c (_initialize_elfread): Add declaration.
10853 * exec.c (_initialize_exec): Add declaration.
10854 * extension.c (_initialize_extension): Add declaration.
10855 * f-lang.c (_initialize_f_language): Add declaration.
10856 * f-valprint.c (_initialize_f_valprint): Add declaration.
10857 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10858 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10859 * filesystem.c (_initialize_filesystem): Add declaration.
10860 * findcmd.c (_initialize_mem_search): Add declaration.
10861 * findvar.c (_initialize_findvar): Add declaration.
10862 * fork-child.c (_initialize_fork_child): Add declaration.
10863 * frame-base.c (_initialize_frame_base): Add declaration.
10864 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10865 * frame.c (_initialize_frame): Add declaration.
10866 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10867 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10868 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10869 * gcore.c (_initialize_gcore): Add declaration.
10870 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10871 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10872 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10873 * gdbarch.c (_initialize_gdbarch): Add declaration.
10874 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10875 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10876 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10877 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10878 * go-lang.c (_initialize_go_language): Add declaration.
10879 * go32-nat.c (_initialize_go32_nat): Add declaration.
10880 * guile/guile.c (_initialize_guile): Add declaration.
10881 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10882 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10883 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10884 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10885 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10886 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10887 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10888 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10889 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10890 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10891 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10892 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10893 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10894 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10895 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10896 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10897 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10898 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10899 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10900 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10901 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10902 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10903 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10904 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10905 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10906 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10907 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10908 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10909 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10910 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10911 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10912 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10913 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10914 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10915 * infcall.c (_initialize_infcall): Add declaration.
10916 * infcmd.c (_initialize_infcmd): Add declaration.
10917 * inflow.c (_initialize_inflow): Add declaration.
10918 * infrun.c (_initialize_infrun): Add declaration.
10919 * interps.c (_initialize_interpreter): Add declaration.
10920 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10921 * jit.c (_initialize_jit): Add declaration.
10922 * language.c (_initialize_language): Add declaration.
10923 * linux-fork.c (_initialize_linux_fork): Add declaration.
10924 * linux-nat.c (_initialize_linux_nat): Add declaration.
10925 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10926 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10927 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10928 * m2-lang.c (_initialize_m2_language): Add declaration.
10929 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10930 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10931 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10932 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10933 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10934 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10935 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10936 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10937 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10938 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10939 * machoread.c (_initialize_machoread): Add declaration.
10940 * macrocmd.c (_initialize_macrocmd): Add declaration.
10941 * macroscope.c (_initialize_macroscope): Add declaration.
10942 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10943 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10944 * maint.c (_initialize_maint_cmds): Add declaration.
10945 * mdebugread.c (_initialize_mdebugread): Add declaration.
10946 * memattr.c (_initialize_mem): Add declaration.
10947 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10948 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10949 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10950 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10951 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10952 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10953 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10954 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10955 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10956 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10957 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10958 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10959 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10960 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10961 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10962 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10963 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10964 * mipsread.c (_initialize_mipsread): Add declaration.
10965 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10966 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10967 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10968 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10969 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10970 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10971 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10972 * nto-procfs.c (_initialize_procfs): Add declaration.
10973 * objc-lang.c (_initialize_objc_language): Add declaration.
10974 * observable.c (_initialize_observer): Add declaration.
10975 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10976 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10977 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10978 * osabi.c (_initialize_gdb_osabi): Add declaration.
10979 * osdata.c (_initialize_osdata): Add declaration.
10980 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10981 * parse.c (_initialize_parse): Add declaration.
10982 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10983 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10984 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10985 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10986 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10987 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10988 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10989 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10990 * printcmd.c (_initialize_printcmd): Add declaration.
10991 * probe.c (_initialize_probe): Add declaration.
10992 * proc-api.c (_initialize_proc_api): Add declaration.
10993 * proc-events.c (_initialize_proc_events): Add declaration.
10994 * proc-service.c (_initialize_proc_service): Add declaration.
10995 * procfs.c (_initialize_procfs): Add declaration.
10996 * producer.c (_initialize_producer): Add declaration.
10997 * psymtab.c (_initialize_psymtab): Add declaration.
10998 * python/python.c (_initialize_python): Add declaration.
10999 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11000 * record-btrace.c (_initialize_record_btrace): Add declaration.
11001 * record-full.c (_initialize_record_full): Add declaration.
11002 * record.c (_initialize_record): Add declaration.
11003 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11004 * regcache.c (_initialize_regcache): Add declaration.
11005 * reggroups.c (_initialize_reggroup): Add declaration.
11006 * remote-notif.c (_initialize_notif): Add declaration.
11007 * remote-sim.c (_initialize_remote_sim): Add declaration.
11008 * remote.c (_initialize_remote): Add declaration.
11009 * reverse.c (_initialize_reverse): Add declaration.
11010 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11011 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11012 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11013 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11014 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11015 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11016 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11017 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11018 Add declaration.
11019 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11020 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11021 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11022 * rust-exp.y (_initialize_rust_exp): Add declaration.
11023 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11024 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11025 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11026 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11027 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11028 * score-tdep.c (_initialize_score_tdep): Add declaration.
11029 * ser-go32.c (_initialize_ser_dos): Add declaration.
11030 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11031 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11032 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11033 * ser-uds.c (_initialize_ser_socket): Add declaration.
11034 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11035 * serial.c (_initialize_serial): Add declaration.
11036 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11037 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11038 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11039 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11040 * skip.c (_initialize_step_skip): Add declaration.
11041 * sol-thread.c (_initialize_sol_thread): Add declaration.
11042 * solib-aix.c (_initialize_solib_aix): Add declaration.
11043 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11044 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11045 * solib-frv.c (_initialize_frv_solib): Add declaration.
11046 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11047 * solib-target.c (_initialize_solib_target): Add declaration.
11048 * solib.c (_initialize_solib): Add declaration.
11049 * source-cache.c (_initialize_source_cache): Add declaration.
11050 * source.c (_initialize_source): Add declaration.
11051 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11052 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11053 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11054 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11055 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11056 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11057 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11058 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11059 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11060 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11061 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11062 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11063 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11064 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11065 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11066 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11067 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11068 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11069 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11070 * stabsread.c (_initialize_stabsread): Add declaration.
11071 * stack.c (_initialize_stack): Add declaration.
11072 * stap-probe.c (_initialize_stap_probe): Add declaration.
11073 * std-regs.c (_initialize_frame_reg): Add declaration.
11074 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11075 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11076 * symfile.c (_initialize_symfile): Add declaration.
11077 * symmisc.c (_initialize_symmisc): Add declaration.
11078 * symtab.c (_initialize_symtab): Add declaration.
11079 * target.c (_initialize_target): Add declaration.
11080 * target-connection.c (_initialize_target_connection): Add
11081 declaration.
11082 * target-dcache.c (_initialize_target_dcache): Add declaration.
11083 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11084 * thread.c (_initialize_thread): Add declaration.
11085 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11086 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11087 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11088 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11089 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11090 * tracectf.c (_initialize_ctf): Add declaration.
11091 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11092 * tracefile.c (_initialize_tracefile): Add declaration.
11093 * tracepoint.c (_initialize_tracepoint): Add declaration.
11094 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11095 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11096 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11097 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11098 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11099 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11100 * tui/tui.c (_initialize_tui): Add declaration.
11101 * typeprint.c (_initialize_typeprint): Add declaration.
11102 * ui-style.c (_initialize_ui_style): Add declaration.
11103 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11104 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11105 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11106 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11107 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11108 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11109 * unittests/filtered_iterator-selftests.c
11110 (_initialize_filtered_iterator_selftests): Add declaration.
11111 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11112 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11113 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11114 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11115 * unittests/main-thread-selftests.c
11116 (_initialize_main_thread_selftests): Add declaration.
11117 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11118 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11119 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11120 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11121 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11122 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11123 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11124 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11125 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11126 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11127 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11128 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11129 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11130 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11131 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11132 declaration.
11133 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11134 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11135 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11136 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11137 * user-regs.c (_initialize_user_regs): Add declaration.
11138 * utils.c (_initialize_utils): Add declaration.
11139 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11140 * valops.c (_initialize_valops): Add declaration.
11141 * valprint.c (_initialize_valprint): Add declaration.
11142 * value.c (_initialize_values): Add declaration.
11143 * varobj.c (_initialize_varobj): Add declaration.
11144 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11145 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11146 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11147 * windows-nat.c (_initialize_windows_nat): Add declaration.
11148 (_initialize_check_for_gdb_ini): Add declaration.
11149 (_initialize_loadable): Add declaration.
11150 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11151 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11152 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11153 * xcoffread.c (_initialize_xcoffread): Add declaration.
11154 * xml-support.c (_initialize_xml_support): Add declaration.
11155 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11156 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11157 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11158 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11159
11160 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11161
11162 * regformats/regdat.sh: Generate declaration for init function.
11163
11164 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11165
11166 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11167 up.
11168 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11169 close_one_inferior>: New methods.
11170 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11171 pass down target to find_inferior_pid.
11172 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11173 Pass down target to find_inferior_ptid.
11174 (gdbsim_target::create_inferior): Pass down target to
11175 add_thread_silent.
11176 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11177 target down to find_inferior_ptid and switch_to_thread.
11178 (gdbsim_target::close): Update to call close_one_inferior.
11179 (struct resume_data): Remove.
11180 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11181 directly, rather than through a void pointer.
11182 (gdbsim_target::resume): Update to call resume_one_inferior.
11183
11184 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11185
11186 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11187
11188 2020-01-12 Pedro Alves <palves@redhat.com>
11189
11190 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11191 directly for the current inferior instead of
11192 discard_all_inferiors.
11193 (discard_all_inferiors): Delete.
11194
11195 2020-01-11 Tom Tromey <tom@tromey.com>
11196
11197 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11198 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11199 deprecated_safe_get_selected_frame.
11200
11201 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11202
11203 * inferior.c (print_inferior): Switch inferior before printing it.
11204
11205 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11206 Pedro Alves <palves@redhat.com>
11207
11208 * progspace-and-thread.c (switch_to_program_space_and_thread):
11209 Assert there's an inferior for PSPACE. Use
11210 switch_to_inferior_no_thread to switch the inferior too.
11211 * progspace.c (program_space::~program_space): Call
11212 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11213 (program_space::free_all_objfiles): Don't call clear_symtab_users
11214 here.
11215 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11216
11217 2020-01-10 Pedro Alves <palves@redhat.com>
11218
11219 * NEWS: Mention multi-target debugging, "info connections", and
11220 "add-inferior -no-connection".
11221
11222 2020-01-10 Pedro Alves <palves@redhat.com>
11223
11224 * infrun.c: Include "target-connection.h".
11225 (check_multi_target_resumption): New.
11226 (proceed): Call it.
11227 * target-connection.c (make_target_connection_string): Make
11228 extern.
11229 * target-connection.h (make_target_connection_string): Declare.
11230
11231 2020-01-10 Pedro Alves <palves@redhat.com>
11232
11233 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11234 * inferior.c (uiout_field_connection): New function.
11235 (print_inferior): Add new "connection-id" column.
11236 (add_inferior_command): Show connection number/string of added
11237 inferior.
11238 * process-stratum-target.h
11239 (process_stratum_target::connection_string): New virtual method.
11240 (process_stratum_target::connection_number): New field.
11241 * remote.c (remote_target::connection_string): New override.
11242 * target-connection.c: New file.
11243 * target-connection.h: New file.
11244 * target.c (decref_target): Remove process_stratum targets from
11245 the connection list.
11246 (target_stack::push): Add process_stratum targets to the
11247 connection list.
11248
11249 2020-01-10 Pedro Alves <palves@redhat.com>
11250
11251 Revert:
11252 2016-04-12 Pedro Alves <palves@redhat.com>
11253 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11254 Remove references to name.
11255 * serial.h (struct serial) <name>: Delete.
11256
11257 2020-01-10 Pedro Alves <palves@redhat.com>
11258
11259 * gdbarch-selftests.c (register_to_value_test): Remove "target
11260 already pushed" check.
11261
11262 2020-01-10 Pedro Alves <palves@redhat.com>
11263 John Baldwin <jhb@FreeBSD.org>
11264
11265 * aarch64-linux-nat.c
11266 (aarch64_linux_nat_target::thread_architecture): Adjust.
11267 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11268 (task_command_1): Likewise.
11269 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11270 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11271 (aix_thread_target::store_registers)
11272 (aix_thread_target::thread_alive): Adjust.
11273 * amd64-fbsd-tdep.c: Include "inferior.h".
11274 (amd64fbsd_get_thread_local_address): Pass down target.
11275 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11276 thread's gdbarch instead of target_gdbarch.
11277 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11278 get_last_target_status.
11279 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11280 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11281 inferiors.
11282 (update_inserted_breakpoint_locations): Skip if inferiors with no
11283 execution.
11284 (update_global_location_list): When handling moribund locations,
11285 find representative inferior for location's pspace, and use thread
11286 count of its process_stratum target.
11287 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11288 * bsd-uthread.c (bsd_uthread_target::wait): Use
11289 as_process_stratum_target and adjust thread_change_ptid and
11290 add_thread calls.
11291 (bsd_uthread_target::update_thread_list): Use
11292 as_process_stratum_target and adjust find_thread_ptid,
11293 thread_change_ptid and add_thread calls.
11294 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11295 find_thread_ptid call.
11296 * corelow.c (add_to_thread_list): Adjust add_thread call.
11297 (core_target_open): Adjust add_thread_silent and thread_count
11298 calls.
11299 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11300 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11301 * event-top.c (async_disconnect): Pop targets from all inferiors.
11302 * exec.c (add_target_sections): Push exec target on all inferiors
11303 sharing the program space.
11304 (remove_target_sections): Remove the exec target from all
11305 inferiors sharing the program space.
11306 (exec_on_vfork): New.
11307 * exec.h (exec_on_vfork): Declare.
11308 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11309 Pass it down.
11310 (fbsd_nat_target::update_thread_list): Adjust.
11311 (fbsd_nat_target::resume): Adjust.
11312 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11313 down.
11314 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11315 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11316 get_thread_arch_regcache call.
11317 * fork-child.c (gdb_startup_inferior): Pass target down to
11318 startup_inferior and set_executing.
11319 * gdbthread.h (struct process_stratum_target): Forward declare.
11320 (add_thread, add_thread_silent, add_thread_with_info)
11321 (in_thread_list): Add process_stratum_target parameter.
11322 (find_thread_ptid(inferior*, ptid_t)): New overload.
11323 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11324 parameter.
11325 (all_threads()): Delete overload.
11326 (all_threads, all_non_exited_threads): Add process_stratum_target
11327 parameter.
11328 (all_threads_safe): Use brace initialization.
11329 (thread_count): Add process_stratum_target parameter.
11330 (set_resumed, set_running, set_stop_requested, set_executing)
11331 (threads_are_executing, finish_thread_state): Add
11332 process_stratum_target parameter.
11333 (switch_to_thread): Use is_current_thread.
11334 * i386-fbsd-tdep.c: Include "inferior.h".
11335 (i386fbsd_get_thread_local_address): Pass down target.
11336 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11337 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11338 have_inferiors check.
11339 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11340 (inf_ptrace_target::attach): Adjust.
11341 * infcall.c (run_inferior_call): Adjust.
11342 * infcmd.c (run_command_1): Pass target to
11343 scoped_finish_thread_state.
11344 (proceed_thread_callback): Skip inferiors with no execution.
11345 (continue_command): Rename 'all_threads' local to avoid hiding
11346 'all_threads' function. Adjust get_last_target_status call.
11347 (prepare_one_step): Adjust set_running call.
11348 (signal_command): Use user_visible_resume_target. Compare thread
11349 pointers instead of inferior_ptid.
11350 (info_program_command): Adjust to pass down target.
11351 (attach_command): Mark target's 'thread_executing' flag.
11352 (stop_current_target_threads_ns): New, factored out from ...
11353 (interrupt_target_1): ... this. Switch inferior before making
11354 target calls.
11355 * inferior-iter.h
11356 (struct all_inferiors_iterator, struct all_inferiors_range)
11357 (struct all_inferiors_safe_range)
11358 (struct all_non_exited_inferiors_range): Filter on
11359 process_stratum_target too. Remove explicit.
11360 * inferior.c (inferior::inferior): Push dummy target on target
11361 stack.
11362 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11363 Add process_stratum_target parameter, and pass it down.
11364 (have_live_inferiors): Adjust.
11365 (switch_to_inferior_and_push_target): New.
11366 (add_inferior_command, clone_inferior_command): Handle
11367 "-no-connection" parameter. Use
11368 switch_to_inferior_and_push_target.
11369 (_initialize_inferior): Mention "-no-connection" option in
11370 the help of "add-inferior" and "clone-inferior" commands.
11371 * inferior.h: Include "process-stratum-target.h".
11372 (interrupt_target_1): Use bool.
11373 (struct inferior) <push_target, unpush_target, target_is_pushed,
11374 find_target_beneath, top_target, process_target, target_at,
11375 m_stack>: New.
11376 (discard_all_inferiors): Delete.
11377 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11378 (all_inferiors, all_non_exited_inferiors): Add
11379 process_stratum_target parameter.
11380 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11381 (target_last_proc_target): New global.
11382 (follow_fork_inferior): Push target on new inferior. Pass target
11383 to add_thread_silent. Call exec_on_vfork. Handle target's
11384 reference count.
11385 (follow_fork): Adjust get_last_target_status call. Also consider
11386 target.
11387 (follow_exec): Push target on new inferior.
11388 (struct execution_control_state) <target>: New field.
11389 (user_visible_resume_target): New.
11390 (do_target_resume): Call target_async.
11391 (resume_1): Set target's threads_executing flag. Consider resume
11392 target.
11393 (commit_resume_all_targets): New.
11394 (proceed): Also consider resume target. Skip threads of inferiors
11395 with no execution. Commit resumtion in all targets.
11396 (start_remote): Pass current inferior to wait_for_inferior.
11397 (infrun_thread_stop_requested): Consider target as well. Pass
11398 thread_info pointer to clear_inline_frame_state instead of ptid.
11399 (infrun_thread_thread_exit): Consider target as well.
11400 (random_pending_event_thread): New inferior parameter. Use it.
11401 (do_target_wait): Rename to ...
11402 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11403 down.
11404 (threads_are_resumed_pending_p, do_target_wait): New.
11405 (prepare_for_detach): Adjust calls.
11406 (wait_for_inferior): New inferior parameter. Handle it. Use
11407 do_target_wait_1 instead of do_target_wait.
11408 (fetch_inferior_event): Adjust. Switch to representative
11409 inferior. Pass target down.
11410 (set_last_target_status): Add process_stratum_target parameter.
11411 Save target in global.
11412 (get_last_target_status): Add process_stratum_target parameter and
11413 handle it.
11414 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11415 (context_switch): Check inferior_ptid == null_ptid before calling
11416 inferior_thread().
11417 (get_inferior_stop_soon): Pass down target.
11418 (wait_one): Rename to ...
11419 (poll_one_curr_target): ... this.
11420 (struct wait_one_event): New.
11421 (wait_one): New.
11422 (stop_all_threads): Adjust.
11423 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11424 event's target.
11425 (switch_back_to_stepped_thread): Also consider target.
11426 (print_stop_event): Update.
11427 (normal_stop): Update. Also consider the resume target.
11428 * infrun.h (wait_for_inferior): Remove declaration.
11429 (user_visible_resume_target): New declaration.
11430 (get_last_target_status, set_last_target_status): New
11431 process_stratum_target parameter.
11432 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11433 process_stratum_target parameter, and use it.
11434 (clear_inline_frame_state (thread_info*)): New.
11435 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11436 process_stratum_target parameter.
11437 (clear_inline_frame_state (thread_info*)): Declare.
11438 * linux-fork.c (delete_checkpoint_command): Pass target down to
11439 find_thread_ptid.
11440 (checkpoint_command): Adjust.
11441 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11442 instead of just tweaking inferior_ptid.
11443 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11444 (exit_lwp): Pass target down to find_thread_ptid.
11445 (attach_proc_task_lwp_callback): Pass target down to
11446 add_thread/set_running/set_executing.
11447 (linux_nat_target::attach): Pass target down to
11448 thread_change_ptid.
11449 (get_detach_signal): Pass target down to find_thread_ptid.
11450 Consider last target status's target.
11451 (linux_resume_one_lwp_throw, resume_lwp)
11452 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11453 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11454 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11455 (linux_nat_target::async_wait_fd): New.
11456 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11457 target down.
11458 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11459 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11460 * linux-thread-db.c (struct thread_db_info::process_target): New
11461 field.
11462 (add_thread_db_info): Save target.
11463 (get_thread_db_info): New process_stratum_target parameter. Also
11464 match target.
11465 (delete_thread_db_info): New process_stratum_target parameter.
11466 Also match target.
11467 (thread_from_lwp): Adjust to pass down target.
11468 (thread_db_notice_clone): Pass down target.
11469 (check_thread_db_callback): Pass down target.
11470 (try_thread_db_load_1): Always push the thread_db target.
11471 (try_thread_db_load, record_thread): Pass target down.
11472 (thread_db_target::detach): Pass target down. Always unpush the
11473 thread_db target.
11474 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11475 target down. Always unpush the thread_db target.
11476 (find_new_threads_callback, thread_db_find_new_threads_2)
11477 (thread_db_target::update_thread_list): Pass target down.
11478 (thread_db_target::pid_to_str): Pass current inferior down.
11479 (thread_db_target::get_thread_local_address): Pass target down.
11480 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11481 target down.
11482 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11483 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11484 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11485 (procfs_init_inferior): Rename to ...
11486 (procfs_target::procfs_init_inferior): ... this and adjust.
11487 (procfs_target::create_inferior, procfs_notice_thread)
11488 (procfs_do_thread_registers): Adjust.
11489 * ppc-fbsd-tdep.c: Include "inferior.h".
11490 (ppcfbsd_get_thread_local_address): Pass down target.
11491 * proc-service.c (ps_xfer_memory): Switch current inferior and
11492 program space as well.
11493 (get_ps_regcache): Pass target down.
11494 * process-stratum-target.c
11495 (process_stratum_target::thread_address_space)
11496 (process_stratum_target::thread_architecture): Pass target down.
11497 * process-stratum-target.h
11498 (process_stratum_target::threads_executing): New field.
11499 (as_process_stratum_target): New.
11500 * ravenscar-thread.c
11501 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11502 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11503 down.
11504 * record-btrace.c (record_btrace_target::info_record): Adjust.
11505 (record_btrace_target::record_method)
11506 (record_btrace_target::record_is_replaying)
11507 (record_btrace_target::fetch_registers)
11508 (get_thread_current_frame_id, record_btrace_target::resume)
11509 (record_btrace_target::wait, record_btrace_target::stop): Pass
11510 target down.
11511 * record-full.c (record_full_wait_1): Switch to event thread.
11512 Pass target down.
11513 * regcache.c (regcache::regcache)
11514 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11515 process_stratum_target parameter and handle it.
11516 (current_thread_target): New global.
11517 (get_thread_regcache): Add process_stratum_target parameter and
11518 handle it. Switch inferior before calling target method.
11519 (get_thread_regcache): Pass target down.
11520 (get_thread_regcache_for_ptid): Pass target down.
11521 (registers_changed_ptid): Add process_stratum_target parameter and
11522 handle it.
11523 (registers_changed_thread, registers_changed): Pass target down.
11524 (test_get_thread_arch_aspace_regcache): New.
11525 (current_regcache_test): Define a couple local test_target_ops
11526 instances and use them for testing.
11527 (readwrite_regcache): Pass process_stratum_target parameter.
11528 (cooked_read_test, cooked_write_test): Pass mock_target down.
11529 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11530 (get_thread_arch_aspace_regcache): Add process_stratum_target
11531 parameter.
11532 (regcache::target): New method.
11533 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11534 (regcache::registers_changed_ptid): Add process_stratum_target
11535 parameter.
11536 (regcache::m_target): New field.
11537 (registers_changed_ptid): Add process_stratum_target parameter.
11538 * remote.c (remote_state::supports_vCont_probed): New field.
11539 (remote_target::async_wait_fd): New method.
11540 (remote_unpush_and_throw): Add remote_target parameter.
11541 (get_current_remote_target): Adjust.
11542 (remote_target::remote_add_inferior): Push target.
11543 (remote_target::remote_add_thread)
11544 (remote_target::remote_notice_new_inferior)
11545 (get_remote_thread_info): Pass target down.
11546 (remote_target::update_thread_list): Skip threads of inferiors
11547 bound to other targets. (remote_target::close): Don't discard
11548 inferiors. (remote_target::add_current_inferior_and_thread)
11549 (remote_target::process_initial_stop_replies)
11550 (remote_target::start_remote)
11551 (remote_target::remote_serial_quit_handler): Pass down target.
11552 (remote_target::remote_unpush_target): New remote_target
11553 parameter. Unpush the target from all inferiors.
11554 (remote_target::remote_unpush_and_throw): New remote_target
11555 parameter. Pass it down.
11556 (remote_target::open_1): Check whether the current inferior has
11557 execution instead of checking whether any inferior is live. Pass
11558 target down.
11559 (remote_target::remote_detach_1): Pass down target. Use
11560 remote_unpush_target.
11561 (extended_remote_target::attach): Pass down target.
11562 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11563 (remote_target::append_resumption): Pass down target.
11564 (remote_target::append_pending_thread_resumptions)
11565 (remote_target::remote_resume_with_hc, remote_target::resume)
11566 (remote_target::commit_resume): Pass down target.
11567 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11568 (remote_target::interrupt_query)
11569 (remote_target::remove_new_fork_children)
11570 (remote_target::check_pending_events_prevent_wildcard_vcont)
11571 (remote_target::remote_parse_stop_reply)
11572 (remote_target::process_stop_reply): Pass down target.
11573 (first_remote_resumed_thread): New remote_target parameter. Pass
11574 it down.
11575 (remote_target::wait_as): Pass down target.
11576 (unpush_and_perror): New remote_target parameter. Pass it down.
11577 (remote_target::readchar, remote_target::remote_serial_write)
11578 (remote_target::getpkt_or_notif_sane_1)
11579 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11580 down target.
11581 (remote_target::mourn_inferior): Pass down target. Use
11582 remote_unpush_target.
11583 (remote_target::core_of_thread)
11584 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11585 (remote_target::pid_to_exec_file)
11586 (remote_target::thread_handle_to_thread_info): Pass down target.
11587 (remote_target::async_wait_fd): New.
11588 * riscv-fbsd-tdep.c: Include "inferior.h".
11589 (riscv_fbsd_get_thread_local_address): Pass down target.
11590 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11591 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11592 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11593 Adjust.
11594 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11595 * solib-svr4.c (enable_break): Pass down target.
11596 * spu-multiarch.c (parse_spufs_run): Pass down target.
11597 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11598 * target-delegates.c: Regenerate.
11599 * target.c (g_target_stack): Delete.
11600 (current_top_target): Return the current inferior's top target.
11601 (target_has_execution_1): Refer to the passed-in inferior's top
11602 target.
11603 (target_supports_terminal_ours): Check whether the initial
11604 inferior was already created.
11605 (decref_target): New.
11606 (target_stack::push): Incref/decref the target.
11607 (push_target, push_target, unpush_target): Adjust.
11608 (target_stack::unpush): Defref target.
11609 (target_is_pushed): Return bool. Adjust to refer to the current
11610 inferior's target stack.
11611 (dispose_inferior): Delete, and inline parts ...
11612 (target_preopen): ... here. Only dispose of the current inferior.
11613 (target_detach): Hold strong target reference while detaching.
11614 Pass target down.
11615 (target_thread_name): Add assertion.
11616 (target_resume): Pass down target.
11617 (target_ops::beneath, find_target_at): Adjust to refer to the
11618 current inferior's target stack.
11619 (get_dummy_target): New.
11620 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11621 has a thread running.
11622 (initialize_targets): Rename to ...
11623 (_initialize_target): ... this.
11624 * target.h: Include "gdbsupport/refcounted-object.h".
11625 (struct target_ops): Inherit refcounted_object.
11626 (target_ops::shortname, target_ops::longname): Make const.
11627 (target_ops::async_wait_fd): New method.
11628 (decref_target): Declare.
11629 (struct target_ops_ref_policy): New.
11630 (target_ops_ref): New typedef.
11631 (get_dummy_target): Declare function.
11632 (target_is_pushed): Return bool.
11633 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11634 (all_matching_threads_iterator::all_matching_threads_iterator):
11635 Handle filter target.
11636 * thread-iter.h (struct all_matching_threads_iterator, struct
11637 all_matching_threads_range, class all_non_exited_threads_range):
11638 Filter by target too. Remove explicit.
11639 * thread.c (threads_executing): Delete.
11640 (inferior_thread): Pass down current inferior.
11641 (clear_thread_inferior_resources): Pass down thread pointer
11642 instead of ptid_t.
11643 (add_thread_silent, add_thread_with_info, add_thread): Add
11644 process_stratum_target parameter. Use it for thread and inferior
11645 searches.
11646 (is_current_thread): New.
11647 (thread_info::deletable): Use it.
11648 (find_thread_ptid, thread_count, in_thread_list)
11649 (thread_change_ptid, set_resumed, set_running): New
11650 process_stratum_target parameter. Pass it down.
11651 (set_executing): New process_stratum_target parameter. Pass it
11652 down. Adjust reference to 'threads_executing'.
11653 (threads_are_executing): New process_stratum_target parameter.
11654 Adjust reference to 'threads_executing'.
11655 (set_stop_requested, finish_thread_state): New
11656 process_stratum_target parameter. Pass it down.
11657 (switch_to_thread): Also match inferior.
11658 (switch_to_thread): New process_stratum_target parameter. Pass it
11659 down.
11660 (update_threads_executing): Reimplement.
11661 * top.c (quit_force): Pop targets from all inferior.
11662 (gdb_init): Don't call initialize_targets.
11663 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11664 Declare.
11665 (windows_add_thread, windows_delete_thread): Adjust.
11666 (get_windows_debug_event): Rename to ...
11667 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11668 * tracefile-tfile.c (tfile_target_open): Pass down target.
11669 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11670 Forward declare.
11671 (switch_to_thread): Add process_stratum_target parameter.
11672 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11673 parameter. Use it.
11674 (mi_on_resume): Pass target down.
11675 * nat/fork-inferior.c (startup_inferior): Add
11676 process_stratum_target parameter. Pass it down.
11677 * nat/fork-inferior.h (startup_inferior): Add
11678 process_stratum_target parameter.
11679 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11680
11681 2020-01-10 Pedro Alves <palves@redhat.com>
11682
11683 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11684 directly. Instead find the first thread in the thread list and
11685 use switch_to_thread.
11686
11687 2020-01-10 Pedro Alves <palves@redhat.com>
11688
11689 * remote.c (remote_target::remote_add_inferior): Don't bind a
11690 process to the current inferior if the current inferior is already
11691 bound to a process.
11692
11693 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11694 Pedro Alves <palves@redhat.com>
11695
11696 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11697 If no process is specified, return null_ptid instead of
11698 inferior_ptid.
11699 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11700 TARGET_WAITKIND_SIGNALLED with no pid.
11701
11702 2020-01-10 Pedro Alves <palves@redhat.com>
11703
11704 * remote.c (first_remote_resumed_thread): New.
11705 (remote_target::wait_as): Use it as default event_ptid instead of
11706 inferior_ptid.
11707
11708 2020-01-10 Pedro Alves <palves@redhat.com>
11709
11710 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11711
11712 2020-01-10 Pedro Alves <palves@redhat.com>
11713
11714 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11715 not -1.
11716
11717 2020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11720 ptid to get_last_target_status.
11721 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11722 ptid to get_last_target_status.
11723 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11724 get_last_target_status.
11725 (info_program_command): Don't pass a target_waitstatus to
11726 get_last_target_status.
11727 * infrun.c (init_wait_for_inferior): Use
11728 nullify_last_target_wait_ptid.
11729 (get_last_target_status): Handle nullptr arguments.
11730 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11731 (print_stop_event): Don't pass a ptid to get_last_target_status.
11732 (normal_stop): Don't pass a ptid to get_last_target_status.
11733 * infrun.h (get_last_target_status, set_last_target_status): Move
11734 comments here and update.
11735 (nullify_last_target_wait_ptid): Declare.
11736 * linux-fork.c (fork_load_infrun_state): Remove local extern
11737 declaration of nullify_last_target_wait_ptid.
11738 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11739 to get_last_target_status.
11740
11741 2020-01-10 Pedro Alves <palves@redhat.com>
11742
11743 * gdbthread.h (scoped_restore_current_thread)
11744 <dont_restore, restore, m_dont_restore>: Declare.
11745 * thread.c (thread_alive): Add assertion. Return bool.
11746 (switch_to_thread_if_alive): New.
11747 (prune_threads): Switch inferior/thread.
11748 (print_thread_info_1): Switch thread before calling target methods.
11749 (scoped_restore_current_thread::restore): New, factored out from
11750 ...
11751 (scoped_restore_current_thread::~scoped_restore_current_thread):
11752 ... this.
11753 (scoped_restore_current_thread::scoped_restore_current_thread):
11754 Add assertion.
11755 (thread_apply_all_command, thread_select): Use
11756 switch_to_thread_if_alive.
11757 * infrun.c (proceed, restart_threads, handle_signal_stop)
11758 (switch_back_to_stepped_thread): Switch current thread before
11759 calling target methods.
11760
11761 2020-01-10 Pedro Alves <palves@redhat.com>
11762
11763 * inferior.c (switch_to_inferior_no_thread): New function,
11764 factored out from ...
11765 (inferior_command): ... here.
11766 * inferior.h (switch_to_inferior_no_thread): Declare.
11767 * mi/mi-main.c (run_one_inferior): Use
11768 switch_to_inferior_no_thread.
11769
11770 2020-01-10 Pedro Alves <palves@redhat.com>
11771
11772 * infcmd.c (kill_command): Remove dead code.
11773
11774 2020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * remote.c (remote_target::mourn_inferior): No longer check
11777 whether the target is running.
11778
11779 2020-01-10 Pedro Alves <palves@redhat.com>
11780
11781 * corelow.c (core_target::has_execution): Change parameter type to
11782 inferior pointer.
11783 * inferior.c (number_of_live_inferiors): Use
11784 inferior::has_execution instead of target_has_execution_1.
11785 * inferior.h (inferior::has_execution): New.
11786 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11787 inferior::has_execution instead of target_has_execution_1.
11788 * process-stratum-target.c
11789 (process_stratum_target::has_execution): Change parameter type to
11790 inferior pointer. Check the inferior's PID instead of
11791 inferior_ptid.
11792 * process-stratum-target.h
11793 (process_stratum_target::has_execution): Change parameter type to
11794 inferior pointer.
11795 * record-full.c (record_full_core_target::has_execution): Change
11796 parameter type to inferior pointer.
11797 * target.c (target_has_execution_1): Change parameter type to
11798 inferior pointer.
11799 (target_has_execution_current): Adjust.
11800 * target.h (target_ops::has_execution): Change parameter type to
11801 inferior pointer.
11802 (target_has_execution_1): Change parameter type to inferior
11803 pointer. Change return type to bool.
11804 * tracefile.h (tracefile_target::has_execution): Change parameter
11805 type to inferior pointer.
11806
11807 2020-01-10 Pedro Alves <palves@redhat.com>
11808
11809 * exceptions.c (print_flush): Remove current_top_target() check.
11810
11811 2020-01-10 Pedro Alves <palves@redhat.com>
11812
11813 * remote.c (show_remote_exec_file): Show the current inferior's
11814 exec-file instead of the command variable's value.
11815
11816 2020-01-10 Pedro Alves <palves@redhat.com>
11817
11818 * record-full.c (record_full_resume_ptid): New global.
11819 (record_full_target::resume): Set it.
11820 (record_full_wait_1): Use record_full_resume_ptid instead of
11821 inferior_ptid.
11822
11823 2020-01-10 Pedro Alves <palves@redhat.com>
11824
11825 * gdbthread.h (scoped_restore_current_thread)
11826 <dont_restore, restore, m_dont_restore>: Declare.
11827 * thread.c (thread_alive): Add assertion. Return bool.
11828 (switch_to_thread_if_alive): New.
11829 (prune_threads): Switch inferior/thread.
11830 (print_thread_info_1): Switch thread before calling target methods.
11831 (scoped_restore_current_thread::restore): New, factored out from
11832 ...
11833 (scoped_restore_current_thread::~scoped_restore_current_thread):
11834 ... this.
11835 (scoped_restore_current_thread::scoped_restore_current_thread):
11836 Add assertion.
11837 (thread_apply_all_command, thread_select): Use
11838 switch_to_thread_if_alive.
11839
11840 2020-01-10 George Barrett <bob@bob131.so>
11841
11842 * stap-probe.c (stap_modify_semaphore): Don't check for null
11843 semaphores.
11844 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11845 for null semaphores.
11846
11847 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11848
11849 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11850 all source windows, and maintain horizontal scroll status while
11851 doing so.
11852
11853 2020-01-09 Tom Tromey <tom@tromey.com>
11854
11855 PR tui/18932:
11856 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11857 update_source_window, not print_source_lines.
11858
11859 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11860
11861 * tui/tui.c (tui_enable): Register tui hooks after calling
11862 tui_display_main.
11863
11864 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11865
11866 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11867
11868 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11869
11870 * thread.c (print_thread_info_1): Fix indentation.
11871
11872 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11873
11874 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11875 unique_xmalloc_ptr outside the if to always free the demangled name.
11876
11877 2020-01-08 Tom Tromey <tromey@adacore.com>
11878
11879 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11880 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11881 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11882 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11883 Remove.
11884 (section_offsets): New typedef.
11885 * symtab.c (fixup_section, get_msymbol_address): Update.
11886 * symmisc.c (dump_msymbols): Update.
11887 * symfile.h (relative_addr_info_to_section_offsets)
11888 (symfile_map_offsets_to_segments): Update.
11889 * symfile.c (build_section_addr_info_from_objfile)
11890 (init_objfile_sect_indices): Update.
11891 (struct place_section_arg): Change type of "offsets".
11892 (place_section): Update.
11893 (relative_addr_info_to_section_offsets): Change type of
11894 "section_offsets". Remove "num_sections" parameter.
11895 (default_symfile_offsets, syms_from_objfile_1)
11896 (set_objfile_default_section_offset): Update.
11897 (reread_symbols): No need to preserve section offsets by hand.
11898 (symfile_map_offsets_to_segments): Change type of "offsets".
11899 * stap-probe.c (relocate_address): Update.
11900 * stabsread.h (process_one_symbol): Update.
11901 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11902 (solib_target_relocate_section_addresses): Update.
11903 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11904 Update.
11905 * solib-frv.c (frv_relocate_main_executable): Update.
11906 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11907 * solib-aix.c (solib_aix_get_section_offsets): Change return
11908 type.
11909 (solib_aix_solib_create_inferior_hook): Update.
11910 * remote.c (remote_target::get_offsets): Update.
11911 * psymtab.c (find_pc_sect_psymtab): Update.
11912 * psympriv.h (struct partial_symbol) <address, text_low,
11913 text_high>: Update.
11914 * objfiles.h (obj_section_offset): Update.
11915 (struct objfile) <section_offsets>: Change type.
11916 <num_sections>: Remove.
11917 (objfile_relocate): Update.
11918 * objfiles.c (entry_point_address_query): Update
11919 (relocate_one_symbol): Change type of "section_offsets".
11920 (objfile_relocate1, objfile_relocate1): Change type of
11921 "new_offsets".
11922 (objfile_rebase1): Update.
11923 * mipsread.c (mipscoff_symfile_read): Update.
11924 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11925 parameter.
11926 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11927 (parse_external, psymtab_to_symtab_1): Update.
11928 * machoread.c (macho_symfile_offsets): Update.
11929 * ia64-tdep.c (ia64_find_unwind_table): Update.
11930 * hppa-tdep.c (read_unwind_info): Update.
11931 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11932 * dwarf2read.c (create_addrmap_from_index)
11933 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11934 (process_psymtab_comp_unit_reader, add_partial_symbol)
11935 (add_partial_subprogram, process_full_comp_unit)
11936 (read_file_scope, read_func_scope, read_lexical_block_scope)
11937 (read_call_site_scope, dwarf2_rnglists_process)
11938 (dwarf2_ranges_process, dwarf2_ranges_read)
11939 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11940 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11941 Update.
11942 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11943 Update.
11944 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11945 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11946 (process_one_symbol): Change type of "section_offsets".
11947 * ctfread.c (get_objfile_text_range): Update.
11948 * coffread.c (coff_symtab_read, enter_linenos)
11949 (process_coff_symbol): Update.
11950 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11951 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11952
11953 2020-01-08 Tom Tromey <tromey@adacore.com>
11954
11955 * dwarf2read.c (parse_macro_definition): Use std::string.
11956 (parse_macro_definition): Likewise.
11957
11958 2020-01-08 Tom Tromey <tromey@adacore.com>
11959
11960 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11961 (ATTR_ALLOC_CHUNK): Remove.
11962
11963 2020-01-08 Tom Tromey <tromey@adacore.com>
11964
11965 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11966
11967 2020-01-08 Tom Tromey <tromey@adacore.com>
11968
11969 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11970 (dwarf2_compute_name, open_dwo_file): Likewise.
11971 (process_enumeration_scope): Use std::vector.
11972 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11973 (partial_die_info::fixup, dwarf2_start_subfile)
11974 (guess_full_die_structure_name, dwarf2_name): Likewise.
11975 (determine_prefix): Update.
11976 (guess_full_die_structure_name): Make return type const.
11977 (partial_die_full_name): Return unique_xmalloc_ptr.
11978 (DW_FIELD_ALLOC_CHUNK): Remove.
11979
11980 2020-01-07 Tom Tromey <tromey@adacore.com>
11981
11982 PR build/24937:
11983 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11984
11985 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11986
11987 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11988
11989 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11990
11991 * stack.c (print_frame_info): Move disassemble_next_line code
11992 inside source_print block.
11993
11994 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11995
11996 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11997 gdb/signals.h, as we are now using native signal symbols.
11998
11999 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12000
12001 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12002 overflow by an early check of content vs threshold.
12003 * tui/tui-source.c (tui_source_window::line_is_displayed):
12004 Likewise.
12005
12006 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12007
12008 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12009
12010 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12011
12012 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12013 export table if no section contains it's RVA.
12014
12015 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12016
12017 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12018
12019 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12020
12021 * source.c (print_source_lines_base): Set last_line_listed.
12022
12023 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12024
12025 * tui/tui-disasm.c: Remove trailing spaces.
12026
12027 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12028 Pedro Alves <palves@redhat.com>
12029
12030 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12031 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12032 (windows_gdb_signal_to_target): New function, uses the above
12033 enumeration to convert GDB internal signal codes to equivalent
12034 Windows codes.
12035 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12036 * windows-nat.c: Include "gdb_wait.h".
12037 (get_windows_debug_event): Extract the fatal exception from the
12038 exit status and convert to the equivalent Posix signal number.
12039 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12040 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12041 * gdbsupport/gdb_wait.c: New file, implements
12042 windows_status_to_termsig.
12043 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12044 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12045
12046 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12047
12048 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12049 show_layout.
12050
12051 2020-01-05 Luis Machado <luis.machado@linaro.org>
12052
12053 * aarch64-linux-nat.c
12054 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12055 and bfd_mach_aarch64.
12056
12057 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12058
12059 * ui-file.c (stdio_file::can_emit_style_escape)
12060 (tee_file::can_emit_style_escape): Ensure style is used also on
12061 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12062 to gdb_stdout.
12063 * main.c (set_gdb_data_directory): Use file style to output the
12064 warning that the given pathname is not a directory.
12065 * top.c (show_history_filename, gdb_safe_append_history)
12066 (show_gdb_datadir): Use file style.
12067
12068 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12069
12070 * solib-target.c (struct lm_info_target):
12071 Change offsets to be a unique_xmalloc_ptr.
12072 (solib_target_relocate_section_addresses): Update.
12073
12074 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12075
12076 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12077
12078 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12079
12080 * MAINTAINERS (Write After Approval): Add myself.
12081
12082 2020-01-02 Luis Machado <luis.machado@linaro.org>
12083
12084 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12085 Cell BE architecture.
12086 * target.h (struct target_ops) <thread_architecture>: Likewise.
12087
12088 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12089
12090 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12091
12092 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12093
12094 * MAINTAINERS (Write After Approval): Add myself.
12095
12096 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12097
12098 * gdbarch.sh: Update copyright year range of generated files.
12099
12100 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12101
12102 Update copyright year range in all GDB files.
12103
12104 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12105
12106 * copyright.py: Convert to Python 3.
12107
12108 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12109
12110 * copyright.py: Adapt after move of gnulib directory from gdb
12111 directory to toplevel directory.
12112
12113 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12114
12115 * copyright.py (main): Exit if run from the wrong directory.
12116
12117 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12118
12119 * top.c (print_gdb_version): Change copyright year to 2020.
12120
12121 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12122
12123 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12124
12125 For older changes see ChangeLog-2019.
12126 \f
12127 Local Variables:
12128 mode: change-log
12129 left-margin: 8
12130 fill-column: 74
12131 version-control: never
12132 coding: utf-8
12133 End: