gdb: fix wrong indentation in symbol_needs_eval_context
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * loc.c (class symbol_needs_eval_context): Fix indentation.
4
5 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
8 bool.
9
10 2020-08-17 Tom de Vries <tdevries@suse.de>
11
12 PR gdb/26393
13 * gdbtypes.c (dump_dynamic_prop): New function.
14 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
15
16 2020-08-15 Tom de Vries <tdevries@suse.de>
17
18 PR backtrace/26390
19 * stack.c (print_frame_args): Temporarily set the selected
20 frame to FRAME while printing the frame's arguments.
21
22 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
23
24 PR breakpoints/26385
25 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
26 Always clear watchpoint with PTRACE_SET_DEBUGREG.
27
28 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
29
30 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
31 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
32 and >= to check return value instead of == -1 and != -1.
33
34 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * utils.h (class gdb_argv) <as_array_view>: New method.
37 * utils.c (gdb_argv_as_array_view_test): New.
38 (_initialize_utils): Register selftest.
39 * maint.c (maintenance_selftest): Use the new method.
40
41 2020-08-13 Kamil Rytarowski <n54@gmx.com>
42
43 * target.h (supports_dumpcore, dumpcore): New
44 function declarations.
45 * target.c (supports_dumpcore, dumpcore): New
46 functions.
47 * target-delegates.c: Rebuild.
48 * gcore.c (gcore_command): Use target_supports_dumpcore ()
49 and target_dumpcore ().
50
51 2020-08-13 Aaron Merey <amerey@redhat.com>
52
53 * debuginfod-support.c: Replace global variables with user_data.
54
55 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * maint.c (maintenance_selftest): Split args and pass array_view
58 to run_tests.
59
60 2020-08-12 Luis Machado <luis.machado@linaro.org>
61
62 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
63 type's length.
64 Use %s and pulongest to print the length.
65
66 2020-08-12 Pedro Alves <palves@redhat.com>
67
68 * NEWS: Move "Multi-target debugging support" item to the
69 "Changes since GDB 9" section.
70
71 2020-08-12 Pedro Alves <palves@redhat.com>
72
73 PR gdb/26336
74 * progspace.c (program_space::remove_objfile): Invalidate the
75 frame cache.
76
77 2020-08-11 Tom de Vries <tdevries@suse.de>
78
79 * MAINTAINERS: Mark ms1 as deleted.
80
81 2020-08-10 Luis Machado <luis.machado@linaro.org>
82
83 PR gdb/26310
84
85 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
86 act accordingly.
87 (aarch64_analyze_prologue_test): Add more unit tests to exercise
88 movz/str/stur/stp skipping behavior.
89
90 2020-08-10 Luis Machado <luis.machado@linaro.org>
91
92 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
93 struct user_sve_header instead of struct sve_context.
94
95 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * read.h (dwarf2_fetch_die_loc_sect_off,
98 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
99 `void *` parameter with function_view.
100 * read.c (dwarf2_fetch_die_loc_sect_off,
101 dwarf2_fetch_die_loc_cu_off): Likewise.
102 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
103 (per_cu_dwarf_call): Adjust.
104 (get_frame_address_in_block_wrapper): Remove.
105 (indirect_synthetic_pointer): Adjust.
106 (get_ax_pc): Remove.
107 (dwarf2_compile_expr_to_ax): Adjust.
108
109 2020-08-08 Tom de Vries <tdevries@suse.de>
110
111 PR build/26344
112 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
113 constructor.
114 * regcache.c (get_thread_arch_aspace_regcache): Same.
115
116 2020-08-07 Tom Tromey <tromey@adacore.com>
117
118 * ravenscar-thread.c
119 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
120 New method.
121 (ravenscar_thread_target::wait): Check
122 runtime_initialized.
123 (ravenscar_thread_target::prepare_to_store)
124 (ravenscar_thread_target::stopped_by_sw_breakpoint)
125 (ravenscar_thread_target::stopped_by_hw_breakpoint)
126 (ravenscar_thread_target::stopped_by_watchpoint)
127 (ravenscar_thread_target::stopped_data_address)
128 (ravenscar_thread_target::core_of_thread): Use
129 scoped_restore_current_thread and
130 set_base_thread_from_ravenscar_task.
131
132 2020-08-07 Tom Tromey <tromey@adacore.com>
133
134 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
135
136 2020-08-07 Tom Tromey <tromey@adacore.com>
137
138 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
139 update_inferior_ptid before update_thread_list.
140 (temporarily_change_regcache_ptid): New class.
141 (ravenscar_thread_target::fetch_registers)
142 (ravenscar_thread_target::store_registers)
143 (ravenscar_thread_target::prepare_to_store): Use base thread when
144 forwarding operation.
145
146 2020-08-07 Tom Tromey <tromey@adacore.com>
147
148 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
149 "is_pid" case.
150
151 2020-08-07 Tom Tromey <tromey@adacore.com>
152
153 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
154 New methods.
155 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
156 first.
157 (ravenscar_thread_target::add_thread): Rename from
158 ravenscar_add_thread.
159 (ravenscar_thread_target::update_thread_list): Use a lambda.
160 (ravenscar_thread_target::xfer_partial): New method.
161
162 2020-08-07 Tom Tromey <tromey@adacore.com>
163
164 * ada-lang.h (ada_task_list_iterator_ftype): Now a
165 gdb::function_view.
166 (iterate_over_live_ada_tasks): Change type of argument.
167 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
168 of argument.
169
170 2020-08-07 Tom Tromey <tromey@adacore.com>
171
172 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
173 Remove.
174 (ravenscar_thread_target::extra_thread_info): Remove.
175 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
176 defer to target beneath for non-Ravenscar threads.
177
178 2020-08-07 Tom Tromey <tromey@adacore.com>
179
180 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
181 get_base_thread_from_ravenscar_task>: Now methods.
182 <m_cpu_map>: New member.
183 (ravenscar_thread_target::get_thread_base_cpu): Rename from
184 ravenscar_get_thread_base_cpu. Check m_cpu_map.
185 (ravenscar_thread_target::task_is_currently_active): Update.
186 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
187 Now a method.
188 (ravenscar_thread_target::add_active_thread): Put initial thread
189 into the m_cpu_map.
190
191 2020-08-07 Tom Tromey <tromey@adacore.com>
192
193 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
194 event_ptid.
195
196 2020-08-07 Tom Tromey <tromey@adacore.com>
197
198 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
199 runtime_initialized.
200
201 2020-08-07 Tom Tromey <tromey@adacore.com>
202
203 * ravenscar-thread.c (ravenscar_thread_target): Don't call
204 add_active_thread.
205 (ravenscar_thread_target::add_active_thread): Now public.
206 (ravenscar_inferior_created): Call add_active_thread after pushing
207 the target.
208
209 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * regcache.c (ptid_regcache_map): New type.
212 (target_ptid_regcache_map): New type.
213 (regcaches): Change type to target_ptid_regcache_map.
214 (get_thread_arch_aspace_regcache): Update to regcaches' new
215 type.
216 (regcache_thread_ptid_changed): Likewise.
217 (registers_changed_ptid): Likewise.
218 (regcaches_size): Likewise.
219 (regcaches_test): Update.
220 (regcache_thread_ptid_changed): Update.
221 * regcache.h (regcache_up): New type.
222 * gdbsupport/ptid.h (hash_ptid): New struct.
223
224 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
225
226 * observable.h (thread_ptid_changed): Add parameter
227 `process_stratum_target *`.
228 * infrun.c (infrun_thread_ptid_changed): Add parameter
229 `process_stratum_target *` and use it.
230 (selftests): New namespace.
231 (infrun_thread_ptid_changed): New function.
232 (_initialize_infrun): Register selftest.
233 * regcache.c (regcache_thread_ptid_changed): Add parameter
234 `process_stratum_target *` and use it.
235 (regcache_thread_ptid_changed): New function.
236 (_initialize_regcache): Register selftest.
237 * thread.c (thread_change_ptid): Pass target to
238 thread_ptid_changed observable.
239
240 2020-08-06 Caroline Tice <cmtice@google.com>
241
242 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
243 (struct dwp_sections): Update field comments. Add loclists and
244 rnglists fields.
245 (struct virtual_v2_dwo_sections): Rename struct to
246 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
247 size & offset fields for loclists and rnglists.
248 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
249 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
250 skipping dummy type units.
251 (create_dwp_hash_table): Update the large comment above the function to
252 discuss Version 5 DWP files as well, with references. Update all the
253 version checks in the function to check for version 5 as well. Add new
254 section at the end to create dwp hash table for version 5.
255 (create_dwp_v2_section): Rename function to
256 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
257 Add V5 to error message text.
258 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
259 into calls to create_dwp_v2_or_v5_section.
260 (create_dwo_unit_in_dwp_v5): New function.
261 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
262 check for version2; add else clause to handle version 5.
263 (open_and_init_dwo_file): Add code to check dwarf version & only call
264 create_debug_types_hash_table (with sections.types) if version is not 5;
265 else call create_debug_type_hash_table, with sections.info.
266 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
267 version 5.
268 (dwarf2_locate_v5_dwp_sections): New function.
269 (open_and_init_dwp_file): Add else-if clause for version 5 to call
270 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
271
272 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
273
274 * regcache.h (class regcache): Remove friend
275 registers_changed_ptid.
276 <regcache_thread_ptid_changed>: Remove.
277 <regcaches>: Remove.
278 * regcache.c (regcache::regcaches): Rename to...
279 (regcaches): ... this. Make static.
280 (get_thread_arch_aspace_regcache): Update.
281 (regcache::regcache_thread_ptid_changed): Rename to...
282 (regcache_thread_ptid_changed): ... this. Update.
283 (class regcache_access): Remove.
284 (regcaches_test): Update.
285 (_initialize_regcache): Update.
286 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
287 <forward_list>.
288
289 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
290
291 * regcache.h (class regcache) <current_regcache>: Rename to...
292 <regcaches>: ... this. Move doc here.
293 * regcache.c (regcache::current_regcache) Rename to...
294 (regcache::regcaches): ... this. Move doc to header.
295 (get_thread_arch_aspace_regcache): Update.
296 (regcache::regcache_thread_ptid_changed): Update.
297 (registers_changed_ptid): Update.
298 (class regcache_access) <current_regcache_size>: Rename to...
299 <regcaches_size>: ... this.
300 (current_regcache_test): Rename to...
301 (regcaches_test): ... this.
302 (_initialize_regcache): Update.
303
304 2020-08-06 Victor Collod <vcollod@nvidia.com>
305
306 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
307
308 2020-08-05 Kevin Buettner <kevinb@redhat.com>
309
310 * corelow.c (core_target::build_file_mappings): Don't output
311 null pathname in warning.
312
313 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
316 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
317 gdb.dwarf2/dw2-single-line-discriminators.exp,
318 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
319
320 2020-08-05 Tom Tromey <tromey@adacore.com>
321
322 PR rust/26197:
323 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
324 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
325 Fix off-by-one and type size errors in ordinary case.
326
327 2020-08-05 Tom de Vries <tdevries@suse.de>
328
329 * gdbtypes.c (type_not_allocated, type_not_associated): Use
330 "prop->const_val () == 0" instead of "prop->const_val () != 0".
331
332 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
333
334 * frame.h (frame_id_p): Return bool.
335 (frame_id_artificial_p): Return bool.
336 (frame_id_eq): Return bool.
337 (has_stack_frames): Return bool.
338 (get_selected_frame): Fix typo in comment.
339 (get_frame_pc_if_available): Return bool.
340 (get_frame_address_in_block_if_available): Return bool.
341 (get_frame_func_if_available): Return bool.
342 (read_frame_register_unsigned): Return bool.
343 (get_frame_register_bytes): Return bool.
344 (safe_frame_unwind_memory): Return bool.
345 (deprecated_frame_register_read): Return bool.
346 (frame_unwinder_is): Return bool.
347 * frame.c (struct frame_info) <prev_arch::p>: Change type to
348 bool.
349 <this_id::p>: Likewise.
350 <prev_p>: Likewise.
351 (frame_stash_add): Return bool.
352 (get_frame_id): Use bool.
353 (frame_id_build_special) Use bool.
354 (frame_id_build_unavailable_stack): Use bool.
355 (frame_id_build): Use bool.
356 (frame_id_p): Return bool, use true/false instead of 1/0.
357 (frame_id_artificial_p): Likewise.
358 (frame_id_eq): Likewise.
359 (frame_id_inner): Likewise.
360 (get_frame_func_if_available): Likewise.
361 (read_frame_register_unsigned): Likewise.
362 (deprecated_frame_register_read): Likewise.
363 (get_frame_register_bytes): Likewise.
364 (has_stack_frames): Likewise.
365 (inside_main_func): Likewise.
366 (inside_entry_func): Likewise.
367 (get_frame_pc_if_available): Likewise.
368 (get_frame_address_in_block_if_available): Likewise.
369 (frame_unwinder_is): Likewise.
370 (safe_frame_unwind_memory): Likewise.
371 (frame_unwind_arch): Likewise.
372
373 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
374
375 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
376 type to cached_copy_status.
377 (fprintf_frame): Adjust.
378 (get_frame_func_if_available): Adjust.
379 (frame_cleanup_after_sniffer): Adjust.
380
381 2020-08-04 Mark Wielaard <mark@klomp.org>
382
383 * MAINTAINERS (Write After Approval): Update email address.
384
385 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
388 dynamic_prop::const_val.
389
390 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
393 dynamic_prop::kind.
394
395 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
398
399 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
400
401 * configure.tgt: Set gdb_sim for bpf-*-* targets.
402
403 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
404 Jose E. Marchesi <jose.marchesi@oracle.com>
405
406 * configure.tgt: Add entry for bpf-*-*.
407 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
408 (ALLDEPFILES): Add bpf-tdep.c.
409 * bpf-tdep.c: New file.
410 * MAINTAINERS: Add bpf target and maintainer.
411 * NEWS: Mention the support for the new target.
412
413 2020-08-04 Tom de Vries <tdevries@suse.de>
414
415 PR symtab/23270
416 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
417 Error.
418
419 2020-08-03 John Baldwin <jhb@FreeBSD.org>
420
421 * syscalls/freebsd.xml: Regenerate.
422
423 2020-08-03 John Baldwin <jhb@FreeBSD.org>
424
425 * syscalls/update-freebsd.sh: Fix usage and year range.
426
427 2020-08-03 Tom de Vries <tdevries@suse.de>
428
429 PR symtab/26333
430 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
431 DW_LNE_lo_user/DW_LNE_hi_user range.
432
433 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
434
435 PR ada/26318
436 * ada-lang.c (ada_modulus): Return 0 if property is not of const
437 kind.
438
439 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
440
441 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
442
443 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
444
445 * breakpoint.c (set_breakpoint_condition): Update the condition
446 expressions after checking that the input condition string parses
447 successfully and does not contain junk at the end.
448
449 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 * breakpoint.c (set_breakpoint_condition): Update the
452 condition string after parsing the new condition successfully.
453
454 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
455
456 * proc-api.c (_STRUCTURED_PROC): Don't define.
457 * proc-events.c: Likewise.
458 * proc-flags.c: Likewise.
459 * proc-why.c: Likewise.
460 * procfs.c: Likewise.
461
462 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
463 * configure, config.in: Regenerate.
464
465 2020-07-30 Tom de Vries <tdevries@suse.de>
466
467 PR build/26320
468 * ui-style.h (struct ui_file_style::color): Wrap m_value and
469 m_red/m_green/m_blue in a union.
470
471 2020-07-29 Tom de Vries <tdevries@suse.de>
472
473 PR tdep/26280
474 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
475
476 2020-07-28 Tom Tromey <tromey@adacore.com>
477
478 PR symtab/26270:
479 * symtab.h (find_pc_partial_function_sym): Declare.
480 * cli/cli-cmds.c (disassemble_command): Use
481 find_pc_partial_function_sym. Check asm_demangle.
482 * blockframe.c (cache_pc_function_sym): New global.
483 (cache_pc_function_name): Remove.
484 (clear_pc_function_cache): Update.
485 (find_pc_partial_function_sym): New function, from
486 find_pc_partial_function.
487 (find_pc_partial_function): Rewrite using
488 find_pc_partial_function_sym.
489
490 2020-07-28 Tom Tromey <tromey@adacore.com>
491
492 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
493 help. Add usage.
494
495 2020-07-28 Tom Tromey <tromey@adacore.com>
496
497 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
498 <DW_OP_GNU_variable_value>: Cast to address type.
499
500 2020-07-28 Kamil Rytarowski <n54@gmx.com>
501
502 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
503 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
504 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
505 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
506 (nbsd_get_siginfo_type): New.
507 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
508 (_initialize_nbsd_tdep): New.
509
510 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
511
512 PR binutils/26301
513 * configure: Regenerated.
514
515 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
516
517 PR binutils/26301
518 * configure: Regenerated.
519
520 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * python/py-frame.c: Remove 'user-regs.h' include.
523 (frapy_read_register): Rewrite to make use of
524 gdbpy_parse_register_id.
525 * python/py-registers.c (gdbpy_parse_register_id): New function,
526 moved here from python/py-unwind.c. Updated the return type, and
527 also accepts register descriptor objects.
528 * python/py-unwind.c: Remove 'user-regs.h' include.
529 (pyuw_parse_register_id): Moved to python/py-registers.c.
530 (unwind_infopy_add_saved_register): Update to use
531 gdbpy_parse_register_id.
532 (pending_framepy_read_register): Likewise.
533 * python/python-internal.h (gdbpy_parse_register_id): Declare.
534
535 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * python/py-registers.c: Add 'user-regs.h' include.
538 (register_descriptor_iter_find): New function.
539 (register_descriptor_iterator_object_methods): New static global
540 methods array.
541 (register_descriptor_iterator_object_type): Add pointer to methods
542 array.
543
544 2020-07-27 John Baldwin <jhb@FreeBSD.org>
545
546 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
547 for all architectures on FreeBSD 11.3 and later.
548
549 2020-07-27 Tom Tromey <tromey@adacore.com>
550
551 * gcore.h (load_corefile): Don't declare.
552
553 2020-07-27 Tom de Vries <tdevries@suse.de>
554
555 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
556 * config.in: Regenerate.
557 * configure: Regenerate.
558
559 2020-07-26 Eli Zaretskii <eliz@gnu.org>
560
561 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
562 ws2tcpip.h. When checking whether socklen_t type is defined, use
563 ws2tcpip.h if it is available and sys/socket.h isn't.
564 * configure: Regenerate.
565 * config.in: Regenerate.
566
567 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 PR fortran/23051
570 PR fortran/26139
571 * valops.c (value_ind): Pass address to
572 readjust_indirect_value_type.
573 * value.c (readjust_indirect_value_type): Make parameter
574 non-const, and add extra address parameter. Resolve original type
575 before using it.
576 * value.h (readjust_indirect_value_type): Update function
577 signature and comment.
578
579 2020-07-25 Tom de Vries <tdevries@suse.de>
580
581 PR symtab/26243
582 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
583 entries.
584
585 2020-07-24 Aaron Merey <amerey@redhat.com>
586
587 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
588 * configure: Rebuild.
589
590 2020-07-23 Kevin Buettner <kevinb@redhat.com>
591
592 PR corefiles/26294
593 * corelow.c (_initialize_corelow): Add period to help text
594 for "maintenance print core-file-backed-mappings".
595
596 2020-07-23 Pedro Alves <pedro@palves.net>
597
598 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
599 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
600 meanwhile.
601 * frame.c (frame_cache_generation, get_frame_cache_generation):
602 New.
603 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
604 (get_prev_frame_if_no_cycle): On exception, don't touch
605 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
606 * frame.h (get_frame_cache_generation): Declare.
607
608 2020-07-23 Tom de Vries <tdevries@suse.de>
609
610 PR tui/26282
611 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
612 New default constructor.
613
614 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
617 exclude non-statement entries.
618
619 2020-07-22 Kevin Buettner <kevinb@redhat.com>
620
621 * NEWS (New commands): Mention new command
622 "maintenance print core-file-backed-mappings".
623
624 2020-07-22 Kevin Buettner <kevinb@redhat.com>
625
626 * corelow.c (gdbcmd.h): Include.
627 (core_target::info_proc_mappings): New method.
628 (get_current_core_target): New function.
629 (maintenance_print_core_file_backed_mappings): New function.
630 (_initialize_corelow): Add core-file-backed-mappings to
631 "maint print" commands.
632
633 2020-07-22 Kevin Buettner <kevinb@redhat.com>
634
635 * linux-tdep.c (dump_note_entry_p): New function.
636 (linux_dump_mapping_p_ftype): New typedef.
637 (linux_find_memory_regions_full): Add new parameter,
638 should_dump_mapping_p.
639 (linux_find_memory_regions): Adjust call to
640 linux_find_memory_regions_full.
641 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
642 call to linux_find_memory_regions_full.
643
644 2020-07-22 Kevin Buettner <kevinb@redhat.com>
645
646 * corelow.c (solist.h, unordered_map): Include.
647 (class core_target): Add field m_core_file_mappings and
648 method build_file_mappings.
649 (core_target::core_target): Call build_file_mappings.
650 (core_target::~core_target): Free memory associated with
651 m_core_file_mappings.
652 (core_target::build_file_mappings): New method.
653 (core_target::xfer_partial): Use m_core_file_mappings
654 for memory transfers.
655 * linux-tdep.c (linux_read_core_file_mappings): New
656 function.
657 (linux_core_info_proc_mappings): Rewrite to use
658 linux_read_core_file_mappings.
659 (linux_init_abi): Register linux_read_core_file_mappings.
660
661 2020-07-22 Kevin Buettner <kevinb@redhat.com>
662
663 * arch-utils.c (default_read_core_file_mappings): New function.
664 * arch-utils.c (default_read_core_file_mappings): Declare.
665 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
666 * gdbarch.h, gdbarch.c: Regenerate.
667
668 2020-07-22 Kevin Buettner <kevinb@redhat.com>
669
670 PR corefiles/25631
671 * corelow.c (core_target:xfer_partial): Revise
672 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
673 case after first checking the stratum beneath the core
674 target.
675 (has_all_memory): Return true.
676 * target.c (raw_memory_xfer_partial): Revise comment
677 regarding use of has_all_memory.
678
679 2020-07-22 Kevin Buettner <kevinb@redhat.com>
680
681 * exec.h (section_table_xfer_memory): Revise declaration,
682 replacing section name parameter with an optional callback
683 predicate.
684 * exec.c (section_table_xfer_memory): Likewise.
685 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
686 of section_table_xfer_memory.
687
688 2020-07-22 Tom Tromey <tromey@adacore.com>
689
690 * mi/mi-cmd-stack.c (list_args_or_locals): Use
691 lookup_symbol_search_name.
692
693 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * python/py-registers.c (gdbpy_register_object_data_init): Remove
696 redundant local variable.
697 (gdbpy_get_register_descriptor): Extract descriptor vector as a
698 reference, not pointer, update code accordingly.
699
700 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
701 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
702
703 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
704 * jit.c (jit_breakpoint_re_set_internal): Use the
705 `skip_jit_symbol_lookup` field.
706
707 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
708 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
709
710 * jit.c (jit_read_descriptor): Define the descriptor address once,
711 use twice.
712 (jit_breakpoint_deleted): Move the declaration of the loop variable
713 `iter` into the loop header.
714 (jit_breakpoint_re_set_internal): Move the declaration of the local
715 variable `objf_data` to the first point of definition.
716 (jit_event_handler): Move the declaration of local variables
717 `code_entry`, `entry_addr`, and `objf` to their first point of use.
718 Rename `objf` to `jited`.
719
720 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
723 Remove.
724 * jit.c (get_jiter_objfile_data): Update.
725
726 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * jit.c (struct jit_program_space_data): Remove.
730 (jit_program_space_key): Remove.
731 (jiter_objfile_data::~jiter_objfile_data): Remove program space
732 stuff.
733 (get_jit_program_space_data): Remove.
734 (jit_breakpoint_deleted): Iterate on all of the program space's
735 objfiles.
736 (jit_inferior_init): Likewise.
737 (jit_breakpoint_re_set_internal): Likewise. Also change return
738 type to void.
739 (jit_breakpoint_re_set): Pass current_program_space to
740 jit_breakpoint_re_set_internal.
741
742 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * jit.h (struct jiter_objfile_data) <cached_code_address,
745 jit_breakpoint>: Move to here from ...
746 * jit.c (jit_program_space_data): ... here.
747 (jiter_objfile_data::~jiter_objfile_data): Update.
748 (jit_breakpoint_deleted): Update.
749 (jit_breakpoint_re_set_internal): Update.
750
751 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
754 checks.
755 (jit_read_descriptor): Remove NULL check.
756 (jit_event_handler): Add an assertion.
757
758 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * jit.h (struct jit_objfile_data): Split into...
761 (struct jiter_objfile_data): ... this ...
762 (struct jited_objfile_data): ... and this.
763 * objfiles.h (struct objfile) <jit_data>: Remove.
764 <jiter_data, jited_data>: New fields.
765 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
766 (jiter_objfile_data::~jiter_objfile_data): ... this.
767 (get_jit_objfile_data): Rename to ...
768 (get_jiter_objfile_data): ... this.
769 (add_objfile_entry): Update.
770 (jit_read_descriptor): Use get_jiter_objfile_data.
771 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
772 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
773 (jit_inferior_exit_hook): Use objfile's jited_data field.
774
775 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * jit.h: Forward-declare `struct minimal_symbol`.
778 (struct jit_objfile_data): Migrate to here from jit.c; also add a
779 constructor, destructor, and an objfile* field.
780 * jit.c (jit_objfile_data): Remove.
781 (struct jit_objfile_data): Migrate from here to jit.h.
782 (jit_objfile_data::~jit_objfile_data): New destructor
783 implementation with code moved from free_objfile_data.
784 (free_objfile_data): Delete.
785 (get_jit_objfile_data): Update to use the jit_data field of objfile.
786 (jit_find_objf_with_entry_addr): Ditto.
787 (jit_inferior_exit_hook): Ditto.
788 (_initialize_jit): Remove the call to
789 register_objfile_data_with_cleanup.
790 * objfiles.h (struct objfile) <jit_data>: New field.
791
792 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
793
794 * jit.h: Forward-declare `struct objfile`.
795 (jit_event_handler): Add a second parameter, the JITer objfile.
796 * jit.c (jit_read_descriptor): Change the signature to take the
797 JITer objfile as an argument instead of the jit_program_space_data.
798 (jit_inferior_init): Update the call to jit_read_descriptor.
799 (jit_event_handler): Use the new JITer objfile argument when calling
800 jit_read_descriptor.
801 * breakpoint.c (handle_jit_event): Update the call to
802 jit_event_handler to pass the JITer objfile.
803
804 2020-07-21 John Baldwin <jhb@FreeBSD.org>
805
806 * gdbarch.c: Regenerate.
807 * gdbarch.h: Regenerate.
808 * gdbarch.sh (handle_segmentation_fault): Remove method.
809 * infrun.c (handle_segmentation_fault): Remove.
810 (print_signal_received_reason): Remove call to
811 handle_segmentation_fault.
812
813 2020-07-21 John Baldwin <jhb@FreeBSD.org>
814
815 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
816 Rename to sparc64_linux_report_signal_info and add siggnal
817 argument.
818 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
819 instead of sparc64_linux_handle_segmentation_fault.
820
821 2020-07-21 John Baldwin <jhb@FreeBSD.org>
822
823 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
824 i386_linux_report_signal_info instead of
825 i386_linux_handle_segmentation_fault.
826 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
827 to i386_linux_report_signal_info and add siggnal argument.
828 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
829 of i386_linux_handle_segmentation_fault.
830 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
831 to i386_linux_report_signal_info and add siggnal argument.
832
833 2020-07-21 John Baldwin <jhb@FreeBSD.org>
834
835 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
836 hook if present.
837
838 2020-07-21 John Baldwin <jhb@FreeBSD.org>
839
840 * gdbarch.c: Regenerate.
841 * gdbarch.h: Regenerate.
842 * gdbarch.sh (report_signal_info): New method.
843 * infrun.c (print_signal_received_reason): Invoke gdbarch
844 report_signal_info hook if present.
845
846 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * python/py-registers.c : Add 'unordered_map' include.
849 (gdbpy_new_reggroup): Renamed to...
850 (gdbpy_get_reggroup): ...this. Update to only create register
851 group descriptors when needed.
852 (gdbpy_reggroup_iter_next): Update.
853
854 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * python/py-registers.c (gdbpy_register_object_data): New static
857 global.
858 (gdbpy_register_object_data_init): New function.
859 (gdbpy_new_register_descriptor): Renamed to...
860 (gdbpy_get_register_descriptor): ...this, and update to reuse
861 existing register descriptors where possible.
862 (gdbpy_register_descriptor_iter_next): Update.
863 (gdbpy_initialize_registers): Register new gdbarch data.
864
865 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
866
867 * linux-nat.c (stopped_pids): Make static.
868
869 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
870
871 PR ada/26235
872 * gdbtypes.c (ada_discrete_type_low_bound,
873 ada_discrete_type_high_bound): Handle undefined bounds.
874
875 2020-07-21 Kamil Rytarowski <n54@gmx.com>
876
877 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
878 declaration.
879 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
880 function.
881
882 2020-07-20 John Baldwin <jhb@FreeBSD.org>
883
884 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
885 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
886 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
887 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
888 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
889 method.
890
891 2020-07-20 Ludovic Courtès <ludo@gnu.org>
892
893 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
894 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
895 which are deprecated in Guile 3.0.
896 * configure.ac (try_guile_versions): Add "guile-3.0".
897 * configure (try_guile_versions): Regenerate.
898 * NEWS: Update entry.
899
900 2020-07-20 Ludovic Courtès <ludo@gnu.org>
901 Doug Evans <dje@google.com>
902
903 PR gdb/21104
904 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
905 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
906 USING_GUILE_BEFORE_2_2.
907 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
908 Change type to 'scm_t_port_type *'.
909 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
910 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
911 parameter and honor it. Update callers.
912 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
913 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
914 functions.
915 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
916 USING_GUILE_BEFORE_2_2.
917 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
918 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
919 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
920 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
921 and 'SCM_PORT_TYPE'.
922 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
923 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
924 (gdbscm_memory_port_read, gdbscm_memory_port_write)
925 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
926 [!USING_GUILE_BEFORE_2_2]: New functions.
927 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
928 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
929 'gdbscm_memory_port_read'.
930 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
931 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
932 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
933 function.
934 (ioscm_init_memory_port): Remove.
935 (ioscm_init_memory_port_stream): New function
936 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
937 function.
938 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
939 Return scm_from_uint (0).
940 (gdbscm_set_memory_port_read_buffer_size_x)
941 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
942 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
943 Return scm_from_uint (0).
944 (gdbscm_set_memory_port_write_buffer_size_x)
945 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
946 * configure.ac (try_guile_versions): Add "guile-2.2".
947 * configure: Regenerate.
948 * NEWS: Add entry.
949
950 2020-07-18 Tom Tromey <tom@tromey.com>
951
952 * linux-nat.c (linux_multi_process): Remove.
953 (linux_nat_target::supports_multi_process): Return true.
954
955 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
956
957 * arch/riscv.c (riscv_tdesc_cache): Change map type.
958 (riscv_lookup_target_description): Return pointer out of
959 unique_ptr.
960 * target-descriptions.c (allocate_target_description): Add
961 comment.
962 (target_desc_deleter::operator()): Likewise.
963 * target-descriptions.h (struct target_desc_deleter): Moved to
964 gdbsupport/tdesc.h.
965 (target_desc_up): Likewise.
966
967 2020-07-17 Tom Tromey <tromey@adacore.com>
968
969 * linux-nat.c (linux_nat_target::supports_non_stop)
970 (linux_nat_target::always_non_stop_p): Use "true".
971 (linux_nat_target::supports_disable_randomization): Use "true" and
972 "false".
973
974 2020-07-16 Caroline Tice <cmtice@google.com>
975
976 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
977 (RNGLIST_HEADER_SIZE64): New constant definition.
978 (struct dwop_section_names): Add rnglists_dwo.
979 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
980 (struct loclist_header): Rename to 'loclists_rnglists_header'.
981 (struct dwo_sections): Add rnglists field.
982 (read_attribut_reprocess): Add tag parameter.
983 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
984 (cu_debug_rnglists_section): New function (decl & definition).
985 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
986 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
987 die whose range is being checked; get rnglist section from
988 cu_debug_rnglists_section, to get from either objfile or dwo file as
989 appropriate. Add cases for DW_RLE_base_addressx,
990 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
991 the base address to DW_RLE_offset_pairs (not to all ranges), moving
992 test inside if-condition and updating complaint message.
993 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
994 dwarf2_rnglists_process.
995 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
996 dwarf2_ranges_process.
997 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
998 need_ranges_base and update comment appropriately. Also pass die tag
999 to dwarf2_ranges_read.
1000 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1001 need_ranges_base and update comment appropriately. Also pass die tag
1002 to dwarf2_ranges_process.
1003 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1004 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1005 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1006 need_ranges_base and update comment appropriately. Also pass die tag
1007 to read_attribute_reprocess and dwarf2_ranges_read.
1008 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1009 and update function comment appropriately.
1010 (read_loclist_index): Call read_loclists_rnglists_header instead of
1011 read_loclist_header.
1012 (read_rnglist_index): New function.
1013 (read_attribute_reprocess): Add tag parameter. Add code for
1014 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1015 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1016
1017 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1020 being resolved.
1021
1022 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * arch-utils.c (show_architecture): Update formatting of messages.
1025
1026 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1027
1028 * gdbtypes.h (struct type) <bounds>: Handle array and string
1029 types.
1030 * ada-lang.c (assign_aggregate): Use type::bounds on
1031 array/string type.
1032 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1033 * c-varobj.c (c_number_of_children): Likewise.
1034 (c_describe_child): Likewise.
1035 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1036 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1037 (f_type_print_base): Likewise.
1038 * f-valprint.c (f77_array_offset_tbl): Likewise.
1039 (f77_get_upperbound): Likewise.
1040 (f77_print_array_1): Likewise.
1041 * guile/scm-type.c (gdbscm_type_range): Likewise.
1042 * m2-typeprint.c (m2_array): Likewise.
1043 (m2_is_long_set_of_type): Likewise.
1044 * m2-valprint.c (get_long_set_bounds): Likewise.
1045 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1046 * python/py-type.c (typy_range): Likewise.
1047 * rust-lang.c (rust_internal_print_type): Likewise.
1048 * type-stack.c (type_stack::follow_types): Likewise.
1049 * valarith.c (value_subscripted_rvalue): Likewise.
1050 * valops.c (value_cast): Likewise.
1051
1052 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1055 callers to use the equivalent accessor methods.
1056
1057 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1060 (struct type) <bit_stride>: New method.
1061 (TYPE_BIT_STRIDE): Remove.
1062 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1063
1064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1067 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1068 callers to use the equivalent accessor methods instead.
1069
1070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1071
1072 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1073 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1074 callers to use the equivalent accessor methods instead.
1075
1076 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1077
1078 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1079 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1080 to use dynamic_prop::kind.
1081
1082 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1083
1084 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1085 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1086 to get the bound property's kind and check against
1087 PROP_UNDEFINED.
1088
1089 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1092 all callers to use type::range_bounds followed by
1093 dynamic_prop::{low,high}.
1094
1095 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1098 const_val, set_const_val, baton, set_locexpr, set_loclist,
1099 set_addr_offset, variant_parts, set_variant_parts,
1100 original_type, set_original_type>: New methods.
1101 <kind>: Rename to...
1102 <m_kind>: ... this. Update all users to use the new methods
1103 instead.
1104 <data>: Rename to...
1105 <m_data>: ... this. Update all users to use the new methods
1106 instead.
1107
1108 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.c (get_discrete_bounds): Return failure if
1111 the range type's bounds are not both defined and constant
1112 values.
1113 (get_array_bounds): Update comment. Remove undefined bound check.
1114
1115 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1118 the type::bounds method directly.
1119
1120 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1121
1122 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1123 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1124 are used to set the range type's bounds to use set_bounds.
1125
1126 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1127
1128 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1129
1130 2020-07-10 Pedro Alves <pedro@palves.net>
1131
1132 * gdbthread.h (inferior_ref): Define.
1133 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1134 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1135 * thread.c
1136 (scoped_restore_current_thread::restore):
1137 Adjust to gdb::ref_ptr.
1138 (scoped_restore_current_thread::~scoped_restore_current_thread):
1139 Remove manual decref handling.
1140 (scoped_restore_current_thread::scoped_restore_current_thread):
1141 Adjust to use
1142 inferior_ref::new_reference/thread_info_ref::new_reference.
1143 Incref the thread before calling get_frame_id instead of after.
1144 Let TARGET_CLOSE_ERROR propagate.
1145
1146 2020-07-10 Pedro Alves <pedro@palves.net>
1147
1148 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1149 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1150 NOT_AVAILABLE_ERROR.
1151 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1152 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1153
1154 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1155 Pedro Alves <pedro@palves.net>
1156
1157 PR gdb/26199
1158 * infrun.c (threads_are_resumed_pending_p): Delete.
1159 (do_target_wait): Remove threads_are_executing and
1160 threads_are_resumed_pending_p checks from the inferior_matches
1161 lambda. Update comments.
1162
1163 2020-07-10 Pedro Alves <pedro@palves.net>
1164
1165 PR gdb/26199
1166 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1167 executing threads.
1168
1169 2020-07-10 Pedro Alves <pedro@palves.net>
1170
1171 PR gdb/26199
1172 * infrun.c (handle_no_resumed): Handle multiple targets.
1173
1174 2020-07-10 Pedro Alves <pedro@palves.net>
1175
1176 PR gdb/26199
1177 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1178 target_is_async_p.
1179
1180 2020-07-10 Pedro Alves <pedro@palves.net>
1181
1182 PR gdb/26199
1183 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1184 threads, not all threads.
1185
1186 2020-07-10 Pedro Alves <pedro@palves.net>
1187
1188 PR gdb/26199
1189 * remote.c (remote_target::open_1): Pass remote target pointer as
1190 data to create_async_event_handler.
1191 (remote_async_inferior_event_handler): Mark async event handler
1192 before returning if the remote target still has either pending
1193 events or unacknowledged notifications.
1194
1195 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1196
1197 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1198 declaration.
1199 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1200 function.
1201
1202 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1203
1204 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1205 inferior_ptid.
1206
1207 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1208
1209 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1210 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1211 AT_FREEBSD_PS_STRINGS.
1212
1213 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1214
1215 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1216 of debugfile path on Windows.
1217
1218 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1219
1220 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1221 argument to 'data'.
1222
1223 2020-07-08 Tom Tromey <tromey@adacore.com>
1224
1225 * ada-lang.c (ada_exception_message_1): Use read_memory.
1226
1227 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 PR python/22748
1230 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1231 special handling for inline frames.
1232 * findvar.c (value_of_register_lazy): Skip inline frames when
1233 creating lazy register values.
1234 * frame.c (frame_id_computed_p): Delete definition.
1235 * frame.h (frame_id_computed_p): Delete declaration.
1236
1237 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * NEWS: Mention additions to Python API.
1240 * python/py-arch.c (archpy_register_groups): New function.
1241 (arch_object_methods): Add 'register_groups' method.
1242 * python/py-registers.c (reggroup_iterator_object): New struct.
1243 (reggroup_object): New struct.
1244 (gdbpy_new_reggroup): New function.
1245 (gdbpy_reggroup_to_string): New function.
1246 (gdbpy_reggroup_name): New function.
1247 (gdbpy_reggroup_iter): New function.
1248 (gdbpy_reggroup_iter_next): New function.
1249 (gdbpy_new_reggroup_iterator): New function
1250 (gdbpy_initialize_registers): Register new types.
1251 (reggroup_iterator_object_type): Define new Python type.
1252 (gdbpy_reggroup_getset): New static global.
1253 (reggroup_object_type): Define new Python type.
1254 * python/python-internal.h
1255
1256 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1257
1258 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1259 * python/py-arch.c (archpy_registers): New function.
1260 (arch_object_methods): Add 'registers' method.
1261 * python/py-registers.c: New file.
1262 * python/python-internal.h
1263 (gdbpy_new_register_descriptor_iterator): Declare.
1264 (gdbpy_initialize_registers): Declare.
1265 * python/python.c (do_start_initialization): Call
1266 gdbpy_initialize_registers.
1267 * NEWS: Mention additions to the Python API.
1268
1269 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * NEWS: Mention new Python API method.
1272 * python/py-unwind.c (pending_framepy_architecture): New function.
1273 (pending_frame_object_methods): Add architecture method.
1274
1275 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * gdbarch.c: Regenerate.
1278 * gdbarch.h: Regenerate.
1279 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1280 (gdbarch_data): Use internal_error for the case where
1281 deprecated_set_gdbarch_data was originally needed.
1282 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1283 and use passed in obstack.
1284 (libunwind_frame_set_descr): Should no longer get back NULL from
1285 gdbarch_data.
1286 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1287 type.
1288 * user-regs.c (user_regs_init): Update parameters, and use passed
1289 in obstack.
1290 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1291 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1292
1293 2020-07-06 Tom de Vries <tdevries@suse.de>
1294
1295 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1296 End-Of-Sequence in lte_is_less_than.
1297 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1298 "gdb: Don't reorder line table entries too much when sorting".
1299
1300 2020-07-06 Tom de Vries <tdevries@suse.de>
1301
1302 PR tui/26205
1303 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1304
1305 2020-07-05 Tom de Vries <tdevries@suse.de>
1306
1307 PR build/26187
1308 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1309 std::uncaught_exceptions instead of deprecated
1310 std::uncaught_exception.
1311
1312 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1313
1314 * macroexp.h (macro_stringify): Return
1315 gdb::unique_xmalloc_ptr<char>.
1316 * macroexp.c (macro_stringify): Likewise.
1317 * macrotab.c (fixup_definition): Update.
1318
1319 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1320
1321 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1322 (lex_one_token): Update.
1323 * macroexp.c (struct macro_buffer) <release>: Return
1324 gdb::unique_xmalloc_ptr<char>.
1325 (macro_stringify): Update.
1326 (macro_expand): Update.
1327 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1328 * macroexp.h (macro_expand_next): Likewise.
1329
1330 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * macroexp.h (macro_lookup_ftype): Remove.
1333 (macro_expand, macro_expand_once, macro_expand_next): Remove
1334 lookup function parameters, add scope parameter.
1335 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1336 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1337 * macroscope.h (standard_macro_lookup): Change parameter type
1338 to macro_scope.
1339 * macroscope.c (standard_macro_lookup): Likewise.
1340 * c-exp.y (lex_one_token): Update.
1341 * macrocmd.c (macro_expand_command): Likewise.
1342 (macro_expand_once_command): Likewise.
1343
1344 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1345
1346 * inf-loop.c (inferior_event_handler): Remove client_data param.
1347 * inf-loop.h (inferior_event_handler): Likewise.
1348 * infcmd.c (step_1): Adjust.
1349 * infrun.c (proceed): Adjust.
1350 (fetch_inferior_event): Remove client_data param.
1351 (infrun_async_inferior_event_handler): Adjust.
1352 * infrun.h (fetch_inferior_event): Remove `void *` param.
1353 * linux-nat.c (handle_target_event): Adjust.
1354 * record-btrace.c (record_btrace_handle_async_inferior_event):
1355 Adjust.
1356 * record-full.c (record_full_async_inferior_event_handler):
1357 Adjust.
1358 * remote.c (remote_async_inferior_event_handler): Adjust.
1359
1360 2020-07-01 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1363 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1364
1365 2020-07-01 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1368 tui_gen_win_info.
1369 (tui_win_info::make_window): Merge with
1370 tui_gen_win_info::make_window.
1371 (tui_win_info::make_visible): Move from tui_gen_win_info.
1372 * tui/tui-win.c (tui_win_info::max_width): Move from
1373 tui_gen_win_info.
1374 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1375 type.
1376 <window_factory>: Likewise.
1377 * tui/tui-layout.c (tui_win_info::resize): Move from
1378 tui_gen_win_info.
1379 (make_standard_window): Change return type.
1380 (get_locator_window, tui_get_window_by_name): Likewise.
1381 (tui_layout_window::apply): Remove a cast.
1382 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1383 (struct tui_win_info): Merge with tui_gen_win_info.
1384 (struct tui_gen_win_info): Remove.
1385
1386 2020-07-01 Tom Tromey <tom@tromey.com>
1387
1388 * tui/tui-stack.h (struct tui_locator_window): Derive from
1389 tui_win_info.
1390 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1391 <can_box>: New method.
1392
1393 2020-07-01 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1396
1397 2020-07-01 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-regs.c (tui_data_window::display_registers_from)
1400 (tui_data_window::display_registers_from)
1401 (tui_data_window::first_data_item_displayed)
1402 (tui_data_window::delete_data_content_windows): Update.
1403 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1404 Remove.
1405 (tui_data_window::check_register_values): Update.
1406 (tui_data_item_window::rerender): Add parameters. Update.
1407 (tui_data_item_window::refresh_window): Remove.
1408 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1409 virtual.
1410 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1411 tui_gen_win_info.
1412 <refresh_window, max_height, min_height>: Remove.
1413 <rerender>: Add parameters.
1414 <x, y, visible>: New members.
1415 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1416 <m_item_width>: New member.
1417
1418 2020-07-01 Tom Tromey <tom@tromey.com>
1419
1420 * tui/tui-regs.c (tui_data_window::show_register_group)
1421 (tui_data_window::check_register_values): Update.
1422 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1423 from item_no.
1424
1425 2020-07-01 Tom Tromey <tom@tromey.com>
1426
1427 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1428 useless "if".
1429
1430 2020-07-01 Tom Tromey <tom@tromey.com>
1431
1432 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1433 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1434
1435 2020-07-01 Tom Tromey <tom@tromey.com>
1436
1437 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1438 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1439 (struct tui_line_or_address): Move from tui-data.h.
1440 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1441 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1442 (tui_cmd_window, tui_source_window_base, tui_source_window)
1443 (tui_disasm_window): Don't declare.
1444 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1445 to tui-winsource.h.
1446 (SINGLE_KEY): Move to tui-stack.c.
1447
1448 2020-07-01 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1451 std::string.
1452 * tui/tui-regs.c (class tab_expansion_file): New.
1453 (tab_expansion_file::write): New method.
1454 (tui_register_format): Change return type. Use
1455 tab_expansion_file.
1456 (tui_get_register, tui_data_window::display_registers_from)
1457 (tui_data_item_window::rerender): Update.
1458 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1459 * tui/tui-io.c (tui_expand_tabs): Remove.
1460
1461 2020-07-01 Tom Tromey <tom@tromey.com>
1462
1463 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1464
1465 2020-07-01 Fangrui Song <maskray@google.com>
1466
1467 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1468
1469 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1470
1471 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1472 forms for DW_AT_associated and DW_AT_allocated attributes,
1473 which is already checked in function attr_to_dynamic_prop.
1474
1475 2020-06-30 Tom Tromey <tromey@adacore.com>
1476
1477 * dwarf2/read.c (quirk_rust_enum): Correctly call
1478 alloc_rust_variant for default-less enum.
1479
1480 2020-06-30 Tom Tromey <tromey@adacore.com>
1481
1482 PR build/26183:
1483 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1484 gdb::to_string.
1485
1486 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1487
1488 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1489 * gdbarch.h: Re-generate.
1490
1491 2020-06-28 Tom Tromey <tom@tromey.com>
1492
1493 * command.h (cmd_types): Remove.
1494 (cmd_type): Don't declare.
1495 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1496 typedef.
1497 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1498 * cli/cli-decode.c (cmd_type): Remove.
1499
1500 2020-06-27 Pedro Alves <palves@redhat.com>
1501
1502 * fork-child.c (prefork_hook): Adjust.
1503 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1504 Delete.
1505 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1506 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1507 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1508 Remove declarations.
1509 (struct inferior) <set_tty, tty>: New methods.
1510 (struct inferior) <terminal>: Rename to ...
1511 (struct inferior) <m_terminal>: ... this and make private.
1512 * main.c (captured_main_1): Adjust.
1513 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1514 (mi_cmd_inferior_tty_show): Adjust.
1515 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1516 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1517
1518 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1519
1520 * configure.ac: Add --enable-libctf: handle --disable-static
1521 properly.
1522 * acinclude.m4: sinclude ../config/enable.m4.
1523 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1524 (LIBCTF): Substitute in.
1525 (CTF_DEPS): New, likewise.
1526 (CLIBS): libctf needs symbols from libbfd: move earlier.
1527 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1528 flags.
1529 * ctfread.c: Surround in ENABLE_LIBCTF.
1530 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1531 * configure: Regenerate.
1532 * config.in: Likewise.
1533
1534 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1535
1536 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1537
1538 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * inferior.h (struct inferior) <terminal>: Change type to
1541 gdb::unique_xmalloc_ptr<char>.
1542 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1543 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1544 field, adjust to unique pointer.
1545 (get_inferior_io_terminal): Adjust to unique pointer.
1546
1547 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1550 registers, not just the known core set of registers.
1551
1552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1555 fflags, frm, and fcsr registers.
1556 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1557 restore groups.
1558 (riscv_tdesc_unknown_reg): New function.
1559 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1560 tdesc_use_registers.
1561 * riscv-tdep.h (struct gdbarch_tdep): Add
1562 unknown_csrs_first_regnum, unknown_csrs_count,
1563 duplicate_fflags_regnum, duplicate_frm_regnum, and
1564 duplicate_fcsr_regnum fields.
1565
1566 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1569 callback, use the callback (when not null) to help number unknown
1570 registers.
1571 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1572 (tdesc_use_registers): Add extra parameter to declaration.
1573
1574 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1577 in the file.
1578 (class riscv_pending_register_alias): Likewise.
1579 (riscv_register_feature::register_info): Change 'required_p' field
1580 to 'required', and change its type. Add 'check' member function.
1581 (riscv_register_feature::register_info::check): Define new member
1582 function.
1583 (riscv_xreg_feature): Change initialisation of 'required' field.
1584 (riscv_freg_feature): Likewise.
1585 (riscv_virtual_feature): Likewise.
1586 (riscv_csr_feature): Likewise.
1587 (riscv_check_tdesc_feature): Take extra parameter, the csr
1588 tdesc_feature, rewrite the function to use the new
1589 riscv_register_feature::register_info::check function.
1590 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1591
1592 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * features/Makefile: Remove all references to the deleted files
1595 below.
1596 * features/riscv/32bit-csr.c: Deleted.
1597 * features/riscv/32bit-csr.xml: Deleted.
1598 * features/riscv/64bit-csr.c: Deleted.
1599 * features/riscv/64bit-csr.xml: Deleted.
1600 * features/riscv/rebuild-csr-xml.sh: Deleted.
1601
1602 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1605 whitespace error for declaration of names member variable.
1606 (struct riscv_register_feature): Add new prefer_first_name member
1607 variable, and fix whitespace error in declaration of registers.
1608 (riscv_xreg_feature): Initialize prefer_first_name field.
1609 (riscv_freg_feature): Likewise.
1610 (riscv_virtual_feature): Likewise.
1611 (riscv_csr_feature): Likewise.
1612 (riscv_register_name): Expand on comments. Remove register name
1613 modifications for CSR and virtual registers.
1614
1615 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1618 errors.
1619
1620 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1621
1622 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1623 riscv-opc.h.
1624 (class riscv_pending_register_alias): New class.
1625 (riscv_check_tdesc_feature): Take vector of pending aliases and
1626 populate it as appropriate.
1627 (riscv_setup_register_aliases): Delete.
1628 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1629 to riscv_check_tdesc_feature in all cases. Use the vector to
1630 create the register aliases.
1631
1632 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1633
1634 * sol2-tdep.c (sol2_static_transform_name): Remove.
1635 (sol2_init_abi): Don't register it.
1636 * gdbarch.sh (static_transform_name): Remove.
1637 * gdbarch.c, gdbarch.h: Regenerate.
1638
1639 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1640 gdbarch_static_transform_name.
1641 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1642 * stabsread.c (define_symbol) <'X'>: Remove.
1643 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1644 handling.
1645 <'V'>: Likewise.
1646 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1647 <'S'>: Remove call to gdbarch_static_transform_name.
1648
1649 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1650
1651 * procfs.c (procfs_pre_trace): New function.
1652 (procfs_target::create_inferior): Pass it to fork_inferior.
1653
1654 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1655
1656 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1657 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1658 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1659 sol2-tdep.o, sparc-sol2-tdep.o.
1660 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1661 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1662 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1663 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1664
1665 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1666
1667 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1668 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1669 Call sol2_init_abi.
1670 Remove calls to set_gdbarch_skip_solib_resolver,
1671 set_gdbarch_core_pid_to_str.
1672 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1673 (i386_sol2_static_transform_name): Remove.
1674 (i386_sol2_init_abi): Call sol2_init_abi.
1675 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1676 set_gdbarch_static_transform_name,
1677 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1678 Use sol2_sigtramp_p.
1679 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1680 (sol2_sigtramp_p): New function.
1681 (sol2_static_transform_name): New function.
1682 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1683 (sol2_init_abi): New function.
1684 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1685 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1686 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1687 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1688 (sparc_sol2_static_transform_name): Remove.
1689 (sparc32_sol2_init_abi): Call sol2_init_abi.
1690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1691 set_gdbarch_static_transform_name,
1692 set_gdbarch_skip_solib_resolver,
1693 set_gdbarch_core_pid_to_str.
1694 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1695 (sparc_sol2_static_transform_name): Remove
1696 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1697 call sol2_sigtramp_p.
1698 (sparc64_sol2_init_abi): Call sol2_init_abi.
1699 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1700 set_gdbarch_static_transform_name,
1701 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1702
1703 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1704
1705 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1706 * exec.c (validate_exec_file): If from_tty, set both
1707 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1708 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1709 and from_tty, unconditionally ask a confirmation.
1710
1711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * target-descriptions.c (tdesc_architecture_name): Protect against
1714 NULL pointer dereference.
1715 (maint_print_xml_tdesc_cmd): New function.
1716 (_initialize_target_descriptions): Register new 'maint print
1717 xml-tdesc' command and give it the filename completer.
1718 * NEWS: Mention new 'maint print xml-tdesc' command.
1719
1720 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * target-descriptions.c (class tdesc_compatible_info): New class.
1723 (struct target_desc): Change type of compatible vector.
1724 (tdesc_compatible_p): Update for change in type of
1725 target_desc::compatible.
1726 (tdesc_compatible_info_list): New function.
1727 (tdesc_compatible_info_arch_name): New function.
1728 (tdesc_add_compatible): Update for change in type of
1729 target_desc::compatible.
1730 (print_c_tdesc::visit_pre): Likewise.
1731
1732 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1735 whitespace to underscore.
1736 (maint_print_c_tdesc_cmd): Use fake filename for target
1737 descriptions that came from the target.
1738 (_initialize_target_descriptions): Add filename command completion
1739 for 'maint print c-tdesc'.
1740
1741 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1744 lines.
1745
1746 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1747
1748 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1749 lines.
1750 (dwarf2_find_location_expression): Likewise.
1751 (call_site_parameter_matches): Likewise.
1752 (dwarf2_compile_expr_to_ax): Likewise.
1753 (disassemble_dwarf_expression): Likewise.
1754 (loclist_describe_location): Likewise.
1755
1756 2020-06-23 Pedro Alves <palves@redhat.com>
1757
1758 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1759 progspace-and-thread.h. Include scoped-mock-context.h instead.
1760 (register_to_value_test): Use scoped_mock_context.
1761 * regcache.c: Include "scoped-mock-context.h".
1762 (cooked_read_test): Don't error out if a target is already pushed.
1763 Use scoped_mock_context. Adjust.
1764 * scoped-mock-context.h: New file.
1765
1766 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1769 initializer.
1770 (ada_language::is_string_type_p): New member function.
1771 * c-lang.c (c_language_data): Delete la_is_string_type_p
1772 initializer.
1773 (cplus_language_data): Likewise.
1774 (asm_language_data): Likewise.
1775 (minimal_language_data): Likewise.
1776 * d-lang.c (d_language_data): Likewise.
1777 * f-lang.c (f_is_string_type_p): Delete function, implementation
1778 moved to f_language::is_string_type_p.
1779 (f_language_data): Delete la_is_string_type_p initializer.
1780 (f_language::is_string_type_p): New member function,
1781 implementation from f_is_string_type_p.
1782 * go-lang.c (go_is_string_type_p): Delete function, implementation
1783 moved to go_language::is_string_type_p.
1784 (go_language_data): Delete la_is_string_type_p initializer.
1785 (go_language::is_string_type_p): New member function,
1786 implementation from go_is_string_type_p.
1787 * language.c (language_defn::is_string_type_p): Define new member
1788 function.
1789 (default_is_string_type_p): Make static, add comment copied from
1790 header file.
1791 (unknown_language_data): Delete la_is_string_type_p initializer.
1792 (unknown_language::is_string_type_p): New member function.
1793 (auto_language_data): Delete la_is_string_type_p initializer.
1794 (auto_language::is_string_type_p): New member function.
1795 * language.h (language_data): Delete la_is_string_type_p field.
1796 (language_defn::is_string_type_p): Declare new function.
1797 (default_is_string_type_p): Delete desclaration, move comment to
1798 definition.
1799 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1800 moved to m2_language::is_string_type_p.
1801 (m2_language_data): Delete la_is_string_type_p initializer.
1802 (m2_language::is_string_type_p): New member function,
1803 implementation from m2_is_string_type_p.
1804 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1805 initializer.
1806 * opencl-lang.c (opencl_language_data): Likewise.
1807 * p-lang.c (pascal_is_string_type_p): Delete function,
1808 implementation moved to pascal_language::is_string_type_p.
1809 (pascal_language_data): Delete la_is_string_type_p initializer.
1810 (pascal_language::is_string_type_p): New member function,
1811 implementation from pascal_is_string_type_p.
1812 * rust-lang.c (rust_is_string_type_p): Delete function,
1813 implementation moved to rust_language::is_string_type_p.
1814 (rust_language_data): Delete la_is_string_type_p initializer.
1815 (rust_language::is_string_type_p): New member function,
1816 implementation from rust_is_string_type_p.
1817 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1818 is_string_type_p.
1819
1820 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * ada-lang.c (ada_language_data): Delete la_print_typedef
1823 initializer.
1824 (ada_language::print_typedef): New member function.
1825 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1826 (cplus_language_data): Likewise.
1827 (asm_language_data): Likewise.
1828 (minimal_language_data): Likewise.
1829 * d-lang.c (d_language_data): Likewise.
1830 * f-lang.c (f_language_data): Likewise.
1831 (f_language::print_typedef): New member function.
1832 * go-lang.c (go_language_data): Delete la_print_typedef
1833 initializer.
1834 * language.c (language_defn::print_typedef): Define member
1835 function.
1836 (unknown_language_data): Delete la_print_typedef initializer.
1837 (unknown_language::print_typedef): New member function.
1838 (auto_language_data): Delete la_print_typedef initializer.
1839 (auto_language::print_typedef): New member function.
1840 * language.h (language_data): Delete la_print_typedef field.
1841 (language_defn::print_typedef): Declare new member function.
1842 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1843 (default_print_typedef): Delete declaration.
1844 * m2-lang.c (m2_language_data): Delete la_print_typedef
1845 initializer.
1846 (m2_language::print_typedef): New member function.
1847 * objc-lang.c (objc_language_data): Delete la_print_typedef
1848 initializer.
1849 * opencl-lang.c (opencl_language_data): Likewise.
1850 * p-lang.c (pascal_language_data): Likewise.
1851 (pascal_language::print_typedef): New member function.
1852 * rust-lang.c (rust_print_typedef): Delete function,
1853 implementation moved to rust_language::print_typedef.
1854 (rust_language): Delete la_print_typedef initializer.
1855 (rust_language::print_typedef): New member function,
1856 implementation from rust_print_typedef.
1857 * typeprint.c (default_print_typedef): Delete.
1858
1859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1862 (ada_language::printstr): New member function.
1863 * c-lang.c (c_language_data): Delete la_printstr initializer.
1864 (cplus_language_data): Likewise.
1865 (asm_language_data): Likewise.
1866 (minimal_language_data): Likewise.
1867 * d-lang.c (d_language_data): Likewise.
1868 * f-lang.c (f_printstr): Rename to f_language::printstr.
1869 (f_language_data): Delete la_printstr initializer.
1870 (f_language::printstr): New member function, implementation from
1871 f_printstr.
1872 * go-lang.c (go_language_data): Delete la_printstr initializer.
1873 * language.c (language_defn::printstr): Define new member
1874 function.
1875 (unk_lang_printstr): Delete.
1876 (unknown_language_data): Delete la_printstr initializer.
1877 (unknown_language::printstr): New member function.
1878 (auto_language_data): Delete la_printstr initializer.
1879 (auto_language::printstr): New member function.
1880 * language.h (language_data): Delete la_printstr field.
1881 (language_defn::printstr): Declare new member function.
1882 (LA_PRINT_STRING): Update call to printstr.
1883 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1884 (m2_language_data): Delete la_printstr initializer.
1885 (m2_language::printstr): New member function, implementation from
1886 m2_printstr.
1887 * objc-lang.c (objc_language_data): Delete la_printstr
1888 initializer.
1889 * opencl-lang.c (opencl_language_data): Likewise.
1890 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1891 (pascal_language_data): Delete la_printstr initializer.
1892 (pascal_language::printstr): New member function, implementation
1893 from pascal_printstr.
1894 * p-lang.h (pascal_printstr): Delete declaration.
1895 * rust-lang.c (rust_printstr): Update header comment.
1896 (rust_language_data): Delete la_printstr initializer.
1897 (rust_language::printstr): New member function.
1898
1899 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1902 (ada_language::printchar): New member function.
1903 * c-lang.c (c_language_data): Delete la_printchar initializer.
1904 (cplus_language_data): Likewise.
1905 (asm_language_data): Likewise.
1906 (minimal_language_data): Likewise.
1907 * d-lang.c (d_language_data): Likewise.
1908 * f-lang.c (f_printchar): Rename to f_language::printchar.
1909 (f_language_data): Delete la_printchar initializer.
1910 (f_language::printchar): New member function, implementation from
1911 f_printchar.
1912 * go-lang.c (go_language_data): Delete la_printchar initializer.
1913 * language.c (unk_lang_printchar): Delete.
1914 (language_defn::printchar): Define new member function.
1915 (unknown_language_data): Delete la_printchar initializer.
1916 (unknown_language::printchar): New member function.
1917 (auto_language_data): Delete la_printchar initializer.
1918 (auto_language::printchar): New member function.
1919 * language.h (language_data): Delete la_printchar field.
1920 (language_defn::printchar): Declare new member function.
1921 (LA_PRINT_CHAR): Update call to printchar.
1922 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1923 (m2_language::printchar): New member function.
1924 * objc-lang.c (objc_language_data): Delete la_printchar
1925 initializer.
1926 * opencl-lang.c (opencl_language_data): Likewise.
1927 * p-lang.c (pascal_language_data): Delete la_printchar
1928 initializer.
1929 (pascal_language::printchar): New member function.
1930 * rust-lang.c (rust_printchar): Rename to
1931 rust_language::printchar.
1932 (rust_language_data): Delete la_printchar initializer.
1933 (rust_language::printchar): New member function, implementation
1934 from rust_printchar.
1935
1936 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1939 (ada_language_data): Delete la_emitchar initializer.
1940 (ada_language::emitchar): New member function, implementation from
1941 emit_char.
1942 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1943 (cplus_language_data): Likewise.
1944 (asm_language_data): Likewise.
1945 (minimal_language_data): Likewise.
1946 * d-lang.c (d_language_data): Likewise.
1947 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1948 (f_language_data): Delete la_emitchar initializer.
1949 (f_language::emitchar): New member function, implementation from
1950 f_emit_char.
1951 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1952 * language.c (unk_lang_emit_char): Delete.
1953 (language_defn::emitchar): New member function definition.
1954 (unknown_language_data): Delete la_emitchar initializer.
1955 (unknown_language::emitchar): New member function.
1956 (auto_language_data): Delete la_emitchar initializer.
1957 (auto_language::emitchar): New member function.
1958 * language.h (language_data): Delete la_emitchar field.
1959 (language_defn::emitchar): New member field declaration.
1960 (LA_EMIT_CHAR): Update call to emitchar.
1961 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1962 (m2_language_data): Delete la_emitchar initializer.
1963 (m2_language::emitchar): New member function, implementation from
1964 m2_emit_char.
1965 * objc-lang.c (objc_language_data): Delete la_emitchar
1966 initializer.
1967 * opencl-lang.c (opencl_language_data): Likewise.
1968 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1969 (pascal_language_data): Delete la_emitchar initializer.
1970 (pascal_language::emitchar): New member function, implementation
1971 from pascal_emit_char.
1972 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1973 (rust_language_data): Delete la_emitchar initializer.
1974 (rust_language::emitchar): New member function, implementation
1975 from rust_emitchar.
1976
1977 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1980 (ada_language_data): Delete la_post_parser initializer.
1981 (ada_language::post_parser): New member function.
1982 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1983 (cplus_language_data): Likewise.
1984 (asm_language_data): Likewise.
1985 (minimal_language_data): Likewise.
1986 * d-lang.c (d_language_data): Likewise.
1987 * f-lang.c (f_language_data): Likewise.
1988 * go-lang.c (go_language_data): Likewise.
1989 * language.c (unknown_language_data): Likewise.
1990 (auto_language_data): Likewise.
1991 * language.h (language_data): Delete la_post_parser field.
1992 (language_defn::post_parser): New member function.
1993 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1994 * objc-lang.c (objc_language_data): Likewise.
1995 * opencl-lang.c (opencl_language_data): Likewise.
1996 * p-lang.c (pascal_language_data): Likewise.
1997 * parse.c (parse_exp_in_context): Update call to post_parser.
1998 (null_post_parser): Delete definition.
1999 * parser-defs.h (null_post_parser): Delete declaration.
2000 * rust-lang.c (rust_language_data): Delete la_post_parser
2001 initializer.
2002
2003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * ada-lang.c (parse): Rename to ada_language::parser.
2006 (ada_language_data): Delete la_parser initializer.
2007 (ada_language::parser): New member function, implementation from
2008 parse.
2009 * c-lang.c (c_language_data): Delete la_parser initializer.
2010 (cplus_language_data): Likewise.
2011 (asm_language_data): Likewise.
2012 (minimal_language_data): Likewise.
2013 * d-lang.c (d_language_data): Likewise.
2014 (d_language::parser): New member function.
2015 * f-lang.c (f_language_data): Delete la_parser initializer.
2016 (f_language::parser): New member function.
2017 * go-lang.c (go_language_data): Delete la_parser initializer.
2018 (go_language::parser): New member function.
2019 * language.c (unk_lang_parser): Delete.
2020 (language_defn::parser): Define new member function.
2021 (unknown_language_data): Delete la_parser initializer.
2022 (unknown_language::parser): New member function.
2023 (auto_language_data): Delete la_parser initializer.
2024 (auto_language::parser): New member function.
2025 * language.h (language_data): Delete la_parser field.
2026 (language_defn::parser): Declare new member function.
2027 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2028 (m2_language::parser): New member function.
2029 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2030 * opencl-lang.c (opencl_language_data): Likewise.
2031 * p-lang.c (pascal_language_data): Likewise.
2032 (pascal_language::parser): New member function.
2033 * parse.c (parse_exp_in_context): Update call to parser.
2034 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2035 (rust_language::parser): New member function.
2036
2037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * top.c (print_gdb_configuration): Print --with-python-libdir
2040 configuration value.
2041
2042 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2043
2044 * NEWS: Mention change to the alias command.
2045
2046 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2047
2048 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2049 (alias_command_completer)
2050 (make_alias_options_def_group): New functions.
2051 (alias_opts, alias_option_defs): New struct and array.
2052 (alias_usage_error): Update usage.
2053 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2054 Use option framework.
2055 (_initialize_cli_cmds): Update alias command help.
2056 Update aliases command help.
2057 (show_user):
2058 Add NULL for new default_args lookup_cmd argument.
2059 (valid_command_p): Rename to validate_aliased_command.
2060 Add NULL for new default_args lookup_cmd argument. Verify that the
2061 aliased_command has no default args.
2062 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2063 (lookup_cmd_1, lookup_cmd): New argument default_args.
2064 (add_alias_cmd):
2065 Add NULL for new default_args lookup_cmd argument.
2066 (print_help_for_command): Show default args under the layout
2067 alias some_alias = some_aliased_cmd some_alias_default_arg.
2068 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2069 xfree default_args in destructor.
2070 * cli/cli-script.c (process_next_line, do_define_command):
2071 Add NULL for new default_args lookup_cmd argument.
2072 * command.h: Declare new default_args argument in lookup_cmd
2073 and lookup_cmd_1.
2074 * completer.c (complete_line_internal_1):
2075 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2076 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2077 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2078 Likewise.
2079 * infcmd.c (_initialize_infcmd): Likewise.
2080 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2081 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2082 * python/py-param.c (add_setshow_generic): Likewise.
2083 * remote.c (_initialize_remote): Likewise.
2084 * top.c (execute_command): Prepend default_args if command has some.
2085 (set_verbose):
2086 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2087 * tracepoint.c (validate_actionline, encode_actions_1):
2088 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2089
2090 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2091
2092 * jit.c (jit_read_descriptor): Use bool as the return type.
2093 (jit_breakpoint_re_set_internal): Use bool as the return type.
2094 Invert the return value logic; return true if the jit breakpoint
2095 has been successfully initialized.
2096 (jit_inferior_init): Update the call to
2097 jit_breakpoint_re_set_internal.
2098
2099 2020-06-22 Pedro Alves <palves@redhat.com>
2100
2101 PR gdb/25939
2102 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2103 Use the current inferior instead. Don't return
2104 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2105 wait again.
2106 * sol-thread.c (sol_thread_target::wait): Don't reference
2107 inferior_ptid.
2108 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2109 (sol_update_thread_list_callback): Use the current inferior's pid
2110 instead of inferior_ptid.
2111
2112 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2113
2114 * procfs.c: Cleanup many comments.
2115
2116 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2117 (AFTER_WATCHFLAG): Replace by value.
2118
2119 (MAIN_PROC_NAME_FORMAT): Inline ...
2120 (create_procinfo): ... here.
2121
2122 (procfs_debug_inferior): Remove SYS_exec handling.
2123 (syscall_is_exec): Likewise.
2124 (procfs_set_exec_trap): Likewise.
2125
2126 (syscall_is_lwp_exit): Inline in callers.
2127 (syscall_is_exit): Likewise.
2128 (syscall_is_exec): Likewise.
2129 (syscall_is_lwp_create): Likewise.
2130
2131 (invalidate_cache): Remove #if 0 code.
2132
2133 (make_signal_thread_runnable): Remove.
2134 (procfs_target::resume): Remove #if 0 code.
2135
2136 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2137
2138 PR gdb/25939
2139 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2140 call ...
2141 (procfs_target::create_inferior): ... here.
2142
2143 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2144
2145 * exec.c (validate_exec_file): Ensure the build-id is up to
2146 date by calling reopen_exec_file (that checks file timestamp
2147 to decide to re-read the file).
2148
2149 2020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 PR gdb/25412
2152 * gdbthread.h (delete_thread, delete_thread_silent)
2153 (find_thread_ptid): Update comments.
2154 * thread.c (current_thread_): New global.
2155 (is_current_thread): Move higher, and reimplement.
2156 (inferior_thread): Reimplement.
2157 (set_thread_exited): Use bool. Add assertions.
2158 (add_thread_silent): Simplify thread-reuse handling by always
2159 calling delete_thread.
2160 (delete_thread): Remove intro comment.
2161 (find_thread_ptid): Skip exited threads.
2162 (switch_to_thread_no_regs): Write to current_thread_.
2163 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2164 INFERIOR_PTID. Clear current_thread_.
2165
2166 2020-06-18 Pedro Alves <palves@redhat.com>
2167
2168 * aix-thread.c (pd_update): Use switch_to_thread.
2169
2170 2020-06-18 Pedro Alves <palves@redhat.com>
2171
2172 * ravenscar-thread.c (ravenscar_thread_target): Update.
2173 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2174 (ravenscar_thread_target::add_active_thread): ... this. Don't
2175 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2176 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2177
2178 2020-06-18 Pedro Alves <palves@redhat.com>
2179
2180 * nat/windows-nat.c (current_windows_thread): Remove.
2181 * nat/windows-nat.h (current_windows_thread): Remove.
2182 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2183 Adjust.
2184 (display_selectors): Adjust to fetch the current
2185 windows_thread_info based on inferior_ptid.
2186 (fake_create_process): No longer write to current_windows_thread.
2187 (windows_nat_target::get_windows_debug_event):
2188 Don't set inferior_ptid or current_windows_thread.
2189 (windows_nat_target::wait): Adjust to not rely on
2190 current_windows_thread.
2191 (do_initial_windows_stuff): Now a method of windows_nat_target.
2192 Switch to the last_ptid thread.
2193 (windows_nat_target::attach): Adjust.
2194 (windows_nat_target::detach): Use switch_to_no_thread instead of
2195 writing to inferior_ptid directly.
2196 (windows_nat_target::create_inferior): Adjust.
2197
2198 2020-06-18 Pedro Alves <palves@redhat.com>
2199
2200 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2201
2202 2020-06-18 Pedro Alves <palves@redhat.com>
2203
2204 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2205 after creating it, instead of writing to inferior_ptid. Don't
2206 write to inferior_ptid.
2207
2208 2020-06-18 Pedro Alves <palves@redhat.com>
2209
2210 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2211
2212 2020-06-18 Pedro Alves <palves@redhat.com>
2213
2214 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2215 it, instead of writing to inferior_ptid.
2216
2217 2020-06-18 Pedro Alves <palves@redhat.com>
2218
2219 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2220 to inferior_ptid.
2221
2222 2020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2225 instead of writing to inferior_ptid directly.
2226
2227 2020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * corelow.c (core_target::close): Use switch_to_no_thread instead
2230 of writing to inferior_ptid directly.
2231 (add_to_thread_list, core_target_open): Use switch_to_thread
2232 instead of writing to inferior_ptid directly.
2233
2234 2020-06-18 Pedro Alves <palves@redhat.com>
2235
2236 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2237 inferior_ptid.
2238 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2239 inferior_ptid.
2240 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2241 inferior_ptid directly.
2242 (darwin_nat_target::init_thread_list): Switch to thread, instead
2243 of writing to inferior_ptid.
2244 (darwin_nat_target::attach): Don't write to inferior_ptid.
2245 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2246
2247 2020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2250 thread.
2251 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2252 Instead use switch_to_thread.
2253 (gnu_nat_target::detach): Use switch_to_no_thread
2254 instead of writing to inferior_ptid directly. Used passed-in
2255 inferior instead of looking up the inferior by pid.
2256
2257 2020-06-18 Pedro Alves <palves@redhat.com>
2258
2259 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2260 inferior_ptid.
2261
2262 2020-06-18 Pedro Alves <palves@redhat.com>
2263
2264 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2265 inferior_ptid.
2266 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2267 thread.
2268 (nto_procfs_target::detach): Avoid referencing
2269 inferior_ptid. Use switch_to_no_thread instead of writing to
2270 inferior_ptid directly.
2271 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2272 instead of writing to inferior_ptid directly.
2273 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2274 to thread.
2275
2276 2020-06-18 Pedro Alves <palves@redhat.com>
2277
2278 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2279 after creating it, instead of writing to inferior_ptid.
2280 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2281 to inferior_ptid directly.
2282 (gdbsim_target::wait): Don't write to inferior_ptid.
2283
2284 2020-06-18 Pedro Alves <palves@redhat.com>
2285
2286 * remote.c (remote_target::remote_notice_new_inferior): Use
2287 switch_to_thread instead of writing to inferior_ptid directly.
2288 (remote_target::add_current_inferior_and_thread): Use
2289 switch_to_no_thread instead of writing to inferior_ptid directly.
2290 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2291 and switch_to_thread instead of using set_current_inferior or
2292 writing to inferior_ptid directly.
2293
2294 2020-06-18 Pedro Alves <palves@redhat.com>
2295
2296 * tracectf.c (ctf_target_open): Switch to added thread instead of
2297 writing to inferior_ptid directly.
2298 (ctf_target::close): Use switch_to_no_thread instead of writing to
2299 inferior_ptid directly.
2300
2301 2020-06-18 Pedro Alves <palves@redhat.com>
2302
2303 * tracefile-tfile.c (tfile_target_open): Don't write to
2304 inferior_ptid directly, instead switch to added thread.
2305 (tfile_target::close): Use switch_to_no_thread instead of writing
2306 to inferior_ptid directly.
2307
2308 2020-06-18 Pedro Alves <palves@redhat.com>
2309
2310 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2311 (procfs_target::detach): Use switch_to_no_thread
2312 instead of writing to inferior_ptid directly.
2313 (do_attach): Change return type to void. Switch to the added
2314 thread.
2315 (procfs_target::create_inferior): Switch to the added thread.
2316 (procfs_do_thread_registers): Don't write to inferior_ptid.
2317
2318 2020-06-18 Pedro Alves <palves@redhat.com>
2319
2320 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2321 of writing to inferior_ptid.
2322 (scoped_restore_exited_inferior): Delete.
2323 (handle_vfork_child_exec_or_exit): Simplify using
2324 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2325 instead of writing to inferior_ptid.
2326 (THREAD_STOPPED_BY): Delete.
2327 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2328 (thread_stopped_by_hw_breakpoint): Delete.
2329 (save_waitstatus): Use
2330 scoped_restore_current_thread+switch_to_thread, and call
2331 target_stopped_by_watchpoint instead of
2332 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2333 instead of thread_stopped_by_sw_breakpoint, and
2334 target_stopped_by_hw_breakpoint instead of
2335 thread_stopped_by_hw_breakpoint.
2336 (handle_inferior_event)
2337 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2338 inferior_ptid directly, nor
2339 set_current_inferior/set_current_program_space. Use
2340 switch_to_thread / switch_to_inferior_no_thread instead.
2341
2342 2020-06-18 Pedro Alves <palves@redhat.com>
2343
2344 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2345 instead of writing to inferior_ptid.
2346
2347 2020-06-18 Pedro Alves <palves@redhat.com>
2348
2349 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2350 added thread.
2351 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2352 to the added thread.
2353 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2354 instead of writing to inferior_ptid.
2355
2356 2020-06-18 Pedro Alves <palves@redhat.com>
2357
2358 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2359 (register_to_value_test): Mock a program_space too. Heap-allocate
2360 the address space. Don't write to inferior_ptid. Use
2361 switch_to_thread instead.
2362
2363 2020-06-18 Pedro Alves <palves@redhat.com>
2364
2365 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2366 Delete.
2367 (find_signalled_thread()): New, factored out from
2368 linux_make_corefile_notes and adjusted to handle exited threads.
2369 (linux_make_corefile_notes): Adjust to use the new
2370 find_signalled_thread.
2371
2372 2020-06-18 Pedro Alves <palves@redhat.com>
2373
2374 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2375 of saving/restoring inferior_ptid.
2376
2377 2020-06-17 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2380 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2381 declare.
2382 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2383
2384 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2387 of partial symtabs.
2388
2389 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * regformats/reg-arm.dat: Remove.
2392 * regformats/reg-bfin.dat: Remove.
2393 * regformats/reg-cris.dat: Remove.
2394 * regformats/reg-crisv32.dat: Remove.
2395 * regformats/reg-m32r.dat: Remove.
2396 * regformats/reg-tilegx.dat: Remove.
2397 * regformats/reg-tilegx32.dat: Remove.
2398
2399 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * features/Makefile (WHICH): Remove arm files.
2402 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2403 * regformats/arm/arm-with-neon.dat: Remove.
2404 * regformats/arm/arm-with-vfpv2.dat: Remove.
2405 * regformats/arm/arm-with-vfpv3.dat: Remove.
2406
2407 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2408
2409 * features/Makefile (XMLTOC): Remove rx.xml.
2410
2411 2020-06-17 Pedro Alves <palves@redhat.com>
2412
2413 * gdbthread.h (thread_control_state) <trap_expected> Update
2414 comments.
2415
2416 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2419 ada_language::lookup_symbol_nonlocal.
2420 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2421 (ada_language::lookup_symbol_nonlocal): New member function,
2422 implementation from ada_lookup_symbol_nonlocal.
2423 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2424 initializer.
2425 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2426 initializer.
2427 (cplus_language::lookup_symbol_nonlocal): New member function.
2428 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2429 (minimal_language_data) Likewise.
2430 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2431 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2432 initializer.
2433 (d_language::lookup_symbol_nonlocal): New member function.
2434 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2435 initializer.
2436 (f_language::lookup_symbol_nonlocal): New member function.
2437 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2438 initializer.
2439 * language.c (unknown_language_data): Likewise.
2440 (auto_language_data): Likewise.
2441 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2442 field.
2443 (language_defn::lookup_symbol_nonlocal): New member function.
2444 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2445 initializer.
2446 * objc-lang.c (objc_language_data): Likewise.
2447 * opencl-lang.c (opencl_language_data): Likewise.
2448 * p-lang.c (pascal_language_data): Likewise.
2449 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2450 rust_language::lookup_symbol_nonlocal.
2451 (rust_language_data): Delete la_lookup_symbol_nonlocal
2452 initializer.
2453 (rust_language::lookup_symbol_nonlocal): New member function,
2454 implementation from rust_lookup_symbol_nonlocal.
2455 * symtab.c (lookup_symbol_aux): Update call to
2456 lookup_symbol_nonlocal.
2457 (basic_lookup_symbol_nonlocal): Rename to...
2458 (language_defn::lookup_symbol_nonlocal): ...this, and update
2459 header comment. Remove language_defn parameter, and replace with
2460 uses of `this'.
2461 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2462
2463 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2466 initializer.
2467 (ada_language::value_print_inner): New member function.
2468 * c-lang.c (c_language_data): Delete la_value_print_inner
2469 initializer.
2470 (cplus_language_data): Likewise.
2471 (asm_language_data): Likewise.
2472 (minimal_language_data): Likewise.
2473 * d-lang.c (d_language_data): Likewise.
2474 (d_language::value_print_inner): New member function.
2475 * f-lang.c (f_language_data): Delete la_value_print_inner
2476 initializer.
2477 (f_language::value_print_inner): New member function.
2478 * f-lang.h (f_value_print_innner): Rename to...
2479 (f_value_print_inner): ...this (note spelling of 'inner').
2480 * f-valprint.c (f_value_print_innner): Rename to...
2481 (f_value_print_inner): ...this (note spelling of 'inner').
2482 * go-lang.c (go_language_data): Delete la_value_print_inner
2483 initializer.
2484 (go_language::value_print_inner): New member function.
2485 * language.c (language_defn::value_print_inner): Define new member
2486 function.
2487 (unk_lang_value_print_inner): Delete.
2488 (unknown_language_data): Delete la_value_print_inner initializer.
2489 (unknown_language::value_print_inner): New member function.
2490 (auto_language_data): Delete la_value_print_inner initializer.
2491 (auto_language::value_print_inner): New member function.
2492 * language.h (language_data): Delete la_value_print_inner field.
2493 (language_defn::value_print_inner): Delcare new member function.
2494 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2495 initializer.
2496 (m2_language::value_print_inner): New member function.
2497 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2498 initializer.
2499 * opencl-lang.c (opencl_language_data): Likewise.
2500 * p-lang.c (pascal_language_data): Likewise.
2501 (pascal_language::value_print_inner): New member function.
2502 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2503 initializer.
2504 (rust_language::value_print_inner): New member function.
2505 * valprint.c (do_val_print): Update call to value_print_inner.
2506
2507 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * ada-lang.c (ada_language_data): Delete la_value_print
2510 initializer.
2511 (ada_language::value_print): New member function.
2512 * c-lang.c (c_language_data): Delete la_value_print initializer.
2513 (cplus_language_data): Likewise.
2514 (asm_language_data): Likewise.
2515 (minimal_language_data): Likewise.
2516 * d-lang.c (d_language_data): Likewise.
2517 * f-lang.c (f_language_data): Likewise.
2518 * go-lang.c (go_language_data): Likewise.
2519 * language.c (unk_lang_value_print): Delete.
2520 (language_defn::value_print): Define new member function.
2521 (unknown_language_data): Delete la_value_print initializer.
2522 (unknown_language::value_print): New member function.
2523 (auto_language_data): Delete la_value_print initializer.
2524 (auto_language::value_print): New member function.
2525 * language.h (language_data): Delete la_value_print field.
2526 (language_defn::value_print): Declare new member function.
2527 (LA_VALUE_PRINT): Update call to value_print.
2528 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2529 * objc-lang.c (objc_language_data): Likewise.
2530 * opencl-lang.c (opencl_language_data): Likewise.
2531 * p-lang.c (pascal_language_data): Likewise.
2532 (pascal_language::value_print): New member function.
2533 * rust-lang.c (rust_language_data): Delete la_value_print
2534 initializer.
2535
2536 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * ada-lang.c (ada_watch_location_expression): Rename to
2539 ada_language::watch_location_expression.
2540 (ada_language_data): Delete la_watch_location_expression
2541 initializer.
2542 (ada_language::watch_location_expression): New member function,
2543 implementation from ada_watch_location_expression.
2544 * breakpoint.c (watch_command_1): Update call to
2545 watch_location_expression.
2546 * c-lang.c (c_watch_location_expression): Rename to
2547 language_defn::watch_location_expression.
2548 (c_language_data): Delete la_watch_location_expression
2549 initializer.
2550 (cplus_language_data): Likewise.
2551 (asm_language_data): Likewise.
2552 (minimal_language_data): Likewise.
2553 * c-lang.h (c_watch_location_expression): Delete declaration.
2554 * d-lang.c (d_language_data): Delete la_watch_location_expression
2555 initializer.
2556 * f-lang.c (f_language_data): Likewise.
2557 * go-lang.c (go_language_data): Likewise.
2558 * language.c (language_defn::watch_location_expression): Member
2559 function implementation from c_watch_location_expression.
2560 (unknown_language_data): Delete la_watch_location_expression
2561 initializer.
2562 (auto_language_data): Likewise.
2563 * language.h (language_data): Delete la_watch_location_expression
2564 field.
2565 (language_defn::watch_location_expression): Declare new member
2566 function.
2567 * m2-lang.c (m2_language_data): Delete
2568 la_watch_location_expression initializer.
2569 * objc-lang.c (objc_language_data): Likewise.
2570 * opencl-lang.c (opencl_language_data): Likewise.
2571 * p-lang.c (pascal_language_data): Likewise.
2572 * rust-lang.c (rust_watch_location_expression): Rename to
2573 rust_language::watch_location_expression.
2574 (rust_language_data): Delete la_watch_location_expression
2575 initializer.
2576 (rust_language::watch_location_expression): New member function,
2577 implementation from rust_watch_location_expression.
2578
2579 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2582 ada_language::collect_symbol_completion_matches.
2583 (ada_language_data): Delete la_collect_symbol_completion_matches
2584 initializer.
2585 (ada_language::collect_symbol_completion_matches): New member
2586 function, implementation from
2587 ada_collect_symbol_completion_matches.
2588 * c-lang.c (c_language_data): Delete
2589 la_collect_symbol_completion_matches initializer.
2590 (cplus_language_data): Likewise.
2591 (asm_language_data): Likewise.
2592 (minimal_language_data): Likewise.
2593 * d-lang.c (d_language_data): Likewise.
2594 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2595 f_language::collect_symbol_completion_matches.
2596 (f_language_data): Delete la_collect_symbol_completion_matches
2597 initializer.
2598 (f_language::collect_symbol_completion_matches) New member
2599 function, implementation from f_collect_symbol_completion_matches.
2600 * go-lang.c (go_language_data): Delete
2601 la_collect_symbol_completion_matches initializer.
2602 * language.c (unknown_language_data): Likewise.
2603 (auto_language_data): Likewise.
2604 * language.h (language_data): Delete
2605 la_collect_symbol_completion_matches field.
2606 (language_defn::collect_symbol_completion_matches): New member
2607 function.
2608 * m2-lang.c (m2_language_data): Delete
2609 la_collect_symbol_completion_matches initializer.
2610 * objc-lang.c (objc_language_data): Likewise.
2611 * opencl-lang.c (opencl_language_data): Likewise.
2612 * p-lang.c (pascal_language_data): Likewise.
2613 * rust-lang.c (rust_language_data): Likewise.
2614 * symtab.c (default_collect_symbol_completion_matches): Delete.
2615 (collect_symbol_completion_matches): Update call to
2616 collect_symbol_completion_matches.
2617 (collect_symbol_completion_matches_type): Likewise.
2618 * symtab.h (default_collect_symbol_completion_matches): Delete
2619 declaration.
2620
2621 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2624 (ada_language_data): Delete la_word_break_characters initializer.
2625 (ada_language::word_break_characters): New member function.
2626 * c-lang.c (c_language_data): Delete la_word_break_characters
2627 initializer.
2628 (cplus_language_data): Likewise.
2629 (asm_language_data): Likewise.
2630 (minimal_language_data): Likewise.
2631 * completer.c: Update global comment.
2632 (advance_to_expression_complete_word_point): Update call to
2633 word_break_characters.
2634 (complete_files_symbols): Likewise.
2635 (complete_line_internal_1): Likewise.
2636 (default_completer_handle_brkchars): Likewise.
2637 (skip_quoted_chars): Likewise.
2638 * d-lang.c (d_language_data): Delete la_word_break_characters
2639 initializer.
2640 * f-lang.c (f_word_break_characters): Delete.
2641 (f_language_data): Delete la_word_break_characters initializer.
2642 (f_language::word_break_characters): New member function.
2643 * go-lang.c (go_language_data): Delete la_word_break_characters
2644 initializer.
2645 * language.c (unknown_language_data): Likewise.
2646 (auto_language_data): Likewise.
2647 * language.h (default_word_break_characters): Move declaration to
2648 earlier in the file.
2649 (language_data): Delete la_word_break_characters field.
2650 (language_defn::word_break_characters): New member function.
2651 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2652 initializer.
2653 * objc-lang.c (objc_language_data): Likewise.
2654 * opencl-lang.c (opencl_language_data): Likewise.
2655 * p-lang.c (pascal_language_data): Likewise.
2656 * rust-lang.c (rust_language_data): Likewise.
2657
2658 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2661 (ada_language_data): Delete la_get_symbol_name_matcher
2662 initializer.
2663 (language_defn::get_symbol_name_matcher_inner): New member
2664 function.
2665 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2666 initializer.
2667 (cplus_language_data): Likewise.
2668 (cplus_language::get_symbol_name_matcher_inner): New member
2669 function.
2670 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2671 (minimal_language_data): Likewise.
2672 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2673 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2674 initializer.
2675 * dictionary.c (iter_match_first_hashed): Update call to
2676 get_symbol_name_matcher.
2677 (iter_match_next_hashed): Likewise.
2678 (iter_match_next_linear): Likewise.
2679 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2680 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2681 initializer.
2682 (f_language::get_symbol_name_matcher_inner): New member function.
2683 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2684 initializer.
2685 * language.c (default_symbol_name_matcher): Update header comment,
2686 make static.
2687 (language_defn::get_symbol_name_matcher): New definition.
2688 (language_defn::get_symbol_name_matcher_inner): Likewise.
2689 (get_symbol_name_matcher): Delete.
2690 (unknown_language_data): Delete la_get_symbol_name_matcher
2691 initializer.
2692 (auto_language_data): Likewise.
2693 * language.h (language_data): Delete la_get_symbol_name_matcher
2694 field.
2695 (language_defn::get_symbol_name_matcher): New member function.
2696 (language_defn::get_symbol_name_matcher_inner): Likewise.
2697 (default_symbol_name_matcher): Delete declaration.
2698 * linespec.c (find_methods): Update call to
2699 get_symbol_name_matcher.
2700 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2701 initializer.
2702 * minsyms.c (lookup_minimal_symbol): Update call to
2703 get_symbol_name_matcher.
2704 (iterate_over_minimal_symbols): Likewise.
2705 * objc-lang.c (objc_language_data): Delete
2706 la_get_symbol_name_matcher initializer.
2707 * opencl-lang.c (opencl_language_data): Likewise.
2708 * p-lang.c (pascal_language_data): Likewise.
2709 * psymtab.c (psymbol_name_matches): Update call to
2710 get_symbol_name_matcher.
2711 * rust-lang.c (rust_language_data): Delete
2712 la_get_symbol_name_matcher initializer.
2713 * symtab.c (symbol_matches_search_name): Update call to
2714 get_symbol_name_matcher.
2715 (compare_symbol_name): Likewise.
2716
2717 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * ada-lang.c (ada_language_data): Delete la_compute_program
2720 initializer.
2721 * c-lang.c (c_language_data): Likewise.
2722 (c_language::compute_program): New member function.
2723 (cplus_language_data): Delete la_compute_program initializer.
2724 (cplus_language::compute_program): New member function.
2725 (asm_language_data): Delete la_compute_program initializer.
2726 (minimal_language_data): Likewise.
2727 * c-lang.h (c_compute_program): Update comment.
2728 (cplus_compute_program): Likewise.
2729 * compile/compile-c-support.c (c_compute_program): Likewise.
2730 (cplus_compute_program): Likewise.
2731 * compile/compile.c (compile_to_object): Update call to
2732 la_compute_program.
2733 * d-lang.c (d_language_data): Delete la_compute_program
2734 initializer.
2735 * f-lang.c (f_language_data): Likewise.
2736 * go-lang.c (go_language_data): Likewise.
2737 * language.c (unknown_language_data): Likewise.
2738 (auto_language_data): Likewise.
2739 * language.h (language_data): Delete la_compute_program field.
2740 (language_defn::compute_program): New member function.
2741 * m2-lang.c (m2_language_data): Delete la_compute_program
2742 initializer.
2743 * objc-lang.c (objc_language_data): Likewise.
2744 * opencl-lang.c (opencl_language_data): Likewise.
2745 * p-lang.c (pascal_language_data): Likewise.
2746 * rust-lang.c (rust_language_data): Likewise.
2747
2748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 * ada-lang.c (ada_language_data) Delete
2751 la_class_name_from_physname initializer.
2752 * c-lang.c (c_language_data): Likewise.
2753 (cplus_language_data): Likewise.
2754 (cplus_language::class_name_from_physname): New member function.
2755 (asm_language_data): Delete la_class_name_from_physname
2756 initializer.
2757 (minimal_language_data): Likewise.
2758 * d-lang.c (d_language_data): Likewise.
2759 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2760 method on language_defn class.
2761 (guess_full_die_structure_name): Likewise.
2762 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2763 initializer.
2764 * go-lang.c (go_language_data): Likewise.
2765 * language.c (language_class_name_from_physname): Delete.
2766 (unk_lang_class_name): Delete.
2767 (unknown_language_data): Delete la_class_name_from_physname
2768 initializer.
2769 (auto_language_data): Likewise.
2770 * language.h (language_data): Delete la_class_name_from_physname
2771 field.
2772 (language_defn::class_name_from_physname): New function.
2773 (language_class_name_from_physname): Delete declaration.
2774 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2775 initializer.
2776 * objc-lang.c (objc_language_data): Likewise.
2777 * opencl-lang.c (opencl_language_data): Likewise.
2778 * p-lang.c (pascal_language_data): Likewise.
2779 * rust-lang.c (rust_language_data): Likewise.
2780
2781 2020-06-16 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-data.h (STATUS_NAME): New macro.
2784 * tui/tui-layout.c (tui_remove_some_windows)
2785 (initialize_known_windows, tui_register_window)
2786 (tui_layout_split::remove_windows, initialize_layouts)
2787 (tui_new_layout_command): Don't use hard-coded window names.
2788
2789 2020-06-16 Tom Tromey <tom@tromey.com>
2790
2791 PR tui/25348:
2792 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2793 tui_initialize_readline. Only run once. Call rl_initialize.
2794 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2795 tui_initialize_readline.
2796 * tui/tui-io.c (tui_setup_io): Call
2797 tui_ensure_readline_initialized.
2798 * tui/tui-interp.c (tui_interp::init): Update.
2799
2800 2020-06-16 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2803 Also preserve the status window.
2804
2805 2020-06-16 Tom Tromey <tom@tromey.com>
2806
2807 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2808 where m_window==nullptr.
2809
2810 2020-06-15 Tom Tromey <tromey@adacore.com>
2811
2812 * windows-nat.c (windows_nat::handle_output_debug_string):
2813 Update.
2814 (windows_nat::handle_ms_vc_exception): Update.
2815 * target.h (target_read_string): Change API.
2816 * target.c (target_read_string): Change API.
2817 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2818 Update.
2819 * solib-frv.c (frv_current_sos): Update.
2820 * solib-dsbt.c (dsbt_current_sos): Update.
2821 * solib-darwin.c (darwin_current_sos): Update.
2822 * linux-thread-db.c (inferior_has_bug): Update.
2823 * expprint.c (print_subexp_standard): Update.
2824 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2825 (ada_exception_message_1): Update.
2826
2827 2020-06-15 Tom Tromey <tromey@adacore.com>
2828
2829 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2830
2831 2020-06-15 Tom Tromey <tromey@adacore.com>
2832
2833 * valprint.c (read_string): Update comment.
2834 * target.c (MIN): Remove.
2835 (target_read_string): Rewrite.
2836
2837 2020-06-15 Tom Tromey <tromey@adacore.com>
2838
2839 * corefile.c (read_memory_string): Remove.
2840 * ada-valprint.c (ada_value_print_ptr): Update.
2841 * ada-lang.h (ada_tag_name): Change return type.
2842 * ada-lang.c (type_from_tag): Update.
2843 (ada_tag_name_from_tsd): Change return type. Use
2844 target_read_string.
2845 (ada_tag_name): Likewise.
2846 * gdbcore.h (read_memory_string): Don't declare.
2847
2848 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2849
2850 * symtab.c (rbreak_command): Ignore Windows drive colon.
2851
2852 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * NEWS: Mention removed GDBserver host support.
2855
2856 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2857
2858 * features/riscv/rebuild-csr-xml.sh: Updated.
2859
2860 2020-06-11 Tom Tromey <tom@tromey.com>
2861
2862 PR gdb/18318:
2863 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2864
2865 2020-06-09 Jonny Grant <jg@jguk.org>
2866 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2867
2868 * main.c (captured_main_1): Don't print new line after help.
2869 (print_gdb_help): add mailing list and IRC channel information
2870 to --help. Add new lines between items in the footer. Remove
2871 quotes around bug url.
2872
2873 2020-06-11 Keith Seitz <keiths@redhat.com>
2874
2875 PR gdb/21356
2876 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2877 Resolve typedefs for type length calculations.
2878
2879 2020-06-10 Tom de Vries <tdevries@suse.de>
2880
2881 PR ada/24713
2882 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2883 (write_psymbols): Enable .gdb_index for ada.
2884 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2885 ada.
2886
2887 2020-06-10 Tom de Vries <tdevries@suse.de>
2888
2889 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2890 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2891 namei" instead of "const char *name" argument.
2892 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2893 dw2_symtab_iter_init.
2894
2895 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2898 to use type::field and field::type instead.
2899
2900 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2903 to use field::type instead.
2904
2905 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbtypes.h (struct field) <type, set_type>: New methods.
2908 Rename `type` field to...
2909 <m_type>: ... this. Change references throughout to use type or
2910 set_type methods.
2911 (FIELD_TYPE): Use field::type. Change call sites that modify
2912 the field's type to use field::set_type instead.
2913
2914 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2917 to use type::index_type instead.
2918
2919 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2922 methods.
2923 (TYPE_INDEX_TYPE): Use type::index_type.
2924 * gdbtypes.c (create_array_type_with_stride): Likewise.
2925
2926 2020-06-07 Tom Tromey <tom@tromey.com>
2927
2928 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2929 parameter.
2930 (generic_value_print): Update.
2931
2932 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 Revert commit 982a38f60b0.
2935 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2936
2937 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2940 avoid use after free.
2941
2942 2020-06-05 Tom de Vries <tdevries@suse.de>
2943
2944 * NEWS: Fix typos.
2945
2946 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2949 the per_bfd object.
2950 (dwarf2_read_debug_names): Likewise.
2951 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2952 object when re-using a per_bfd object with an index.
2953
2954 2020-06-03 Tom de Vries <tdevries@suse.de>
2955
2956 PR symtab/26046
2957 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2958 children for C++.
2959 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2960 DW_TAG_subprogram.
2961
2962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * ada-lang.c (ada_language_data): Delete skip_trampoline
2965 initializer.
2966 * c-lang.c (c_language_data): Likewise.
2967 (cplus_language_data): Likewise.
2968 (cplus_language::skip_trampoline): New member function.
2969 (asm_language_data): Delete skip_trampoline initializer.
2970 (minimal_language_data): Likewise.
2971 * d-lang.c (d_language_data): Likewise.
2972 * f-lang.c (f_language_data): Likewise.
2973 * go-lang.c (go_language_data): Likewise.
2974 * language.c (unk_lang_trampoline): Delete function.
2975 (skip_language_trampoline): Update.
2976 (unknown_language_data): Delete skip_trampoline initializer.
2977 (auto_language_data): Likewise.
2978 * language.h (language_data): Delete skip_trampoline field.
2979 (language_defn::skip_trampoline): New function.
2980 * m2-lang.c (m2_language_data): Delete skip_trampoline
2981 initializer.
2982 * objc-lang.c (objc_skip_trampoline): Delete function, move
2983 implementation to objc_language::skip_trampoline.
2984 (objc_language_data): Delete skip_trampoline initializer.
2985 (objc_language::skip_trampoline): New member function with
2986 implementation from objc_skip_trampoline.
2987 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2988 initializer.
2989 * p-lang.c (pascal_language_data): Likewise.
2990 * rust-lang.c (rust_language_data): Likewise.
2991
2992 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2995 (ada_language::demangle): New member function.
2996 * c-lang.c (c_language_data): Delete la_demangle initializer.
2997 (cplus_language_data): Delete la_demangle initializer.
2998 (cplus_language::demangle): New member function.
2999 (asm_language_data): Delete la_demangle initializer.
3000 (minimal_language_data): Delete la_demangle initializer.
3001 * d-lang.c (d_language_data): Delete la_demangle initializer.
3002 (d_language::demangle): New member function.
3003 * f-lang.c (f_language_data): Delete la_demangle initializer.
3004 (f_language::demangle): New member function.
3005 * go-lang.c (go_language_data): Delete la_demangle initializer.
3006 (go_language::demangle): New member function.
3007 * language.c (language_demangle): Update.
3008 (unk_lang_demangle): Delete.
3009 (unknown_language_data): Delete la_demangle initializer.
3010 (unknown_language::demangle): New member function.
3011 (auto_language_data): Delete la_demangle initializer.
3012 (auto_language::demangle): New member function.
3013 * language.h (language_data): Delete la_demangle field.
3014 (language_defn::demangle): New function.
3015 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3016 * objc-lang.c (objc_language_data): Delete la_demangle
3017 initializer.
3018 (objc_language::demangle): New member function.
3019 * opencl-lang.c (opencl_language_data): Delete la_demangle
3020 initializer.
3021 * p-lang.c (pascal_language_data): Likewise.
3022 * rust-lang.c (rust_language_data): Likewise.
3023 (rust_language::demangle): New member function.
3024
3025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * ada-lang.c (ada_language_data): Delete la_print_type
3028 initializer.
3029 (ada_language::print_type): New member function.
3030 * c-lang.c (c_language_data): Delete la_print_type initializer.
3031 (c_language::print_type): New member function.
3032 (cplus_language_data): Delete la_print_type initializer.
3033 (cplus_language::print_type): New member function.
3034 (asm_language_data): Delete la_print_type initializer.
3035 (asm_language::print_type): New member function.
3036 (minimal_language_data): Delete la_print_type initializer.
3037 (minimal_language::print_type): New member function.
3038 * d-lang.c (d_language_data): Delete la_print_type initializer.
3039 (d_language::print_type): New member function.
3040 * f-lang.c (f_language_data): Delete la_print_type initializer.
3041 (f_language::print_type): New member function.
3042 * go-lang.c (go_language_data): Delete la_print_type initializer.
3043 (go_language::print_type): New member function.
3044 * language.c (unk_lang_print_type): Delete.
3045 (unknown_language_data): Delete la_print_type initializer.
3046 (unknown_language::print_type): New member function.
3047 (auto_language_data): Delete la_print_type initializer.
3048 (auto_language::print_type): New member function.
3049 * language.h (language_data): Delete la_print_type field.
3050 (language_defn::print_type): New function.
3051 (LA_PRINT_TYPE): Update.
3052 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3053 (m2_language::print_type): New member function.
3054 * objc-lang.c (objc_language_data): Delete la_print_type
3055 initializer.
3056 (objc_language::print_type): New member function.
3057 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3058 to opencl_language::print_type.
3059 (opencl_language_data): Delete la_print_type initializer.
3060 (opencl_language::print_type): New member function, implementation
3061 from opencl_print_type.
3062 * p-lang.c (pascal_language_data): Delete la_print_type
3063 initializer.
3064 (pascal_language::print_type): New member function.
3065 * rust-lang.c (rust_print_type): Delete, implementation moved to
3066 rust_language::print_type.
3067 (rust_language_data): Delete la_print_type initializer.
3068 (rust_language::print_type): New member function, implementation
3069 from rust_print_type.
3070
3071 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3074 implementation moves to...
3075 (ada_language::sniff_from_mangled_name): ...here. Update return
3076 type.
3077 (ada_language_data): Delete la_sniff_from_mangled_name
3078 initializer.
3079 * c-lang.c (c_language_data): Likewise.
3080 (cplus_language_data): Likewise.
3081 (cplus_language::sniff_from_mangled_name): New member function,
3082 implementation taken from gdb_sniff_from_mangled_name.
3083 (asm_language_data): Delete la_sniff_from_mangled_name
3084 initializer.
3085 (minimal_language_data): Likewise.
3086 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3087 implementation moves to cplus_language::sniff_from_mangled_name.
3088 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3089 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3090 moves to...
3091 (d_language::sniff_from_mangled_name): ...here.
3092 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3093 * f-lang.c (f_language_data): Likewise.
3094 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3095 moves to...
3096 (go_language::sniff_from_mangled_name): ...here.
3097 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3098 * language.c (language_sniff_from_mangled_name): Delete.
3099 (unknown_language_data): Delete la_sniff_from_mangled_name
3100 initializer.
3101 (auto_language_data): Likewise.
3102 * language.h (language_data): Delete la_sniff_from_mangled_name
3103 field.
3104 (language_defn::sniff_from_mangled_name): New function.
3105 (language_sniff_from_mangled_name): Delete declaration.
3106 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3107 field.
3108 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3109 implementation moves to...
3110 (objc_language::sniff_from_mangled_name): ...here.
3111 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3112 * opencl-lang.c (opencl_language_data): Likewise.
3113 * p-lang.c (pascal_language_data): Likewise.
3114 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3115 implementation moves to...
3116 (rust_language::sniff_from_mangled_name): ...here.
3117 (rust_language_data): Delete la_sniff_from_mangled_name
3118 initializer.
3119 * symtab.c (symbol_find_demangled_name): Call
3120 sniff_from_mangled_name member function.
3121
3122 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3123
3124 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3125 initializer.
3126 * c-lang.c (c_language_data): Likewise.
3127 (cplus_language_data): Likewise.
3128 (cplus_language::search_name_hash): New member function.
3129 (asm_language_data): Delete la_search_name_hash initializer.
3130 (minimal_language_data): Likewise.
3131 * d-lang.c (d_language_data): Likewise.
3132 * dictionary.c (default_search_name_hash): Rename to...
3133 (language_defn::search_name_hash): ...this.
3134 * f-lang.c (f_language_data): Likewise.
3135 (f_language::search_name_hash): New member function.
3136 * go-lang.c (go_language_data): Delete la_search_name_hash
3137 initializer.
3138 * language.c (unknown_language_data): Likewise.
3139 (auto_language_data): Likewise.
3140 * language.h (struct language_data): Delete la_search_name_hash
3141 field.
3142 (language_defn::search_name_hash): Declare new member function.
3143 (default_search_name_hash): Delete declaration.
3144 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3145 initializer.
3146 * objc-lang.c (objc_language_data): Likewise.
3147 * opencl-lang.c (opencl_language_data): Likewise.
3148 * p-lang.c (pascal_language_data): Likewise.
3149 * rust-lang.c (rust_language_data): Likewise.
3150 * symtab.c (search_name_hash): Update call.
3151
3152 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3155 initializer.
3156 * c-lang.c (class compile_instance): Declare.
3157 (c_language_data): Delete la_get_compile_instance initializer.
3158 (c_language::get_compile_instance): New member function.
3159 (cplus_language_data): Delete la_get_compile_instance initializer.
3160 (cplus_language::get_compile_instance): New member function.
3161 (asm_language_data): Delete la_get_compile_instance initializer.
3162 (minimal_language_data): Likewise.
3163 * c-lang.h (c_get_compile_context): Update comment.
3164 (cplus_get_compile_context): Update comment.
3165 * compile/compile.c (compile_to_object): Update calls, don't rely
3166 on function pointer being NULL.
3167 * d-lang.c (d_language_data): Delete la_get_compile_instance
3168 initializer.
3169 * f-lang.c (f_language_data): Likewise.
3170 * go-lang.c (go_language_data): Likewise.
3171 * language.c (unknown_language_data): Likewise.
3172 (auto_language_data): Likewise.
3173 * language.h (language_data): Delete la_get_compile_instance field.
3174 (language_defn::get_compile_instance): New member function.
3175 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3176 initializer.
3177 * objc-lang.c (objc_language_data): Likewise.
3178 * opencl-lang.c (opencl_language_data): Likewise.
3179 * p-lang.c (pascal_language_data): Likewise.
3180 * rust-lang.c (rust_language_data): Likewise.
3181
3182 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * ada-lang.c (ada_add_all_symbols): Update comment.
3185 (ada_iterate_over_symbols): Delete, move implementation to...
3186 (ada_language::iterate_over_symbols): ...here, a new member
3187 function, rewrite to use range based for loop.
3188 (ada_language_data): Delete la_iterate_over_symbols initializer.
3189 * c-lang.c (c_language_data): Likewise.
3190 (cplus_language_data): Likewise.
3191 (asm_language_data): Likewise.
3192 (minimal_language_data): Likewise.
3193 * d-lang.c (d_language_data): Likewise.
3194 * f-lang.c (f_language_data): Likewise.
3195 * go-lang.c (go_language_data): Likewise.
3196 * language.c (unknown_language_data): Likewise.
3197 (auto_language_data): Likewise.
3198 * language.h (language_data): Delete la_iterate_over_symbols field.
3199 (language_defn::iterate_over_symbols): New member function.
3200 (LA_ITERATE_OVER_SYMBOLS): Update.
3201 * linespec.c (iterate_over_all_matching_symtabs): Update.
3202 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3203 initializer.
3204 * objc-lang.c (objc_language_data): Likewise.
3205 * opencl-lang.c (opencl_language_data): Likewise.
3206 * p-lang.c (pascal_language_data): Likewise.
3207 * rust-lang.c (rust_language_data): Likewise.
3208
3209 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (ada_language_data): Delete
3212 la_lookup_transparent_type initializer.
3213 * c-lang.c (c_language_data): Likewise.
3214 (cplus_language_data): Likewise.
3215 (cplus_language::lookup_transparent_type): New member function.
3216 (asm_language_data): Delete la_lookup_transparent_type
3217 initializer.
3218 (minimal_language_data): Likewise.
3219 * d-lang.c (d_language_data): Likewise.
3220 * f-lang.c (f_language_data): Likewise.
3221 * go-lang.c (go_language_data): Likewise.
3222 * language.c (unknown_language_data): Likewise.
3223 (auto_language_data): Likewise.
3224 * language.h (struct language_data): Delete
3225 la_lookup_transparent_type field.
3226 (language_defn::lookup_transparent_type): New member function.
3227 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3228 initializer.
3229 * objc-lang.c (objc_language_data): Likewise.
3230 * opencl-lang.c (opencl_language_data): Likewise.
3231 * p-lang.c (pascal_language_data): Likewise.
3232 * rust-lang.c (rust_language_data): Likewise.
3233 * symtab.c (symbol_matches_domain): Update call.
3234
3235 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * ada-lang.c (ada_language_arch_info): Delete function, move
3238 implementation to...
3239 (ada_language::language_arch_info): ...here, a new member
3240 function.
3241 (ada_language_data): Delete la_language_arch_info.
3242 * c-lang.c (c_language_data): Likewise.
3243 (c_language::language_arch_info): New member function.
3244 (cplus_language_arch_info): Delete function, move
3245 implementation to...
3246 (cplus_language::language_arch_info): ...here, a new member
3247 function.
3248 (cplus_language_data): Delete la_language_arch_info.
3249 (asm_language_data): Likewise.
3250 (asm_language::language_arch_info): New member function.
3251 (minimal_language_data): Delete la_language_arch_info.
3252 (minimal_language::language_arch_info): New member function.
3253 * d-lang.c (d_language_arch_info): Delete function, move
3254 implementation to...
3255 (d_language::language_arch_info): ...here, a new member
3256 function.
3257 (d_language_data): Delete la_language_arch_info.
3258 * f-lang.c (f_language_arch_info): Delete function, move
3259 implementation to...
3260 (f_language::language_arch_info): ...here, a new member
3261 function.
3262 (f_language_data): Delete la_language_arch_info.
3263 * go-lang.c (go_language_arch_info): Delete function, move
3264 implementation to...
3265 (go_language::language_arch_info): ...here, a new member
3266 function.
3267 (go_language_data): Delete la_language_arch_info.
3268 * language.c (unknown_language_data): Likewise.
3269 (unknown_language::language_arch_info): New member function.
3270 (auto_language_data): Delete la_language_arch_info.
3271 (auto_language::language_arch_info): New member function.
3272 (language_gdbarch_post_init): Update call to
3273 la_language_arch_info.
3274 * language.h (language_data): Delete la_language_arch_info
3275 function pointer.
3276 (language_defn::language_arch_info): New function.
3277 * m2-lang.c (m2_language_arch_info): Delete function, move
3278 implementation to...
3279 (m2_language::language_arch_info): ...here, a new member
3280 function.
3281 (m2_language_data): Delete la_language_arch_info.
3282 * objc-lang.c (objc_language_arch_info): Delete function, move
3283 implementation to...
3284 (objc_language::language_arch_info): ...here, a new member
3285 function.
3286 (objc_language_data): Delete la_language_arch_info.
3287 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3288 implementation to...
3289 (opencl_language::language_arch_info): ...here, a new member
3290 function.
3291 (opencl_language_data): Delete la_language_arch_info.
3292 * p-lang.c (pascal_language_arch_info): Delete function, move
3293 implementation to...
3294 (pascal_language::language_arch_info): ...here, a new member
3295 function.
3296 (pascal_language_data): Delete la_language_arch_info.
3297 * rust-lang.c (rust_language_arch_info): Delete function, move
3298 implementation to...
3299 (rust_language::language_arch_info): ...here, a new member
3300 function.
3301 (rust_language_data): Delete la_language_arch_info.
3302
3303 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3304
3305 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3306 initializer.
3307 * c-lang.c (c_language_data): Likewise.
3308 (cplus_language_data): Likewise.
3309 (cplus_language::pass_by_reference_info): New method.
3310 (asm_language_data): Delete la_pass_by_reference initializer.
3311 (minimal_language_data): Likewise.
3312 * cp-abi.c (cp_pass_by_reference): Remove use of
3313 default_pass_by_reference.
3314 * d-lang.c (d_language_data): Likewise.
3315 * f-lang.c (f_language_data): Likewise.
3316 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3317 default_pass_by_reference.
3318 * go-lang.c (go_language_data): Likewise.
3319 * language.c (language_pass_by_reference): Update.
3320 (default_pass_by_reference): Delete.
3321 (unknown_language_data): Delete la_pass_by_reference
3322 initializer.
3323 (auto_language_data): Likewise.
3324 * language.h (struct language_data): Delete la_pass_by_reference
3325 field.
3326 (language_defn::pass_by_reference_info): New member function.
3327 (default_pass_by_reference): Delete declaration.
3328 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3329 initializer.
3330 * objc-lang.c (objc_language_data): Likewise.
3331 * opencl-lang.c (opencl_language_data): Likewise.
3332 * p-lang.c (pascal_language_data): Likewise.
3333 * rust-lang.c (rust_language_data): Likewise.
3334
3335 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * ada-lang.c (ada_read_var_value): Delete function, move
3338 implementation to...
3339 (ada_language::read_var_value): ...here.
3340 (ada_language_data): Delete la_read_var_value initializer.
3341 * c-lang.c (c_language_data): Likewise.
3342 (cplus_language_data): Likewise.
3343 (minimal_language_data): Likewise.
3344 * d-lang.c (d_language_data): Likewise.
3345 * f-lang.c (f_language_data): Likewise.
3346 * findvar.c (default_read_var_value): Rename to...
3347 (language_defn::read_var_value): ...this.
3348 * findvar.c (read_var_value): Update header comment, and change to
3349 call member function instead of function pointer.
3350 * go-lang.c (go_language_data): Likewise.
3351 * language.c (unknown_language_data): Delete la_read_var_value
3352 initializer.
3353 (auto_language_data): Likewise.
3354 * language.h (struct language_data): Delete la_read_var_value
3355 field.
3356 (language_defn::read_var_value): New member function.
3357 (default_read_var_value): Delete declaration.
3358 * m2-lang.c (m2_language_data): Delete la_read_var_value
3359 initializer.
3360 * objc-lang.c (objc_language_data): Likewise.
3361 * opencl-lang.c (opencl_language_data): Likewise.
3362 * p-lang.c (pascal_language_data): Likewise.
3363 * rust-lang.c (rust_language_data): Likewise.
3364 * value.h (default_read_var_value): Delete declaration.
3365
3366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * ada-lang.c (ada_print_array_index): Delete function, move
3369 implementation to...
3370 (ada_language::print_array_index): ...here.
3371 (ada_language_data): Delete la_print_array_index initializer.
3372 * c-lang.c (c_language_data): Likewise.
3373 (cplus_language_data): Likewise.
3374 (minimal_language_data): Likewise.
3375 * d-lang.c (d_language_data): Likewise.
3376 * f-lang.c (f_language_data): Likewise.
3377 * go-lang.c (go_language_data): Likewise.
3378 * language.c (default_print_array_index): Delete function, move
3379 implementation to...
3380 (language_defn::print_array_index): ...here.
3381 (unknown_language_data): Delete la_print_array_index initializer.
3382 (auto_language_data): Likewise.
3383 * language.h (struct language_data): Delete la_print_array_index
3384 field.
3385 (language_defn::print_array_index): New member function.
3386 (LA_PRINT_ARRAY_INDEX): Update.
3387 (default_print_array_index): Delete declaration.
3388 * m2-lang.c (m2_language_data): Delete la_print_array_index
3389 initializer.
3390 * objc-lang.c (objc_language_data): Likewise.
3391 * opencl-lang.c (opencl_language_data): Likewise.
3392 * p-lang.c (pascal_language_data): Likewise.
3393 * rust-lang.c (rust_language_data): Likewise.
3394
3395 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * gdb/ada-lang.c (ada_language_defn): Convert to...
3398 (ada_language_data): ...this.
3399 (class ada_language): New class.
3400 (ada_language_defn): New static global.
3401 * gdb/c-lang.c (c_language_defn): Convert to...
3402 (c_language_data): ...this.
3403 (class c_language): New class.
3404 (c_language_defn): New static global.
3405 (cplus_language_defn): Convert to...
3406 (cplus_language_data): ...this.
3407 (class cplus_language): New class.
3408 (cplus_language_defn): New static global.
3409 (asm_language_defn): Convert to...
3410 (asm_language_data): ...this.
3411 (class asm_language): New class.
3412 (asm_language_defn): New static global.
3413 (minimal_language_defn): Convert to...
3414 (minimal_language_data): ...this.
3415 (class minimal_language): New class.
3416 (minimal_language_defn): New static global.
3417 * gdb/d-lang.c (d_language_defn): Convert to...
3418 (d_language_data): ...this.
3419 (class d_language): New class.
3420 (d_language_defn): New static global.
3421 * gdb/f-lang.c (f_language_defn): Convert to...
3422 (f_language_data): ...this.
3423 (class f_language): New class.
3424 (f_language_defn): New static global.
3425 * gdb/go-lang.c (go_language_defn): Convert to...
3426 (go_language_data): ...this.
3427 (class go_language): New class.
3428 (go_language_defn): New static global.
3429 * gdb/language.c (unknown_language_defn): Remove declaration.
3430 (current_language): Initialize to nullptr, real initialization is
3431 moved to _initialize_language.
3432 (languages): Delete global.
3433 (language_defn::languages): Define.
3434 (set_language_command): Use language_defn::languages.
3435 (set_language): Likewise.
3436 (range_error): Likewise.
3437 (language_enum): Likewise.
3438 (language_def): Likewise.
3439 (add_set_language_command): Use language_def::languages for the
3440 language list, and language_def to lookup language pointers.
3441 (skip_language_trampoline): Use language_defn::languages.
3442 (unknown_language_defn): Convert to...
3443 (unknown_language_data): ...this.
3444 (class unknown_language): New class.
3445 (unknown_language_defn): New static global.
3446 (auto_language_defn): Convert to...
3447 (auto_language_data): ...this.
3448 (class auto_language): New class.
3449 (auto_language_defn): New static global.
3450 (language_gdbarch_post_init): Use language_defn::languages.
3451 (_initialize_language): Initialize current_language.
3452 * gdb/language.h (struct language_defn): Rename to...
3453 (struct language_data): ...this.
3454 (struct language_defn): New.
3455 (auto_language_defn): Delete.
3456 (unknown_language_defn): Delete.
3457 (minimal_language_defn): Delete.
3458 (ada_language_defn): Delete.
3459 (asm_language_defn): Delete.
3460 (c_language_defn): Delete.
3461 (cplus_language_defn): Delete.
3462 (d_language_defn): Delete.
3463 (f_language_defn): Delete.
3464 (go_language_defn): Delete.
3465 (m2_language_defn): Delete.
3466 (objc_language_defn): Delete.
3467 (opencl_language_defn): Delete.
3468 (pascal_language_defn): Delete.
3469 (rust_language_defn): Delete.
3470 * gdb/m2-lang.c (m2_language_defn): Convert to...
3471 (m2_language_data): ...this.
3472 (class m2_language): New class.
3473 (m2_language_defn): New static global.
3474 * gdb/objc-lang.c (objc_language_defn): Convert to...
3475 (objc_language_data): ...this.
3476 (class objc_language): New class.
3477 (objc_language_defn): New static global.
3478 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3479 (opencl_language_data): ...this.
3480 (class opencl_language): New class.
3481 (opencl_language_defn): New static global.
3482 * gdb/p-lang.c (pascal_language_defn): Convert to...
3483 (pascal_language_data): ...this.
3484 (class pascal_language): New class.
3485 (pascal_language_defn): New static global.
3486 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3487 language pointer, update comment format.
3488 * gdb/rust-lang.c (rust_language_defn): Convert to...
3489 (rust_language_data): ...this.
3490 (class rust_language): New class.
3491 (rust_language_defn): New static global.
3492
3493 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3496 member variable.
3497 <m_stmt_at_address>: New member variable.
3498 (lnp_state_machine::record_line): Don't record some lines, update
3499 tracking of is_stmt at the same address.
3500 (lnp_state_machine::lnp_state_machine): Initialise new member
3501 variables.
3502
3503 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3504
3505 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3506 "-include gnu-nat-mig.h".
3507 * gnu-nat-mig.h: New file.
3508 * gnu-nat.c: Include "gnu-nat-mig.h".
3509 (exc_server, msg_reply_server, notify_server,
3510 process_reply_server): Remove declarations.
3511
3512 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3513
3514 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3515 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3516 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3517 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3518 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3519 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3520 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3521 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3522 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3523 to gnu_nat_target class.
3524 * gnu-nat.c: Likewise.
3525 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3526 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3527 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3528 object.
3529 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3530 instead of `gnu_target'.
3531
3532 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3533
3534 * i386-gnu-tdep.c: Include "gdbcore.h"
3535 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3536 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3537 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3538 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3539 i386_gnu_sigcontext_addr): New functions
3540 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3541 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3542 tdep.
3543
3544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3545
3546 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3547 before fork_inferior call. Avoid calling it if target_is_pushed returns
3548 true.
3549
3550 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3551
3552 * gnu-nat.h (gnu_target): New variable declaration.
3553 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3554 gnu_target.
3555 * gnu-nat.c (gnu_target): New variable.
3556 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3557 add_thread_silent, and add_thread calls.
3558 (gnu_nat_target::create_inferior): Pass gnu_target to
3559 add_thread_silent, thread_change_ptid call.
3560 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3561 call.
3562
3563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3564
3565 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3566 (gnu_nat_target::find_memory_regions): Remove unused
3567 `old_address' variable.
3568
3569 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3570
3571 * gnu-nat.c: Include "gdbarch.h".
3572
3573 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3574
3575 * reply_mig_hack.awk (Error return): Cast function through
3576 void *, to bypass compiler function call check.
3577
3578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3579
3580 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3581 $(srcdir)/reply_mig_hack.awk.
3582
3583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3584
3585 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3586
3587 2020-05-30 Jonny Grant <jg@jguk.org>
3588
3589 * configure.ac (ACX_BUGURL): change bug URL to https.
3590
3591 2020-05-30 Pedro Alves <palves@redhat.com>
3592
3593 * cp-support.c (replace_typedefs_template): New.
3594 (replace_typedefs_qualified_name): Handle
3595 DEMANGLE_COMPONENT_TEMPLATE.
3596
3597 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3598
3599 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3600 dwarf2/index-cache.h, dwarf2/index-write.c,
3601 dwarf2/index-write.h, dwarf2/line-header.c,
3602 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3603 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3604 variables and fields from `dwarf2_per_objfile` to just
3605 `per_objfile` throughout.
3606
3607 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3608
3609 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3610 <push_dwarf_reg_entry_value>: Add comment.
3611
3612 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3613 Keith Seitz <keiths@redhat.com>
3614
3615 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3616 instead of PyEval_ReleaseLock.
3617 (class gdbpy_gil): Move to earlier in file.
3618 (finalize_python): Set gdb_python_initialized.
3619 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3620 when not initialized.
3621
3622 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3625 <push_dwarf_reg_entry_value>: Remove assert. Override
3626 per_objfile with caller_per_objfile.
3627
3628 2020-05-28 Tom de Vries <tdevries@suse.de>
3629
3630 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3631 PR gold/15646 workaround to symbol kind "type".
3632
3633 2020-05-27 Tom Tromey <tromey@adacore.com>
3634
3635 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3636
3637 2020-05-27 Tom Tromey <tromey@adacore.com>
3638
3639 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3640 Use htab_find_with_hash.
3641 <add_abbrev>: Remove "abbrev_number" parameter.
3642 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3643 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3644 (hash_abbrev): Add comment.
3645 (abbrev_table::lookup_abbrev): Move to header file.
3646 (abbrev_table::read): Update.
3647
3648 2020-05-27 Tom Tromey <tromey@adacore.com>
3649
3650 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3651 method.
3652 <canonical_name>: New member.
3653 <raw_name>: Rename from "name".
3654 (partial_die_info): Initialize canonical_name.
3655 (scan_partial_symbols): Check raw_name.
3656 (partial_die_parent_scope, partial_die_full_name)
3657 (add_partial_symbol, add_partial_subprogram)
3658 (add_partial_enumeration, load_partial_dies): Use "name" method.
3659 (partial_die_info::name): New method.
3660 (partial_die_info::read, guess_partial_die_structure_name)
3661 (partial_die_info::fixup): Update.
3662
3663 2020-05-27 Tom Tromey <tromey@adacore.com>
3664
3665 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3666 <get_ref_die_offset>: Inline.
3667 <get_ref_die_offset_complaint>: New method.
3668 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3669 (attribute::get_ref_die_offset_complaint): Rename from
3670 get_ref_die_offset. Just issue complaint.
3671
3672 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3673
3674 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3675
3676 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3677
3678 * exec.c (exec_file_attach): Use errno value of first openp failure.
3679
3680 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3681
3682 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3683 Don't close thread handle.
3684
3685 2020-05-27 Tom Tromey <tom@tromey.com>
3686 Simon Marchi <simon.marchi@efficios.com>
3687
3688 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3689 shared_ptr.
3690 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3691 member.
3692 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3693 dwarf2_per_bfd_objfile_data_key>: New globals.
3694 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3695 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3696 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3697 shared.
3698 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3699 short-circuit when sharing.
3700 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3701 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3702
3703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3706 to...
3707 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3708 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3709
3710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3711
3712 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3713 build_name_components, find_name_components_bounds>:
3714 Add per_objfile parameter.
3715 (struct mapped_index) <symbol_name_at>: Likewise.
3716 (struct mapped_debug_names): Remove constructor.
3717 <dwarf2_per_objfile>: Remove field.
3718 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3719 (mapped_index_base::find_name_components_bounds,
3720 mapped_index_base::build_name_components,
3721 dw2_expand_symtabs_matching_symbol): Likewise.
3722 (class mock_mapped_index) <symbol_name_at>: Likewise.
3723 (check_match): Likewise.
3724 (check_find_bounds_finds): Likewise.
3725 (test_mapped_index_find_name_component_bounds): Update.
3726 (CHECK_MATCH): Update.
3727 (dw2_expand_symtabs_matching): Update.
3728 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3729 per_objfile parameter.
3730 <find_vec_in_debug_names>: Likewise.
3731 <m_per_objfile>: New field.
3732 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3733 parameter.
3734 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3735 (dw2_debug_names_iterator::next): Update.
3736 (dw2_debug_names_lookup_symbol): Update.
3737 (dw2_debug_names_expand_symtabs_for_function): Update.
3738 (dw2_debug_names_map_matching_symbols): Update.
3739 (dw2_debug_names_expand_symtabs_matching): Update.
3740 (dwarf2_read_debug_names): Update.
3741
3742 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3745 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3746 move to dwarf2_per_objfile.
3747 <read_in_chain>: Remove.
3748 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3749 remove_all_cus, age_comp_units>: New methods.
3750 <m_dwarf2_cus>: New member.
3751 (struct dwarf2_per_cu_data) <cu>: Remove.
3752 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3753 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3754 moved to methods of dwarf2_per_objfile.
3755 (dwarf2_clear_marks): Remove.
3756 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3757 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3758 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3759 (dwarf2_per_objfile::remove_all_cus): New.
3760 (class free_cached_comp_units) <~free_cached_comp_units>:
3761 Update.
3762 (load_cu): Update.
3763 (dw2_do_instantiate_symtab): Adjust.
3764 (fill_in_sig_entry_from_dwo_entry): Adjust.
3765 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3766 (cutu_reader::cutu_reader): Likewise.
3767 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3768 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3769 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3770 and dwarf2_per_objfile::age_comp_units.
3771 (load_partial_comp_unit): Update.
3772 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3773 (process_queue): Likewise.
3774 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3775 backlink.
3776 (dwarf2_read_addr_index): Likewise.
3777 (follow_die_offset): Likewise.
3778 (dwarf2_fetch_die_loc_sect_off): Likewise.
3779 (dwarf2_fetch_constant_bytes): Likewise.
3780 (dwarf2_fetch_die_type_sect_off): Likewise.
3781 (follow_die_sig_1): Likewise.
3782 (load_full_type_unit): Likewise.
3783 (read_signatured_type): Likewise.
3784 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3785 (dwarf2_cu::~dwarf2_cu): Remove.
3786 (dwarf2_per_objfile::get_cu): New.
3787 (dwarf2_per_objfile::set_cu): New.
3788 (age_cached_comp_units): Rename to...
3789 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3790 to std::unordered_map.
3791 (free_one_cached_comp_unit): Rename to...
3792 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3793 to std::unordered_map.
3794 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3795 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3796 a dwarf2_per_objfile in data.
3797 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3798 (dwarf2_clear_marks): Remove.
3799
3800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3803 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3804 (init_tu_and_read_dwo_dies): Likewise.
3805 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3806 (cutu_reader::cutu_reader): Likewise.
3807 (load_partial_comp_unit): Likewise.
3808 (process_psymtab_comp_unit): Update.
3809 (build_type_psymtabs_1): Update.
3810 (process_skeletonless_type_unit): Update.
3811 (load_full_comp_unit): Update.
3812 (find_partial_die): Update.
3813 (dwarf2_read_addr_index): Update.
3814 (read_signatured_type): Update.
3815
3816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3819 m_header_read_in>: New fields.
3820 <get_header>: New method.
3821 * dwarf2/read.c (per_cu_header_read_in): Remove.
3822 (dwarf2_per_cu_data::get_header): New.
3823 (dwarf2_per_cu_data::addr_size): Update.
3824 (dwarf2_per_cu_data::offset_size): Update.
3825 (dwarf2_per_cu_data::ref_addr_size): Update.
3826
3827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3830 (dw2_do_instantiate_symtab): Update.
3831 (queue_and_load_all_dwo_tus): Change parameter from
3832 dwarf2_per_cu_data to dwarf2_cu.
3833 (dwarf2_fetch_die_loc_sect_off): Update.
3834 (dwarf2_fetch_constant_bytes): Update.
3835 (dwarf2_fetch_die_type_sect_off): Update.
3836
3837 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * dwarf2/read.c (process_full_comp_unit,
3840 process_full_type_unit): Remove per_cu, per_objfile paramters.
3841 Add dwarf2_cu parameter.
3842 (process_queue): Update.
3843
3844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3845
3846 * dwarf2/read.c (create_cu_from_index_list): Replace
3847 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3848 (create_cus_from_index_list): Likewise.
3849 (create_cus_from_index): Likewise.
3850 (create_signatured_type_table_from_index): Likewise.
3851 (create_cus_from_debug_names_list): Likewise.
3852 (create_cus_from_debug_names): Likewise.
3853 (dwarf2_read_gdb_index): Update.
3854 (dwarf2_read_debug_names): Update.
3855
3856 2020-05-27 Tom Tromey <tom@tromey.com>
3857 Simon Marchi <simon.marchi@efficios.com>
3858
3859 * dwarf2/read.h (struct dwarf2_per_objfile)
3860 <get_type_for_signatured_type, set_type_for_signatured_type>:
3861 New methods.
3862 <m_type_map>: New member.
3863 (struct signatured_type) <type>: Remove.
3864 * dwarf2/read.c
3865 (dwarf2_per_objfile::get_type_for_signatured_type,
3866 dwarf2_per_objfile::set_type_for_signatured_type): New.
3867 (get_signatured_type): Use new methods.
3868
3869 2020-05-27 Tom Tromey <tom@tromey.com>
3870 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3873 (struct dwarf2_per_objfile) <type_units>: New member.
3874 <get_type_unit_group_unshareable>: New method.
3875 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3876 num_symtabs, symtabs>: Remove; move to
3877 type_unit_group_unshareable.
3878 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3879 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3880 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3881
3882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * dwarf2/read.h (struct dwarf2_per_cu_data):
3885 <dwarf2_per_objfile>: Remove.
3886 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3887 dwarf2_per_objfile.
3888 (create_signatured_type_table_from_index): Likewise.
3889 (create_signatured_type_table_from_debug_names): Likewise.
3890 (create_debug_type_hash_table): Likewise.
3891 (fill_in_sig_entry_from_dwo_entry): Likewise.
3892 (create_type_unit_group): Likewise.
3893 (read_comp_units_from_section): Likewise.
3894 (create_cus_hash_table): Likewise.
3895
3896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3899 dwarf2_per_cu_data::dwarf2_per_objfile.
3900 (compute_compunit_symtab_includes): Likewise.
3901 (dwarf2_cu::start_symtab): Likewise.
3902
3903 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3906 parameter.
3907 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3908 (read_namespace_alias): Update.
3909 (lookup_die_type): Update.
3910 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3911 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3912 Update.
3913 (disassemble_dwarf_expression): Update.
3914
3915 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * dwarf2/read.h (struct dwarf2_queue_item): Add
3918 dwarf2_per_objfile parameter, assign new parameter.
3919 <per_objfile>: New field.
3920 * dwarf2/read.c (free_one_cached_comp_unit): Add
3921 dwarf2_per_objfile parameter.
3922 (queue_comp_unit): Likewise.
3923 (dw2_do_instantiate_symtab): Update.
3924 (process_psymtab_comp_unit): Update.
3925 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3926 (process_imported_unit_die): Update.
3927 (queue_and_load_dwo_tu): Update.
3928 (follow_die_offset): Update.
3929 (follow_die_sig_1): Update.
3930
3931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3934 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3935 (read_call_site_scope): Assign per_objfile.
3936 (dwarf2_per_cu_data::objfile): Remove.
3937 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3938 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3939 dwarf2_per_objfile parameter.
3940 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3941 dwarf2_per_objfile parameter.
3942 (dwarf_expr_reg_to_entry_parameter): Add output
3943 dwarf2_per_objfile parameter.
3944 (locexpr_get_frame_base): Update.
3945 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3946 <push_dwarf_reg_entry_value>: Update.
3947 <call_site_to_target_addr>: Update.
3948 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3949 parameter.
3950 (value_of_dwarf_reg_entry): Update.
3951 (rw_pieced_value): Update.
3952 (indirect_synthetic_pointer): Update.
3953 (dwarf2_evaluate_property): Update.
3954 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3955 parameter.
3956 (locexpr_read_variable): Update.
3957 (locexpr_get_symbol_read_needs): Update.
3958 (loclist_read_variable): Update.
3959
3960 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3964 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3965 parameter.
3966 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3967 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3968 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3969 parameter.
3970 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3971 sect_variable_value): Add dwarf2_per_objfile parameter.
3972 (class dwarf_evaluate_loc_desc) <dwarf_call,
3973 dwarf_variable_value>: Update.
3974 (fetch_const_value_from_synthetic_pointer): Add
3975 dwarf2_per_objfile parameter.
3976 (fetch_const_value_from_synthetic_pointer): Update.
3977 (coerced_pieced_ref): Update.
3978 (class symbol_needs_eval_context) <dwarf_call,
3979 dwarf_variable_value>: Update.
3980 (dwarf2_compile_expr_to_ax): Update.
3981
3982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3985 parameter.
3986 (dwarf2_evaluate_loc_desc_full): Update.
3987
3988 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3991 parameter.
3992 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3993 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3994 dwarf2_per_objfile parameter.
3995 (decode_debug_loc_dwo_addresses): Likewise.
3996 (dwarf2_find_location_expression): Update.
3997 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3998 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3999 parameter.
4000 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4001 parameter.
4002 (locexpr_describe_location_1): Likewise.
4003 (locexpr_describe_location): Update.
4004
4005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4008 Remove.
4009 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4010 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4011 (dwarf2_compile_property_to_c): Update.
4012 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4013 use text offset from objfile.
4014 (locexpr_tracepoint_var_ref): Update.
4015 (locexpr_generate_c_location): Update.
4016 (loclist_describe_location): Update.
4017 (loclist_tracepoint_var_ref): Update.
4018 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4019 dwarf2_per_objfile parameter.
4020 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4021 use text offset from objfile.
4022 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4023
4024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/expr.h (struct dwarf_expr_context)
4027 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4028 <offset>: Remove.
4029 <per_objfile>: New member.
4030 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4031 dwarf2_per_objfile parameter. Don't set offset, set
4032 per_objfile.
4033 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4034 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4035 a dwarf2_per_objfile object instead of an offset.
4036 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4037 constructor.
4038 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4039 to dwarf2_expr_executor constructor. Don't set offset.
4040 (dwarf2_fetch_cfa_info): Update.
4041 (struct dwarf2_frame_cache) <text_offset>: Remove.
4042 <per_objfile>: New field.
4043 (dwarf2_frame_cache): Update.
4044 (dwarf2_frame_prev_register): Update.
4045 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4046 <dwarf_evaluate_loc_desc>: Add constructor.
4047 (dwarf2_evaluate_loc_desc_full): Update.
4048 (dwarf2_locexpr_baton_eval): Update.
4049 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4050 Add constructor.
4051 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4052
4053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4056 addr_sized_int_type>: Move to dwarf2_cu.
4057 <int_type>: Move to dwarf2_per_objfile.
4058 (struct dwarf2_per_objfile) <int_type>: Move here.
4059 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4060 addr_sized_int_type>: Move here.
4061 (read_func_scope): Update.
4062 (read_array_type): Update.
4063 (read_tag_string_type): Update.
4064 (attr_to_dynamic_prop): Update.
4065 (dwarf2_per_cu_data::int_type): Rename to...
4066 (dwarf2_per_objfile::int_type): ... this.
4067 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4068 (dwarf2_cu::addr_sized_int_type): ... this.
4069 (read_subrange_type): Update.
4070 (dwarf2_per_cu_data::addr_type): Rename to...
4071 (dwarf2_cu::addr_type): ... this.
4072 (set_die_type): Update.
4073
4074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4077 data through per_cu->cu.
4078
4079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4082 dwarf2_per_cu_data parameter fo dwarf2_cu.
4083 (lookup_dwo_type_unit): Likewise.
4084 (read_cutu_die_from_dwo): Likewise.
4085 (lookup_dwo_unit): Likewise.
4086 (open_and_init_dwo_file): Likewise.
4087 (lookup_dwo_cutu): Likewise.
4088 (lookup_dwo_comp_unit): Likewise.
4089 (lookup_dwo_type_unit): Likewise.
4090 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4091 (cutu_reader::cutu_reader): Update.
4092
4093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4096 parameter.
4097 (process_full_type_unit): Likewise.
4098 (process_queue): Update.
4099
4100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.c (recursively_compute_inclusions): Add
4103 dwarf2_per_objfile parameter.
4104 (compute_compunit_symtab_includes): Likewise.
4105 (process_cu_includes): Update.
4106
4107 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4110 parameter.
4111 (create_type_unit_group): Update.
4112 (process_psymtab_comp_unit_reader): Update.
4113 (build_type_psymtabs_reader): Update.
4114
4115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4118 object through m_this_cu->cu.
4119
4120 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4121
4122 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4123 the info parameter.
4124 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4125
4126 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4127
4128 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4129 per_objfile parameter.
4130 (load_full_type_unit): Add per_objfile parameter.
4131 (read_signatured_type): Likewise.
4132 (load_full_comp_unit): Likewise.
4133 (load_cu): Likewise.
4134 (dw2_do_instantiate_symtab): Likewise.
4135 (dw2_get_file_names): Likewise.
4136 (dw2_map_symtabs_matching_filename): Update.
4137 (dw_expand_symtabs_matching_file_matcher): Update.
4138 (dw2_map_symbol_filenames): Update.
4139 (process_psymtab_comp_unit): Add per_objfile parameter.
4140 (build_type_psymtabs_1): Update.
4141 (process_skeletonless_type_unit): Update.
4142 (dwarf2_build_psymtabs_hard): Update.
4143 (load_partial_comp_unit): Add per_objfile parameter.
4144 (scan_partial_symbols): Update.
4145 (load_full_comp_unit): Add per_objfile parameter.
4146 (process_imported_unit_die): Update.
4147 (create_cus_hash_table): Update.
4148 (find_partial_die): Update.
4149 (dwarf2_read_addr_index): Update.
4150 (follow_die_offset): Update.
4151 (dwarf2_fetch_die_loc_sect_off): Update.
4152 (dwarf2_fetch_constant_bytes): Update.
4153 (dwarf2_fetch_die_type_sect_off): Update.
4154 (follow_die_sig_1): Update.
4155 (load_full_type_unit): Add per_objfile parameter.
4156 (read_signatured_type): Likewise.
4157
4158 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4161 of objfile_name.
4162
4163 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4164
4165 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4166 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4167 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4168 field.
4169 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4170 (create_cus_from_index): Update.
4171 (dwarf2_read_gdb_index): Update.
4172 (create_cus_from_debug_names): Update.
4173 (dwarf2_read_debug_names): Update.
4174 (get_abbrev_section_for_cu): Update.
4175 (create_all_comp_units): Update.
4176 (read_attribute_value): Update.
4177 (get_debug_line_section): Update.
4178 * dwarf2/index-cache.c (index_cache::store): Update.
4179 * dwarf2/index-write.c (save_gdb_index_command): Update.
4180 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4181
4182 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4185 member.
4186 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4187 dwarf2_per_cu_data::per_bfd.
4188 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4189 (create_type_unit_group): Likewise.
4190 (queue_comp_unit): Remove reference to
4191 per_cu->dwarf2_per_objfile.
4192 (maybe_queue_comp_unit): Likewise.
4193 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4194 (create_cus_hash_table): Assign new field.
4195
4196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * dwarf2/read.c: Replace
4199 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4200 dwarf2_cu->per_objfile throughout.
4201
4202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4205 parameter, don't use per_cu->dwarf2_per_objfile.
4206 (dw2_instantiate_symtab): Likewise.
4207 (dw2_find_last_source_symtab): Update.
4208 (dw2_map_expand_apply): Update.
4209 (dw2_lookup_symbol): Update.
4210 (dw2_expand_symtabs_for_function): Update.
4211 (dw2_expand_all_symtabs): Update.
4212 (dw2_expand_symtabs_with_fullname): Update.
4213 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4214 don't use per_cu->dwarf2_per_objfile.
4215 (dw2_expand_marked_cus): Update.
4216 (dw2_find_pc_sect_compunit_symtab): Update.
4217 (dw2_debug_names_lookup_symbol): Update.
4218 (dw2_debug_names_expand_symtabs_for_function): Update.
4219 (dw2_debug_names_map_matching_symbols): Update.
4220 (dwarf2_psymtab::expand_psymtab): Update.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4225 <per_objfile>: New member.
4226 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4227 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4228 call to dwarf2_cu.
4229 (cutu_reader::cutu_reader): Update.
4230 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4231
4232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4235 struct dwarf2_per_objfile.
4236 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4237 dwarf2_per_bfd.
4238 * dwarf2/read.c (set_die_type): Update.
4239 (get_die_type_at_offset): Update.
4240
4241 2020-05-27 Tom Tromey <tom@tromey.com>
4242 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4245 method.
4246 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4247 get_symtab, set_symtab>: New methods.
4248 <m_symtabs>: New field.
4249 (struct dwarf2_psymtab): Derive from partial_symtab.
4250 <readin_p, get_compunit_symtab>: Declare methods.
4251 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4252 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4253 New methods.
4254 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4255 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4256 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4257 (dw2_symtab_iter_next, dw2_print_stats)
4258 (dw2_expand_symtabs_with_fullname)
4259 (dw2_expand_symtabs_matching_one)
4260 (dw_expand_symtabs_matching_file_matcher)
4261 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4262 (dw2_debug_names_iterator::next)
4263 (dw2_debug_names_map_matching_symbols)
4264 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4265 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4266 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4267 New methods.
4268 (get_compunit_symtab, process_full_comp_unit)
4269 (process_full_type_unit): Update.
4270 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4271
4272 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4273
4274 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4275 then introduce a new dwarf2_per_objfile type.
4276 <read_line_string>: Move to the new dwarf2_per_objfile type.
4277 <objfile>: Likewise.
4278 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4279 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4280 dwarf2_per_objfile->per_bfd.
4281 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4282 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4283 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4284 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4285 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4286 (dwarf2_per_objfile::locate_sections): Rename to...
4287 (dwarf2_per_bfd::locate_sections): ... this.
4288 (dwarf2_per_objfile::get_cutu): Rename to...
4289 (dwarf2_per_bfd::get_cutu): ... this.
4290 (dwarf2_per_objfile::get_cu): Rename to...
4291 (dwarf2_per_bfd::get_cu): ... this.
4292 (dwarf2_per_objfile::get_tu): Rename to...
4293 (dwarf2_per_bfd::get_tu): ... this.
4294 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4295 (dwarf2_per_bfd::allocate_per_cu): ... this.
4296 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4297 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4298 (get_gdb_index_contents_ftype): Change parameter from
4299 dwarf2_per_objfile to dwarf2_per_bfd.
4300 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4301 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4302
4303 2020-05-27 Tom Tromey <tom@tromey.com>
4304 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4307 (allocate_piece_closure): Set "per_objfile" member.
4308 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4309 (locexpr_describe_location, loclist_describe_location): Use new
4310 member.
4311 * dwarf2/read.c (read_call_site_scope)
4312 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4313 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4314 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4315 handle_data_member_location): Set per_objfile member.
4316 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4317 member.
4318 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4319
4320 2020-05-27 Tom Tromey <tom@tromey.com>
4321
4322 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4323 allocate_signatured_type>: Declare new methods.
4324 <m_num_psymtabs>: New member.
4325 (struct dwarf2_per_cu_data) <index>: New member.
4326 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4327 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4328 (create_cu_from_index_list): Use allocate_per_cu.
4329 (create_signatured_type_table_from_index)
4330 (create_signatured_type_table_from_debug_names)
4331 (create_debug_type_hash_table, add_type_unit)
4332 (read_comp_units_from_section): Use allocate_signatured_type.
4333
4334 2020-05-27 Tom Tromey <tom@tromey.com>
4335
4336 * psymtab.c (partial_map_expand_apply)
4337 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4338 (psym_lookup_global_symbol_language)
4339 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4340 (psym_print_stats, psym_expand_symtabs_for_function)
4341 (psym_map_symbol_filenames, psym_map_matching_symbols)
4342 (psym_expand_symtabs_matching)
4343 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4344 (maintenance_check_psymtabs): Update.
4345 * psympriv.h (struct partial_symtab) <readin_p,
4346 get_compunit_symtab>: Add objfile parameter.
4347 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4348 Likewise.
4349 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4350 get_compunit_symtab>: Likewise.
4351 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4352
4353 2020-05-27 Tom Tromey <tom@tromey.com>
4354
4355 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4356 member.
4357 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4358 (create_cu_from_index_list)
4359 (create_signatured_type_table_from_index)
4360 (create_signatured_type_table_from_debug_names)
4361 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4362 (dwarf2_create_include_psymtab)
4363 (create_debug_type_hash_table, add_type_unit)
4364 (create_type_unit_group, read_comp_units_from_section)
4365 (dwarf2_compute_name, create_cus_hash_table)
4366 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4367 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4368 obstack.
4369 (dw2_get_real_path): Likewise. Change argument to
4370 dwarf2_per_objfile.
4371
4372 2020-05-27 Luis Machado <luis.machado@linaro.org>
4373
4374 PR tdep/26000
4375 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4376 for ldrd (immediate).
4377
4378 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4379
4380 * command.h: Add comment giving the name of class_tui.
4381 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4382 create the fake command for the help for class_tui.
4383
4384 2020-05-26 Tom Tromey <tromey@adacore.com>
4385
4386 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4387 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4388 (val_atr): New function.
4389 (value_val_atr): Use it.
4390 * ada-valprint.c (print_optional_low_bound): Change low bound
4391 handling for enums.
4392 (val_print_packed_array_elements): Don't call discrete_position.
4393 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4394 discrete_position for enum types.
4395 * language.c (default_print_array_index): Change type.
4396 * language.h (struct language_defn) <la_print_array_index>: Add
4397 index_type parameter, change type of index_value.
4398 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4399 (default_print_array_index): Update.
4400 * valprint.c (maybe_print_array_index): Don't call
4401 value_from_longest. Update.
4402 (value_print_array_elements): Don't call discrete_position.
4403
4404 2020-05-26 Tom Tromey <tromey@adacore.com>
4405
4406 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4407 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4408
4409 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4410
4411 PR gdb/13519
4412 * avr-tdep.c (avr_integer_to_address): Return data or code
4413 address accordingly to the second 'type' argument of the
4414 function.
4415
4416 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4417
4418 * infcmd.c, inferior.h: (construct_inferior_arguments):
4419 Moved function from here to gdbsupport/common-inferior.{h,cc}
4420
4421 2020-05-23 Tom Tromey <tom@tromey.com>
4422
4423 Revert commit eca1f90c:
4424 * NEWS: Remove entry for completion styling.
4425 * completer.c (_rl_completion_prefix_display_length): Move
4426 declaration later.
4427 (gdb_fnprint): Revert.
4428 (gdb_display_match_list_1): Likewise.
4429 * cli/cli-style.c (completion_prefix_style)
4430 (completion_difference_style, completion_suffix_style): Remove.
4431 (_initialize_cli_style): Revert.
4432 * cli/cli-style.h (completion_prefix_style)
4433 (completion_difference_style, completion_suffix_style): Don't
4434 declare.
4435
4436 2020-05-24 Pedro Alves <palves@redhat.com>
4437
4438 * symtab.c (completion_list_add_name): Return boolean indication
4439 of whether the symbol matched.
4440 (completion_list_add_symbol): Don't try to remove C++ aliases if
4441 the symbol didn't match in the first place.
4442 * symtab.h (completion_list_add_name): Return bool.
4443
4444 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4445
4446 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4447 type::field.
4448
4449 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4450
4451 GDB 9.2 released.
4452
4453 2020-05-23 Tom Tromey <tom@tromey.com>
4454
4455 * NEWS: Add entry for completion styling.
4456 * completer.c (_rl_completion_prefix_display_length): Move
4457 declaration earlier.
4458 (gdb_fnprint): Use completion_style.
4459 (gdb_display_match_list_1): Likewise.
4460 * cli/cli-style.c (completion_prefix_style)
4461 (completion_difference_style, completion_suffix_style): New
4462 globals.
4463 (_initialize_cli_style): Register new globals.
4464 * cli/cli-style.h (completion_prefix_style)
4465 (completion_difference_style, completion_suffix_style): Declare.
4466
4467 2020-05-23 Pedro Alves <palves@redhat.com>
4468
4469 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4470 (parse_escape): Use ISDIGIT instead of isdigit.
4471 (puts_debug): Use gdb_isprint instead of isprint.
4472 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4473 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4474 ISSPACE instead of isspace.
4475 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4476 instead of isspace.
4477 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4478 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4479 instead of isxdigit and ISDIGIT instead of isdigit.
4480
4481 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * gdbtypes.h (struct type) <field>: New method.
4484 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4485 or type::field.
4486
4487 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4490 (TYPE_FIELDS): Use type::fields. Change all call sites that
4491 modify the propery to use type::set_fields instead.
4492
4493 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4496 type::num_fields instead.
4497
4498 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4501 methods.
4502 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4503 that modify the number of fields to use type::set_num_fields
4504 instead.
4505
4506 2020-05-22 Tom Tromey <tromey@adacore.com>
4507
4508 * compile/compile-object-load.h (munmap_list_free): Don't
4509 declare.
4510
4511 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4512
4513 * annotate.c (annotate_source_line): Update return type, add call
4514 to update current symtab and line.
4515 * annotate.h (annotate_source_line): Update return type, and
4516 extend header comment.
4517 * source.c (info_line_command): Check annotation_level before
4518 calling annotate_source_line.
4519 * stack.c (print_frame_info): If calling annotate_source_line
4520 returns true, then don't print any other source line information.
4521
4522 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4525
4526 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * coffread.c (patch_type): Remove NULL check before xfree.
4529 * corefile.c (set_gnutarget): Likewise.
4530 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4531 * exec.c (build_section_table): Likewise.
4532 * remote.c (remote_target::pass_signals): Likewise.
4533 * utils.c (n_spaces): Likewise.
4534 * cli/cli-script.c (document_command): Likewise.
4535 * i386-windows-tdep.c (core_process_module_section): Likewise.
4536 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4537
4538 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * symfile.c (reread_symbols): Clear objfile's section_offsets
4541 vector and section indices, re-compute them by calling
4542 sym_offsets.
4543
4544 2020-05-20 Tom Tromey <tromey@adacore.com>
4545
4546 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4547 (desc_one_bound, desc_index_type): Compute field name.
4548
4549 2020-05-20 Tom de Vries <tdevries@suse.de>
4550
4551 PR symtab/25833
4552 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4553
4554 2020-05-20 Alan Modra <amodra@gmail.com>
4555
4556 PR 25993
4557 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4558 bfd_set_filename.
4559 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4560 passed to bfd_set_filename.
4561 * symfile-mem.c (add_vsyscall_page): Likewise for string
4562 passed to symbol_file_add_from_memory.
4563 (symbol_file_add_from_memory): Make name param a const char* and
4564 don't strdup.
4565
4566 2020-05-20 Alan Modra <amodra@gmail.com>
4567
4568 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4569 rather than accessing bfd->filename directly.
4570 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4571 and use bfd_section_name.
4572 * dwarf2/frame.c (decode_frame_entry): Likewise.
4573 * exec.c (exec_set_section_address): Likewise.
4574 * solib-aix.c (solib_aix_bfd_open): Likewise.
4575 * stap-probe.c (get_stap_base_address): Likewise.
4576 * symfile.c (reread_symbols): Likewise.
4577
4578 2020-05-19 Tom Tromey <tromey@adacore.com>
4579
4580 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4581
4582 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4585
4586 2020-05-19 Pedro Alves <palves@redhat.com>
4587
4588 * NEWS (set exec-file-mismatch): Adjust entry.
4589 * exec.c: Include "build-id.h".
4590 (validate_exec_file): Try to match build IDs instead of filenames.
4591 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4592 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4593 and pass down 'warn_if_slow'.
4594 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4595 gdb_bfd_open_closure to pass it down.
4596 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4597
4598 2020-05-19 Pedro Alves <palves@redhat.com>
4599
4600 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4601 * target.c (target_fileio_open_1): Rename to target_fileio_open
4602 and make extern. Use bool.
4603 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4604 (target_fileio_read_alloc_1): Adjust.
4605 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4606 (target_fileio_open_warn_if_slow): Delete declaration.
4607
4608 2020-05-19 Pedro Alves <palves@redhat.com>
4609
4610 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4611 Adjust all callers.
4612
4613 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4614
4615 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4616 whether disp is negative.
4617
4618 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * symfile.h (struct symfile_segment_data)
4621 <~symfile_segment_data>: Remove.
4622 <segment_info>: Change to std::vector.
4623 * symfile.c (default_symfile_segments): Update.
4624 * elfread.c (elf_symfile_segments): Update.
4625
4626 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4629 <segments>: New.
4630 <segment_bases, segment_sizes>: Remove.
4631 * symfile.c (default_symfile_segments): Update.
4632 * elfread.c (elf_symfile_segments): Update.
4633 * remote.c (remote_target::get_offsets): Update.
4634 * solib-target.c (solib_target_relocate_section_addresses):
4635 Update.
4636
4637 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * symfile.h (struct symfile_segment_data): Initialize fields.
4640 <~symfile_segment_data>: Add.
4641 (symfile_segment_data_up): New.
4642 (struct sym_fns) <sym_segments>: Return a
4643 symfile_segment_data_up.
4644 (default_symfile_segments): Return a symfile_segment_data_up.
4645 (free_symfile_segment_data): Remove.
4646 (get_symfile_segment_data): Return a symfile_segment_data_up.
4647 * symfile.c (default_symfile_segments): Likewise.
4648 (get_symfile_segment_data): Likewise.
4649 (free_symfile_segment_data): Remove.
4650 (symfile_find_segment_sections): Update.
4651 * elfread.c (elf_symfile_segments): Return a
4652 symfile_segment_data_up.
4653 * remote.c (remote_target::get_offsets): Update.
4654 * solib-target.c (solib_target_relocate_section_addresses):
4655 Update.
4656 * symfile-debug.c (debug_sym_segments): Return a
4657 symfile_segment_data_up.
4658
4659 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4660
4661 PR build/25981
4662 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4663 Hardcode register numbers.
4664
4665 PR build/25981
4666 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4667 procfs_find_LDT_entry): Remove.
4668 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4669 procfs_find_LDT_entry): Remove.
4670 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4671 Remove.
4672
4673 2020-05-17 Pedro Alves <palves@redhat.com>
4674 Andrew Burgess <andrew.burgess@embecosm.com>
4675 Keno Fischer <keno@juliacomputing.com>
4676
4677 PR gdb/25741
4678 * breakpoint.c (build_target_condition_list): Update comments.
4679 (build_target_command_list): Update comments and skip matching
4680 locations.
4681 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4682 a separate function. Simplify "set breakpoint auto-hw off"
4683 handling.
4684 (insert_breakpoints): Update comment.
4685 (tracepoint_locations_match): New parameter. For breakpoints,
4686 compare location types too, if the caller wants to.
4687 (handle_automatic_hardware_breakpoints): New functions.
4688 (bp_location_is_less_than): Also sort by location type and
4689 hardware breakpoint length.
4690 (update_global_location_list): Handle "set breakpoint auto-hw on"
4691 here.
4692 (update_breakpoint_locations): Ask breakpoint_locations_match to
4693 ignore location types.
4694
4695 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4698 type::name instead.
4699
4700 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.h (struct type) <name, set_name>: New methods.
4703 (TYPE_CODE): Use type::name. Change all call sites used to set
4704 the name to use type::set_name instead.
4705
4706 2020-05-16 Tom Tromey <tom@tromey.com>
4707
4708 * top.c (quit_force): Update.
4709 * infrun.c (handle_no_resumed): Update.
4710 * top.h (all_uis): New function.
4711 (ALL_UIS): Remove.
4712
4713 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4716
4717 2020-05-16 Pedro Alves <palves@redhat.com>
4718
4719 * ia64-linux-nat.c
4720 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4721 Declare method.
4722 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4723
4724 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4727 (sparc64_adi_info): Likewise.
4728
4729 2020-05-15 Tom Tromey <tom@tromey.com>
4730
4731 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4732 block_objfile.
4733 (lookup_objfile_from_block): Remove.
4734 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4735 (lookup_global_symbol): Use block_objfile.
4736 * symtab.h (lookup_objfile_from_block): Don't declare.
4737 * printcmd.c (clear_dangling_display_expressions): Use
4738 block_objfile.
4739 * parse.c (operator_check_standard): Use block_objfile.
4740
4741 2020-05-15 Tom Tromey <tom@tromey.com>
4742
4743 * language.c (language_alloc_type_symbol): Set
4744 SYMBOL_SECTION.
4745 * symtab.c (initialize_objfile_symbol): Remove.
4746 (allocate_symbol): Remove.
4747 (allocate_template_symbol): Remove.
4748 * dwarf2/read.c (fixup_go_packaging): Use "new".
4749 (new_symbol): Use "new".
4750 (read_variable): Don't call initialize_objfile_symbol. Use
4751 "new".
4752 (read_func_scope): Use "new".
4753 * xcoffread.c (process_xcoff_symbol): Don't call
4754 initialize_objfile_symbol.
4755 (SYMBOL_DUP): Remove.
4756 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4757 "new".
4758 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4759 (allocate_template_symbol): Don't declare.
4760 (struct symbol): Add copy constructor. Change defaults.
4761 * jit.c (finalize_symtab): Use "new".
4762 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4763 Use "new".
4764 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4765 (common_block_end): Use "new".
4766 * mdebugread.c (parse_symbol): Use "new".
4767 (new_symbol): Likewise.
4768
4769 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4770
4771 * NEWS: Mention changes to help and apropos.
4772
4773 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774
4775 * command.h (enum command_class): Improve comments, document
4776 that class_alias is for user-defined aliases, give the class
4777 name for each class, remove unused class_xdb.
4778 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4779 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4780 by a precise class.
4781 * infcmd.c (_initialize_infcmd): Likewise.
4782 * reverse.c (_initialize_reverse): Likewise.
4783 * stack.c (_initialize_stack): Likewise.
4784 * symfile.c (_initialize_symfile): Likewise.
4785 * tracepoint.c (_initialize_tracepoint): Likewise.
4786
4787 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4788
4789 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4790 when their aliased command is traversed.
4791 (help_cmd): Add fput_command_names_styled call to
4792 output command name and aliases when command has an alias.
4793
4794 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4795
4796 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4797 * cli/cli-decode.c (help_cmd_list): Declare as static,
4798 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4799 a command together with the command.
4800 (fput_command_name_styled, fput_command_names_styled): New functions.
4801 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4802 fput_command_name_styled.
4803 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4804 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4805
4806 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4807
4808 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4809 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4810 * command.h (cmd_show_list): Likewise.
4811 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4812 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4813
4814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * unittests/command-def-selftests.c (traverse_command_structure):
4817 Verify all commands of a list have the same prefix command and
4818 that only the top cmdlist commands have a null prefix.
4819
4820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4821
4822 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4823 as prefix, not one of its aliases.
4824 (set_cmd_prefix): Remove.
4825 (do_add_cmd): Centralize the setting of the prefix of a command, when
4826 command is defined after its full chain of prefix commands.
4827 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4828 (add_setshow_cmd_full): Likewise.
4829 (update_prefix_field_of_prefixed_commands): New function.
4830 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4831 update_prefix_field_of_prefixed_commands.
4832 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4833 addresses of remote_set_cmdlist and remote_show_cmdlist given
4834 as argument, not the address of an argument.
4835 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4836 * gdb/remote.c (_initialize_remote): Likewise.
4837
4838 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4839
4840 * cli/cli-cmds.c (alias_command): Check for an existing alias
4841 using lookup_cmd_composition, as valid_command_p is too strict
4842 and forbids aliases that are the prefix of an existing alias
4843 or command.
4844 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4845 command is properly recognised as a valid command.
4846
4847 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4848
4849 * unittests/help-doc-selftests.c: Rename to
4850 unittests/command-def-selftests.c
4851 * unittests/command-def-selftests.c (help_doc_tests): Update some
4852 comments.
4853 (command_structure_tests, traverse_command_structure): New namespace
4854 and function.
4855 (command_structure_invariants_tests): New function.
4856 (_initialize_command_def_selftests) Renamed from
4857 _initialize_help_doc_selftests, register command_structure_invariants
4858 selftest.
4859
4860 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4861
4862 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4863 an alias of 'show'.
4864
4865 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4866
4867 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4868 ada_is_fixed_point_type. Update all callers.
4869 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4870 all callers.
4871 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4872 Update all callers.
4873 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4874 print_fixed_point_type. Update all callers.
4875 * ada-valprint.c (ada_value_print_num): Replace call to
4876 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4877
4878 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4879
4880 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4881 processors.
4882 (cpu_supports_bts): Add CV_AMD case.
4883
4884 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4885 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * infrun.c (stop_all_threads): Collect multiple wait events at
4888 each pass.
4889
4890 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4893 type::code instead.
4894
4895 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * gdbtypes.h (struct type) <code, set_code>: New methods.
4898 (TYPE_CODE): Use type::code. Change all call sites used to set
4899 the code to use type::set_code instead.
4900
4901 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4902 Tom de Vries <tdevries@suse.de>
4903 Pedro Alves <palves@redhat.com>
4904
4905 PR threads/25478
4906 * infrun.c (stop_all_threads): Do NOT ignore
4907 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4908 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4909 received.
4910 (handle_no_resumed): Remove code handling a live inferior with no
4911 threads.
4912 * remote.c (has_single_non_exited_thread): New.
4913 (remote_target::update_thread_list): Do not delete a thread if is
4914 the last thread of the process.
4915 * thread.c (thread_select): Call delete_exited_threads instead of
4916 prune_threads.
4917
4918 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4919
4920 * infrun.c (stop_all_threads): Enable/disable thread events of all
4921 targets. Move a debug message denoting the end of the function
4922 into the SCOPED_EXIT block.
4923
4924 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4925
4926 * process-stratum-target.h: Include <set>.
4927 (all_non_exited_process_targets, switch_to_target_no_thread): New
4928 function declarations.
4929 * process-stratum-target.c (all_non_exited_process_targets)
4930 (switch_to_target_no_thread): New function implementations.
4931
4932 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4933
4934 * infrun.c (handle_inferior_event): Extract out a piece of code
4935 into...
4936 (mark_non_executing_threads): ...this new function.
4937
4938 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4939
4940 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4941 use.
4942
4943 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4944
4945 * regcache.c (regcache_read_pc_protected): New function
4946 implementation that returns 0 if the PC cannot read via
4947 'regcache_read_pc'.
4948 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4949 instead of 'regcache_read_pc'.
4950 (keep_going_pass_signal): Ditto.
4951
4952 2020-05-13 Tom Tromey <tromey@adacore.com>
4953
4954 * ada-lang.c (align_value): Remove.
4955 (ada_template_to_fixed_record_type_1): Use align_up.
4956
4957 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4958
4959 * async-event.c: Update the copyright year.
4960 * async-event.h: Update the copyright year.
4961
4962 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * objfiles.h (is_addr_in_objfile,
4965 shared_objfile_contains_address_p): Return bool.
4966 * objfile.c (is_addr_in_objfile,
4967 shared_objfile_contains_address_p): Return bool.
4968
4969 2020-05-11 Tom Tromey <tromey@adacore.com>
4970
4971 * cli/cli-cmds.c (info_command): Restore.
4972 (_initialize_cli_cmds): Use add_prefix_command for "info".
4973 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4974
4975 2020-05-11 Tom Tromey <tromey@adacore.com>
4976
4977 * ada-lang.c (ada_value_primitive_field): Now public.
4978 * ada-lang.h (ada_value_primitive_field): Declare.
4979 * ada-valprint.c (print_field_values): Use
4980 ada_value_primitive_field for wrapper fields.
4981
4982 2020-05-11 Tom de Vries <tdevries@suse.de>
4983
4984 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4985 MODULE_DOMAIN.
4986
4987 2020-05-11 Tom de Vries <tdevries@suse.de>
4988
4989 PR symtab/25941
4990 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4991 with length 0, if not gdb-produced.
4992 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4993
4994 2020-05-09 Tom de Vries <tdevries@suse.de>
4995
4996 PR gdb/25955
4997 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4998 calculation.
4999
5000 2020-05-09 Tom Tromey <tom@tromey.com>
5001
5002 * top.c (server_command): Now bool.
5003 * top.h (server_command): Now bool.
5004
5005 2020-05-08 Tom Tromey <tromey@adacore.com>
5006
5007 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5008 already being processed.
5009
5010 2020-05-08 Tom Tromey <tom@tromey.com>
5011
5012 * printcmd.c (struct display) <next>: Remove.
5013 <display>: New constructor.
5014 <exp_string>: Now a std::string.
5015 <enabled_p>: Now a bool.
5016 (display_number): Move definition earlier.
5017 (displays): Rename from display_chain. Now a std::vector.
5018 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5019 (display_command): Update.
5020 (do_one_display, disable_display)
5021 (enable_disable_display_command, do_enable_disable_display):
5022 Update.
5023 (free_display): Remove.
5024 (clear_displays): Rewrite.
5025 (delete_display): Update.
5026 (map_display_numbers): Use function_view. Remove "data"
5027 parameter. Update.
5028 (do_delete_display): Remove.
5029 (undisplay_command): Update.
5030 (do_one_display, do_displays, disable_display)
5031 (info_display_command): Update.
5032 (do_enable_disable_display): Remove.
5033 (enable_disable_display_command)
5034 (clear_dangling_display_expressions): Update.
5035
5036 2020-05-08 Tom Tromey <tom@tromey.com>
5037
5038 * symtab.c (set_symbol_cache_size)
5039 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5040 (maintenance_print_symbol_cache_statistics): Update.
5041 * symmisc.c (print_symbol_bcache_statistics)
5042 (print_objfile_statistics, maintenance_print_objfiles)
5043 (maintenance_info_symtabs, maintenance_check_symtabs)
5044 (maintenance_expand_symtabs, maintenance_info_line_tables):
5045 Update.
5046 * symfile-debug.c (set_debug_symfile): Update.
5047 * source.c (forget_cached_source_info): Update.
5048 * python/python.c (gdbpy_progspaces): Update.
5049 * psymtab.c (maintenance_info_psymtabs): Update.
5050 * probe.c (parse_probes): Update.
5051 * linespec.c (iterate_over_all_matching_symtabs)
5052 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5053 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5054 * exec.c (exec_target::close): Update.
5055 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5056 * breakpoint.c (print_one_breakpoint_location)
5057 (create_longjmp_master_breakpoint)
5058 (create_std_terminate_master_breakpoint): Update.
5059 * progspace.c (program_spaces): Now a std::vector.
5060 (maybe_new_address_space): Update.
5061 (add_program_space): Remove.
5062 (program_space::program_space): Update.
5063 (remove_program_space): Update.
5064 (number_of_program_spaces): Remove.
5065 (print_program_space, update_address_spaces): Update.
5066 * progspace.h (program_spaces): Change type.
5067 (ALL_PSPACES): Remove.
5068 (number_of_program_spaces): Don't declare.
5069 (struct program_space) <next>: Remove.
5070
5071 2020-05-08 Tom Tromey <tom@tromey.com>
5072
5073 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5074 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5075 (enable_break): Update.
5076 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5077 (frv_fdpic_find_canonical_descriptor): Update.
5078 (frv_fetch_objfile_link_map): Update.
5079 * progspace.c (program_space::free_all_objfiles): Update.
5080 (program_space::solibs): New method.
5081 * progspace.h (struct program_space) <solibs>: New method.
5082 * solist.h (master_so_list): Don't declare.
5083 (ALL_SO_LIBS): Remove.
5084 * solib.h (so_list_head): Remove.
5085 (update_solib_list): Update comment.
5086 * solib.c (master_so_list): Remove.
5087 (solib_used, update_solib_list, solib_add)
5088 (info_sharedlibrary_command, clear_solib)
5089 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5090
5091 2020-05-08 Tom Tromey <tom@tromey.com>
5092
5093 * extension.c (extension_languages): Now a std::array.
5094 (ALL_EXTENSION_LANGUAGES): Remove.
5095 (get_ext_lang_defn, get_ext_lang_of_file)
5096 (eval_ext_lang_from_control_command): Update.
5097 (finish_ext_lang_initialization)
5098 (auto_load_ext_lang_scripts_for_objfile)
5099 (ext_lang_type_printers::ext_lang_type_printers)
5100 (apply_ext_lang_type_printers)
5101 (ext_lang_type_printers::~ext_lang_type_printers)
5102 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5103 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5104 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5105 (get_matching_xmethod_workers, ext_lang_colorize)
5106 (ext_lang_before_prompt): Update.
5107 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5108
5109 2020-05-08 Tom Tromey <tom@tromey.com>
5110
5111 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5112 overload.
5113 <swap_string, m_string>: Remove.
5114 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5115 Update.
5116 * stabsread.c (define_symbol, read_type): Update.
5117 * linespec.c (find_linespec_symbols): Update.
5118 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5119 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5120 * dbxread.c (read_dbx_symtab): Update.
5121 * cp-support.h (cp_canonicalize_string_full)
5122 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5123 Return unique_xmalloc_ptr.
5124 * cp-support.c (inspect_type): Update.
5125 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5126 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5127 Likewise.
5128 * c-typeprint.c (print_name_maybe_canonical): Update.
5129 * break-catch-throw.c (check_status_exception_catchpoint):
5130 Update.
5131
5132 2020-05-08 Tom de Vries <tdevries@suse.de>
5133
5134 * infrun.c (follow_fork): Copy current_line and current_symtab to
5135 child thread.
5136
5137 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * async-event.c (struct async_signal_handler, struct
5140 async_event_handler): Reformat, remove typedef.
5141
5142 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5145 access thistype->main_type->dyn_prop_list directly.
5146
5147 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5150 (remove_dyn_prop): Remove. Update all users to use
5151 type::remove_dyn_prop.
5152 * gdbtypes.c (remove_dyn_prop): Rename to...
5153 (type::remove_dyn_prop): ... this.
5154
5155 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5156
5157 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5158 (add_dyn_prop): Remove. Update all users to use
5159 type::add_dyn_prop.
5160 * gdbtypes.c (add_dyn_prop): Rename to...
5161 (type::add_dyn_prop): ... this.
5162
5163 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5166 (get_dyn_prop): Remove. Update all users to use
5167 type::dyn_prop.
5168 * gdbtypes.c (get_dyn_prop): Rename to...
5169 (type::dyn_prop): ... this.
5170
5171 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5174
5175 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5178 instruction, skip it if it's there.
5179
5180 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5183
5184 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5187 * gdbtypes.c (recursive_dump_type): Remove use of
5188 TYPE_INCOMPLETE.
5189
5190 2020-05-03 Tom Tromey <tom@tromey.com>
5191
5192 * breakpoint.c (catch_command, tcatch_command): Remove.
5193 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5194 add_show_prefix_cmd.
5195 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5196 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5197 Remove.
5198 (add_internal_problem_command): Use add_basic_prefix_cmd,
5199 add_show_prefix_cmd.
5200 * mips-tdep.c (set_mipsfpu_command): Remove.
5201 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5202 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5203 (_initialize_index_cache): Use add_basic_prefix_cmd.
5204 * memattr.c (dummy_cmd): Remove.
5205 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5206 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5207 (_initialize_tui_win): Use add_basic_prefix_cmd,
5208 add_show_prefix_cmd.
5209 * cli/cli-logging.c (set_logging_command): Remove.
5210 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5211 add_show_prefix_cmd.
5212 (show_logging_command): Remove.
5213 * target.c (target_command): Remove.
5214 (add_target): Use add_basic_prefix_cmd.
5215
5216 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5217
5218 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5219
5220 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5221
5222 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5223 info_command.
5224
5225 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5226
5227 * nbsd-nat.c (nbsd_enable_proc_events)
5228 (nbsd_nat_target::post_startup_inferior): Add.
5229 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5230 (nbsd_nat_target::update_thread_list): Rewrite.
5231 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5232 "PTRACE_LWP_CREATE".
5233 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5234
5235 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * stack.c (_initialize_stack): Remove duplicated creation
5238 of "frame" command and "f" alias.
5239
5240 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5241
5242 PR gdb/18706
5243 * gdbtypes.c (check_typedef): Calculate size of array of
5244 stubbed type.
5245
5246 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5247
5248 PR gdb/15559
5249 * i386-tdep.c (i386_push_dummy_call): Call
5250 i386_thiscall_push_dummy_call.
5251 (i386_thiscall_push_dummy_call): New function.
5252 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5253 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5254 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5255
5256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5257
5258 * gdbarch.sh (do_read): Add shellcheck disable directive for
5259 warning SC2162.
5260
5261 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5264 "referenced but not assigned" warning.
5265
5266 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbarch.sh: Remove code that sets fallbackdefault.
5269
5270 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * gdbarch.sh: Use shell operators && and || instead of
5273 -a and -o.
5274
5275 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * gdbarch.sh: Use $(...) instead of `...`.
5278
5279 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbarch.sh: Use double quotes around variables.
5282
5283 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * gdbarch.sh: Use %s with printf, instead of variables in the
5286 format string.
5287
5288 2020-04-29 Tom Tromey <tromey@adacore.com>
5289
5290 PR ada/25875:
5291 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5292 type fields here.
5293 (read_enumeration_type): Call
5294 update_enumeration_type_from_children later. Update comments.
5295 (process_enumeration_scope): Don't create type fields.
5296
5297 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5298
5299 * nbsd-tdep.c: Include "xml-syscall.h".
5300 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5301
5302 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5303
5304 * nbsd-nat.c: Include "sys/wait.h".
5305 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5306 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5307 (nbsd_nat_target::remove_exec_catchpoint)
5308 (nbsd_nat_target::set_syscall_catchpoint): Add.
5309 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5310 (nbsd_nat_target::insert_exec_catchpoint)
5311 (nbsd_nat_target::remove_exec_catchpoint)
5312 (nbsd_nat_target::set_syscall_catchpoint): Add.
5313 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5314 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5315 `nbsd_get_syscall_number'.
5316
5317 2020-04-29 Tom Tromey <tom@tromey.com>
5318
5319 * stack.c (print_block_frame_labels): Remove.
5320
5321 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5322
5323 PR gdb/17320
5324 * ada-valprint.c (val_print_packed_array_elements): Move array
5325 end bracket to new line.
5326 (ada_val_print_string): Remove extra spaces before first array
5327 element.
5328 * c-valprint.c (c_value_print_array): Likewise.
5329 * m2-valprint.c (m2_print_array_contents): Likewise.
5330 (m2_value_print_inner): Likewise.
5331 * p-valprint.c (pascal_value_print_inner): Likewise.
5332 * valprint.c (generic_val_print_array): Likewise.
5333 (value_print_array_elements): Move first array element and array
5334 end bracket to new line.
5335
5336 2020-04-29 Tom de Vries <tdevries@suse.de>
5337
5338 PR symtab/25889
5339 * linespec.c (find_method): Fix ix calculation.
5340
5341 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5342
5343 * syscalls/update-netbsd.sh: New file.
5344 * syscalls/netbsd.xml: Regenerate.
5345 * data-directory/Makefile.in: Register `netbsd.xml' in
5346 `SYSCALLS_FILES'.
5347
5348 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * syscalls/update-freebsd.sh: Add double quotes.
5351
5352 2020-04-28 Tom Tromey <tom@tromey.com>
5353
5354 * NEWS: Update.
5355 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5356 (cmdpy_init): Allow class_tui.
5357
5358 2020-04-28 Mark Williams <mark@myosotissp.com>
5359
5360 PR gdb/24480
5361 * dwarf2read.c: Add missing assingments to list_in_scope when
5362 start_symtab was already called.
5363
5364 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5365
5366 PR gdb/25881
5367 * dwarf2/read.c (offset_map_type): Use
5368 gdb:hash_enum<sect_offset> as hash function.
5369
5370 2020-04-28 Tom de Vries <tdevries@suse.de>
5371
5372 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5373 with DW_AT_signature.
5374
5375 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * configure.ac: Remove check for fs_base/gs_base in
5378 user_regs_struct.
5379 * configure: Re-generate.
5380 * config.in: Re-generate.
5381 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5382 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5383 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5384
5385 2020-04-27 Luis Machado <luis.machado@linaro.org>
5386
5387 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5388 problematic inline frame unwinding situation.
5389 * frame.c (frame_id_computed_p): New function.
5390 * frame.h (frame_id_computed_p): New prototype.
5391
5392 2020-04-26 Tom Tromey <tom@tromey.com>
5393
5394 * command.h (enum command_class) <class_pseudo>: Remove.
5395
5396 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5397
5398 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5399 and whitespace.
5400
5401 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5402
5403 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5404 `PT_GET_PROCESS_STATE' block.
5405
5406 2020-04-24 Tom Tromey <tom@tromey.com>
5407
5408 * symtab.h (symbol_get_demangled_name): Don't declare.
5409 * symtab.c (symbol_get_demangled_name): Remove.
5410 (general_symbol_info::natural_name)
5411 (general_symbol_info::demangled_name): Update.
5412
5413 2020-04-24 Tom Tromey <tom@tromey.com>
5414
5415 PR rust/25025:
5416 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5417
5418 2020-04-24 Tom Tromey <tom@tromey.com>
5419
5420 PR symtab/12707:
5421 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5422 exists.
5423 (new_symbol): Likewise.
5424 * compile/compile-object-load.c (get_out_value_type): Use
5425 symbol_matches_search_name.
5426
5427 2020-04-24 Tom Tromey <tom@tromey.com>
5428
5429 * dwarf2/read.c (add_partial_symbol): Do not call
5430 compute_and_set_names.
5431
5432 2020-04-24 Tom Tromey <tom@tromey.com>
5433
5434 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5435 overload.
5436
5437 2020-04-24 Tom Tromey <tom@tromey.com>
5438
5439 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5440 (add_psymbol_to_list): New overload. Make old overload call new
5441 one.
5442 * psympriv.h (add_psymbol_to_list): New overload.
5443
5444 2020-04-24 Tom Tromey <tom@tromey.com>
5445
5446 * dwarf2/read.c (partial_die_info::read) <case
5447 DW_AT_linkage_name>: Use value_as_string.
5448 (dwarf2_string_attr): Use value_as_string.
5449 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5450 method.
5451 * dwarf2/attribute.c (attribute::value_as_string): New method.
5452
5453 2020-04-24 Tom Tromey <tom@tromey.com>
5454
5455 * symtab.c (general_symbol_info::natural_name)
5456 (general_symbol_info::demangled_name): Check for language_rust.
5457
5458 2020-04-24 Tom Tromey <tom@tromey.com>
5459
5460 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5461 (dwarf2_physname): ... from here.
5462 (partial_die_info::read): Add Rust "{" hack.
5463
5464 2020-04-24 Tom Tromey <tom@tromey.com>
5465
5466 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5467 method.
5468 (symbol_set_demangled_name): Don't declare.
5469 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5470 symbol_set_demangled_name.
5471 (general_symbol_info::set_language)
5472 (general_symbol_info::compute_and_set_names): Update.
5473 * minsyms.c (minimal_symbol_reader::install): Update.
5474 * dwarf2/read.c (new_symbol): Update.
5475
5476 2020-04-24 Tom Tromey <tromey@adacore.com>
5477
5478 PR python/23662:
5479 * python/py-type.c (convert_field): Handle
5480 FIELD_LOC_KIND_DWARF_BLOCK.
5481 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5482 (typy_get_dynamic): Nw function.
5483 (type_object_getset): Add "dynamic".
5484 * NEWS: Add entry.
5485
5486 2020-04-24 Tom Tromey <tromey@adacore.com>
5487
5488 * ada-typeprint.c (print_choices, print_variant_part)
5489 (print_record_field_types_dynamic): New functions.
5490 (print_record_field_types): Use print_record_field_types_dynamic.
5491
5492 2020-04-24 Tom Tromey <tromey@adacore.com>
5493
5494 * dwarf2/read.c (handle_data_member_location): New overload.
5495 (dwarf2_add_field): Use it.
5496 (decode_locdesc): Add "computed" parameter. Update comment.
5497 * gdbtypes.c (is_dynamic_type_internal): Also look for
5498 FIELD_LOC_KIND_DWARF_BLOCK.
5499 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5500 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5501 virtual base classes.
5502 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5503 FIELD_LOC_KIND_DWARF_BLOCK.
5504
5505 2020-04-24 Tom Tromey <tromey@adacore.com>
5506
5507 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5508 * gdbtypes.c (is_dynamic_type_internal): Check
5509 TYPE_HAS_DYNAMIC_LENGTH.
5510 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5511 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5512 New macros.
5513 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5514 constant.
5515
5516 2020-04-24 Tom Tromey <tromey@adacore.com>
5517
5518 * dwarf2/read.c (struct variant_field): Rewrite.
5519 (struct variant_part_builder): New.
5520 (struct nextfield): Remove "variant" field. Add "offset".
5521 (struct field_info): Add "current_variant_part" and
5522 "variant_parts".
5523 (alloc_discriminant_info): Remove.
5524 (alloc_rust_variant): New function.
5525 (quirk_rust_enum): Update.
5526 (dwarf2_add_field): Set "offset" member. Don't handle
5527 DW_TAG_variant_part.
5528 (offset_map_type): New typedef.
5529 (convert_variant_range, create_one_variant)
5530 (create_one_variant_part, create_variant_parts)
5531 (add_variant_property): New functions.
5532 (dwarf2_attach_fields_to_type): Call add_variant_property.
5533 (read_structure_type): Don't handle DW_TAG_variant_part.
5534 (handle_variant_part, handle_variant): New functions.
5535 (handle_struct_member_die): Use them.
5536 (process_structure_scope): Don't handle variant parts.
5537 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5538 (struct discriminant_info): Remove.
5539 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5540 (struct main_type) <flag_discriminated_union>: Remove.
5541 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5542 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5543 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5544 Update.
5545 * valops.c (value_union_variant): Remove.
5546 * value.h (value_union_variant): Don't declare.
5547
5548 2020-04-24 Tom Tromey <tromey@adacore.com>
5549
5550 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5551 (ada_value_primitive_packed_val): Update.
5552 * ada-valprint.c (ada_value_print_1): Update.
5553 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5554 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5555 just an address. Use evaluate_for_locexpr_baton.
5556 (dwarf2_evaluate_property): Update.
5557 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5558 array_view.
5559 * findvar.c (default_read_var_value): Update.
5560 * gdbtypes.c (compute_variant_fields_inner)
5561 (resolve_dynamic_type_internal): Update.
5562 (resolve_dynamic_type): Change type of valaddr parameter.
5563 * gdbtypes.h (resolve_dynamic_type): Update.
5564 * valarith.c (value_subscripted_rvalue): Update.
5565 * value.c (value_from_contents_and_address): Update.
5566
5567 2020-04-24 Tom Tromey <tromey@adacore.com>
5568
5569 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5570 "push_initial_value" parameter.
5571 (dwarf2_evaluate_property): Likewise.
5572 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5573
5574 2020-04-24 Tom Tromey <tromey@adacore.com>
5575
5576 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5577 (variant::matches, compute_variant_fields_recurse)
5578 (compute_variant_fields_inner, compute_variant_fields): New
5579 functions.
5580 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5581 Use resolved_type after type is made.
5582 (operator==): Add new cases.
5583 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5584 (struct discriminant_range, struct variant, struct variant_part):
5585 New.
5586 (union dynamic_prop_data) <variant_parts, original_type>: New
5587 members.
5588 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5589 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5590 constants.
5591 * value.c (unpack_bits_as_long): Now public.
5592 * value.h (unpack_bits_as_long): Declare.
5593
5594 2020-04-24 Tom Tromey <tromey@adacore.com>
5595
5596 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5597 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5598
5599 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5600
5601 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5602
5603 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5604
5605 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5606 (remove_fork_catchpoint, post_startup_inferior)
5607 (post_attach): Move...
5608 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5609 (remove_fork_catchpoint, post_startup_inferior)
5610 (post_attach): ...here.
5611 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5612 (remove_fork_catchpoint, post_startup_inferior)
5613 (post_attach): Move...
5614 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5615 (remove_fork_catchpoint, post_startup_inferior)
5616 (post_attach): ...here.
5617
5618 2020-04-24 Tom Tromey <tromey@adacore.com>
5619
5620 * nat/windows-nat.h (struct windows_thread_info)
5621 <pc_adjusted>: New member.
5622 * windows-nat.c (windows_fetch_one_register): Check
5623 pc_adjusted.
5624 (windows_nat_target::get_windows_debug_event)
5625 (windows_nat_target::wait): Set pc_adjusted.
5626
5627 2020-04-24 Tom de Vries <tdevries@suse.de>
5628
5629 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5630 Run gdb-add-index inside temp dir.
5631
5632 2020-04-23 Tom Tromey <tromey@adacore.com>
5633
5634 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5635 in loop.
5636
5637 2020-04-23 Luis Machado <luis.machado@linaro.org>
5638
5639 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5640 get_frame_register instead of gdbarch_unwind_pc.
5641
5642 2020-04-23 Tom de Vries <tdevries@suse.de>
5643
5644 * symtab.c (lookup_global_symbol): Prefer def over decl.
5645
5646 2020-04-23 Tom de Vries <tdevries@suse.de>
5647
5648 PR symtab/25807
5649 * block.c (best_symbol, better_symbol): Promote to external.
5650 * block.h (best_symbol, better_symbol): Declare.
5651 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5652 decl.
5653
5654 2020-04-23 Tom Tromey <tromey@adacore.com>
5655
5656 PR ada/25837:
5657 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5658 "const char *", not a "const std::string &".
5659 <name_and_matcher::operator==>: Update.
5660 * unittests/lookup_name_info-selftests.c: Change type of
5661 "result".
5662
5663 2020-04-23 Tom Tromey <tom@tromey.com>
5664
5665 * inferior.h (iterate_over_inferiors): Don't declare.
5666 * inferior.c (iterate_over_inferiors): Remove.
5667 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5668 Remove.
5669 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5670 use iterate_over_inferiors.
5671 (darwin_resume_inferior_it)
5672 (struct resume_inferior_threads_param)
5673 (darwin_resume_inferior_threads_it): Remove.
5674 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5675
5676 2020-04-23 Tom de Vries <tdevries@suse.de>
5677
5678 * blockframe.c (find_pc_partial_function): Use
5679 find_pc_sect_compunit_symtab rather than
5680 objfile->sf->qf->find_pc_sect_compunit_symtab.
5681
5682 2020-04-22 Tom de Vries <tdevries@suse.de>
5683
5684 PR symtab/25764
5685 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5686 in psymtabs.
5687
5688 2020-04-22 Tom de Vries <tdevries@suse.de>
5689
5690 PR symtab/25801
5691 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5692 symtabs.
5693
5694 2020-04-22 Tom de Vries <tdevries@suse.de>
5695
5696 PR symtab/25700
5697 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5698 CU if already created.
5699
5700 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5701
5702 * infrun.c (displaced_step_fixup): Switch to the event_thread
5703 before calling displaced_step_restore, not after.
5704
5705 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5706
5707 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5708 its inferior is not recorded by us.
5709 (record_btrace_target_open): Replace call to
5710 all_non_exited_threads () with call to current_inferior
5711 ()->non_exited_threads ().
5712 (record_btrace_target::stop_recording): Likewise.
5713 (record_btrace_target::close): Likewise.
5714 (record_btrace_target::wait): Likewise.
5715 (record_btrace_target::record_stop_replaying): Likewise.
5716
5717 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5718
5719 * btrace.c (btrace_enable): Throw an error on double enables and
5720 when enabling recording fails.
5721 (btrace_disable): Throw an error if the thread is not recorded.
5722
5723 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5724
5725 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5726 request if we do not have a thread_info.
5727
5728 2020-04-21 Tom de Vries <tdevries@suse.de>
5729
5730 PR gdb/25471
5731 * thread.c
5732 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5733 exception in get_frame_id.
5734
5735 2020-04-20 Tom Tromey <tromey@adacore.com>
5736
5737 * python/python.c (struct gdbpy_event): Mark move constructor as
5738 noexcept.
5739 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5740 constructor as noexcept.
5741 * completer.h (struct completion_result): Mark move constructor as
5742 noexcept.
5743 * completer.c (completion_result::completion_result): Use
5744 initialization style. Don't call reset_match_list.
5745
5746 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5747
5748 * MAINTAINERS (Write After Approval): Add myself.
5749
5750 2020-04-18 Tom Tromey <tom@tromey.com>
5751
5752 * windows-tdep.c (init_w32_command_list)
5753 (w32_prefix_command_valid): Restore.
5754 (_initialize_windows_tdep): Call init_w32_command_list.
5755
5756 2020-04-18 Tom Tromey <tom@tromey.com>
5757
5758 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5759 * value.c (value_fn_field): Update.
5760 * valops.c (find_function_in_inferior)
5761 (value_allocate_space_in_inferior): Update.
5762 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5763 Update.
5764 * tui/tui-source.c (tui_source_window::set_contents): Update.
5765 * symtab.c (lookup_global_or_static_symbol)
5766 (find_function_start_sal_1, skip_prologue_sal)
5767 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5768 * symmisc.c (dump_msymbols, dump_symtab_1)
5769 (maintenance_print_one_line_table): Update.
5770 * symfile.c (init_entry_point_info, section_is_mapped)
5771 (list_overlays_command, simple_read_overlay_table)
5772 (simple_overlay_update_1): Update.
5773 * stap-probe.c (handle_stap_probe): Update.
5774 * stabsread.c (dbx_init_float_type, define_symbol)
5775 (read_one_struct_field, read_enum_type, read_range_type): Update.
5776 * source.c (info_line_command): Update.
5777 * python/python.c (gdbpy_source_objfile_script)
5778 (gdbpy_execute_objfile_script): Update.
5779 * python/py-type.c (save_objfile_types): Update.
5780 * python/py-objfile.c (py_free_objfile): Update.
5781 * python/py-inferior.c (python_new_objfile): Update.
5782 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5783 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5784 (maintenance_check_psymtabs): Update.
5785 * printcmd.c (info_address_command): Update.
5786 * objfiles.h (struct objfile) <arch>: New method, from
5787 get_objfile_arch.
5788 (get_objfile_arch): Don't declare.
5789 * objfiles.c (get_objfile_arch): Remove.
5790 (filter_overlapping_sections): Update.
5791 * minsyms.c (msymbol_is_function): Update.
5792 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5793 (output_nondebug_symbol): Update.
5794 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5795 (mdebug_expand_psymtab): Update.
5796 * machoread.c (macho_add_oso_symfile): Update.
5797 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5798 Update.
5799 * linux-fork.c (checkpoint_command): Update.
5800 * linespec.c (convert_linespec_to_sals): Update.
5801 * jit.c (finalize_symtab): Update.
5802 * infrun.c (insert_exception_resume_from_probe): Update.
5803 * ia64-tdep.c (ia64_find_unwind_table): Update.
5804 * hppa-tdep.c (internalize_unwinds): Update.
5805 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5806 Update.
5807 * gcore.c (call_target_sbrk): Update.
5808 * elfread.c (record_minimal_symbol, elf_symtab_read)
5809 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5810 (elf_gnu_ifunc_resolve_by_got): Update.
5811 * dwarf2/read.c (create_addrmap_from_index)
5812 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5813 (read_debug_names_from_section)
5814 (process_psymtab_comp_unit_reader, add_partial_symbol)
5815 (add_partial_subprogram, process_full_comp_unit)
5816 (read_file_scope, read_func_scope, read_lexical_block_scope)
5817 (read_call_site_scope, dwarf2_ranges_read)
5818 (dwarf2_record_block_ranges, dwarf2_add_field)
5819 (mark_common_block_symbol_computed, read_tag_pointer_type)
5820 (read_tag_string_type, dwarf2_init_float_type)
5821 (dwarf2_init_complex_target_type, read_base_type)
5822 (partial_die_info::read, partial_die_info::read)
5823 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5824 (dwarf2_fetch_die_loc_sect_off): Update.
5825 * dwarf2/loc.c (dwarf2_find_location_expression)
5826 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5827 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5828 (dwarf2_loc_desc_get_symbol_read_needs)
5829 (locexpr_describe_location_piece, locexpr_describe_location_1)
5830 (loclist_describe_location): Update.
5831 * dwarf2/index-write.c (write_debug_names): Update.
5832 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5833 * dtrace-probe.c (dtrace_process_dof): Update.
5834 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5835 (process_one_symbol): Update.
5836 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5837 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5838 (coff_read_enum_type): Update.
5839 * cli/cli-cmds.c (edit_command, list_command): Update.
5840 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5841 * breakpoint.c (create_overlay_event_breakpoint)
5842 (create_longjmp_master_breakpoint)
5843 (create_std_terminate_master_breakpoint)
5844 (create_exception_master_breakpoint, get_sal_arch): Update.
5845 * block.c (block_gdbarch): Update.
5846 * annotate.c (annotate_source_line): Update.
5847
5848 2020-04-17 Tom Tromey <tromey@adacore.com>
5849
5850 * auto-load.c (show_auto_load_cmd): Remove.
5851 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5852 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5853 (maintenance_print_arc_command): Remove.
5854 * tui/tui-win.c (tui_command): Remove.
5855 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5856 * tui/tui-layout.c (tui_layout_command): Remove.
5857 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5858 * python/python.c (user_set_python, user_show_python): Remove.
5859 (_initialize_python): Use add_basic_prefix_cmd,
5860 add_show_prefix_cmd.
5861 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5862 (install_gdb_commands): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 (info_guile_command): Remove.
5865 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5866 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5867 add_show_prefix_cmd.
5868 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5869 Remove do_set and do_show parameters.
5870 * cli/cli-style.c (set_style, show_style): Remove.
5871 (_initialize_cli_style): Use add_basic_prefix_cmd,
5872 add_show_prefix_cmd.
5873 (cli_style_option::add_setshow_commands): Remove do_set and
5874 do_show parameters.
5875 (cli_style_option::add_setshow_commands): Use
5876 add_basic_prefix_cmd, add_show_prefix_cmd.
5877 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5878 (set_style_name): Remove.
5879 * cli/cli-dump.c (dump_command, append_command): Remove.
5880 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5881 (tekhex_dump_command, binary_dump_command)
5882 (binary_append_command): Remove.
5883 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5884 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5885 (init_w32_command_list): Remove; move into ...
5886 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5887 * valprint.c (set_print, show_print, set_print_raw)
5888 (show_print_raw): Remove.
5889 (_initialize_valprint): Use add_basic_prefix_cmd,
5890 add_show_prefix_cmd.
5891 * typeprint.c (set_print_type, show_print_type): Remove.
5892 (_initialize_typeprint): Use add_basic_prefix_cmd,
5893 add_show_prefix_cmd.
5894 * record.c (set_record_command, show_record_command): Remove.
5895 (_initialize_record): Use add_basic_prefix_cmd,
5896 add_show_prefix_cmd.
5897 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5898 add_show_prefix_cmd.
5899 (info_command, show_command, set_debug, show_debug): Remove.
5900 * top.h (set_history, show_history): Don't declare.
5901 * top.c (set_history, show_history): Remove.
5902 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5903 (unset_tdesc_cmd): Remove.
5904 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5905 add_show_prefix_cmd.
5906 * symtab.c (info_module_command): Remove.
5907 (_initialize_symtab): Use add_basic_prefix_cmd.
5908 * symfile.c (overlay_command): Remove.
5909 (_initialize_symfile): Use add_basic_prefix_cmd.
5910 * sparc64-tdep.c (info_adi_command): Remove.
5911 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5912 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5913 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5914 add_show_prefix_cmd.
5915 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5916 (_initialize_serial): Use add_basic_prefix_cmd,
5917 add_show_prefix_cmd.
5918 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5919 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5920 add_show_prefix_cmd.
5921 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5922 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5923 add_show_prefix_cmd.
5924 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5925 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5926 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5927 add_show_prefix_cmd.
5928 * remote.c (remote_command, set_remote_cmd): Remove.
5929 (_initialize_remote): Use add_basic_prefix_cmd.
5930 * record-full.c (set_record_full_command)
5931 (show_record_full_command): Remove.
5932 (_initialize_record_full): Use add_basic_prefix_cmd,
5933 add_show_prefix_cmd.
5934 * record-btrace.c (cmd_set_record_btrace)
5935 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5936 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5937 (cmd_show_record_btrace_pt): Remove.
5938 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5939 add_show_prefix_cmd.
5940 * ravenscar-thread.c (set_ravenscar_command)
5941 (show_ravenscar_command): Remove.
5942 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 * mips-tdep.c (show_mips_command, set_mips_command)
5945 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5946 add_show_prefix_cmd.
5947 * maint.c (maintenance_command, maintenance_info_command)
5948 (maintenance_check_command, maintenance_print_command)
5949 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5950 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5951 add_show_prefix_cmd.
5952 (show_per_command_cmd): Remove.
5953 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5954 Remove.
5955 (maintenance_show_test_settings_cmd): Remove.
5956 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5957 add_show_prefix_cmd.
5958 * maint-test-options.c (maintenance_test_options_command):
5959 Remove.
5960 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5961 * macrocmd.c (macro_command): Remove
5962 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5963 * language.c (set_check, show_check): Remove.
5964 (_initialize_language): Use add_basic_prefix_cmd,
5965 add_show_prefix_cmd.
5966 * infcmd.c (unset_command): Remove.
5967 (_initialize_infcmd): Use add_basic_prefix_cmd.
5968 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5969 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5970 add_show_prefix_cmd.
5971 * go32-nat.c (go32_info_dos_command): Remove.
5972 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5973 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5974 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5975 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5976 (_initialize_frame): Use add_basic_prefix_cmd,
5977 add_show_prefix_cmd.
5978 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5979 (_initialize_dcache): Use add_basic_prefix_cmd,
5980 add_show_prefix_cmd.
5981 * cp-support.c (maint_cplus_command): Remove.
5982 (_initialize_cp_support): Use add_basic_prefix_cmd.
5983 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5984 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5985 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5986 add_basic_prefix_cmd, add_show_prefix_cmd.
5987 * breakpoint.c (save_command): Remove.
5988 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5989 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5990 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5993 (set_ada_command, show_ada_command): Remove.
5994 (_initialize_ada_language): Use add_basic_prefix_cmd,
5995 add_show_prefix_cmd.
5996 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5997
5998 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5999
6000 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6001 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6002
6003 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6006 warning messages.
6007
6008 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6011 import table is not at beginning of .idata section.
6012
6013 2020-04-16 Pedro Alves <palves@redhat.com>
6014
6015 * inferior.c (delete_inferior): Use delete operator directly
6016 instead of delete_program_space.
6017 * progspace.c (add_program_space): New, factored out from
6018 program_space::program_space.
6019 (remove_program_space): New, factored out from
6020 delete_program_space.
6021 (program_space::program_space): Remove intro comment. Rewrite.
6022 (program_space::~program_space): Remove intro comment. Call
6023 remove_program_space.
6024 (delete_program_space): Delete.
6025 * progspace.h (program_space::program_space): Make explicit. Move
6026 intro comment here, adjusted.
6027 (program_space::~program_space): Move intro comment here,
6028 adjusted.
6029 (delete_program_space): Remove.
6030
6031 2020-04-16 Tom Tromey <tromey@adacore.com>
6032
6033 * windows-nat.c (windows_nat::handle_access_violation): New
6034 function.
6035 * nat/windows-nat.h (handle_access_violation): Declare.
6036 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6037 windows-nat.c. Call handle_access_violation.
6038
6039 2020-04-16 Tom de Vries <tdevries@suse.de>
6040
6041 PR symtab/25791
6042 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6043 CUs without psymtab.
6044
6045 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6046
6047 * python/python.c (do_start_initialization): Don't call
6048 PyEval_InitThreads for Python 3.9 and beyond.
6049
6050 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6051
6052 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6053 thread functions.
6054 (obsd_nat_target::wait): Likewise.
6055
6056 2020-04-15 Tom Tromey <tromey@adacore.com>
6057
6058 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6059 (DEBUG_EXCEPT): Use debug_printf.
6060
6061 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * completer.c (class completion_tracker::completion_hash_entry)
6064 <hash_name>: New member function.
6065 (completion_tracker::discard_completions): New callback to hash a
6066 completion_hash_entry, pass this to htab_create_alloc.
6067
6068 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6069
6070 * windows-nat.c (windows_make_so): Warn rather than stopping with
6071 an error if realpath() fails.
6072
6073 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6074
6075 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6076 (nbsd_nat_target::info_proc): Add do_status.
6077
6078 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6079 Tom de Vries <tdevries@suse.de>
6080
6081 PR symtab/25718
6082 * psympriv.h (struct partial_symtab::read_symtab)
6083 (struct partial_symtab::expand_psymtab)
6084 (struct partial_symtab::read_dependencies): Update comments.
6085 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6086 read_symtab for includer.
6087 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6088 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6089 (struct dwarf2_include_psymtab::m_readin): Remove.
6090 (struct dwarf2_include_psymtab::includer): New member function.
6091 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6092
6093 2020-04-14 Tom de Vries <tdevries@suse.de>
6094
6095 PR symtab/25720
6096 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6097 with NULL symbol_matcher and lookup_name.
6098 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6099 and lookup_name.
6100 * dwarf2/read.c (dw2_expand_symtabs_matching)
6101 (dw2_debug_names_expand_symtabs_matching): Same.
6102 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6103 Make lookup_name a pointer. Update comment.
6104 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6105 lookup_name being a pointer.
6106 * symfile.c (expand_symtabs_matching): Same.
6107 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6108 * linespec.c (iterate_over_all_matching_symtabs): Same.
6109
6110 2020-04-13 Tom Tromey <tom@tromey.com>
6111
6112 * run-on-main-thread.c: Update include.
6113 * unittests/main-thread-selftests.c: Update include.
6114 * tui/tui-win.c: Update include.
6115 * tui/tui-io.c: Update include.
6116 * tui/tui-interp.c: Update include.
6117 * tui/tui-hooks.c: Update include.
6118 * top.h: Update include.
6119 * top.c: Update include.
6120 * ser-base.c: Update include.
6121 * remote.c: Update include.
6122 * remote-notif.c: Update include.
6123 * remote-fileio.c: Update include.
6124 * record-full.c: Update include.
6125 * record-btrace.c: Update include.
6126 * python/python.c: Update include.
6127 * posix-hdep.c: Update include.
6128 * mingw-hdep.c: Update include.
6129 * mi/mi-main.c: Update include.
6130 * mi/mi-interp.c: Update include.
6131 * main.c: Update include.
6132 * linux-nat.c: Update include.
6133 * interps.c: Update include.
6134 * infrun.c: Update include.
6135 * inf-loop.c: Update include.
6136 * event-top.c: Update include.
6137 * event-loop.c: Move to ../gdbsupport/.
6138 * event-loop.h: Move to ../gdbsupport/.
6139 * async-event.h: Update include.
6140 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6141
6142 2020-04-13 Tom Tromey <tom@tromey.com>
6143
6144 * tui/tui-win.c: Include async-event.h.
6145 * remote.c: Include async-event.h.
6146 * remote-notif.c: Include async-event.h.
6147 * record-full.c: Include async-event.h.
6148 * record-btrace.c: Include async-event.h.
6149 * infrun.c: Include async-event.h.
6150 * event-top.c: Include async-event.h.
6151 * event-loop.h: Move some declarations to async-event.h.
6152 * event-loop.c: Don't include ser-event.h or top.h. Move some
6153 code to async-event.c.
6154 * async-event.h: New file.
6155 * async-event.c: New file.
6156 * Makefile.in (COMMON_SFILES): Add async-event.c.
6157 (HFILES_NO_SRCDIR): Add async-event.h.
6158
6159 2020-04-13 Tom Tromey <tom@tromey.com>
6160
6161 * utils.c (flush_streams): New function.
6162 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6163
6164 2020-04-13 Tom Tromey <tom@tromey.com>
6165
6166 * event-loop.c (handle_file_event): Use warning, not
6167 printf_unfiltered.
6168
6169 2020-04-13 Tom Tromey <tom@tromey.com>
6170
6171 * event-loop.c: Include <chrono>.
6172
6173 2020-04-13 Tom Tromey <tom@tromey.com>
6174
6175 * gdb_select.h: Move to ../gdbsupport/.
6176 * event-loop.c: Update include path.
6177 * top.c: Update include path.
6178 * ser-base.c: Update include path.
6179 * ui-file.c: Update include path.
6180 * ser-tcp.c: Update include path.
6181 * guile/scm-ports.c: Update include path.
6182 * posix-hdep.c: Update include path.
6183 * ser-unix.c: Update include path.
6184 * gdb_usleep.c: Update include path.
6185 * mingw-hdep.c: Update include path.
6186 * inflow.c: Update include path.
6187 * infrun.c: Update include path.
6188 * event-top.c: Update include path.
6189
6190 2020-04-13 Tom Tromey <tom@tromey.com>
6191
6192 * configure: Rebuild.
6193 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6194
6195 2020-04-13 Tom Tromey <tom@tromey.com>
6196
6197 * event-loop.h (start_event_loop): Don't declare.
6198 * event-loop.c (start_event_loop): Move...
6199 * main.c (start_event_loop): ...here. Now static.
6200
6201 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6202
6203 * MAINTAINERS: Update my email address.
6204
6205 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6206
6207 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6208 IP_ALL.
6209
6210 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6211
6212 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6213 (nbsd_nat_target::info_proc): Add do_cmdline.
6214
6215 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6216
6217 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6218 (nbsd_nat_target::info_proc): Add do_cwd.
6219
6220 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6221
6222 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6223
6224 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6225
6226 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6227 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6228 (nbsd_nat_target::info_proc): New functions.
6229 * nbsd-nat.c (kinfo_get_vmmap): New function.
6230 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6231 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6232 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6233 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6234 functions.
6235 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6236 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6237 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6238 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6239 (KINFO_VME_FLAG_GROWS_DOWN): New.
6240
6241 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6242
6243 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6244 bit shift.
6245
6246 2020-04-10 Tom Tromey <tromey@adacore.com>
6247
6248 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6249
6250 2020-04-10 Tom Tromey <tromey@adacore.com>
6251
6252 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6253 separate debug files.
6254
6255 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6256
6257 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6258 Move to...
6259 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6260 ... here.
6261 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6262 Check for STATUS_WX86_BREAKPOINT.
6263 (windows_nat_target::wait): Same.
6264
6265 2020-04-10 Tom de Vries <tdevries@suse.de>
6266
6267 PR cli/25808
6268 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6269
6270 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6271
6272 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6273 (Write After Approval): Remove Tom de Vries.
6274
6275 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6276
6277 revert partially:
6278 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6279
6280 * buildsym.c (record_line): Fix undefined behavior and preserve
6281 lines at eof.
6282
6283 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6284
6285 * auxv.h (svr4_auxv_parse): New.
6286 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6287 and generic_auxv_parse.
6288 (svr4_auxv_parse): Add.
6289 * obsd-tdep.c: Include "auxv.h".
6290 (obsd_auxv_parse): Remove.
6291 (obsd_init_abi): Remove comment.
6292 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6293 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6294 * nbsd-tdep.c: Include "auxv.h".
6295 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6296
6297 2020-04-08 Tom Tromey <tromey@adacore.com>
6298
6299 * nat/windows-nat.h (last_wait_event): Don't declare.
6300 (wait_for_debug_event): Update comment.
6301 * nat/windows-nat.c (last_wait_event): Now static.
6302
6303 2020-04-08 Tom Tromey <tromey@adacore.com>
6304
6305 * windows-nat.c (wait_for_debug_event): Move to
6306 nat/windows-nat.c.
6307 * nat/windows-nat.h (wait_for_debug_event): Declare.
6308 * nat/windows-nat.c (wait_for_debug_event): Move from
6309 windows-nat.c. No longer static.
6310
6311 2020-04-08 Tom Tromey <tromey@adacore.com>
6312
6313 * windows-nat.c (get_windows_debug_event): Use
6314 fetch_pending_stop.
6315 * nat/windows-nat.h (fetch_pending_stop): Declare.
6316 * nat/windows-nat.c (fetch_pending_stop): New function.
6317
6318 2020-04-08 Tom Tromey <tromey@adacore.com>
6319
6320 * windows-nat.c (windows_continue): Use matching_pending_stop and
6321 continue_last_debug_event.
6322 * nat/windows-nat.h (matching_pending_stop)
6323 (continue_last_debug_event): Declare.
6324 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6325 (matching_pending_stop, continue_last_debug_event): New
6326 functions.
6327
6328 2020-04-08 Tom Tromey <tromey@adacore.com>
6329
6330 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6331 (handle_exception_result): Move to nat/windows-nat.h.
6332 (DEBUG_EXCEPTION_SIMPLE): Remove.
6333 (windows_nat::handle_ms_vc_exception): New function.
6334 (handle_exception): Move to nat/windows-nat.c.
6335 (get_windows_debug_event): Update.
6336 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6337 nat/windows-nat.c.
6338 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6339 (handle_exception_result): Move from windows-nat.c.
6340 (handle_exception): Declare.
6341 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6342 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6343 windows-nat.c.
6344
6345 2020-04-08 Tom Tromey <tromey@adacore.com>
6346
6347 * windows-nat.c (exception_count, event_count): Remove.
6348 (handle_exception, get_windows_debug_event)
6349 (do_initial_windows_stuff): Update.
6350
6351 2020-04-08 Tom Tromey <tromey@adacore.com>
6352
6353 * windows-nat.c (windows_nat::handle_load_dll)
6354 (windows_nat::handle_unload_dll): Rename. No longer static.
6355 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6356 Declare.
6357
6358 2020-04-08 Tom Tromey <tromey@adacore.com>
6359
6360 * complaints.h (stop_whining): Declare at top-level.
6361 (complaint): Don't declare stop_whining.
6362
6363 2020-04-08 Tom Tromey <tromey@adacore.com>
6364
6365 * windows-nat.c (windows_nat::handle_output_debug_string):
6366 Rename. No longer static.
6367 * nat/windows-nat.h (handle_output_debug_string): Declare.
6368
6369 2020-04-08 Tom Tromey <tromey@adacore.com>
6370
6371 * windows-nat.c (current_process_handle, current_process_id)
6372 (main_thread_id, last_sig, current_event, last_wait_event)
6373 (current_windows_thread, desired_stop_thread_id, pending_stops)
6374 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6375 (display_selectors, fake_create_process)
6376 (get_windows_debug_event): Update.
6377 * nat/windows-nat.h (current_process_handle, current_process_id)
6378 (main_thread_id, last_sig, current_event, last_wait_event)
6379 (current_windows_thread, desired_stop_thread_id, pending_stops)
6380 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6381 * nat/windows-nat.c (current_process_handle, current_process_id)
6382 (main_thread_id, last_sig, current_event, last_wait_event)
6383 (current_windows_thread, desired_stop_thread_id, pending_stops)
6384 (siginfo_er): New globals. Move from windows-nat.c.
6385
6386 2020-04-08 Tom Tromey <tromey@adacore.com>
6387
6388 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6389 (handle_load_dll): Update.
6390 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6391
6392 2020-04-08 Tom Tromey <tromey@adacore.com>
6393
6394 * windows-nat.c (enum thread_disposition_type): Move to
6395 nat/windows-nat.h.
6396 (windows_nat::thread_rec): Rename from thread_rec. No longer
6397 static.
6398 (windows_add_thread, windows_nat_target::fetch_registers)
6399 (windows_nat_target::store_registers, handle_exception)
6400 (windows_nat_target::resume, get_windows_debug_event)
6401 (windows_nat_target::get_tib_address)
6402 (windows_nat_target::thread_name)
6403 (windows_nat_target::thread_alive): Update.
6404 * nat/windows-nat.h (enum thread_disposition_type): Move from
6405 windows-nat.c.
6406 (thread_rec): Declare.
6407
6408 2020-04-08 Tom Tromey <tromey@adacore.com>
6409
6410 * windows-nat.c: Add "using namespace".
6411 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6412 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6413
6414 2020-04-08 Tom Tromey <tromey@adacore.com>
6415
6416 * nat/windows-nat.h (struct windows_thread_info): Declare
6417 destructor.
6418 * nat/windows-nat.c (~windows_thread_info): New.
6419
6420 2020-04-08 Tom Tromey <tromey@adacore.com>
6421
6422 PR gdb/22992
6423 * windows-nat.c (current_event): Update comment.
6424 (last_wait_event, desired_stop_thread_id): New globals.
6425 (struct pending_stop): New.
6426 (pending_stops): New global.
6427 (windows_nat_target) <stopped_by_sw_breakpoint>
6428 <supports_stopped_by_sw_breakpoint>: New methods.
6429 (windows_fetch_one_register): Add assertions. Adjust PC.
6430 (windows_continue): Handle pending stops. Suspend other threads
6431 when stepping. Use last_wait_event
6432 (wait_for_debug_event): New function.
6433 (get_windows_debug_event): Use wait_for_debug_event. Handle
6434 pending stops. Queue spurious stops.
6435 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6436 (windows_nat_target::kill): Use wait_for_debug_event.
6437 * nat/windows-nat.h (struct windows_thread_info)
6438 <stopped_at_software_breakpoint>: New field.
6439 * nat/windows-nat.c (windows_thread_info::resume): Clear
6440 stopped_at_software_breakpoint.
6441
6442 2020-04-08 Tom Tromey <tromey@adacore.com>
6443
6444 * windows-nat.c (enum thread_disposition_type): New.
6445 (thread_rec): Replace "get_context" parameter with "disposition";
6446 change type.
6447 (windows_add_thread, windows_nat_target::fetch_registers)
6448 (windows_nat_target::store_registers, handle_exception)
6449 (windows_nat_target::resume, get_windows_debug_event)
6450 (windows_nat_target::get_tib_address)
6451 (windows_nat_target::thread_name)
6452 (windows_nat_target::thread_alive): Update.
6453
6454 2020-04-08 Tom Tromey <tromey@adacore.com>
6455
6456 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6457 (windows_continue): Use windows_continue::resume.
6458 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6459 resume>: Declare new methods.
6460 * nat/windows-nat.c: New file.
6461 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6462
6463 2020-04-08 Tom Tromey <tromey@adacore.com>
6464
6465 * windows-nat.c (windows_add_thread, windows_delete_thread)
6466 (windows_nat_target::fetch_registers)
6467 (windows_nat_target::store_registers, fake_create_process)
6468 (windows_nat_target::resume, windows_nat_target::resume)
6469 (get_windows_debug_event, windows_nat_target::wait)
6470 (windows_nat_target::pid_to_str)
6471 (windows_nat_target::get_tib_address)
6472 (windows_nat_target::get_ada_task_ptid)
6473 (windows_nat_target::thread_name)
6474 (windows_nat_target::thread_alive): Use lwp, not tid.
6475
6476 2020-04-08 Tom Tromey <tromey@adacore.com>
6477
6478 * windows-nat.c (handle_exception)
6479 (windows_nat_target::thread_name): Update.
6480 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6481 <name>: Now unique_xmalloc_ptr.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (thread_rec)
6486 (windows_nat_target::fetch_registers): Update.
6487 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6488 Update comment.
6489 <debug_registers_changed, reload_context>: Now bool.
6490
6491 2020-04-08 Tom Tromey <tromey@adacore.com>
6492
6493 * windows-nat.c (windows_add_thread): Use new.
6494 (windows_init_thread_list, windows_delete_thread): Use delete.
6495 (get_windows_debug_event): Update.
6496 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6497 destructor, and initializers.
6498
6499 2020-04-08 Tom Tromey <tromey@adacore.com>
6500
6501 * windows-nat.c (struct windows_thread_info): Remove.
6502 * nat/windows-nat.h: New file.
6503
6504 2020-04-08 Tom Tromey <tromey@adacore.com>
6505
6506 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6507 (thread_rec, windows_add_thread, windows_delete_thread)
6508 (windows_continue): Update.
6509
6510 2020-04-08 Tom Tromey <tromey@adacore.com>
6511
6512 * windows-nat.c (struct windows_thread_info): Remove typedef.
6513 (thread_head): Remove.
6514 (thread_list): New global.
6515 (thread_rec, windows_add_thread, windows_init_thread_list)
6516 (windows_delete_thread, windows_continue): Update.
6517
6518 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * windows-tdep.h (windows_init_abi): Add comment.
6521 (cygwin_init_abi): New declaration.
6522 * windows-tdep.c: Split signal enumeration in two, one for
6523 Windows and one for Cygwin.
6524 (windows_gdb_signal_to_target): Only deal with signal of the
6525 Windows OS ABI.
6526 (cygwin_gdb_signal_to_target): New function.
6527 (windows_init_abi): Rename to windows_init_abi_common, don't set
6528 gdb_signal_to_target gdbarch method. Add new new function with
6529 this name.
6530 (cygwin_init_abi): New function.
6531 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6532 comment. Don't call windows_init_abi.
6533 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6534 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6535 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6536 i386_windows_init_abi_common, don't call windows_init_abi. Add
6537 a new function of this name.
6538 (i386_cygwin_init_abi): New function.
6539 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6540 OS ABI Cygwin.
6541
6542 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6543
6544 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6545 parameter.c.
6546 (dwarf2_read_gdb_index): Update.
6547
6548 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6549
6550 * nbsd-tdep.c: Include "objfiles.h".
6551 (nbsd_skip_solib_resolver): New.
6552 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6553
6554 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6555
6556 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6557 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6558 with DW_LLE_base_addressx are being emitted in DWARFv5.
6559 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6560 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6561 unsigned integer.
6562
6563 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6564
6565 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6566 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6567 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6568 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6569 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6570 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6571 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6572
6573
6574 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6575
6576 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6577 (read_loclist_index): New function definition.
6578 (lookup_loclist_base): New function definition.
6579 (read_loclist_header): New function definition.
6580 (dwarf2_cu): Add loclist_base and loclist_header field.
6581 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6582 (read_full_die_1): Read the value of DW_AT_loclists_base.
6583 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6584 (read_attribute_value): Handle DW_FORM_loclistx.
6585 (skip_one_die): Handle DW_FORM_loclistx.
6586 (loclist_header): New structure declaration.
6587 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6588
6589 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6590
6591 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6592 constructor. Remove `addr` parameter from other constructor and
6593 add `per_cu` parameter.
6594 * dwarf2/read.c (create_partial_symtab): Update.
6595
6596 2020-04-07 Tom de Vries <tdevries@suse.de>
6597
6598 PR symtab/25796
6599 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6600 (partial_die_info::fixup): Inherit has_const_value.
6601
6602 2020-04-07 Tom de Vries <tdevries@suse.de>
6603
6604 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6605 symbols without address.
6606
6607 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6608
6609 * nbsd-nat.h (struct thread_info): Add forward declaration.
6610 (nbsd_nat_target::thread_alive): Add.
6611 (nbsd_nat_target::thread_name): Likewise.
6612 (nbsd_nat_target::update_thread_list): Likewise.
6613 (update_thread_list::post_attach): Likewise.
6614 (post_attach::pid_to_str): Likewise.
6615 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6616 (nbsd_thread_lister): Add.
6617 (nbsd_nat_target::thread_alive): Likewise.
6618 (nbsd_nat_target::thread_name): Likewise.
6619 (nbsd_add_threads): Likewise.
6620 (update_thread_list::post_attach): Likewise.
6621 (nbsd_nat_target::update_thread_list): Likewise.
6622 (post_attach::pid_to_str): Likewise.
6623
6624 2020-04-06 Tom Tromey <tromey@adacore.com>
6625
6626 * ada-valprint.c (print_variant_part): Extract the variant field.
6627 (print_field_values): Use the field as the outer value when
6628 recursing.
6629
6630 2020-04-06 Tom Tromey <tromey@adacore.com>
6631
6632 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6633 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6634 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6635 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6636 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6637
6638 2020-04-06 Tom Tromey <tromey@adacore.com>
6639
6640 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6641 TYPE_CODE_ERROR.
6642
6643 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6644
6645 * nbsd-tdep.c: Include "gdbarch.h".
6646 Define enum with NetBSD signal numbers.
6647 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6648 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6649 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6650 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6651 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6652 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6653 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6654 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6655 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6656 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6657 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6658 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6659
6660 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6661
6662 PR gdb/25325
6663 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6664
6665 2020-04-03 Tom Tromey <tromey@adacore.com>
6666
6667 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6668 Read constant block.
6669
6670 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6673 (gdb_bfd_get_full_section_contents): New declaration.
6674 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6675 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6676 gdb_bfd_get_full_section_contents.
6677
6678 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * exec.c (build_section_table): Replace internal_error with
6681 gdb_assert.
6682 (section_table_xfer_memory_partial): Likewise.
6683 * mdebugread.c (parse_partial_symbols): Likewise.
6684 * psymtab.c (lookup_partial_symbol): Likewise.
6685 * utils.c (wrap_here): Likewise.
6686
6687 2020-04-02 Tom Tromey <tromey@adacore.com>
6688
6689 * f-lang.c (build_fortran_types): Use arch_type to initialize
6690 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6691
6692 2020-04-02 Tom Tromey <tromey@adacore.com>
6693
6694 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6695 of attributes.
6696
6697 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6698 Bernd Edlinger <bernd.edlinger@hotmail.de>
6699 Tom Tromey <tromey@adacore.com>
6700
6701 * buildsym.c (buildsym_compunit::record_line): Remove
6702 deduplication code.
6703
6704 2020-04-02 Tom de Vries <tdevries@suse.de>
6705
6706 PR ada/24671
6707 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6708
6709 2020-04-02 Tom de Vries <tdevries@suse.de>
6710
6711 * dwarf2/read.c (dwarf2_gdb_index_functions,
6712 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6713 NULL.
6714 * psymtab.c (psym_lookup_global_symbol_language): New function.
6715 (psym_functions): Init psym_lookup_global_symbol_language with
6716 psym_lookup_global_symbol_language.
6717 * symfile-debug.c (debug_sym_quick_functions): Init
6718 lookup_global_symbol_language with NULL.
6719 * symfile.c (set_initial_language): Remove fixme comment.
6720 * symfile.h (struct quick_symbol_functions): Add
6721 lookup_global_symbol_language.
6722 * symtab.c (find_quick_global_symbol_language): New function.
6723 (find_main_name): Use find_quick_global_symbol_language.
6724
6725 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6726
6727 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6728
6729 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6730
6731 * buildsym.c (record_line): Fix undefined behavior and preserve
6732 lines at eof.
6733
6734 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6735
6736 * buildsym.c (record_line): Fix the resizing condition.
6737
6738 2020-04-01 Tom Tromey <tom@tromey.com>
6739
6740 * value.h (value_literal_complex): Add comment.
6741 * valops.c (value_literal_complex): Refer to value.h.
6742
6743 2020-04-01 Tom Tromey <tom@tromey.com>
6744
6745 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6746 (scalar_type): New rule, from typebase.
6747 (typebase): Use scalar_type. Recognize complex types.
6748 (field_name): Handle FLOAT_KEYWORD.
6749 (ident_tokens): Add _Complex and __complex__.
6750
6751 2020-04-01 Tom Tromey <tom@tromey.com>
6752
6753 PR exp/25299:
6754 * valarith.c (promotion_type, complex_binop): New functions.
6755 (scalar_binop): Handle complex numbers. Use promotion_type.
6756 (value_pos, value_neg, value_complement): Handle complex numbers.
6757
6758 2020-04-01 Tom Tromey <tom@tromey.com>
6759
6760 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6761 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6762 (parse_number): Handle complex numbers.
6763
6764 2020-04-01 Tom Tromey <tom@tromey.com>
6765
6766 * c-valprint.c (c_decorations): Change complex suffix to "i".
6767
6768 2020-04-01 Tom Tromey <tom@tromey.com>
6769
6770 * valprint.c (generic_value_print_complex): Use accessors.
6771 * value.h (value_real_part, value_imaginary_part): Declare.
6772 * valops.c (value_real_part, value_imaginary_part): New
6773 functions.
6774 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6775
6776 2020-04-01 Tom Tromey <tom@tromey.com>
6777
6778 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6779 (read_range_type): Update.
6780 * mdebugread.c (basic_type): Update.
6781 * go-lang.c (build_go_types): Use init_complex_type.
6782 * gdbtypes.h (struct main_type) <complex_type>: New member.
6783 (init_complex_type): Update.
6784 (arch_complex_type): Don't declare.
6785 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6786 Make name if none given. Use alloc_type_copy. Look for cached
6787 complex type.
6788 (arch_complex_type): Remove.
6789 (gdbtypes_post_init): Use init_complex_type.
6790 * f-lang.c (build_fortran_types): Use init_complex_type.
6791 * dwarf2/read.c (read_base_type): Update.
6792 * d-lang.c (build_d_types): Use init_complex_type.
6793 * ctfread.c (read_base_type): Update.
6794
6795 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6796
6797 * infrun.c (stop_all_threads): Update assertion, plus when
6798 stopping threads, take into account that we might be trying
6799 to stop an all-stop target.
6800 (stop_waiting): Call 'stop_all_threads' if there exists a
6801 non-stop target.
6802
6803 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6804
6805 * target.h (exists_non_stop_target): New function declaration.
6806 * target.c (exists_non_stop_target): New function.
6807
6808 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6809
6810 PR gdb/24789
6811 * eval.c (is_integral_or_integral_reference): New function.
6812 (evaluate_subexp_standard): Allow integer references in
6813 pointer arithmetic.
6814
6815 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6816
6817 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6818 check for no ptid in the stop reply when the target is non-stop.
6819
6820 2020-04-01 Tom Tromey <tromey@adacore.com>
6821
6822 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6823 "name" parameter to rvalue reference. Initialize m_name_holder.
6824 <lookup_name_info>: New overloads.
6825 <name>: Return gdb::string_view.
6826 <c_str>: New method.
6827 <make_ignore_params>: Update.
6828 <search_name_hash>: Update.
6829 <language_lookup_name>: Return const char *.
6830 <m_name>: Change type.
6831 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6832 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6833 (lookup_name_info::match_any): Update.
6834 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6835 Update.
6836 * minsyms.c (linkage_name_str): Update.
6837 * language.c (default_symbol_name_matcher): Update.
6838 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6839 Update.
6840 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6841 (ada_lookup_name_info::ada_lookup_name_info): Update.
6842 (literal_symbol_name_matcher): Update.
6843
6844 2020-04-01 Tom Tromey <tromey@adacore.com>
6845
6846 * psymtab.c (psymtab_search_name): Remove function.
6847 (psym_lookup_symbol): Create search name and lookup name here.
6848 (lookup_partial_symbol): Remove "name" parameter; add
6849 lookup_name.
6850 (psym_expand_symtabs_for_function): Update.
6851
6852 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6853
6854 PR tui/25597:
6855 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6856
6857 2020-03-31 Tom Tromey <tromey@adacore.com>
6858
6859 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6860 memcpy.
6861
6862 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6863
6864 * features/riscv/32bit-csr.xml: Regenerated.
6865 * features/riscv/64bit-csr.xml: Regenerated.
6866
6867 2020-03-30 Tom Tromey <tromey@adacore.com>
6868
6869 * ada-valprint.c (print_variant_part): Update.
6870 * ada-lang.h (ada_which_variant_applies): Update.
6871 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6872 outer_valaddr parameters; replace with "outer" value parameter.
6873 (to_fixed_variant_branch_type): Update.
6874
6875 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6876
6877 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6878 <list>. Remove inclusion of observable.h.
6879 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6880 (struct arch_lwp_info): New struct.
6881 (class ppc_linux_dreg_interface): New class.
6882 (struct ppc_linux_process_info): New struct.
6883 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6884 <low_new_clone, low_forget_process, low_prepare_to_resume>
6885 <copy_thread_dreg_state, mark_thread_stale>
6886 <mark_debug_registers_changed, register_hw_breakpoint>
6887 <clear_hw_breakpoint, register_wp, clear_wp>
6888 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6889 <num_memory_accesses, get_trigger_type>
6890 <create_watchpoint_request, hwdebug_point_cmp>
6891 <init_arch_lwp_info, get_arch_lwp_info>
6892 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6893 methods.
6894 <struct ptid_hash>: New inner struct.
6895 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6896 members.
6897 (saved_dabr_value, hwdebug_info, max_slots_number)
6898 (struct hw_break_tuple, struct thread_points, ppc_threads)
6899 (have_ptrace_hwdebug_interface)
6900 (hwdebug_find_thread_points_by_tid)
6901 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6902 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6903 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6904 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6905 use m_dreg_interface.
6906 (hwdebug_point_cmp): Change to...
6907 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6908 reference arguments instead of pointers.
6909 (ppc_linux_nat_target::ranged_break_num_registers): Use
6910 m_dreg_interface.
6911 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6912 m_dreg_interface. Call register_hw_breakpoint.
6913 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6914 m_dreg_interface. Call clear_hw_breakpoint.
6915 (get_trigger_type): Change to...
6916 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6917 comment.
6918 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6919 use m_dreg_interface. Call register_hw_breakpoint.
6920 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6921 use m_dreg_interface. Call clear_hw_breakpoint.
6922 (can_use_watchpoint_cond_accel): Change to...
6923 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6924 method. Update comment, use m_dreg_interface and
6925 m_process_info.
6926 (calculate_dvc): Change to...
6927 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6928 m_dreg_interface.
6929 (num_memory_accesses): Change to...
6930 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6931 (check_condition): Change to...
6932 (ppc_linux_nat_target::check_condition): ...this method.
6933 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6934 comment, use m_dreg_interface.
6935 (create_watchpoint_request): Change to...
6936 (ppc_linux_nat_target::create_watchpoint_request): ...this
6937 method. Use m_dreg_interface.
6938 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6939 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6940 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6941 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6942 (ppc_linux_nat_target::low_forget_process)
6943 (ppc_linux_nat_target::low_new_fork)
6944 (ppc_linux_nat_target::low_new_clone)
6945 (ppc_linux_nat_target::low_delete_thread)
6946 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6947 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6948 only call mark_thread_stale.
6949 (ppc_linux_thread_exit): Remove.
6950 (ppc_linux_nat_target::stopped_data_address): Change to...
6951 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6952 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6953 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6954 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6955 comment. Call low_stopped_data_address.
6956 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6957 m_dreg_interface.
6958 (ppc_linux_nat_target::masked_watch_num_registers): Use
6959 m_dreg_interface.
6960 (ppc_linux_nat_target::copy_thread_dreg_state)
6961 (ppc_linux_nat_target::mark_thread_stale)
6962 (ppc_linux_nat_target::mark_debug_registers_changed)
6963 (ppc_linux_nat_target::register_hw_breakpoint)
6964 (ppc_linux_nat_target::clear_hw_breakpoint)
6965 (ppc_linux_nat_target::register_wp)
6966 (ppc_linux_nat_target::clear_wp)
6967 (ppc_linux_nat_target::init_arch_lwp_info)
6968 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6969 (_initialize_ppc_linux_nat): Remove observer callback.
6970
6971 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6972
6973 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6974 (ppc_linux_nat_target::auxv_parse)
6975 (ppc_linux_nat_target::read_description)
6976 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6977 Move up.
6978
6979 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6980
6981 * linux-nat.h (low_new_clone): New method.
6982 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6983
6984 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6985
6986 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6987 (dbx_expand_psymtab): ... this.
6988 (start_psymtab): Update.
6989 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6990 (mdebug_expand_psymtab): ... this.
6991 (parse_partial_symbols): Update.
6992 (new_psymtab): Update.
6993 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6994 (xcoff_expand_psymtab): ... this.
6995 (xcoff_start_psymtab): Update.
6996
6997 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6998
6999 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7000 <expand_dependencies>: ... this.
7001 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7002 (partial_symtab::expand_dependencies): ... this.
7003 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7004 Update.
7005 (dwarf2_psymtab::expand_psymtab): Update.
7006 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7007 * mdebugread.c (psymtab_to_symtab_1): Update.
7008 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7009
7010 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * psympriv.h (discard_psymtab): Remove.
7013 * dbxread.c (dbx_end_psymtab): Update.
7014 * xcoffread.c (xcoff_end_psymtab): Update.
7015
7016 2020-03-28 Tom Tromey <tom@tromey.com>
7017
7018 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7019 comment.
7020
7021 2020-03-28 Tom Tromey <tom@tromey.com>
7022
7023 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7024
7025 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7026
7027 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7028
7029 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7030
7031 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7032
7033 2020-03-26 Tom Tromey <tom@tromey.com>
7034
7035 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7036 (mark_common_block_symbol_computed, read_tag_string_type)
7037 (attr_to_dynamic_prop, read_subrange_type): Update.
7038 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7039 to be methods on struct attribute.
7040 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7041 (read_call_site_scope, partial_die_info::read)
7042 (partial_die_info::read, lookup_die_type, follow_die_ref):
7043 Update.
7044 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7045 from dwarf2_get_ref_die_offset.
7046 (attribute::constant_value): New method, from
7047 dwarf2_get_attr_constant_value.
7048 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7049 Declare method.
7050 <constant_value>: New method.
7051
7052 2020-03-26 Tom Tromey <tom@tromey.com>
7053
7054 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7055 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7056 (dwarf_type_encoding_name): Move to stringify.c.
7057 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7058 * dwarf2/stringify.c: New file.
7059 * dwarf2/stringify.h: New file.
7060
7061 2020-03-26 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7064 Rewrite.
7065
7066 2020-03-26 Tom Tromey <tom@tromey.com>
7067
7068 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7069 methods.
7070 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7071 (lookup_ranges_base): Likewise.
7072 (read_cutu_die_from_dwo, read_full_die_1): Update.
7073
7074 2020-03-26 Tom Tromey <tom@tromey.com>
7075
7076 * dwarf2/read.c (read_import_statement, read_file_scope)
7077 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7078 (read_lexical_block_scope, read_call_site_scope)
7079 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7080 (handle_struct_member_die, process_structure_scope)
7081 (update_enumeration_type_from_children)
7082 (process_enumeration_scope, read_array_type, read_common_block)
7083 (read_namespace, read_module, read_subroutine_type): Update.
7084 (sibling_die): Remove.
7085
7086 2020-03-26 Tom Tromey <tom@tromey.com>
7087
7088 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7089 (build_type_psymtabs_reader, read_structure_type)
7090 (read_enumeration_type, read_full_die_1): Update.
7091 (dwarf2_attr_no_follow): Move to die.h.
7092 * dwarf2/die.h (struct die_info) <attr>: New method.
7093
7094 2020-03-26 Tom Tromey <tom@tromey.com>
7095
7096 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7097 <base_address>: Now an optional.
7098 (dwarf2_find_base_address, dwarf2_rnglists_process)
7099 (dwarf2_ranges_process, fill_in_loclist_baton)
7100 (dwarf2_symbol_mark_computed): Update.
7101
7102 2020-03-26 Tom Tromey <tom@tromey.com>
7103
7104 * dwarf2/read.c (struct die_info): Move to die.h.
7105 * dwarf2/die.h: New file.
7106
7107 2020-03-26 Tom Tromey <tom@tromey.com>
7108
7109 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7110 * dwarf2/read.c
7111 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7112 Move to line-header.c.
7113 (read_checked_initial_length_and_offset, read_formatted_entries):
7114 Likewise.
7115 (dwarf_decode_line_header): Split into two.
7116 * dwarf2/line-header.c
7117 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7118 Move from read.c.
7119 (read_checked_initial_length_and_offset, read_formatted_entries):
7120 Likewise.
7121 (dwarf_decode_line_header): New function, split from read.c.
7122
7123 2020-03-26 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7126 Declare method.
7127 * dwarf2/read.c (read_attribute_value): Update.
7128 (dwarf2_per_objfile::read_line_string): Rename from
7129 read_indirect_line_string.
7130 (read_formatted_entries): Update.
7131
7132 2020-03-26 Tom Tromey <tom@tromey.com>
7133
7134 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7135 variable.
7136
7137 2020-03-26 Tom Tromey <tom@tromey.com>
7138
7139 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7140 const.
7141 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7142 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7143 parameter const.
7144
7145 2020-03-26 Tom Tromey <tom@tromey.com>
7146
7147 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7148 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7149 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7150 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7151
7152 2020-03-26 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7155 file_names_size, file_full_name, file_file_name>: Use const.
7156 <file_name_at, file_names>: Add const overload.
7157 * dwarf2/line-header.c (line_header::file_file_name)
7158 (line_header::file_full_name): Update.
7159
7160 2020-03-26 Tom Tromey <tom@tromey.com>
7161
7162 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7163 (macro_start_file, consume_improper_spaces)
7164 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7165 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7166 (dwarf_decode_macros): Move to macro.c.
7167 * dwarf2/macro.c: New file.
7168 * dwarf2/macro.h: New file.
7169 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7170
7171 2020-03-26 Tom Tromey <tom@tromey.com>
7172
7173 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7174 method.
7175 * dwarf2/section.c: New method. From
7176 read_indirect_string_at_offset_from.
7177 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7178 (read_indirect_string_at_offset_from): Move to section.c.
7179 (read_indirect_string_at_offset): Rewrite.
7180 (read_indirect_line_string_at_offset): Remove.
7181 (read_indirect_string, read_indirect_line_string)
7182 (dwarf_decode_macro_bytes): Update.
7183
7184 2020-03-26 Tom Tromey <tom@tromey.com>
7185
7186 * dwarf2/section.h (struct dwarf2_section_info)
7187 <overload_complaint>: Declare.
7188 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7189 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7190 Rename from dwarf2_section_buffer_overflow_complaint.
7191 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7192 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7197 Declare.
7198 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7199 Move from read.c.
7200 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7201 to section.c.
7202
7203 2020-03-26 Tom Tromey <tom@tromey.com>
7204
7205 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7206
7207 2020-03-26 Tom Tromey <tom@tromey.com>
7208
7209 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7210 "builder".
7211 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7212 parameter.
7213 (dwarf_decode_macros): Update.
7214
7215 2020-03-26 Tom Tromey <tom@tromey.com>
7216
7217 * dwarf2/read.c (read_attribute_value): Update.
7218 (read_indirect_string_from_dwz): Move to dwz.c; change into
7219 method.
7220 (dwarf_decode_macro_bytes): Update.
7221 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7222 * dwarf2/dwz.c: New file.
7223 * Makefile.in (COMMON_SFILES): Add dwz.c.
7224
7225 2020-03-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7228 * dwarf2/read.c: Add include.
7229 * dwarf2/index-write.c: Add include.
7230 * dwarf2/index-cache.c: Add include.
7231 * dwarf2/dwz.h: New file.
7232
7233 2020-03-25 Tom Tromey <tom@tromey.com>
7234
7235 * compile/compile-object-load.c (get_out_value_type): Mention
7236 correct symbol name in error message.
7237
7238 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7239
7240 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7241
7242 2020-03-25 Tom de Vries <tdevries@suse.de>
7243
7244 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7245 * symmisc.c (dump_symtab_1): Print user and includes fields.
7246 (maintenance_info_symtabs): Same.
7247
7248 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 PR gdb/25534
7251 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7252 (riscv_regcache_cooked_write): New function.
7253 (riscv_push_dummy_call): Use new function.
7254 (riscv_return_value): Likewise.
7255
7256 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7259 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7260 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7261 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7262 * infrun.c (follow_fork): Likewise.
7263 (follow_fork_inferior): Likewise.
7264 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7265 * linux-nat.h (class linux_nat_target): Likewise.
7266 * remote.c (class remote_target) <follow_fork>: Likewise.
7267 (remote_target::follow_fork): Likewise.
7268 * target-delegates.c: Re-generate.
7269 * target.c (default_follow_fork): Likewise.
7270 (target_follow_fork): Likewise.
7271 * target.h (struct target_ops) <follow_fork>: Likewise.
7272 (target_follow_fork): Likewise.
7273
7274 2020-03-24 Tom de Vries <tdevries@suse.de>
7275
7276 * psymtab.c (maintenance_info_psymtabs): Print user field.
7277
7278 2020-03-20 Tom Tromey <tromey@adacore.com>
7279
7280 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7281 const.
7282 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7283 const.
7284
7285 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * ptrace.m4: Don't check for ptrace declaration.
7288 * config.in: Re-generate.
7289 * configure: Re-generate.
7290 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7291 not defined.
7292
7293 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7294
7295 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7296 `PTRACE_TYPE_RET'.
7297 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7298 * sparc-nat.c (gdb_ptrace): Likewise.
7299 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7300
7301 2020-03-20 Tom Tromey <tromey@adacore.com>
7302
7303 * c-exp.y (lex_one_token): Fix assert.
7304
7305 2020-03-20 Tom Tromey <tromey@adacore.com>
7306
7307 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7308 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7309 strncpy call.
7310
7311 2020-03-20 Tom Tromey <tromey@adacore.com>
7312
7313 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7314
7315 2020-03-20 Tom Tromey <tromey@adacore.com>
7316
7317 * ada-valprint.c (print_variant_part): Remove parameters; switch
7318 to value-based API.
7319 (print_field_values): Likewise.
7320 (ada_val_print_struct_union): Likewise.
7321 (ada_value_print_1): Update.
7322
7323 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7324
7325 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7326 nbsd_nat_target instead of inf_ptrace_target.
7327 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7328 nbsd_nat_target.
7329
7330 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7331
7332 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7333 it to the ptrace call.
7334 * (store_registers): Likewise.
7335
7336 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7337
7338 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7339 it to the ptrace call.
7340 * (store_registers): Likewise.
7341
7342 2020-03-19 Luis Machado <luis.machado@linaro.org>
7343
7344 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7345 valid, fetch vg value from ptrace.
7346
7347 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7348 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7349 * inf-ptrace.c: Likewise.
7350 * (gdb_ptrace): Add.
7351 * (inf_ptrace_target::resume): Update.
7352 * (inf_ptrace_target::xfer_partial): Likewise.
7353 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7354 * (inf_ptrace_peek_poke): Update.
7355
7356 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7357
7358 * x86-bsd-nat.c (gdb_ptrace): New.
7359 * (x86bsd_dr_set): Add new argument `ptid'.
7360 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7361 x86bsd_dr_set_addr): Update.
7362
7363 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * remote.c (remote_target::process_stop_reply): Handle events for
7366 all threads differently.
7367
7368 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * completer.c (completion_tracker::remove_completion): Define new
7371 function.
7372 * completer.h (completion_tracker::remove_completion): Declare new
7373 function.
7374 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7375 when adding a C++ function symbol.
7376
7377 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * completer.c (completion_tracker::completion_hash_entry): Define
7380 new class.
7381 (advance_to_filename_complete_word_point): Call
7382 recompute_lowest_common_denominator.
7383 (completion_tracker::completion_tracker): Call discard_completions
7384 to setup the hash table.
7385 (completion_tracker::discard_completions): Allow for being called
7386 from the constructor, pass new equal function, and element deleter
7387 when constructing the hash table. Initialise new class member
7388 variables.
7389 (completion_tracker::maybe_add_completion): Remove use of
7390 m_entries_vec, and store more information into m_entries_hash.
7391 (completion_tracker::recompute_lcd_visitor): New function, most
7392 content taken from...
7393 (completion_tracker::recompute_lowest_common_denominator):
7394 ...here, this now just visits each item in the hash calling the
7395 above visitor.
7396 (completion_tracker::build_completion_result): Remove use of
7397 m_entries_vec, call recompute_lowest_common_denominator.
7398 * completer.h (completion_tracker::have_completions): Remove use
7399 of m_entries_vec.
7400 (completion_tracker::completion_hash_entry): Declare new class.
7401 (completion_tracker::recompute_lowest_common_denominator): Change
7402 function signature.
7403 (completion_tracker::recompute_lcd_visitor): Declare new function.
7404 (completion_tracker::m_entries_vec): Delete.
7405 (completion_tracker::m_entries_hash): Initialize to NULL.
7406 (completion_tracker::m_lowest_common_denominator_valid): New
7407 member variable.
7408 (completion_tracker::m_lowest_common_denominator_max_length): New
7409 member variable.
7410
7411 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7412
7413 * regformats/regdef.h: Put reg in gdb namespace.
7414
7415 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7416
7417 * i386-bsd-nat.c (gdb_ptrace): New.
7418 * (i386bsd_fetch_inferior_registers,
7419 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7420 * (i386bsd_fetch_inferior_registers,
7421 i386bsd_store_inferior_registers) Use gdb_ptrace.
7422
7423 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7424
7425 * amd64-bsd-nat.c (gdb_ptrace): New.
7426 * (amd64bsd_fetch_inferior_registers,
7427 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7428 * (amd64bsd_fetch_inferior_registers,
7429 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7430
7431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7432
7433 * user-regs.c (user_reg::read): Rename to...
7434 (user_reg::xread): ...this.
7435 * (append_user_reg): Rename argument `read' to `xread'.
7436 * (user_reg_add_builtin): Likewise.
7437 * (user_reg_add): Likewise.
7438 * (value_of_user_reg): Likewise.
7439
7440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7441
7442 * sparc-nat.c (gdb_ptrace): New.
7443 * sparc-nat.c (sparc_fetch_inferior_registers)
7444 (sparc_store_inferior_registers) Remove obsolete comment.
7445 * sparc-nat.c (sparc_fetch_inferior_registers)
7446 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7447 * sparc-nat.c (sparc_fetch_inferior_registers)
7448 (sparc_store_inferior_registers) Use gdb_ptrace.
7449
7450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7451
7452 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7453 it to the ptrace call.
7454 * sh-nbsd-nat.c (store_registers): Likewise.
7455
7456 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7457
7458 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7459 nbsd_nat_target instead of inf_ptrace_target.
7460 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7461 nbsd_nat_target.
7462
7463 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7464
7465 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7466
7467 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7468
7469 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7470 <sys/sysctl.h>.
7471 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7472
7473 2020-03-17 Tom de Vries <tdevries@suse.de>
7474
7475 PR gdb/23710
7476 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7477 fields.
7478 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7479 fields.
7480 (process_imported_unit_die): Skip import of c++ CUs.
7481
7482 2020-03-16 Tom Tromey <tom@tromey.com>
7483
7484 * p-valprint.c (pascal_object_print_value): Initialize
7485 base_value.
7486
7487 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7488 Shahab Vahedi <shahab@synopsys.com>
7489
7490 * Makefile.in: Add arch/arc.o
7491 * configure.tgt: Likewise.
7492 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7493 (_initialize_arc_tdep): Don't initialize old target descriptions.
7494 (arc_read_description): New function to cache target descriptions.
7495 * arc-tdep.h (arc_read_description): Add proto type.
7496 * arch/arc.c: New file.
7497 * arch/arc.h: Likewise.
7498 * features/Makefile: Replace old target descriptions with new.
7499 * features/arc-arcompact.c: Remove.
7500 * features/arc-arcompact.xml: Likewise.
7501 * features/arc-v2.c: Likewise
7502 * features/arc-v2.xml: Likewise
7503 * features/arc/aux-arcompact.xml: New file.
7504 * features/arc/aux-v2.xml: Likewise.
7505 * features/arc/core-arcompact.xml: Likewise.
7506 * features/arc/core-v2.xml: Likewise.
7507 * features/arc/aux-arcompact.c: Generate.
7508 * features/arc/aux-v2.c: Likewise.
7509 * features/arc/core-arcompact.c: Likewise.
7510 * features/arc/core-v2.c: Likewise.
7511 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7512
7513 2020-03-16 Tom Tromey <tromey@adacore.com>
7514
7515 PR gdb/25663:
7516 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7517 putting value into bcache.
7518
7519 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7520
7521 PR gdb/21500
7522 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7523 to...
7524 (amd64_windows_init_abi_common): ... this. Don't set size of
7525 long type.
7526 (amd64_windows_init_abi): New function.
7527 (amd64_cygwin_init_abi): New function.
7528 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7529 the Cygwin OS ABI.
7530 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7531 comment.
7532
7533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7536 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7537 (pe_import_directory_entry): New struct type.
7538 (is_linked_with_cygwin_dll): New function.
7539 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7540 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7541 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7542
7543 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7546 i386_cygwin_core_osabi_sniffer.
7547
7548 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * i386-cygwin-tdep.c: Rename to...
7551 * i386-windows-tdep.c: ... this.
7552 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7553 i386-windows-tdep.c.
7554 * configure.tgt: Likewise.
7555
7556 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7557
7558 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7559 * osabi.c (gdb_osabi_names): Add "Windows".
7560 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7561 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7562 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7563 i386_cygwin_osabi_sniffer.
7564 (_initialize_i386_cygwin_tdep): Register OS ABI
7565 GDB_OSABI_WINDOWS for i386.
7566 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7567 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7568 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7569 for x86-64.
7570 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7571 when the target matches '*-*-mingw*'.
7572
7573 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * defs.h (enum gdb_osabi): Move to...
7576 * osabi.h (enum gdb_osabi): ... here.
7577 * gdbarch.sh: Include osabi.h in gdbarch.h.
7578 * gdbarch.h: Re-generate.
7579
7580 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7583 function.
7584 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7585
7586 2020-03-14 Tom Tromey <tom@tromey.com>
7587
7588 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7589 for C++.
7590 (c_type_print_modifier): Likewise. Add "language" parameter.
7591 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7592 (c_type_print_base_1): Update.
7593 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7594 constants.
7595 * type-stack.c (type_stack::insert): Handle tp_atomic and
7596 tp_restrict.
7597 (type_stack::follow_type_instance_flags): Likewise.
7598 (type_stack::follow_types): Likewise. Merge type-following code.
7599 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7600 (space_identifier, cv_with_space_id)
7601 (const_or_volatile_or_space_identifier_noopt)
7602 (const_or_volatile_or_space_identifier): Remove.
7603 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7604 rules.
7605 (ptr_operator, typebase): Update.
7606 (enum token_flag) <FLAG_C>: New constant.
7607 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7608 "_Atomic".
7609 (lex_one_token): Handle FLAG_C.
7610
7611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7612
7613 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7614 it to the ptrace call.
7615 * m68k-bsd-nat.c (store_registers): Likewise.
7616
7617 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7618
7619 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7620 gdb_byte *.
7621 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7622 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7623 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7624
7625 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7626
7627 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7628 nbsd_nat_target instead of inf_ptrace_target.
7629 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7630 nbsd_nat_target.
7631
7632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7633
7634 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7635 register_t.
7636
7637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7638
7639 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7640 it to the ptrace call.
7641 * alpha-bsd-nat.c (store_registers): Likewise.
7642
7643 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7644
7645 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7646 includes.
7647 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7648 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7649 fill_fpregset): Likewise.
7650
7651 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7652
7653 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7654 nbsd_nat_target instead of inf_ptrace_target.
7655 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7656 nbsd_nat_target.
7657
7658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7659
7660 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7661 register_t.
7662
7663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7664
7665 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7666 it to the ptrace call.
7667 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7668 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7669 * arm-nbsd-nat.c (store_register): Likewise.
7670 * arm-nbsd-nat.c (store_regs): Likewise.
7671 * arm-nbsd-nat.c (store_fp_register): Likewise.
7672 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7673
7674 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7675
7676 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7677 nbsd_nat_target instead of inf_ptrace_target.
7678 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7679 nbsd_nat_target.
7680
7681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7682
7683 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7684 it to the ptrace call.
7685 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7686
7687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7688
7689 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7690 it to the ptrace call.
7691 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7692
7693 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7694
7695 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7696 gdb_byte *.
7697 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7698
7699 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7700
7701 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7702 instead of inf_ptrace_target.
7703 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7704 nbsd_nat_target.
7705
7706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7707
7708 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7709 register_t.
7710
7711 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7712
7713 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7714 register_t.
7715
7716 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7717
7718 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7719 register_t.
7720
7721 2020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * value.h (val_print): Don't declare.
7724 * valprint.h (val_print_array_elements)
7725 (val_print_scalar_formatted, generic_val_print): Don't declare.
7726 * valprint.c (generic_val_print_array): Take a struct value.
7727 (generic_val_print_ptr, generic_val_print_memberptr)
7728 (generic_val_print_bool, generic_val_print_int)
7729 (generic_val_print_char, generic_val_print_complex)
7730 (generic_val_print): Remove.
7731 (generic_value_print): Update.
7732 (do_val_print): Remove unused parameters. Don't call
7733 la_val_print.
7734 (val_print): Remove.
7735 (common_val_print): Update. Don't call value_check_printable.
7736 (val_print_scalar_formatted, val_print_array_elements): Remove.
7737 * rust-lang.c (rust_val_print): Remove.
7738 (rust_language_defn): Update.
7739 * p-valprint.c (pascal_val_print): Remove.
7740 (pascal_value_print_inner): Update.
7741 (pascal_object_print_val_fields, pascal_object_print_val):
7742 Remove.
7743 (pascal_object_print_static_field): Update.
7744 * p-lang.h (pascal_val_print): Don't declare.
7745 * p-lang.c (pascal_language_defn): Update.
7746 * opencl-lang.c (opencl_language_defn): Update.
7747 * objc-lang.c (objc_language_defn): Update.
7748 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7749 * m2-lang.h (m2_val_print): Don't declare.
7750 * m2-lang.c (m2_language_defn): Update.
7751 * language.h (struct language_defn) <la_val_print>: Remove.
7752 * language.c (unk_lang_value_print_inner): Rename. Change
7753 argument types.
7754 (unknown_language_defn, auto_language_defn): Update.
7755 * go-valprint.c (go_val_print): Remove.
7756 * go-lang.h (go_val_print): Don't declare.
7757 * go-lang.c (go_language_defn): Update.
7758 * f-valprint.c (f_val_print): Remove.
7759 * f-lang.h (f_value_print): Don't declare.
7760 * f-lang.c (f_language_defn): Update.
7761 * d-valprint.c (d_val_print): Remove.
7762 * d-lang.h (d_value_print): Don't declare.
7763 * d-lang.c (d_language_defn): Update.
7764 * cp-valprint.c (cp_print_value_fields)
7765 (cp_print_value_fields_rtti, cp_print_value): Remove.
7766 (cp_print_static_field): Update.
7767 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7768 (c_val_print_struct, c_val_print_union, c_val_print_int)
7769 (c_val_print_memberptr, c_val_print): Remove.
7770 * c-lang.h (c_val_print_array, cp_print_value_fields)
7771 (cp_print_value_fields_rtti): Don't declare.
7772 * c-lang.c (c_language_defn, cplus_language_defn)
7773 (asm_language_defn, minimal_language_defn): Update.
7774 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7775 (ada_val_print_enum): Take a struct value.
7776 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7777 (ada_val_print): Remove.
7778 (ada_value_print_1): Update.
7779 (printable_val_type): Remove.
7780 * ada-lang.h (ada_val_print): Don't declare.
7781 * ada-lang.c (ada_language_defn): Update.
7782
7783 2020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * valprint.c (do_val_print): Update.
7786 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7787 a struct value.
7788 (value_to_value_object_no_release): Declare.
7789 * python/py-value.c (value_to_value_object_no_release): New
7790 function.
7791 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7792 struct value.
7793 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7794 function.
7795 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7796 a struct value.
7797 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7798 Declare.
7799 (gdbscm_apply_val_pretty_printer): Take a struct value.
7800 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7801 value.
7802 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7803 value.
7804 * extension-priv.h (struct extension_language_ops)
7805 <apply_val_pretty_printer>: Take a struct value.
7806 * cp-valprint.c (cp_print_value): Create a struct value.
7807 (cp_print_value): Update.
7808
7809 2020-03-13 Tom Tromey <tom@tromey.com>
7810
7811 * ada-valprint.c (print_field_values): Call common_val_print.
7812
7813 2020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * ada-valprint.c (val_print_packed_array_elements): Remove
7816 bitoffset and val parameters. Call common_val_print.
7817 (ada_val_print_string): Remove offset, address, and original_value
7818 parameters.
7819 (ada_val_print_array): Update.
7820 (ada_value_print_array): New function.
7821 (ada_value_print_1): Call it.
7822
7823 2020-03-13 Tom Tromey <tom@tromey.com>
7824
7825 * ada-valprint.c (ada_value_print): Use common_val_print.
7826
7827 2020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7830
7831 2020-03-13 Tom Tromey <tom@tromey.com>
7832
7833 * ada-valprint.c (ada_value_print_num): New function.
7834 (ada_value_print_1): Use it.
7835
7836 2020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7839
7840 2020-03-13 Tom Tromey <tom@tromey.com>
7841
7842 * ada-valprint.c (ada_value_print_ptr): New function.
7843 (ada_value_print_1): Use it.
7844
7845 2020-03-13 Tom Tromey <tom@tromey.com>
7846
7847 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7848 call common_val_print.
7849 (ada_val_print_1): Update.
7850 (ada_value_print_1): New function.
7851 (ada_value_print_inner): Rewrite.
7852
7853 2020-03-13 Tom Tromey <tom@tromey.com>
7854
7855 * cp-valprint.c (cp_print_value_fields): Update.
7856 (cp_print_value): New function.
7857
7858 2020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * m2-valprint.c (m2_value_print_inner): Use
7861 cp_print_value_fields.
7862 * cp-valprint.c (cp_print_value_fields): New function.
7863 * c-valprint.c (c_value_print_struct): New function.
7864 (c_value_print_inner): Use c_value_print_struct.
7865 * c-lang.h (cp_print_value_fields): Declare.
7866
7867 2020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * c-valprint.c (c_value_print_array): New function.
7870 (c_value_print_inner): Use it.
7871
7872 2020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * c-valprint.c (c_value_print_memberptr): New function.
7875 (c_value_print_inner): Use it.
7876
7877 2020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * c-valprint.c (c_value_print_int): New function.
7880 (c_value_print_inner): Use it.
7881
7882 2020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * c-valprint.c (c_value_print_ptr): New function.
7885 (c_value_print_inner): Use it.
7886
7887 2020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * c-valprint.c (c_value_print_inner): Rewrite.
7890
7891 2020-03-13 Tom Tromey <tom@tromey.com>
7892
7893 * valprint.c (generic_value_print_complex): 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_float): Don't call
7899 val_print_scalar_formatted.
7900 (generic_val_print, generic_value_print): Update.
7901
7902 2020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * valprint.c (generic_value_print_char): New function
7905 (generic_value_print): Use it.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * valprint.c (generic_value_print_int): New function.
7910 (generic_value_print): Use it.
7911
7912 2020-03-13 Tom Tromey <tom@tromey.com>
7913
7914 * valprint.c (generic_value_print_bool): New function.
7915 (generic_value_print): Use it.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * valprint.c (generic_val_print_func): Simplify.
7920 (generic_val_print, generic_value_print): Update.
7921
7922 2020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * valprint.c (generic_val_print_flags): Remove.
7925 (generic_val_print, generic_value_print): Update.
7926 (val_print_type_code_flags): Add original_value parameter.
7927
7928 2020-03-13 Tom Tromey <tom@tromey.com>
7929
7930 * valprint.c (generic_val_print): Update.
7931 (generic_value_print): Update.
7932 * valprint.c (generic_val_print_enum): Don't call
7933 val_print_scalar_formatted.
7934
7935 2020-03-13 Tom Tromey <tom@tromey.com>
7936
7937 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7938 * valprint.c (generic_value_print_ptr): New function.
7939
7940 2020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * valprint.c (generic_value_print): Rewrite.
7943
7944 2020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * p-valprint.c (pascal_object_print_value_fields)
7947 (pascal_object_print_value): New functions.
7948
7949 2020-03-13 Tom Tromey <tom@tromey.com>
7950
7951 * p-valprint.c (pascal_value_print_inner): Rewrite.
7952
7953 2020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * f-valprint.c (f_value_print_innner): Rewrite.
7956
7957 2020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * m2-valprint.c (m2_print_unbounded_array): New overload.
7960 (m2_print_unbounded_array): Update.
7961 (m2_print_array_contents): Take a struct value.
7962 (m2_value_print_inner): Rewrite.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7967 (d_value_print_inner): New function.
7968 * d-lang.h (d_value_print_inner): Declare.
7969 * d-lang.c (d_language_defn): Use d_value_print_inner.
7970
7971 2020-03-13 Tom Tromey <tom@tromey.com>
7972
7973 * go-valprint.c (go_value_print_inner): New function.
7974 * go-lang.h (go_value_print_inner): Declare.
7975 * go-lang.c (go_language_defn): Use go_value_print_inner.
7976
7977 2020-03-13 Tom Tromey <tom@tromey.com>
7978
7979 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7980 API.
7981 (rust_val_print): Rewrite.
7982 (rust_value_print_inner): New function, from rust_val_print.
7983 (rust_language_defn): Use rust_value_print_inner.
7984
7985 2020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * ada-valprint.c (ada_value_print_inner): New function.
7988 * ada-lang.h (ada_value_print_inner): Declare.
7989 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7990
7991 2020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * f-valprint.c (f_value_print_innner): New function.
7994 * f-lang.h (f_value_print_innner): Declare.
7995 * f-lang.c (f_language_defn): Use f_value_print_innner.
7996
7997 2020-03-13 Tom Tromey <tom@tromey.com>
7998
7999 * p-valprint.c (pascal_value_print_inner): New function.
8000 * p-lang.h (pascal_value_print_inner): Declare.
8001 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8002
8003 2020-03-13 Tom Tromey <tom@tromey.com>
8004
8005 * m2-valprint.c (m2_value_print_inner): New function.
8006 * m2-lang.h (m2_value_print_inner): Declare.
8007 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8012 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8013 * c-valprint.c (c_value_print_inner): New function.
8014 * c-lang.h (c_value_print_inner): Declare.
8015 * c-lang.c (c_language_defn, cplus_language_defn)
8016 (asm_language_defn, minimal_language_defn): Use
8017 c_value_print_inner.
8018
8019 2020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * p-valprint.c (pascal_object_print_value_fields): Now static.
8022 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * c-valprint.c (c_val_print_array): Simplify.
8027
8028 2020-03-13 Tom Tromey <tom@tromey.com>
8029
8030 * valprint.c (value_print_array_elements): New function.
8031 * valprint.h (value_print_array_elements): Declare.
8032
8033 2020-03-13 Tom Tromey <tom@tromey.com>
8034
8035 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8036 * mips-tdep.c (mips_print_register): Use
8037 value_print_scalar_formatted.
8038
8039 2020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * valprint.h (value_print_scalar_formatted): Declare.
8042 * valprint.c (value_print_scalar_formatted): New function.
8043
8044 2020-03-13 Tom Tromey <tom@tromey.com>
8045
8046 * valprint.h (generic_value_print): Declare.
8047 * valprint.c (generic_value_print): New function.
8048
8049 2020-03-13 Tom Tromey <tom@tromey.com>
8050
8051 * valprint.c (do_val_print): Call la_value_print_inner, if
8052 available.
8053 * rust-lang.c (rust_language_defn): Update.
8054 * p-lang.c (pascal_language_defn): Update.
8055 * opencl-lang.c (opencl_language_defn): Update.
8056 * objc-lang.c (objc_language_defn): Update.
8057 * m2-lang.c (m2_language_defn): Update.
8058 * language.h (struct language_defn) <la_value_print_inner>: New
8059 member.
8060 * language.c (unknown_language_defn, auto_language_defn): Update.
8061 * go-lang.c (go_language_defn): Update.
8062 * f-lang.c (f_language_defn): Update.
8063 * d-lang.c (d_language_defn): Update.
8064 * c-lang.c (c_language_defn, cplus_language_defn)
8065 (asm_language_defn, minimal_language_defn): Update.
8066 * ada-lang.c (ada_language_defn): Update.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * c-valprint.c (c_value_print): Use common_val_print.
8071
8072 2020-03-13 Tom Tromey <tom@tromey.com>
8073
8074 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8075
8076 2020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * f-valprint.c (f77_print_array_1, f_val_print): Use
8079 common_val_print.
8080
8081 2020-03-13 Tom Tromey <tom@tromey.com>
8082
8083 * riscv-tdep.c (riscv_print_one_register_info): Use
8084 common_val_print.
8085
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * mi/mi-main.c (output_register): Use common_val_print.
8089
8090 2020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * infcmd.c (default_print_one_register_info): Use
8093 common_val_print.
8094
8095 2020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * valprint.h (common_val_print_checked): Declare.
8098 * valprint.c (common_val_print_checked): New function.
8099 * stack.c (print_frame_arg): Use common_val_print_checked.
8100
8101 2020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * valprint.c (do_val_print): New function, from val_print.
8104 (val_print): Use do_val_print.
8105 (common_val_print): Use do_val_print.
8106
8107 2020-03-13 Tom Tromey <tom@tromey.com>
8108
8109 * valprint.c (value_print): Use scoped_value_mark.
8110
8111 2020-03-13 Tom de Vries <tdevries@suse.de>
8112
8113 PR symtab/25646
8114 * psymtab.c (partial_symtab::partial_symtab): Don't set
8115 globals_offset and statics_offset. Push element onto
8116 current_global_psymbols and current_static_psymbols stacks.
8117 (concat): New function.
8118 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8119 element from current_global_psymbols and current_static_psymbols
8120 stacks. Concat popped elements to global_psymbols and
8121 static_symbols.
8122 (add_psymbol_to_list): Use current_global_psymbols and
8123 current_static_psymbols stacks.
8124 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8125 current_static_psymbols fields.
8126
8127 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8128
8129 * corelow.c (sniff_core_bfd): Remove.
8130 (class core_target) <m_core_vec>: Remove.
8131 (core_target::core_target): Update.
8132 (core_file_fns): Remove.
8133 (deprecated_add_core_fns): Remove.
8134 (default_core_sniffer): Remove.
8135 (sniff_core_bfd): Remove.
8136 (default_check_format): Remove.
8137 (gdb_check_format): Remove.
8138 (core_target_open): Update.
8139 (core_target::get_core_register_section): Update.
8140 (get_core_registers_cb): Update.
8141 (core_target::fetch_registers): Update.
8142 * gdbcore.h (struct core_fns): Remove.
8143 (deprecated_add_core_fns): Remove.
8144 (default_core_sniffer): Remove.
8145 (default_check_format): Remove.
8146
8147 2020-03-12 Tom Tromey <tom@tromey.com>
8148
8149 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8150 CORE_ADDR.
8151 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8152
8153 2020-03-12 Tom Tromey <tom@tromey.com>
8154
8155 * remote.c (remote_target::download_tracepoint)
8156 (remote_target::enable_tracepoint)
8157 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8158 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8159 sprintf_vma.
8160
8161 2020-03-12 Tom Tromey <tom@tromey.com>
8162
8163 * symfile-mem.c: Update CORE_ADDR size assert.
8164
8165 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * selftest.m4: Move to gdbsupport/.
8168 * acinclude.m4: Update path to selftest.m4.
8169
8170 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8173 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8174 gdbarch-selfselftests.c and selftest-arch.c.
8175 (SUBDIR_UNITTESTS_OBS): Rename to...
8176 (SELFTESTS_OBS): ... this.
8177 (COMMON_SFILES): Remove disasm-selftests.c and
8178 gdbarch-selftests.c.
8179 * configure.ac: Don't add selftest-arch.{c,o} to
8180 CONFIG_{SRCS,OBS}.
8181 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8182 preprocessor conditions.
8183
8184 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8185
8186 * configure.ac: Don't source bfd/development.sh.
8187 * selftest.m4: Modify comment.
8188 * configure: Re-generate.
8189
8190 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8193 not "true" or "false".
8194 * configure: Re-generate.
8195
8196 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8197
8198 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8199 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8200 renamed to arm_nbsd_supply_gregset.
8201 (fetch_register): Update to call arm_nbsd_supply_gregset.
8202 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8203 (arm_netbsd_nat_target::fetch_registers): Update.
8204 (fetch_elfcore_registers): Removed.
8205 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8206 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8207 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8208 not require NetBSD system headers.
8209 (arm_nbsd_regset): New struct.
8210 (arm_nbsd_iterate_over_regset_sections): New function.
8211 (arm_netbsd_init_abi_common): Updated to call
8212 set_gdbarch_iterate_over_regset_sections.
8213 * arm-nbsd-tdep.h: New file.
8214
8215 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8216
8217 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8218 recursion.
8219
8220 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8221
8222 * configure: Re-generate.
8223
8224 2020-03-11 Tom Tromey <tromey@adacore.com>
8225
8226 * ada-typeprint.c (print_choices): Fix comment.
8227
8228 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8231 previous item in the list, when the list has no items.
8232
8233 2020-03-11 Tom de Vries <tdevries@suse.de>
8234
8235 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8236 PROP_LOCLIST handling code.
8237
8238 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 * buildsym-legacy.c (record_line): Pass extra parameter to
8241 record_line.
8242 * buildsym.c (buildsym_compunit::record_line): Take an extra
8243 parameter, reduce duplication in the line table, and record the
8244 is_stmt flag in the line table.
8245 * buildsym.h (buildsym_compunit::record_line): Add extra
8246 parameter.
8247 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8248 non-statement lines.
8249 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8250 this to the symtab builder.
8251 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8252 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8253 through to dwarf_record_line_1.
8254 * infrun.c (process_event_stop_test): When stepping, don't stop at
8255 a non-statement instruction, and only refresh the step info when
8256 we land in the middle of a line's range. Also add an extra
8257 comment.
8258 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8259 field.
8260 * record-btrace.c (btrace_find_line_range): Only record lines
8261 marked as is-statement.
8262 * stack.c (frame_show_address): Show the frame address if we are
8263 in a non-statement sal.
8264 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8265 (maintenance_print_one_line_table): Print a header for the is_stmt
8266 column, and include is_stmt information in the output.
8267 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8268 preference to non-statements.
8269 (find_pcs_for_symtab_line): Prefer is-statement entries.
8270 (find_line_common): Likewise.
8271 * symtab.h (struct linetable_entry): Add is_stmt field.
8272 (struct symtab_and_line): Likewise.
8273 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8274 arranging the line table.
8275
8276 2020-03-07 Tom de Vries <tdevries@suse.de>
8277
8278 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8279 DIE.
8280
8281 2020-03-07 Tom Tromey <tom@tromey.com>
8282
8283 * valops.c (value_literal_complex): Remove obsolete comment.
8284 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8285 comment.
8286
8287 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8288
8289 * infrun.h: Forward-declare thread_info.
8290 (set_step_info): Add thread_info parameter, add doc.
8291 * infrun.c (set_step_info): Add thread_info parameter, move doc
8292 to header.
8293 * infrun.c (process_event_stop_test): Pass thread to
8294 set_step_info call.
8295 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8296 set_step_info.
8297 (prepare_one_step): Add thread_info parameter, pass it to
8298 set_step_frame and prepare_one_step (recursive) call.
8299 (step_1): Pass thread to prepare_one_step call.
8300 (step_command_fsm::should_stop): Pass thread to
8301 prepare_one_step.
8302 (until_next_fsm): Pass thread to set_step_frame call.
8303 (finish_command): Pass thread to set_step_info call.
8304
8305 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8306
8307 * windows-tdep.c (windows_solib_create_inferior_hook):
8308 Check if inferior is running.
8309
8310 2020-03-06 Tom de Vries <tdevries@suse.de>
8311
8312 * NEWS: Fix "the the".
8313 * ctfread.c: Same.
8314
8315 2020-03-06 Tom de Vries <tdevries@suse.de>
8316
8317 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8318
8319 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * .dir-locals.el: Add a comment referencing the other copies of
8322 this file.
8323
8324 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8325
8326 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8327 psargs.
8328
8329 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8330
8331 * .gitattributes: New file.
8332
8333 2020-03-04 Tom Tromey <tom@tromey.com>
8334
8335 * symmisc.c (print_symbol_bcache_statistics)
8336 (print_objfile_statistics): Update.
8337 * symfile.c (allocate_symtab): Use intern.
8338 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8339 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8340 macro_cache>: Remove.
8341 <string_cache>: New member.
8342 (struct objfile) <intern>: New methods.
8343 * elfread.c (elf_symtab_read): Use intern.
8344 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8345 (dwarf2_compute_name, dwarf2_physname)
8346 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8347 names.
8348 (guess_partial_die_structure_name): Update.
8349 (partial_die_info::fixup): Intern name.
8350 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8351 name.
8352 (dwarf2_name): Intern name. Update.
8353 * buildsym.c (buildsym_compunit::get_macro_table): Use
8354 string_cache.
8355
8356 2020-03-04 Tom Tromey <tom@tromey.com>
8357
8358 * jit.c (bfd_open_from_target_memory): Make "target" const.
8359 * corefile.c (gnutarget): Now const.
8360 * gdbcore.h (gnutarget): Now const.
8361
8362 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8363
8364 * NEWS: Mention support for WOW64 processes.
8365 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8366 (amd64_windows_segment_register_p): Remove static.
8367 (_initialize_amd64_windows_nat): Update.
8368 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8369 * i386-windows-nat.c (context_offset): Update.
8370 (i386_mappings): Rename and remove static.
8371 (i386_windows_segment_register_p): Remove static.
8372 (_initialize_i386_windows_nat): Update.
8373 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8374 (STATUS_WX86_SINGLE_STEP): New macro.
8375 (EnumProcessModulesEx): New macro.
8376 (Wow64SuspendThread): New macro.
8377 (Wow64GetThreadContext): New macro.
8378 (Wow64SetThreadContext): New macro.
8379 (Wow64GetThreadSelectorEntry): New macro.
8380 (windows_set_context_register_offsets): Add static.
8381 (windows_set_segment_register_p): Likewise.
8382 (windows_add_thread): Adapt for WOW64 processes.
8383 (windows_fetch_one_register): Likewise.
8384 (windows_nat_target::fetch_registers): Likewise.
8385 (windows_store_one_register): Likewise.
8386 (display_selector): Likewise.
8387 (display_selectors): Likewise.
8388 (handle_exception): Likewise.
8389 (windows_continue): Likewise.
8390 (windows_nat_target::resume): Likewise.
8391 (windows_add_all_dlls): Likewise.
8392 (do_initial_windows_stuff): Likewise.
8393 (windows_nat_target::attach): Likewise.
8394 (windows_get_exec_module_filename): Likewise.
8395 (windows_nat_target::create_inferior): Likewise.
8396 (windows_xfer_siginfo): Likewise.
8397 (_initialize_loadable): Initialize Wow64SuspendThread,
8398 Wow64GetThreadContext, Wow64SetThreadContext,
8399 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8400 * windows-nat.h (windows_set_context_register_offsets):
8401 Remove declaration.
8402 (windows_set_segment_register_p): Likewise.
8403 (i386_windows_segment_register_p): Add declaration.
8404 (amd64_windows_segment_register_p): Likewise.
8405
8406 2020-03-04 Luis Machado <luis.machado@linaro.org>
8407
8408 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8409 in "info registers" for AArch64/ARM.
8410
8411 The change caused "info registers" to not print GPR's.
8412
8413 gdb/ChangeLog:
8414
8415 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8416
8417 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8418 when reg->group is empty and reggroup is not.
8419
8420 2020-03-03 Tom Tromey <tromey@adacore.com>
8421
8422 * dwarf2/frame.c (struct dwarf2_frame_cache)
8423 <checked_tailcall_bottom, entry_cfa_sp_offset,
8424 entry_cfa_sp_offset_p>: Remove members.
8425 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8426 (dwarf2_frame_prev_register): Don't call
8427 dwarf2_tailcall_sniffer_first.
8428 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8429 * frame-unwind.c (add_unwinder): New fuction.
8430 (frame_unwind_init): Use it. Add tailcall unwinder.
8431
8432 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8433 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8434
8435 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8436 value should be printed as true.
8437
8438 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8439
8440 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8441 (windows_init_abi): Set and use windows_so_ops.
8442
8443 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8444
8445 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8446 when verifying if dealing with a convenience variable.
8447
8448 2020-03-03 Luis Machado <luis.machado@linaro.org>
8449
8450 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8451
8452 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8453
8454 * infrun.c (gdbarch_supports_displaced_stepping): New.
8455 (use_displaced_stepping): Break up conditions in smaller pieces.
8456 Use gdbarch_supports_displaced_stepping.
8457 (displaced_step_prepare_throw): Use
8458 gdbarch_supports_displaced_stepping.
8459
8460 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * NEWS: Mention new behaviour of the history filename.
8463 * top.c (write_history_p): Add comment.
8464 (show_write_history_p): Add header comment, give a different
8465 message when history writing is on, but the history filename is
8466 empty.
8467 (history_filename): Add comment.
8468 (history_filename_empty): New function.
8469 (show_history_filename): Add header comment, give a different
8470 message when the filename is empty.
8471 (init_history): Compare history_filename against nullptr, and only
8472 read history if the filename is not empty.
8473 (set_history_filename): Add header comment, and only make
8474 non-empty filenames absolute.
8475 (init_main): Make the filename argument to 'set history filename'
8476 optional.
8477
8478 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8479
8480 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8481 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8482 (fetch_fp_register): Update.
8483 (fetch_fp_regs): Update.
8484 (store_fp_register): Update.
8485 (store_fp_regs): Update.
8486 (arm_netbsd_nat_target::read_description): New function.
8487 (fetch_elfcore_registers): Update.
8488
8489 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8490
8491 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8492 general_thread if the stop reply is missing a thread-id.
8493 (remote_target::process_stop_reply): Use the first non-exited
8494 thread if the target didn't pass a thread-id.
8495 * infrun.c (do_target_wait): Move call to
8496 switch_to_inferior_no_thread to ....
8497 (do_target_wait_1): ... here.
8498
8499 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8500
8501 * debuginfod-support.c: Include defs.h first.
8502
8503 2020-02-28 Tom de Vries <tdevries@suse.de>
8504
8505 * symfile.c (set_initial_language): Use default language for lookup.
8506
8507 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8510 reader variable, pass `this` to read_cutu_die_from_dwo.
8511
8512 2020-02-27 Aaron Merey <amerey@redhat.com>
8513
8514 * source.c (open_source_file): Check for nullptr when computing
8515 srcpath.
8516
8517 2020-02-27 Tom Tromey <tromey@adacore.com>
8518
8519 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8520 member.
8521 (dwarf2_add_field): Don't update nfields.
8522 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8523
8524 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8527 abs.
8528
8529 2020-02-26 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8532 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8533 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8534 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8535 per_cu_data.
8536
8537 2020-02-26 Tom Tromey <tom@tromey.com>
8538
8539 * dwarf2/index-write.c (psym_index_map): Change type.
8540 (add_address_entry_worker, write_one_signatured_type)
8541 (recursively_count_psymbols, recursively_write_psymbols)
8542 (class debug_names, psyms_seen_size, write_gdbindex)
8543 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8544
8545 2020-02-26 Aaron Merey <amerey@redhat.com>
8546
8547 * Makefile.in: Handle optional debuginfod support.
8548 * NEWS: Update.
8549 * README: Add --with-debuginfod summary.
8550 * config.in: Regenerate.
8551 * configure: Regenerate.
8552 * configure.ac: Handle optional debuginfod support.
8553 * debuginfod-support.c: debuginfod helper functions.
8554 * debuginfod-support.h: Ditto.
8555 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8556 summary.
8557 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8558 when a dwz file cannot be found.
8559 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8560 debuginfo file cannot be found.
8561 * source.c (open_source_file): Query debuginfod servers when a
8562 source file cannot be found.
8563 * top.c (print_gdb_configuration): Include
8564 --{with,without}-debuginfod in the output.
8565
8566 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8567
8568 * thread.c (thr_try_catch_cmd): Print thread name.
8569
8570 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8574 dwarf2_fetch_die_type_sect_off): Move to...
8575 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8576 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8577 dwarf2_fetch_die_type_sect_off): ... here.
8578 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8579 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8580 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8581
8582 2020-02-26 Tom de Vries <tdevries@suse.de>
8583
8584 PR gdb/25603
8585 * symfile.c (set_initial_language): Exit-early if
8586 language_mode == language_mode_manual.
8587
8588 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8589
8590 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8591 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8592 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8593
8594 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8595
8596 * gdbtypes.c (create_array_type_with_stride): Handle negative
8597 array strides.
8598 * valarith.c (value_subscripted_rvalue): Likewise.
8599
8600 2020-02-25 Luis Machado <luis.machado@linaro.org>
8601
8602 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8603
8604 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8605
8606 * loc.h (dwarf2_get_die_type): Move to...
8607 * read.h (dwarf2_get_die_type): ... here.
8608 * read.c (dwarf2_get_die_type): Move doc to header.
8609
8610 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8611
8612 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8613 'gnulib/Makefile.in' to the list.
8614
8615 2020-02-24 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8618 Remove.
8619 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8620 XOBNEWVEC.
8621
8622 2020-02-24 Tom Tromey <tom@tromey.com>
8623
8624 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8625 New method.
8626 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8627 (dw2_do_instantiate_symtab, dw2_get_file_names)
8628 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8629
8630 2020-02-24 Tom Tromey <tom@tromey.com>
8631
8632 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8633 make_scoped_restore.
8634 (dwarf2_psymtab::read_symtab): Don't clear
8635 reading_partial_symbols.
8636
8637 2020-02-24 Tom de Vries <tdevries@suse.de>
8638
8639 PR gdb/25592
8640 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8641
8642 2020-02-24 Tom de Vries <tdevries@suse.de>
8643
8644 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8645 commands layout next/prev/regs.
8646
8647 2020-02-22 Tom Tromey <tom@tromey.com>
8648
8649 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8650 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8651
8652 2020-02-22 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8655
8656 2020-02-22 Tom Tromey <tom@tromey.com>
8657
8658 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8659 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8660 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8661 * tui/tui.c (_initialize_tui): Add usage text.
8662
8663 2020-02-22 Tom Tromey <tom@tromey.com>
8664
8665 * tui/tui-win.c (tui_set_focus_command)
8666 (tui_set_win_height_command): Use error_no_arg.
8667 (_initialize_tui_win): Update help text.
8668 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8669
8670 2020-02-22 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8673 * tui/tui-disasm.h (struct tui_disasm_window)
8674 <display_start_addr>: Declare.
8675 * tui/tui-source.h (struct tui_source_window)
8676 <display_start_addr>: Declare.
8677 * tui/tui-winsource.h (struct tui_source_window_base)
8678 <show_source_line, display_start_addr>: New methods.
8679 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8680 Rename and move to protected section.
8681 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8682 (tui_source_window_base::do_erase_source_content): Update.
8683 (tui_source_window_base::show_source_line): Now a method.
8684 (tui_source_window_base::show_source_content)
8685 (tui_source_window_base::tui_source_window_base)
8686 (tui_source_window_base::rerender)
8687 (tui_source_window_base::refill)
8688 (tui_source_window_base::do_scroll_horizontal)
8689 (tui_source_window_base::set_is_exec_point_at)
8690 (tui_source_window_base::update_breakpoint_info)
8691 (tui_source_window_base::update_exec_info): Update.
8692 * tui/tui-source.c (tui_source_window::set_contents)
8693 (tui_source_window::showing_source_p)
8694 (tui_source_window::do_scroll_vertical)
8695 (tui_source_window::location_matches_p)
8696 (tui_source_window::line_is_displayed): Update.
8697 (tui_source_window::display_start_addr): New method.
8698 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8699 (tui_disasm_window::do_scroll_vertical)
8700 (tui_disasm_window::location_matches_p): Update.
8701 (tui_disasm_window::display_start_addr): New method.
8702
8703 2020-02-22 Tom Tromey <tom@tromey.com>
8704
8705 * NEWS: Add entry for gdb.register_window_type.
8706 * tui/tui-layout.h (window_factory): New typedef.
8707 (tui_register_window): Declare.
8708 * tui/tui-layout.c (saved_tui_windows): New global.
8709 (tui_apply_current_layout): Use it.
8710 (tui_register_window): New function.
8711 * python/python.c (do_start_initialization): Call
8712 gdbpy_initialize_tui.
8713 (python_GdbMethods): Add "register_window_type" function.
8714 * python/python-internal.h (gdbpy_register_tui_window)
8715 (gdbpy_initialize_tui): Declare.
8716 * python/py-tui.c: New file.
8717 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8718
8719 2020-02-22 Tom Tromey <tom@tromey.com>
8720
8721 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8722
8723 2020-02-22 Tom Tromey <tom@tromey.com>
8724
8725 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8726 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8727 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8728 (tui_set_win_focus_to): Move from tui-win.c.
8729
8730 2020-02-22 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8733 functions.
8734 (known_window_types): New global.
8735 (tui_get_window_by_name): Reimplement.
8736 (initialize_known_windows): New function.
8737 (validate_window_name): Rewrite.
8738 (_initialize_tui_layout): Call initialize_known_windows.
8739
8740 2020-02-22 Tom Tromey <tom@tromey.com>
8741
8742 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8743 Remove constants.
8744 * tui/tui-winsource.h (struct tui_source_window_base)
8745 <tui_source_window_base>: Remove parameter.
8746 * tui/tui-winsource.c
8747 (tui_source_window_base::tui_source_window_base): Remove
8748 parameter.
8749 (tui_source_window_base::refill): Update.
8750 * tui/tui-stack.h (struct tui_locator_window)
8751 <tui_locator_window>: Update.
8752 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8753 Default the constructor.
8754 * tui/tui-regs.h (struct tui_data_item_window)
8755 <tui_data_item_window>: Default the constructor.
8756 (struct tui_data_window) <tui_data_window>: Likewise.
8757 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8758 Default the constructor.
8759 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8760 Default the constructor.
8761 <type>: Remove.
8762 (struct tui_win_info) <tui_win_info>: Default the constructor.
8763 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8764 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8765 Default the constructor.
8766
8767 2020-02-22 Tom Tromey <tom@tromey.com>
8768
8769 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8770 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8771 * tui/tui-win.c (tui_resize_all): Don't call
8772 tui_delete_invisible_windows.
8773 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8774 done.
8775 (tui_set_layout): Update.
8776 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8777 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8778 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8779
8780 2020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8783 correctly.
8784
8785 2020-02-22 Tom Tromey <tom@tromey.com>
8786
8787 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8788
8789 2020-02-22 Tom Tromey <tom@tromey.com>
8790
8791 * tui/tui-winsource.h (struct tui_source_window_iterator)
8792 <inner_iterator>: New etytypedef.
8793 <tui_source_window_iterator>: Take "end" parameter.
8794 <tui_source_window_iterator>: Take iterator.
8795 <operator*, advance>: Update.
8796 <m_iter>: Change type.
8797 <m_end>: New field.
8798 (struct tui_source_windows) <begin, end>: Update.
8799 * tui/tui-layout.c (tui_windows): New global.
8800 (tui_apply_current_layout): Clear tui_windows.
8801 (tui_layout_window::apply): Update tui_windows.
8802 * tui/tui-data.h (tui_windows): Declare.
8803 (all_tui_windows): Now inline function.
8804 (class tui_window_iterator, struct all_tui_windows): Remove.
8805
8806 2020-02-22 Tom Tromey <tom@tromey.com>
8807
8808 PR tui/17850:
8809 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8810 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8811 "height" argument.
8812 (class tui_layout_window) <get_sizes>: Likewise.
8813 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8814 argument.
8815 <get_sizes>: Add "height" argument.
8816 <m_vertical>: New field.
8817 * tui/tui-layout.c (tui_layout_split::clone): Update.
8818 (tui_layout_split::get_sizes): Add "height" argument.
8819 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8820 (tui_new_layout_command): Parse "-horizontal".
8821 (_initialize_tui_layout): Update help string.
8822 (tui_layout_split::specification): Add "-horizontal" when needed.
8823 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8824 argument.
8825 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8826 New methods.
8827
8828 2020-02-22 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-layout.h (enum tui_adjust_result): New.
8831 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8832 (class tui_layout_window) <adjust_size>: Return
8833 tui_adjust_result. Rewrite.
8834 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8835 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8836
8837 2020-02-22 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8840 parameter and return types.
8841 (class tui_layout_base) <specification>: Add "depth".
8842 (class tui_layout_window) <specification>: Add "depth".
8843 (class tui_layout_split) <specification>: Add "depth".
8844 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8845 and return types.
8846 (tui_new_layout_command): Parse sub-layouts.
8847 (_initialize_tui_layout): Update help string.
8848 (tui_layout_window::specification): Add "depth".
8849 (add_layout_command): Update.
8850
8851 2020-02-22 Tom Tromey <tom@tromey.com>
8852
8853 * NEWS: Add "tui new-layout" item.
8854 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8855 Add new-layout command to help text.
8856 (validate_window_name): New function.
8857 (tui_new_layout_command): New function.
8858 (_initialize_tui_layout): Register "new-layout".
8859 (tui_layout_window::specification): New method.
8860 (tui_layout_window::specification): New method.
8861 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8862 method.
8863 (class tui_layout_window) <specification>: New method.
8864 (class tui_layout_split) <specification>: New method.
8865
8866 2020-02-22 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8869 * tui/tui-win.c (window_name_completer): Update comment.
8870 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8871 Declare method.
8872 (class tui_layout_window) <replace_window>: Likewise.
8873 (class tui_layout_split) <replace_window>: Likewise.
8874 (tui_set_layout): Don't declare.
8875 (tui_set_initial_layout): Declare function.
8876 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8877 (asm_regs_layout): New globals.
8878 (tui_current_layout, show_layout): Remove.
8879 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8880 (find_layout, tui_apply_layout): New function.
8881 (layout_completer): Remove.
8882 (tui_next_layout): Reimplement.
8883 (tui_next_layout_command): New function.
8884 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8885 (tui_regs_layout): Reimplement.
8886 (tui_regs_layout_command): New function.
8887 (extract_display_start_addr): Rewrite.
8888 (next_layout, prev_layout): Remove.
8889 (tui_layout_window::replace_window): New method.
8890 (tui_layout_split::replace_window): New method.
8891 (destroy_layout): New function.
8892 (layout_list): New global.
8893 (add_layout_command): New function.
8894 (initialize_layouts): Update.
8895 (tui_layout_command): New function.
8896 (_initialize_tui_layout): Install "layout" commands.
8897 * tui/tui-data.h (enum tui_layout_type): Remove.
8898 (tui_current_layout): Don't declare.
8899
8900 2020-02-22 Tom Tromey <tom@tromey.com>
8901
8902 * tui/tui-regs.c (tui_reg_layout): Remove.
8903 (tui_reg_command): Use tui_regs_layout.
8904 * tui/tui-layout.h (tui_reg_command): Declare.
8905 * tui/tui-layout.c (tui_reg_command): New function.
8906
8907 2020-02-22 Tom Tromey <tom@tromey.com>
8908
8909 * tui/tui.c (tui_rl_delete_other_windows): Call
8910 tui_remove_some_windows.
8911 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8912 Declare method.
8913 (class tui_layout_window) <remove_windows>: New method.
8914 (class tui_layout_split) <remove_windows>: Declare.
8915 (tui_remove_some_windows): Declare.
8916 * tui/tui-layout.c (tui_remove_some_windows): New function.
8917 (tui_layout_split::remove_windows): New method.
8918
8919 2020-02-22 Tom Tromey <tom@tromey.com>
8920
8921 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8922 * tui/tui-layout.h (tui_next_layout): Declare.
8923 * tui/tui-layout.c (tui_next_layout): New function.
8924
8925 2020-02-22 Tom Tromey <tom@tromey.com>
8926
8927 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8928 correct coordinates.
8929
8930 2020-02-22 Tom Tromey <tom@tromey.com>
8931
8932 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8933 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8934 DATA_WIN case.
8935
8936 2020-02-22 Tom Tromey <tom@tromey.com>
8937
8938 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8939 TUI_DISASM_WIN, not tui_win_list.
8940
8941 2020-02-22 Tom Tromey <tom@tromey.com>
8942
8943 * valprint.c (generic_val_print_enum_1)
8944 (val_print_type_code_flags): Style member names.
8945 * rust-lang.c (val_print_struct, rust_print_enum)
8946 (rust_print_struct_def, rust_internal_print_type): Style member
8947 names.
8948 * p-valprint.c (pascal_object_print_value_fields): Style member
8949 names. Only call fprintf_symbol_filtered for static members.
8950 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8951 * f-valprint.c (f_val_print): Style member names.
8952 * f-typeprint.c (f_type_print_base): Style member names.
8953 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8954 call fprintf_symbol_filtered for static members.
8955 (cp_print_class_member): Style member names.
8956 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8957 member names.
8958 * ada-valprint.c (ada_print_scalar): Style enum names.
8959 (ada_val_print_enum): Likewise.
8960 * ada-typeprint.c (print_enum_type): Style enum names.
8961
8962 2020-02-21 Tom Tromey <tom@tromey.com>
8963
8964 * psympriv.h (struct partial_symtab): Update comment.
8965
8966 2020-02-21 Tom Tromey <tromey@adacore.com>
8967
8968 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8969 type is CORE_ADDR.
8970
8971 2020-02-21 Tom de Vries <tdevries@suse.de>
8972
8973 PR gdb/25534
8974 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8975 if dependencies[i]->user != NULL.
8976
8977 2020-02-21 Ali Tamur <tamur@google.com>
8978
8979 * dwarf2/read.c (dwarf2_name): Add null check.
8980
8981 2020-02-20 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8984 ">=", in binary search.
8985 (dwarf2_find_containing_comp_unit): New overload.
8986 (run_test): New self-test.
8987 (_initialize_dwarf2_read): Register new test.
8988
8989 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8990
8991 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8992 * riscv-tdep.h: Likewise.
8993 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8994 rv32-only CSR.
8995 * features/riscv/64bit-csr.xml: Regenerated.
8996
8997 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8998 Tom Tromey <tom@tromey.com>
8999
9000 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9001 of 'fputc_unfiltered'.
9002 (putchar_unfiltered): Call 'fputc_unfiltered'.
9003 (fputc_unfiltered): Call 'fputs_unfiltered'.
9004
9005 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * config.in: Regenerate.
9008 * configure: Regenerate.
9009 * configure.ac: Add --with-python-libdir option.
9010 * main.c: Use WITH_PYTHON_LIBDIR.
9011
9012 2020-02-19 Tom Tromey <tom@tromey.com>
9013
9014 * symtab.c (general_symbol_info::compute_and_set_names): Use
9015 obstack_strndup. Simplify call to symbol_set_demangled_name.
9016
9017 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/read.c (allocate_signatured_type_table,
9020 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9021 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9022 Remove objfile parameter, update all callers.
9023
9024 2020-02-19 Doug Evans <dje@google.com>
9025
9026 PR rust/25535
9027 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9028 rust_enum_variant calculation.
9029
9030 2020-02-19 Tom Tromey <tromey@adacore.com>
9031
9032 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9033
9034 2020-02-19 Tom Tromey <tromey@adacore.com>
9035
9036 * ada-lang.c (cache_symbol): Use obstack_strdup.
9037
9038 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * configure: Regenerate.
9041
9042 2020-02-19 Tom Tromey <tromey@adacore.com>
9043
9044 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9045 NULL check.
9046
9047 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9048
9049 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9050
9051 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9054 if GDBSERVER is not defined.
9055 (riscv_tdesc_cache): Likewise, also store const target_desc.
9056 (STATIC_IN_GDB): Define.
9057 (riscv_create_target_description): Update declaration with
9058 STATIC_IN_GDB.
9059 (riscv_lookup_target_description): New function, only define if
9060 GDBSERVER is not defined.
9061 * arch/riscv.h (riscv_create_target_description): Declare only
9062 when GDBSERVER is defined.
9063 (riscv_lookup_target_description): New declaration when GDBSERVER
9064 is not defined.
9065 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9066 (riscv_linux_read_features): ...this, and return
9067 riscv_gdbarch_features instead of target_desc.
9068 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9069 (riscv_linux_read_description): Rename to...
9070 (riscv_linux_read_features): ...this.
9071 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9072 Update to use riscv_gdbarch_features and
9073 riscv_lookup_target_description.
9074 * riscv-tdep.c (riscv_find_default_target_description): Use
9075 riscv_lookup_target_description instead of
9076 riscv_create_target_description.
9077
9078 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * valprint.c (generic_val_print_enum_1): When printing a flag
9081 enum with value 0 and there is no enumerator with value 0, print
9082 just "0" instead of "(unknown: 0x0)".
9083
9084 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * valprint.c (generic_val_print_enum_1): Print unknown part of
9087 flag enum in hex.
9088
9089 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9092 flag enums to contain duplicate enumerators.
9093 * valprint.c (generic_val_print_enum_1): Update comment.
9094
9095 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * dwarf2/read.c: Include "count-one-bits.h".
9098 (update_enumeration_type_from_children): If an enumerator has
9099 multiple bits set, don't treat the enumeration as a "flag enum".
9100 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9101 of flag enums have 0 or 1 bit set.
9102
9103 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9104
9105 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9106 conversion.
9107 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9108 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9109 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9110 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9111 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9112
9113 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9114
9115 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9116
9117 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9120 displaced_step_closure_up.
9121 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9122 (struct displaced_step_closure_up):
9123 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9124 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9125 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9126 Likewise.
9127 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9128 * gdbarch.c, gdbarch.h: Re-generate.
9129 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9130 displaced_step_closure_up.
9131 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9132 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9133 * infrun.h (displaced_step_closure_up): New type alias.
9134 (struct displaced_step_inferior_state) <step_closure>: Change
9135 type to displaced_step_closure_up.
9136 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9137 displaced_step_closure_up.
9138 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9139
9140 2020-02-14 Tom Tromey <tom@tromey.com>
9141
9142 * minidebug.c (gnu_debug_key): New global.
9143 (find_separate_debug_file_in_section): Use it.
9144
9145 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9148 std::unique_ptr.
9149 * gdbarch.c: Re-generate.
9150 * gdbarch.h: Re-generate.
9151 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9152 change.
9153 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9154 type to std::unique_ptr.
9155 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9156 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9157 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9158 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9159 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9160 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9161 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9162 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9163 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9164
9165 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9168 std::unique_ptr.
9169 (displaced_step_clear): Rename to...
9170 (displaced_step_reset): ... this. Just call displaced->reset ().
9171 (displaced_step_clear_cleanup): Rename to...
9172 (displaced_step_reset_cleanup): ... this.
9173 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9174 (displaced_step_fixup): Likewise.
9175 (resume_1): Likewise.
9176 (handle_inferior_event): Restore child's memory before calling
9177 displaced_step_fixup on the parent.
9178 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9179 to std::unique_ptr.
9180 <step_closure>: Change type to std::unique_ptr.
9181
9182 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * arm-tdep.c: Include count-one-bits.h.
9185 (cleanup_block_store_pc): Use count_one_bits.
9186 (cleanup_block_load_pc): Use count_one_bits.
9187 (arm_copy_block_xfer): Use count_one_bits.
9188 (thumb2_copy_block_xfer): Use count_one_bits.
9189 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9190 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9191 (thumb_get_next_pcs_raw): Use count_one_bits.
9192 (arm_get_next_pcs_raw): Use count_one_bits_l.
9193 * arch/arm.c (bitcount): Remove.
9194 * arch/arm.h (bitcount): Remove.
9195
9196 2020-02-14 Tom Tromey <tromey@adacore.com>
9197
9198 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9199 Update.
9200 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9201 * dwarf2/loc.c (call_site_find_chain_1): Return
9202 unique_xmalloc_ptr.
9203 (call_site_find_chain): Likewise.
9204
9205 2020-02-14 Richard Biener <rguenther@suse.de>
9206
9207 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9208 on expression with division operators.
9209
9210 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9211
9212 * MAINTAINERS (Write After Approval): Adding myself.
9213
9214 2020-02-12 Tom Tromey <tom@tromey.com>
9215
9216 * event-loop.c (event_data, gdb_event, event_handler_func):
9217 Remove.
9218
9219 2020-02-12 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9222 (dwarf2_frame_objfile_data): Add comment.
9223 (find_comp_unit, set_comp_unit): New functions.
9224 (dwarf2_frame_find_fde): Use find_comp_unit.
9225 (dwarf2_build_frame_info): Use set_comp_unit.
9226
9227 2020-02-12 Tom Tromey <tom@tromey.com>
9228
9229 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9230 (comp_unit): Don't initialize objfile.
9231 (execute_cfa_program): Add text_offset parameter.
9232 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9233 (dwarf2_frame_cache): Update.
9234 (dwarf2_build_frame_info): Don't set "objfile" member.
9235
9236 2020-02-12 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9239 (decode_frame_entry): Likewise.
9240 (dwarf2_build_frame_info): Update.
9241
9242 2020-02-12 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9245 (decode_frame_entry_1): Use the comp_unit obstack.
9246
9247 2020-02-12 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2/frame.c (struct comp_unit): Add initializers and
9250 constructor.
9251 (dwarf2_frame_objfile_data): Store a comp_unit.
9252 (dwarf2_frame_find_fde): Update.
9253 (dwarf2_build_frame_info): Use "new".
9254
9255 2020-02-12 Tom Tromey <tom@tromey.com>
9256
9257 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9258 (dwarf2_fde_table): Typedef for std::vector.
9259 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9260 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9261 (decode_frame_entry): Update.
9262 (dwarf2_build_frame_info): Use "new".
9263
9264 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9265
9266 * arm-tdep.c (arm_gdbarch_init): Update.
9267 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9268 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9269 have_neon, is_m>: Change to bool.
9270
9271 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9272
9273 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9274
9275 2020-02-12 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9278
9279 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9280
9281 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9282 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9283
9284 2020-02-11 Tom Tromey <tom@tromey.com>
9285
9286 * psymtab.h: Update comment.
9287
9288 2020-02-11 Tom Tromey <tom@tromey.com>
9289
9290 * gdb_obstack.h (struct auto_obstack): Use
9291 DISABLE_COPY_AND_ASSIGN.
9292
9293 2020-02-11 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/frame.h (struct objfile): Don't forward declare.
9296
9297 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9298
9299 * cris-tdep.c (cris_supply_gregset): Change signature to match
9300 what struct regset expects.
9301 (cris_regset): New struct.
9302 (fetch_core_registers): Remove.
9303 (cris_iterate_over_regset_sections): New function.
9304 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9305 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9306
9307 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9308
9309 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9310 registers.
9311
9312 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9313
9314 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9315
9316 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * configure: Re-generate.
9319
9320 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * configure: Re-generate.
9323
9324 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * acinclude: Update warning.m4 path.
9327 * warning.m4: Move to gdbsupport.
9328
9329 2020-02-11 Tom Tromey <tromey@adacore.com>
9330
9331 * remote.c (remote_console_output): Update.
9332 * printcmd.c (printf_command): Update.
9333 * event-loop.c (gdb_wait_for_event): Update.
9334 * linux-nat.c (sigchld_handler): Update.
9335 * remote-sim.c (gdb_os_write_stdout): Update.
9336 (gdb_os_flush_stdout): Update.
9337 (gdb_os_flush_stderr): Update.
9338 (gdb_os_write_stderr): Update.
9339 * exceptions.c (print_exception): Update.
9340 * remote-fileio.c (remote_fileio_func_read): Update.
9341 (remote_fileio_func_write): Update.
9342 * tui/tui.c (tui_enable): Update.
9343 * tui/tui-interp.c (tui_interp::init): Update.
9344 * utils.c (init_page_info): Update.
9345 (putchar_unfiltered, fputc_unfiltered): Update.
9346 (gdb_flush): Update.
9347 (emit_style_escape): Update.
9348 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9349 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9350 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9351 (stderr_file::write): Update.
9352 (stderr_file::puts): Update.
9353 * ui-file.h (ui_file_isatty, ui_file_write)
9354 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9355 (ui_file_puts): Don't declare.
9356
9357 2020-02-10 Tom de Vries <tdevries@suse.de>
9358
9359 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9360 sentinel to char *.
9361
9362 2020-02-09 Tom de Vries <tdevries@suse.de>
9363
9364 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9365 filename if it matches "<artificial>".
9366
9367 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9368
9369 * windows-tdep.c (struct enum_value_name): New struct.
9370 (create_enum): New function.
9371 (windows_get_siginfo_type): Create and use enum types.
9372
9373 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9374
9375 * NEWS: Mention $_siginfo support for Windows.
9376 * windows-nat.c (handle_exception): Set siginfo_er.
9377 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9378 (windows_xfer_siginfo): New function.
9379 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9380 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9381 (init_windows_gdbarch_data): New function.
9382 (get_windows_gdbarch_data): New function.
9383 (windows_get_siginfo_type): New function.
9384 (windows_init_abi): Register windows_get_siginfo_type.
9385 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9386
9387 2020-02-08 Tom Tromey <tom@tromey.com>
9388
9389 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9390 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9391 <keep>: Declare method.
9392 <m_keep>: Remove member.
9393 <~cutu_reader>: Remove.
9394 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9395 (cutu_reader::cutu_reader): Update.
9396 (cutu_reader::keep): Rename from ~cutu_reader.
9397 (process_psymtab_comp_unit, build_type_psymtabs_1)
9398 (process_skeletonless_type_unit, load_partial_comp_unit)
9399 (load_full_comp_unit, dwarf2_read_addr_index)
9400 (read_signatured_type): Update.
9401
9402 2020-02-08 Tom Tromey <tom@tromey.com>
9403
9404 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9405 "want_partial_unit" parameter.
9406 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9407 Inline check for DW_TAG_partial_unit.
9408 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9409
9410 2020-02-08 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9413 read.c.
9414 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9415 read.c.
9416
9417 2020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2/read.c (read_address): Move to comp-unit.c.
9420 (dwarf2_rnglists_process, dwarf2_ranges_process)
9421 (read_attribute_value, dwarf_decode_lines_1)
9422 (var_decode_location, decode_locdesc): Update.
9423 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9424 read.c. Remove "cu" parameter.
9425 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9426 method.
9427
9428 2020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9431 (read_indirect_line_string): Update.
9432 * dwarf2/comp-unit.c (read_offset): Remove.
9433 (read_comp_unit_head): Update.
9434 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9435 method.
9436 (read_offset): Don't declare.
9437
9438 2020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9441 * dwarf2/read.c (struct comp_unit_head): Move to
9442 dwarf2/comp-unit.h.
9443 (enum class rcuh_kind): Move to comp-unit.h.
9444 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9445 (read_comp_unit_head, error_check_comp_unit_head)
9446 (read_and_check_comp_unit_head): Move to comp-unit.c.
9447 (read_offset, dwarf_unit_type_name): Likewise.
9448 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9449 (cutu_reader::cutu_reader, read_call_site_scope)
9450 (find_partial_die, follow_die_offset): Update.
9451 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9452
9453 2020-02-08 Tom Tromey <tom@tromey.com>
9454
9455 * dwarf2/read.c (read_offset_1): Move to leb.c.
9456 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9457 (dwarf_decode_macro_bytes): Update.
9458 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9459 * dwarf2/leb.h (read_offset): Declare.
9460
9461 2020-02-08 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2/read.c (dwarf2_section_size): Remove.
9464 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9465 Update.
9466 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9467
9468 2020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.c (read_initial_length): Move to leb.c.
9471 * dwarf2/leb.h (read_initial_length): Declare.
9472 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9473 handle_nonstd parameter.
9474 * dwarf2/frame.c (read_initial_length): Remove.
9475 (decode_frame_entry_1): Update.
9476
9477 2020-02-08 Tom Tromey <tom@tromey.com>
9478
9479 * dwarf2/loc.c (dwarf2_find_location_expression)
9480 (dwarf_evaluate_loc_desc::get_tls_address)
9481 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9482 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9483 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9484 (dwarf2_compile_property_to_c)
9485 (dwarf2_loc_desc_get_symbol_read_needs)
9486 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9487 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9488 (loclist_describe_location, loclist_tracepoint_var_ref)
9489 (loclist_generate_c_location): Update.
9490 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9491 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9492 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9493 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9494 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9495 (dwarf2_per_cu_data::addr_size)
9496 (dwarf2_per_cu_data::ref_addr_size)
9497 (dwarf2_per_cu_data::text_offset)
9498 (dwarf2_per_cu_data::addr_type): Now methods.
9499 (per_cu_header_read_in): Make per_cu "const".
9500 (dwarf2_version): Remove.
9501 (dwarf2_per_cu_data::int_type): Now a method.
9502 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9503 (set_die_type, read_array_type, read_subrange_index_type)
9504 (read_tag_string_type, read_subrange_type): Update.
9505 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9506 offset_size, ref_addr_size, text_offset, addr_type, version,
9507 objfile, int_type, addr_sized_int_type>: Declare methods.
9508
9509 2020-02-08 Tom Tromey <tom@tromey.com>
9510
9511 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9512 Move earlier.
9513
9514 2020-02-08 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2/read.h (dwarf_line_debug): Declare.
9517 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9518 * dwarf2/read.c: Move line_header code to new files.
9519 (dwarf_line_debug): No longer static.
9520 * dwarf2/line-header.c: New file.
9521 * dwarf2/line-header.h: New file.
9522
9523 2020-02-08 Tom Tromey <tom@tromey.com>
9524
9525 * dwarf2/read.c (struct line_header) <file_full_name,
9526 file_file_name>: Return unique_xmalloc_ptr.
9527 (line_header::file_file_name): Update.
9528 (line_header::file_full_name): Update.
9529 (dw2_get_file_names_reader): Update.
9530 (macro_start_file): Update.
9531
9532 2020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (struct line_header) <file_full_name,
9535 file_file_name>: Declare methods.
9536 (dw2_get_file_names_reader): Update.
9537 (file_file_name): Now a method.
9538 (file_full_name): Likewise.
9539 (macro_start_file): Update.
9540
9541 2020-02-08 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/read.c (dwarf_always_disassemble)
9544 (show_dwarf_always_disassemble): Move to loc.c.
9545 (_initialize_dwarf2_read): Move "always-disassemble" registration
9546 to loc.c.
9547 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9548 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9549 static.
9550 (show_dwarf_always_disassemble): Move from read.c.
9551 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9552
9553 2020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9556 (create_quick_file_names_table): Return htab_up.
9557 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9558 Update.
9559 * dwarf2/read.h (struct dwarf2_per_objfile)
9560 <quick_file_names_table>: Now htab_up.
9561
9562 2020-02-08 Tom Tromey <tom@tromey.com>
9563
9564 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9565
9566 2020-02-08 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9569 Rewrite.
9570 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9571 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9572 (abbrev_table::abbrev_table): No longer inline.
9573 (ABBREV_HASH_SIZE): Remove.
9574 (abbrev_table::m_abbrevs): Now an htab_up.
9575
9576 2020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9579 (cutu_reader): Update.
9580 (build_type_psymtabs_1): Update.
9581 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9582 (abbrev_table::alloc_abbrev): Update.
9583 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9584 (abbrev_table::read): New static method, renamed from
9585 abbrev_table_read_table.
9586 (abbrev_table::alloc_abbrev)
9587 (abbrev_table::add_abbrev): Now private.
9588 (abbrev_table::abbrev_table): Now private.
9589 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9590
9591 2020-02-08 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9594 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9595 htab_up.
9596
9597 2020-02-08 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9600 htab_up.
9601 (lookup_dwo_unit_in_dwp): Update.
9602 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9603 on obstack.
9604
9605 2020-02-08 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9608 obstack.
9609
9610 2020-02-08 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9613 line_header_hash.
9614 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9615 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9616 Change type to htab_up.
9617
9618 2020-02-08 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9621 htab_up. Don't allocate on obstack.
9622 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9623 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9624 Change type to htab_up.
9625
9626 2020-02-08 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9629 Change type to htab_up.
9630 * dwarf2/read.c (create_signatured_type_table_from_index)
9631 (create_signatured_type_table_from_debug_names)
9632 (create_all_type_units, add_type_unit)
9633 (lookup_dwo_signatured_type, lookup_signatured_type)
9634 (process_skeletonless_type_unit): Update.
9635 (create_debug_type_hash_table, create_debug_types_hash_table):
9636 Change type of types_htab.
9637 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9638 htab_up. Don't allocate on obstack.
9639 (create_cus_hash_table): Change type of cus_htab parameter.
9640 (struct dwo_file) <cus, tus>: Now htab_up.
9641 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9642 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9643 (queue_and_load_all_dwo_tus): Update.
9644 * dwarf2/index-write.c (write_gdbindex): Update.
9645 (write_debug_names): Update.
9646
9647 2020-02-08 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9650 dwarf2/read.c. Remove "next" member. Add constructor ntad
9651 destructor.
9652 (struct dwarf2_per_objfile) <queue>: New member.
9653 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9654 dwarf2/read.h.
9655 (dwarf2_queue, dwarf2_queue_tail): Remove.
9656 (class dwarf2_queue_guard): Add parameter to constructor. Use
9657 DISABLE_COPY_AND_ASSIGN.
9658 <m_per_objfile>: New member.
9659 <~dwarf2_queue_guard>: Rewrite.
9660 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9661 Update.
9662 (~dwarf2_queue_item): New.
9663
9664 2020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/read.c (struct die_info) <has_children>: New member.
9667 (dw2_get_file_names_reader): Remove has_children.
9668 (dw2_get_file_names): Update.
9669 (read_cutu_die_from_dwo): Remove has_children.
9670 (cutu_reader::init_tu_and_read_dwo_dies)
9671 (cutu_reader::cutu_reader): Update.
9672 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9673 Remove has_children.
9674 (build_type_psymtabs_1, process_skeletonless_type_unit)
9675 (load_partial_comp_unit, load_full_comp_unit): Update.
9676 (create_dwo_cu_reader): Remove has_children.
9677 (create_cus_hash_table, read_die_and_children): Update.
9678 (read_full_die_1,read_full_die): Remove has_children.
9679 (read_signatured_type): Update.
9680 (class cutu_reader) <has_children>: Remove.
9681
9682 2020-02-08 Tom Tromey <tom@tromey.com>
9683
9684 * dwarf2/expr.c: Rename from dwarf2expr.c.
9685 * dwarf2/expr.h: Rename from dwarf2expr.h.
9686 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9687 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9688 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9689 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9690 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9691 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9692 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9693 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9694 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9695 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9696 * dwarf2/loc.c: Rename from dwarf2loc.c.
9697 * dwarf2/loc.h: Rename from dwarf2loc.h.
9698 * dwarf2/read.c: Rename from dwarf2read.c.
9699 * dwarf2/read.h: Rename from dwarf2read.h.
9700 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9701 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9702 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9703 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9704 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9705 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9706 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9707 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9708 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9709 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9710 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9711 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9712 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9713 Update.
9714 * Makefile.in (COMMON_SFILES): Update.
9715 (HFILES_NO_SRCDIR): Update.
9716
9717 2020-02-08 Tom Tromey <tom@tromey.com>
9718
9719 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9720 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9721
9722 2020-02-08 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2read.h (struct die_info): Don't declare.
9725
9726 2020-02-08 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2read.h (die_info_ptr): Remove typedef.
9729
9730 2020-02-08 Tom Tromey <tom@tromey.com>
9731
9732 * dwarf2read.c (read_call_site_scope)
9733 (handle_data_member_location, dwarf2_add_member_fn)
9734 (mark_common_block_symbol_computed, read_common_block)
9735 (attr_to_dynamic_prop, partial_die_info::read)
9736 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9737 (dwarf2_symbol_mark_computed, set_die_type): Update.
9738 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9739 method.
9740 (attr_form_is_block): Don't declare.
9741 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9742
9743 2020-02-08 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2read.c (dwarf2_find_base_address, )
9746 (read_call_site_scope, rust_containing_type)
9747 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9748 (handle_data_member_location, dwarf2_add_member_fn)
9749 (get_alignment, read_structure_type, process_structure_scope)
9750 (mark_common_block_symbol_computed, read_common_block)
9751 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9752 (partial_die_info::read, read_attribute_value, new_symbol)
9753 (lookup_die_type, dwarf2_get_ref_die_offset)
9754 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9755 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9756 (dwarf2_symbol_mark_computed): Update.
9757 * dwarf2/attribute.h (struct attribute) <value_as_address,
9758 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9759 methods.
9760 (value_as_address, attr_form_is_section_offset)
9761 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9762 * dwarf2/attribute.c (attribute::value_as_address)
9763 (attribute::form_is_section_offset, attribute::form_is_constant)
9764 (attribute::form_is_ref): Now methods.
9765
9766 2020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2read.c (struct attribute, DW_STRING)
9769 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9770 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9771 (attr_form_is_block, attr_form_is_section_offset)
9772 (attr_form_is_constant, attr_form_is_ref): Move.
9773 * dwarf2/attribute.h: New file.
9774 * dwarf2/attribute.c: New file, from dwarf2read.c.
9775 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9776
9777 2020-02-08 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9780 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9781 Move.
9782 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9783 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9784 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9785 abbrev.c.
9786 * dwarf2/abbrev.h: New file.
9787 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9788 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9789
9790 2020-02-08 Tom Tromey <tom@tromey.com>
9791
9792 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9793 (dwarf2_section_size, dwarf2_get_section_info)
9794 (create_signatured_type_table_from_debug_names)
9795 (create_addrmap_from_aranges, read_debug_names_from_section)
9796 (get_gdb_index_contents_from_section, read_comp_unit_head)
9797 (error_check_comp_unit_head, read_abbrev_offset)
9798 (create_debug_type_hash_table, init_cu_die_reader)
9799 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9800 (read_comp_units_from_section, create_cus_hash_table)
9801 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9802 (create_dwp_v2_section, dwarf2_rnglists_process)
9803 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9804 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9805 (read_indirect_string_from_dwz, read_addr_index_1)
9806 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9807 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9808 (fill_in_loclist_baton): Update.
9809 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9810 get_containing_section, get_bfd_owner, get_bfd_section,
9811 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9812 (dwarf2_read_section, get_section_name, get_section_file_name)
9813 (get_containing_section, get_section_bfd_owner)
9814 (get_section_bfd_section, get_section_name, get_section_file_name)
9815 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9816 declare.
9817 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9818 (dwarf2_section_info::get_bfd_owner)
9819 (dwarf2_section_info::get_bfd_section)
9820 (dwarf2_section_info::get_name)
9821 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9822 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9823 (dwarf2_section_info::read): Now methods.
9824 * dwarf-index-write.c (class debug_names): Update.
9825
9826 2020-02-08 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9829 Move to dwarf2/section.h.
9830 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9831 (get_section_bfd_section, get_section_name)
9832 (get_section_file_name, get_section_id, get_section_flags)
9833 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9834 dwarf2/section.c.
9835 * dwarf2/section.h: New file.
9836 * dwarf2/section.c: New file, from dwarf2read.c.
9837 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9838
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9842 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9843 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9844 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9845 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9846 * dwarf2/leb.h: New file, from dwarf2read.c.
9847 * dwarf2/leb.c: New file, from dwarf2read.c.
9848 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9849 Remove.
9850 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9851 (COMMON_SFILES): Add dwarf2/leb.c.
9852
9853 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9854
9855 GDB 9.1 released.
9856
9857 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9858
9859 PR gdb/25190:
9860 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9861 * gdb/remote.c (remote_console_output): Update.
9862 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9863 (ui_file_puts): ...this.
9864 * gdb/ui-file.h (ui_file_puts): Add declaration.
9865 * gdb/utils.c (emit_style_escape): Update.
9866 (flush_wrap_buffer): Update.
9867 (fputs_maybe_filtered): Update.
9868 (fputs_unfiltered): Add function.
9869
9870 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9871
9872 * gdb/event-loop.c (gdb_wait_for_event): Update.
9873 * gdb/printcmd.c (printf_command): Update.
9874 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9875 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9876 (gdb_os_flush_stderr): Update.
9877 * gdb/remote.c (remote_console_output): Update.
9878 * gdb/ui-file.c (gdb_flush): Rename to...
9879 (ui_file_flush): ...this.
9880 (stderr_file::write): Update.
9881 (stderr_file::puts): Update.
9882 * gdb/ui-file.h (gdb_flush): Rename to...
9883 (ui_file_flush): ...this.
9884 * gdb/utils.c (gdb_flush): Add function.
9885 * gdb/utils.h (gdb_flush): Add declaration.
9886
9887 2020-02-07 Tom Tromey <tromey@adacore.com>
9888
9889 PR breakpoints/24915:
9890 * source.c (find_and_open_source): Do not check basenames_may_differ.
9891
9892 2020-02-07 Tom Tromey <tom@tromey.com>
9893
9894 * README: Update gdbserver documentation.
9895 * gdbserver: Move to top level.
9896 * configure.tgt (build_gdbserver): Remove.
9897 * configure.ac: Remove --enable-gdbserver.
9898 * configure: Rebuild.
9899 * Makefile.in (distclean): Don't mention gdbserver.
9900
9901 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9902
9903 * source-cache.c (source_cache::ensure): Surround
9904 get_plain_source_lines with a try/catch.
9905 (source_cache::get_line_charpos): Get rid of try/catch
9906 and only check for the return value of "ensure".
9907 * tui/tui-source.c (tui_source_window::set_contents):
9908 Simplify "nlines" calculation.
9909
9910 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9911
9912 * MAINTAINERS (Write After Approval): Add myself.
9913
9914 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9915
9916 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9917 function call.
9918
9919 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9920
9921 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9922
9923 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9924
9925 * nat/riscv-linux-tdesc.h: New file.
9926 * nat/riscv-linux-tdesc.c: New file, taking code from...
9927 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9928 ... here.
9929 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9930 NATDEPFILES.
9931
9932 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9933
9934 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9935 we don't set the fake simulator ptid to the null_ptid.
9936
9937 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9940 * gdbthread.h (class thread_info) <resumed>: Likewise.
9941 * infrun.c (resume_1): Likewise.
9942 (proceed): Likewise.
9943 (infrun_thread_stop_requested): Likewise.
9944 (stop_all_threads): Likewise.
9945 (handle_inferior_event): Likewise.
9946 (restart_threads): Likewise.
9947 (finish_step_over): Likewise.
9948 (keep_going_stepped_thread): Likewise.
9949 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9950 (linux_handle_extended_wait): Likewise.
9951 * record-btrace.c (get_thread_current_frame_id): Likewise.
9952 * record-full.c (record_full_wait_1): Likewise.
9953 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9954 * target.c (target_resume): Likewise.
9955 * thread.c (set_running_thread): Likewise.
9956
9957 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9958
9959 * f-valprint.c (f77_print_array_1): Changed datatype of index
9960 variable to LONGEST from int to enable it to contain bound
9961 values correctly.
9962
9963 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9964
9965 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9966 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9967 offsets according to FLEN determined.
9968 (riscv_linux_nat_target::read_description): Determine FLEN
9969 dynamically.
9970 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9971 according to FLEN determined.
9972 (riscv_linux_nat_target::store_registers): Likewise.
9973
9974 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9975
9976 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9977 when reg->group is empty and reggroup is not.
9978
9979 2020-01-31 Tom Tromey <tromey@adacore.com>
9980
9981 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9982 Call beneath target's mourn_inferior after unpushing.
9983
9984 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9985
9986 PR tui/9765
9987 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9988 have enough lines to fill the screen, still return the lowest
9989 address we found.
9990
9991 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9994 '-', '<', and '>' commands.
9995
9996 2020-01-29 Pedro Alves <palves@redhat.com>
9997 Sergio Durigan Junior <sergiodj@redhat.com>
9998
9999 * infcmd.c (construct_inferior_arguments): Assert that
10000 'argc' is greater than 0.
10001
10002 2020-01-29 Luis Machado <luis.machado@linaro.org>
10003
10004 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10005 (BRK_INSN_MASK): Define to 0xd4200000.
10006 (aarch64_program_breakpoint_here_p): New function.
10007 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10008 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10009 breakpoint.c.
10010 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10011 breakpoint.h
10012 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10013 call gdbarch_program_breakpoint_here_p.
10014 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10015 default_program_breakpoint_here_p, changed return type to bool and
10016 simplified.
10017 * breakpoint.h (program_breakpoint_here): Moved prototype to
10018 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10019 return type to bool.
10020 * gdbarch.c: Regenerate.
10021 * gdbarch.h: Regenerate.
10022 * gdbarch.sh (program_breakpoint_here_p): New method.
10023 * infrun.c (handle_signal_stop): Call
10024 gdbarch_program_breakpoint_here_p.
10025
10026 2020-01-26 Tom Tromey <tom@tromey.com>
10027
10028 * ctfread.c (struct ctf_fp_info): Reindent.
10029 (_initialize_ctfread): Remove.
10030
10031 2020-01-26 Tom Tromey <tom@tromey.com>
10032
10033 * psymtab.c (partial_map_expand_apply)
10034 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10035 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10036 (psym_print_stats, psym_expand_symtabs_for_function)
10037 (psym_map_symbol_filenames, psym_map_matching_symbols)
10038 (psym_expand_symtabs_matching)
10039 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10040 (maintenance_check_psymtabs): Use new methods.
10041 * psympriv.h (struct partial_symtab) <readin_p,
10042 get_compunit_symtab>: New methods.
10043 <readin, compunit_symtab>: Remove members.
10044 (struct standard_psymtab): New.
10045 (struct legacy_psymtab): Derive from standard_psymtab.
10046 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10047 standard_psymtab.
10048 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10049
10050 2020-01-26 Tom Tromey <tom@tromey.com>
10051
10052 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10053 read_dependencies. Add assert.
10054 * psymtab.c (partial_symtab::read_dependencies): New method.
10055 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10056 method.
10057 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10058 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10059 read_dependencies.
10060 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10061 Add assert.
10062
10063 2020-01-26 Tom Tromey <tom@tromey.com>
10064
10065 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10066 Call expand_psymtab.
10067 (xcoff_read_symtab): Call expand_psymtab.
10068 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10069 legacy_expand_psymtab.
10070 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10071 method.
10072 (struct legacy_psymtab) <expand_psymtab>: Implement.
10073 <legacy_expand_psymtab>: New member.
10074 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10075 (parse_partial_symbols): Set legacy_expand_psymtab.
10076 (psymtab_to_symtab_1): Change argument order. Call
10077 expand_psymtab.
10078 (new_psymtab): Set legacy_expand_psymtab.
10079 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10080 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10081 expand_psymtab.
10082 (dwarf2_psymtab::expand_psymtab): Rename from
10083 psymtab_to_symtab_1. Call expand_psymtab.
10084 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10085 (dbx_end_psymtab): Likewise.
10086 (dbx_psymtab_to_symtab_1): Change argument order. Call
10087 expand_psymtab.
10088 (dbx_read_symtab): Call expand_psymtab.
10089 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10090 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10091 (ctf_psymtab::read_symtab): Call expand_psymtab.
10092
10093 2020-01-26 Tom Tromey <tom@tromey.com>
10094
10095 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10096 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10097 messages.
10098 * mdebugread.c (mdebug_read_symtab): Remove prints.
10099 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10100 assert.
10101 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10102
10103 2020-01-26 Tom Tromey <tom@tromey.com>
10104
10105 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10106 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10107 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10108 legacy_symtab.
10109 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10110 * psymtab.c (psymtab_to_symtab): Call method.
10111 (dump_psymtab): Update.
10112 * psympriv.h (struct partial_symtab): Add virtual destructor.
10113 <read_symtab>: New method.
10114 (struct legacy_symtab): New.
10115 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10116 (struct pst_map) <pst>: Now a legacy_psymtab.
10117 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10118 (new_psymtab): Use legacy_psymtab.
10119 * dwarf2read.h (struct dwarf2_psymtab): New.
10120 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10121 * dwarf2read.c (dwarf2_create_include_psymtab)
10122 (dwarf2_build_include_psymtabs, create_type_unit_group)
10123 (create_partial_symtab, process_psymtab_comp_unit_reader)
10124 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10125 (set_partial_user): Use dwarf2_psymtab.
10126 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10127 (psymtab_to_symtab_1, process_full_comp_unit)
10128 (process_full_type_unit, dwarf2_ranges_read)
10129 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10130 (dwarf_decode_lines): Use dwarf2_psymtab.
10131 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10132 (add_address_entry_worker, write_one_signatured_type)
10133 (recursively_count_psymbols, recursively_write_psymbols)
10134 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10135 (write_debug_names): Likewise.
10136 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10137 <pst>: Now a legacy_psymtab.
10138 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10139 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10140 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10141 * ctfread.c (struct ctf_psymtab): New.
10142 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10143 ctf_psymtab.
10144 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10145 (create_partial_symtab): Return a ctf_psymtab.
10146 (scan_partial_symbols): Update.
10147
10148 2020-01-26 Tom Tromey <tom@tromey.com>
10149
10150 * xcoffread.c (xcoff_start_psymtab): Use new.
10151 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10152 renamed from start_psymtab_common.
10153 * psympriv.h (struct partial_symtab): Add new constructor.
10154 (start_psymtab_common): Don't declare.
10155 * mdebugread.c (parse_partial_symbols): Use new.
10156 * dwarf2read.c (create_partial_symtab): Use new.
10157 * dbxread.c (start_psymtab): Use new.
10158 * ctfread.c (create_partial_symtab): Use new.
10159
10160 2020-01-26 Tom Tromey <tom@tromey.com>
10161
10162 * xcoffread.c (xcoff_end_psymtab): Use new.
10163 * psymtab.c (start_psymtab_common): Use new.
10164 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10165 Update.
10166 * psympriv.h (struct partial_symtab): Add parameters to
10167 constructor. Don't inline.
10168 (allocate_psymtab): Don't declare.
10169 * mdebugread.c (new_psymtab): Use new.
10170 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10171 * dbxread.c (dbx_end_psymtab): Use new.
10172
10173 2020-01-26 Tom Tromey <tom@tromey.com>
10174
10175 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10176 allocate_psymtab. Update documentation.
10177 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10178 allocate_psymtab. Do not use new.
10179 (allocate_psymtab): Use new. Update.
10180
10181 2020-01-26 Tom Tromey <tom@tromey.com>
10182
10183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10184 * psymtab.c (psym_print_stats): Update.
10185 * psympriv.h (struct partial_symtab) <readin,
10186 psymtabs_addrmap_supported, anonymous>: Now bool.
10187 * mdebugread.c (psymtab_to_symtab_1): Update.
10188 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10189 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10190 (process_full_comp_unit, process_full_type_unit): Update.
10191 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10192 * ctfread.c (psymtab_to_symtab): Update.
10193
10194 2020-01-26 Tom Tromey <tom@tromey.com>
10195
10196 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10197 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10198 * psymtab.c (psymtab_storage): Delete psymtabs.
10199 (psymtab_storage::allocate_psymtab): Use new.
10200 (psymtab_storage::discard_psymtab): Use delete.
10201 * psympriv.h (struct partial_symtab): Add constructor and
10202 initializers.
10203
10204 2020-01-26 Tom Tromey <tom@tromey.com>
10205
10206 * machoread.c: Do not include psympriv.h.
10207
10208 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10209
10210 * NEWS: Mention the new option and the set/show commands.
10211
10212 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10213
10214 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10215 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10216 (validate_exec_file): New variables, enums, functions.
10217 (exec_file_locate_attach, print_section_info): Style the filenames.
10218 (_initialize_exec): Install show_exec_file_mismatch_command and
10219 set_exec_file_mismatch_command.
10220 * gdbcore.h (validate_exec_file): Declare.
10221 * infcmd.c (attach_command): Call validate_exec_file.
10222 * remote.c ( remote_target::remote_add_inferior): Likewise.
10223
10224 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * frame.c (find_frame_sal): Move call to get_next_frame into more
10227 inner scope.
10228 * inline-frame.c (inilne_state) <inline_state>: Update argument
10229 types.
10230 (inilne_state) <skipped_symbol>: Rename to...
10231 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10232 (skip_inline_frames): Build vector of skipped symbols and use this
10233 to reate the inline_state.
10234 (inline_skipped_symbol): Add a comment and some assertions, fetch
10235 skipped symbol from the list.
10236
10237 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10238
10239 * buildsym.c (lte_is_less_than): Delete.
10240 (buildsym_compunit::end_symtab_with_blockvector): Create local
10241 lambda function to sort line table entries, and use
10242 std::stable_sort instead of std::sort.
10243 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10244 markers when looking for a previous line.
10245
10246 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10247
10248 * dwarf2read.c (lnp_state_machine::record_line): Include
10249 end_sequence parameter in debug print out. Record the line if we
10250 are at an end_sequence marker even if it's not the start of a
10251 statement.
10252 * symmisc.c (maintenance_print_one_line_table): Print end of
10253 sequence markers with 'END' not '0'.
10254
10255 2020-01-24 Pedro Alves <palves@redhat.com>
10256
10257 PR gdb/25410
10258 * thread.c (scoped_restore_current_thread::restore): Use
10259 switch_to_inferior_no_thread.
10260 * exec.c: Include "progspace-and-thread.h".
10261 (add_target_sections, remove_target_sections):
10262 scoped_restore_current_pspace_and_thread instead of
10263 scoped_restore_current_thread.
10264 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10265 and aspace to the inferior before calling clone_program_space.
10266 Remove stale comment.
10267
10268 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10269
10270 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10271 (arm_netbsd_nat_target::fetch_registers): ...this.
10272 (arm_nbsd_nat_target::store_registers): Rename to...
10273 (arm_netbsd_nat_target::store_registers): ...this.
10274
10275 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10276
10277 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10278 register_t.
10279
10280 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10281
10282 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10283 Update comment.
10284 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10285 Likewise.
10286 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10287 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10288 the correct replacement (iterate_over_regset_sections).
10289 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10290 Update comment.
10291
10292 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10293
10294 PR gdb/23718
10295 * gdb/python/python.c (execute_gdb_command): Call
10296 async_enable_stdin in catch block.
10297
10298 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10299
10300 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10301 SWITCH_THRU_ALL_UIS.
10302
10303 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10304
10305 PR tui/9765
10306 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10307 comment, add extra parameter, and update to store previous symbol
10308 when appropriate.
10309 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10310 add extra parameter.
10311 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10312 remove unneeded parameter, add try/catch around gdb_print_insn,
10313 rewrite to add items to asm_lines vector.
10314 (tui_find_backward_disassembly_start_address): New function.
10315 (tui_find_disassembly_address): Updated throughout.
10316 (tui_disasm_window::set_contents): Update for changes to
10317 tui_disassemble.
10318 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10319 number of lines to scroll.
10320
10321 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10322
10323 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10324 (SECT_OFF_DATA): Likewise.
10325 (SECT_OFF_RODATA): Likewise.
10326 (SECT_OFF_TEXT): Likewise.
10327 (SECT_OFF_BSS): Likewise.
10328 (struct objfile) <text_section_offset, data_section_offset>: New
10329 methods.
10330 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10331 objfile::text_section_offset.
10332 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10333 * coffread.c (coff_symtab_read): Likewise.
10334 (enter_linenos): Likewise.
10335 (process_coff_symbol): Likewise.
10336 * ctfread.c (get_objfile_text_range): Likewise.
10337 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10338 Use objfile::data_section_offset.
10339 * dwarf2-frame.c (execute_cfa_program): Use
10340 objfile::text_section_offset.
10341 (dwarf2_frame_find_fde): Likewise.
10342 * dwarf2read.c (create_addrmap_from_index): Likewise.
10343 (create_addrmap_from_aranges): Likewise.
10344 (dw2_find_pc_sect_compunit_symtab): Likewise.
10345 (process_psymtab_comp_unit_reader): Likewise.
10346 (add_partial_symbol): Likewise.
10347 (add_partial_subprogram): Likewise.
10348 (process_full_comp_unit): Likewise.
10349 (read_file_scope): Likewise.
10350 (read_func_scope): Likewise.
10351 (read_lexical_block_scope): Likewise.
10352 (read_call_site_scope): Likewise.
10353 (dwarf2_rnglists_process): Likewise.
10354 (dwarf2_ranges_process): Likewise.
10355 (dwarf2_ranges_read): Likewise.
10356 (dwarf_decode_lines_1): Likewise.
10357 (new_symbol): Likewise.
10358 (dwarf2_fetch_die_loc_sect_off): Likewise.
10359 (dwarf2_per_cu_text_offset): Likewise.
10360 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10361 * hppa-tdep.c (read_unwind_info): Likewise.
10362 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10363 * psympriv.h (struct partial_symtab): Likewise.
10364 * psymtab.c (find_pc_sect_psymtab): Likewise.
10365 * solib-svr4.c (enable_break): Likewise.
10366 * stap-probe.c (relocate_address): Use
10367 objfile::data_section_offset.
10368 * xcoffread.c (enter_line_range): Use
10369 objfile::text_section_offset.
10370 (read_xcoff_symtab): Likewise.
10371
10372 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10375 declaration to narrower scopes.
10376
10377 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10378
10379 * darwin-nat.h (struct darwin_exception_msg, enum
10380 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10381 Move up.
10382 (class darwin_nat_target) <wait_1, check_new_threads,
10383 decode_exception_message, decode_message, stop_inferior,
10384 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10385 * darwin-nat.c (darwin_check_new_threads): Rename to...
10386 (darwin_nat_target::check_new_threads): ... this.
10387 (darwin_suspend_inferior_it): Remove.
10388 (darwin_decode_exception_message): Rename to...
10389 (darwin_nat_target::decode_exception_message): ... this.
10390 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10391 (darwin_decode_message): Rename to...
10392 (darwin_nat_target::decode_message): ... this.
10393 (cancel_breakpoint): Rename to...
10394 (darwin_nat_target::cancel_breakpoint): ... this.
10395 (darwin_wait): Rename to...
10396 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10397 instead of iterate_over_inferiors.
10398 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10399 (darwin_stop_inferior): Rename to...
10400 (darwin_nat_target::stop_inferior): ... this.
10401 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10402 (darwin_init_thread_list): Rename to...
10403 (darwin_nat_target::init_thread_list): ... this.
10404 (darwin_ptrace_him): Rename to...
10405 (darwin_nat_target::ptrace_him): ... this.
10406 (darwin_nat_target::create_inferior): Pass lambda function to
10407 fork_inferior.
10408 (darwin_nat_target::detach): Call stop_inferior instead of
10409 darwin_stop_inferior.
10410 * fork-inferior.h (fork_inferior): Change init_trace_fun
10411 parameter to gdb::function_view.
10412 * fork-inferior.c (fork_inferior): Likewise.
10413
10414 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10415
10416 * i386-cygwin-tdep.c (core_process_module_section): Update.
10417 * windows-nat.c (struct lm_info_windows): Add text_offset.
10418 (windows_xfer_shared_libraries): Update.
10419 * windows-tdep.c (windows_xfer_shared_library):
10420 Add text_offset_cached argument.
10421 * windows-tdep.h (windows_xfer_shared_library): Update.
10422
10423 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10424
10425 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10426
10427 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10430 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10431 replace with range-based for.
10432 (gdbsim_interrupt_inferior): Remove.
10433 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10434 with a range-based for. Inline code from
10435 gdbsim_interrupt_inferior.
10436
10437 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * infrun.c (proceed): Fix indentation.
10440
10441 2020-01-21 Tom Tromey <tromey@adacore.com>
10442
10443 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10444 * python/python.c (python_extension_ops): Update.
10445 (gdbpy_colorize): New function.
10446 * python/lib/gdb/__init__.py (colorize): New function.
10447 * extension.h (ext_lang_colorize): Declare.
10448 * extension.c (ext_lang_colorize): New function.
10449 * extension-priv.h (struct extension_language_ops) <colorize>: New
10450 member.
10451 * cli/cli-style.c (_initialize_cli_style): Update help text.
10452
10453 2020-01-21 Luis Machado <luis.machado@linaro.org>
10454
10455 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10456 <cond>: Change type to bool.
10457 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10458 (aarch64_displaced_step_cb): Likewise.
10459 (aarch64_displaced_step_tb): Likewise.
10460
10461 2020-01-21 Luis Machado <luis.machado@linaro.org>
10462
10463 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10464 output.
10465
10466 2020-01-21 Luis Machado <luis.machado@linaro.org>
10467
10468 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10469 <pc_adjust>: Adjust the documentation.
10470 (aarch64_displaced_step_fixup): Check if PC really moved before
10471 adjusting it.
10472
10473 2020-01-19 Tom Tromey <tom@tromey.com>
10474
10475 * disasm.c (~gdb_disassembler): New destructor.
10476 (gdb_buffered_insn_length): Call disassemble_free_target.
10477 * disasm.h (class gdb_disassembler): Declare destructor. Use
10478 DISABLE_COPY_AND_ASSIGN.
10479
10480 2020-01-19 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10483 (die_reader_func_ftype): Remove.
10484 (cutu_reader): New class.
10485 (dw2_get_file_names_reader): Remove "data" parameter.
10486 (dw2_get_file_names): Use cutu_reader.
10487 (create_debug_type_hash_table): Update.
10488 (read_cutu_die_from_dwo): Update comment.
10489 (lookup_dwo_unit): Add dwo_name parameter.
10490 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10491 die_reader_func_ftype and data parameters.
10492 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10493 Remove die_reader_func_ftype and data parameters.
10494 (~cutu_reader): New; from init_cutu_and_read_dies.
10495 (cutu_reader::cutu_reader): Rename from
10496 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10497 and data parameters.
10498 (init_cutu_and_read_dies_simple): Remove.
10499 (struct process_psymtab_comp_unit_data): Remove.
10500 (process_psymtab_comp_unit_reader): Remove data parameter; add
10501 want_partial_unit and pretend_language parameters.
10502 (process_psymtab_comp_unit): Use cutu_reader.
10503 (build_type_psymtabs_reader): Remove data parameter.
10504 (build_type_psymtabs_1): Use cutu_reader.
10505 (process_skeletonless_type_unit): Likewise.
10506 (load_partial_comp_unit_reader): Remove.
10507 (load_partial_comp_unit): Use cutu_reader.
10508 (load_full_comp_unit_reader): Remove.
10509 (load_full_comp_unit): Use cutu_reader.
10510 (struct create_dwo_cu_data): Remove.
10511 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10512 dwo_unit parameters.
10513 (create_cus_hash_table): Use cutu_reader.
10514 (struct dwarf2_read_addr_index_data): Remove.
10515 (dwarf2_read_addr_index_reader): Remove.
10516 (dwarf2_read_addr_index): Use cutu_reader.
10517 (read_signatured_type_reader): Remove.
10518 (read_signatured_type): Use cutu_reader.
10519
10520 2020-01-19 Tom Tromey <tom@tromey.com>
10521
10522 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10523 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10524 (tui_wrefresh): Declare.
10525 * tui/tui-wingeneral.c (suppress_output): New global.
10526 (tui_suppress_output, ~tui_suppress_output): New constructor and
10527 destructor.
10528 (tui_wrefresh): New function.
10529 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10530 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10531 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10532 method.
10533 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10534 tui_wrefresh.
10535 (tui_data_window::no_refresh): New method.
10536 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10537 (tui_reg_command): Use tui_suppress_output
10538 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10539 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10540 method.
10541 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10542
10543 2020-01-19 Tom Tromey <tom@tromey.com>
10544
10545 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10546 Handle case where symtab is null.
10547
10548 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * linux-fork.c (one_fork_p): Simplify.
10551
10552 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10553
10554 * top.c (struct qt_args): Remove.
10555 (kill_or_detach): Change return type to void, replace `void *`
10556 parameter with a proper one.
10557 (print_inferior_quit_action): Likewise.
10558 (quit_confirm): Use range-based for loop to iterate over inferiors.
10559 (quit_force): Likewise.
10560
10561 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10562
10563 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10564 `void *` parameter with proper parameters.
10565 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10566 (print_one_inferior): Change return type to void, replace `void *`
10567 parameter with proper parameters.
10568 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10569 inferiors.
10570 (get_other_inferior): Remove.
10571 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10572 inferiors.
10573
10574 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * mi/mi-interp.c (report_initial_inferior): Remove.
10577 (mi_interp::init): Use range-based for to iterate over inferiors.
10578
10579 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10580
10581 * python/py-inferior.c (build_inferior_list): Remove.
10582 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10583
10584 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10585
10586 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10587 (btrace_stitch_trace): Likewise.
10588 * charset.c (intermediate_encoding): Likewise (vaild).
10589 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10590 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10591 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10592
10593 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10594
10595 * windows-tdep.c (windows_get_tlb_type):
10596 Add rtl_user_process_parameters type.
10597
10598 2020-01-16 Pedro Alves <palves@redhat.com>
10599 Norbert Lange <nolange79@gmail.com>
10600
10601 PR build/24805
10602 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10603 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10604 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10605 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10606 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10607 (ps_plog): Redeclare exported functions with default visibility.
10608
10609 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10610
10611 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10612 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10613
10614 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10615
10616 * infcmd.c (post_create_inferior): Use get_thread_regcache
10617 instead of get_current_regcache.
10618
10619 2020-01-14 Tom Tromey <tom@tromey.com>
10620
10621 PR symtab/12535:
10622 * python/python.c (gdbpy_decode_line): Treat empty string the same
10623 as no argument.
10624
10625 2020-01-14 Tom Tromey <tom@tromey.com>
10626
10627 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10628
10629 2020-01-14 Tom Tromey <tom@tromey.com>
10630
10631 * nat/linux-btrace.c: Don't include <config.h>.
10632 * nat/linux-ptrace.c: Don't include <config.h>.
10633 * nat/x86-linux-dregs.c: Don't include <config.h>.
10634
10635 2020-01-14 Tom Tromey <tom@tromey.com>
10636
10637 * configure: Rebuild.
10638 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10639
10640 2020-01-14 Tom Tromey <tom@tromey.com>
10641
10642 * nat/x86-linux-dregs.c: Include configh.h.
10643 * nat/linux-ptrace.c: Include configh.h.
10644 * nat/linux-btrace.c: Include configh.h.
10645 * defs.h: Include config.h, bfd.h.
10646 * configure.ac: Don't source common.host.
10647 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10648 * configure: Rebuild.
10649 * acinclude.m4: Update path.
10650 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10651 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10652 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10653 (CLIBS): Add LIBSUPPORT.
10654 (CDEPS): Likewise.
10655 (COMMON_SFILES): Remove gdbsupport files.
10656 (HFILES_NO_SRCDIR): Likewise.
10657 (stamp-version): Update path to create-version.sh.
10658 (ALLDEPFILES): Remove gdbsupport files.
10659
10660 2020-01-14 Tom Tromey <tom@tromey.com>
10661
10662 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10663 USE_WIN32API when needed.
10664 * configure.ac (USE_WIN32API): Don't define.
10665 (WIN32LIBS): Use WIN32APILIBS.
10666 * configure: Rebuild.
10667
10668 2020-01-14 Tom Tromey <tom@tromey.com>
10669
10670 * configure: Rebuild.
10671 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10672
10673 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10674
10675 * skip.c (skip_function_command): Make skip w/o arguments use the
10676 name of the inlined function if pc is inside any inlined function.
10677
10678 2020-01-14 Luis Machado <luis.machado@linaro.org>
10679
10680 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10681 * infrun.c (resume_1): Likewise.
10682 (handle_inferior_event): Remove stale comment.
10683 * linux-nat.c (linux_nat_target::resume): Update comments.
10684 (save_stop_reason): Likewise.
10685 (linux_nat_filter_event): Likewise.
10686 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10687
10688 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * elfread.c (record_minimal_symbol): Set section index to 0 for
10691 non-allocatable sections.
10692
10693
10694 2020-01-13 Ali Tamur <tamur@google.com>
10695
10696 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10697 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10698 to gdb::optional. Update comments.
10699 (dwo_file): Update comments.
10700 (read_attribute): Update API to take an additional out parameter,
10701 need_reprocess. This is used to mark attributes that need other
10702 attributes (e.g. str_offsets_base) for correct computation which may not
10703 have been read yet.
10704 (read_attribute_reprocess): New function declaration.
10705 (read_addr_index): Likewise.
10706 (read_dwo_str_index): Likewise.
10707 (read_stub_str_index): Likewise.
10708 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10709 (lookup_addr_base): New function definition.
10710 (lookup_ranges_base): Likewise.
10711 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10712 lookup_ranges_base.
10713 (init_cutu_and_read_dies): Update comments.
10714 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10715 unit. This is used to inherit parent's str_offsets_base and addr_base.
10716 Update comments.
10717 (init_cutu_and_read_dies_simple): Reflect API changes.
10718 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10719 (create_cus_hash_table): Change API to take parent compile unit.
10720 Reflect API changes.
10721 (open_and_init_dwo_file): Reflect API changes.
10722 (dwarf2_get_pc_bounds): Update comments.
10723 (dwarf2_record_block_ranges): Likewise.
10724 (read_full_die_1): Change implementation to reprocess attributes that
10725 need str_offsets_base and addr_base.
10726 (partial_die_info::read): Likewise.
10727 (read_attribute_reprocess): New function definition.
10728 (read_attribute_value): Change API to take an additional out parameter,
10729 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10730 when a non-dwo compile unit has index based attributes.
10731 (read_attribute): Reflect API changes.
10732 (read_addr_index_1): Reflect API changes. Update comments.
10733 (dwarf2_read_addr_index_data): Reflect API changes.
10734 (dwarf2_read_addr_index): Likewise.
10735 (read_str_index): Change API and implementation. This becomes a helper
10736 to be used by the new string index related methods. Update error
10737 message and comments.
10738 (read_dwo_str_index): New function definition.
10739 (read_stub_str_index): Likewise.
10740 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10741 * symfile.h (dwarf2_debug_sections): Likewise.
10742 * xcoffread.c (dwarf2_debug_sections): Likewise.
10743
10744 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10747 core_reg_sect type to gdb_byte *.
10748 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10749 * cris-tdep.c (fetch_core_registers): Likewise.
10750 * corelow.c (core_target::get_core_register_section): Change
10751 type of `contents` to gdb::byte_vector.
10752
10753 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * tui/tui-wingeneral.c (box_win): Position the title in the center
10756 of the border.
10757
10758 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10759
10760 * corelow.c (core_target::get_core_register_section): Use
10761 std::vector instead of alloca.
10762
10763 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * warning.m4: Add -Wmissing-declarations to build_warnings.
10766 * configure: Re-generate.
10767
10768 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * python/python.c (init__gdb_module): Add declaration.
10771
10772 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10773
10774 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10775 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10776 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10777 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10778 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10779 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10780 * ada-exp.y (_initialize_ada_exp): Add declaration.
10781 * ada-lang.c (_initialize_ada_language): Add declaration.
10782 * ada-tasks.c (_initialize_tasks): Add declaration.
10783 * agent.c (_initialize_agent): Add declaration.
10784 * aix-thread.c (_initialize_aix_thread): Add declaration.
10785 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10786 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10787 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10788 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10789 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10790 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10791 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10792 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10793 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10794 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10795 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10796 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10797 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10798 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10799 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10800 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10801 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10802 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10803 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10804 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10805 * annotate.c (_initialize_annotate): Add declaration.
10806 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10807 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10808 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10809 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10810 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10811 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10812 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10813 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10814 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10815 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10816 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10817 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10818 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10819 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10820 * auto-load.c (_initialize_auto_load): Add declaration.
10821 * auxv.c (_initialize_auxv): Add declaration.
10822 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10823 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10824 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10825 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10826 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10827 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10828 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10829 * breakpoint.c (_initialize_breakpoint): Add declaration.
10830 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10831 * btrace.c (_initialize_btrace): Add declaration.
10832 * charset.c (_initialize_charset): Add declaration.
10833 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10834 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10835 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10836 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10837 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10838 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10839 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10840 * coffread.c (_initialize_coffread): Add declaration.
10841 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10842 * compile/compile.c (_initialize_compile): Add declaration.
10843 * complaints.c (_initialize_complaints): Add declaration.
10844 * completer.c (_initialize_completer): Add declaration.
10845 * copying.c (_initialize_copying): Add declaration.
10846 * corefile.c (_initialize_core): Add declaration.
10847 * corelow.c (_initialize_corelow): Add declaration.
10848 * cp-abi.c (_initialize_cp_abi): Add declaration.
10849 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10850 * cp-support.c (_initialize_cp_support): Add declaration.
10851 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10852 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10853 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10854 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10855 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10856 * ctfread.c (_initialize_ctfread): Add declaration.
10857 * d-lang.c (_initialize_d_language): Add declaration.
10858 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10859 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10860 * dbxread.c (_initialize_dbxread): Add declaration.
10861 * dcache.c (_initialize_dcache): Add declaration.
10862 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10863 * disasm.c (_initialize_disasm): Add declaration.
10864 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10865 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10866 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10867 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10868 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10869 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10870 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10871 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10872 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10873 * elfread.c (_initialize_elfread): Add declaration.
10874 * exec.c (_initialize_exec): Add declaration.
10875 * extension.c (_initialize_extension): Add declaration.
10876 * f-lang.c (_initialize_f_language): Add declaration.
10877 * f-valprint.c (_initialize_f_valprint): Add declaration.
10878 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10879 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10880 * filesystem.c (_initialize_filesystem): Add declaration.
10881 * findcmd.c (_initialize_mem_search): Add declaration.
10882 * findvar.c (_initialize_findvar): Add declaration.
10883 * fork-child.c (_initialize_fork_child): Add declaration.
10884 * frame-base.c (_initialize_frame_base): Add declaration.
10885 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10886 * frame.c (_initialize_frame): Add declaration.
10887 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10888 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10889 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10890 * gcore.c (_initialize_gcore): Add declaration.
10891 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10892 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10893 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10894 * gdbarch.c (_initialize_gdbarch): Add declaration.
10895 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10896 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10897 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10898 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10899 * go-lang.c (_initialize_go_language): Add declaration.
10900 * go32-nat.c (_initialize_go32_nat): Add declaration.
10901 * guile/guile.c (_initialize_guile): Add declaration.
10902 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10903 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10904 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10905 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10906 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10907 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10908 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10909 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10910 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10911 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10912 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10913 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10914 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10915 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10916 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10917 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10918 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10919 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10920 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10921 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10922 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10923 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10924 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10925 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10926 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10927 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10928 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10929 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10930 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10931 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10932 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10933 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10934 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10935 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10936 * infcall.c (_initialize_infcall): Add declaration.
10937 * infcmd.c (_initialize_infcmd): Add declaration.
10938 * inflow.c (_initialize_inflow): Add declaration.
10939 * infrun.c (_initialize_infrun): Add declaration.
10940 * interps.c (_initialize_interpreter): Add declaration.
10941 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10942 * jit.c (_initialize_jit): Add declaration.
10943 * language.c (_initialize_language): Add declaration.
10944 * linux-fork.c (_initialize_linux_fork): Add declaration.
10945 * linux-nat.c (_initialize_linux_nat): Add declaration.
10946 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10947 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10948 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10949 * m2-lang.c (_initialize_m2_language): Add declaration.
10950 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10951 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10952 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10953 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10954 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10955 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10956 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10957 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10958 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10959 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10960 * machoread.c (_initialize_machoread): Add declaration.
10961 * macrocmd.c (_initialize_macrocmd): Add declaration.
10962 * macroscope.c (_initialize_macroscope): Add declaration.
10963 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10964 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10965 * maint.c (_initialize_maint_cmds): Add declaration.
10966 * mdebugread.c (_initialize_mdebugread): Add declaration.
10967 * memattr.c (_initialize_mem): Add declaration.
10968 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10969 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10970 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10971 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10972 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10973 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10974 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10975 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10976 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10977 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10978 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10979 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10980 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10981 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10982 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10983 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10984 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10985 * mipsread.c (_initialize_mipsread): Add declaration.
10986 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10987 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10988 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10989 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10990 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10991 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10992 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10993 * nto-procfs.c (_initialize_procfs): Add declaration.
10994 * objc-lang.c (_initialize_objc_language): Add declaration.
10995 * observable.c (_initialize_observer): Add declaration.
10996 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10997 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10998 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10999 * osabi.c (_initialize_gdb_osabi): Add declaration.
11000 * osdata.c (_initialize_osdata): Add declaration.
11001 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11002 * parse.c (_initialize_parse): Add declaration.
11003 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11004 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11005 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11006 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11007 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11008 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11009 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11010 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11011 * printcmd.c (_initialize_printcmd): Add declaration.
11012 * probe.c (_initialize_probe): Add declaration.
11013 * proc-api.c (_initialize_proc_api): Add declaration.
11014 * proc-events.c (_initialize_proc_events): Add declaration.
11015 * proc-service.c (_initialize_proc_service): Add declaration.
11016 * procfs.c (_initialize_procfs): Add declaration.
11017 * producer.c (_initialize_producer): Add declaration.
11018 * psymtab.c (_initialize_psymtab): Add declaration.
11019 * python/python.c (_initialize_python): Add declaration.
11020 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11021 * record-btrace.c (_initialize_record_btrace): Add declaration.
11022 * record-full.c (_initialize_record_full): Add declaration.
11023 * record.c (_initialize_record): Add declaration.
11024 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11025 * regcache.c (_initialize_regcache): Add declaration.
11026 * reggroups.c (_initialize_reggroup): Add declaration.
11027 * remote-notif.c (_initialize_notif): Add declaration.
11028 * remote-sim.c (_initialize_remote_sim): Add declaration.
11029 * remote.c (_initialize_remote): Add declaration.
11030 * reverse.c (_initialize_reverse): Add declaration.
11031 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11032 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11033 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11034 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11035 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11036 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11037 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11038 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11039 Add declaration.
11040 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11041 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11042 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11043 * rust-exp.y (_initialize_rust_exp): Add declaration.
11044 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11045 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11046 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11047 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11048 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11049 * score-tdep.c (_initialize_score_tdep): Add declaration.
11050 * ser-go32.c (_initialize_ser_dos): Add declaration.
11051 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11052 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11053 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11054 * ser-uds.c (_initialize_ser_socket): Add declaration.
11055 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11056 * serial.c (_initialize_serial): Add declaration.
11057 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11058 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11059 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11060 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11061 * skip.c (_initialize_step_skip): Add declaration.
11062 * sol-thread.c (_initialize_sol_thread): Add declaration.
11063 * solib-aix.c (_initialize_solib_aix): Add declaration.
11064 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11065 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11066 * solib-frv.c (_initialize_frv_solib): Add declaration.
11067 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11068 * solib-target.c (_initialize_solib_target): Add declaration.
11069 * solib.c (_initialize_solib): Add declaration.
11070 * source-cache.c (_initialize_source_cache): Add declaration.
11071 * source.c (_initialize_source): Add declaration.
11072 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11073 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11074 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11075 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11076 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11077 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11078 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11079 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11080 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11081 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11082 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11083 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11084 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11085 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11086 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11087 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11088 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11089 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11090 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11091 * stabsread.c (_initialize_stabsread): Add declaration.
11092 * stack.c (_initialize_stack): Add declaration.
11093 * stap-probe.c (_initialize_stap_probe): Add declaration.
11094 * std-regs.c (_initialize_frame_reg): Add declaration.
11095 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11096 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11097 * symfile.c (_initialize_symfile): Add declaration.
11098 * symmisc.c (_initialize_symmisc): Add declaration.
11099 * symtab.c (_initialize_symtab): Add declaration.
11100 * target.c (_initialize_target): Add declaration.
11101 * target-connection.c (_initialize_target_connection): Add
11102 declaration.
11103 * target-dcache.c (_initialize_target_dcache): Add declaration.
11104 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11105 * thread.c (_initialize_thread): Add declaration.
11106 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11107 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11108 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11109 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11110 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11111 * tracectf.c (_initialize_ctf): Add declaration.
11112 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11113 * tracefile.c (_initialize_tracefile): Add declaration.
11114 * tracepoint.c (_initialize_tracepoint): Add declaration.
11115 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11116 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11117 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11118 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11119 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11120 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11121 * tui/tui.c (_initialize_tui): Add declaration.
11122 * typeprint.c (_initialize_typeprint): Add declaration.
11123 * ui-style.c (_initialize_ui_style): Add declaration.
11124 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11125 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11126 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11127 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11128 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11129 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11130 * unittests/filtered_iterator-selftests.c
11131 (_initialize_filtered_iterator_selftests): Add declaration.
11132 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11133 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11134 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11135 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11136 * unittests/main-thread-selftests.c
11137 (_initialize_main_thread_selftests): Add declaration.
11138 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11139 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11140 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11141 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11142 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11143 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11144 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11145 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11146 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11147 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11148 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11149 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11150 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11151 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11152 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11153 declaration.
11154 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11155 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11156 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11157 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11158 * user-regs.c (_initialize_user_regs): Add declaration.
11159 * utils.c (_initialize_utils): Add declaration.
11160 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11161 * valops.c (_initialize_valops): Add declaration.
11162 * valprint.c (_initialize_valprint): Add declaration.
11163 * value.c (_initialize_values): Add declaration.
11164 * varobj.c (_initialize_varobj): Add declaration.
11165 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11166 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11167 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11168 * windows-nat.c (_initialize_windows_nat): Add declaration.
11169 (_initialize_check_for_gdb_ini): Add declaration.
11170 (_initialize_loadable): Add declaration.
11171 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11172 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11173 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11174 * xcoffread.c (_initialize_xcoffread): Add declaration.
11175 * xml-support.c (_initialize_xml_support): Add declaration.
11176 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11177 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11178 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11179 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11180
11181 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11182
11183 * regformats/regdat.sh: Generate declaration for init function.
11184
11185 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11186
11187 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11188 up.
11189 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11190 close_one_inferior>: New methods.
11191 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11192 pass down target to find_inferior_pid.
11193 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11194 Pass down target to find_inferior_ptid.
11195 (gdbsim_target::create_inferior): Pass down target to
11196 add_thread_silent.
11197 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11198 target down to find_inferior_ptid and switch_to_thread.
11199 (gdbsim_target::close): Update to call close_one_inferior.
11200 (struct resume_data): Remove.
11201 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11202 directly, rather than through a void pointer.
11203 (gdbsim_target::resume): Update to call resume_one_inferior.
11204
11205 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11206
11207 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11208
11209 2020-01-12 Pedro Alves <palves@redhat.com>
11210
11211 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11212 directly for the current inferior instead of
11213 discard_all_inferiors.
11214 (discard_all_inferiors): Delete.
11215
11216 2020-01-11 Tom Tromey <tom@tromey.com>
11217
11218 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11219 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11220 deprecated_safe_get_selected_frame.
11221
11222 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11223
11224 * inferior.c (print_inferior): Switch inferior before printing it.
11225
11226 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11227 Pedro Alves <palves@redhat.com>
11228
11229 * progspace-and-thread.c (switch_to_program_space_and_thread):
11230 Assert there's an inferior for PSPACE. Use
11231 switch_to_inferior_no_thread to switch the inferior too.
11232 * progspace.c (program_space::~program_space): Call
11233 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11234 (program_space::free_all_objfiles): Don't call clear_symtab_users
11235 here.
11236 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11237
11238 2020-01-10 Pedro Alves <palves@redhat.com>
11239
11240 * NEWS: Mention multi-target debugging, "info connections", and
11241 "add-inferior -no-connection".
11242
11243 2020-01-10 Pedro Alves <palves@redhat.com>
11244
11245 * infrun.c: Include "target-connection.h".
11246 (check_multi_target_resumption): New.
11247 (proceed): Call it.
11248 * target-connection.c (make_target_connection_string): Make
11249 extern.
11250 * target-connection.h (make_target_connection_string): Declare.
11251
11252 2020-01-10 Pedro Alves <palves@redhat.com>
11253
11254 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11255 * inferior.c (uiout_field_connection): New function.
11256 (print_inferior): Add new "connection-id" column.
11257 (add_inferior_command): Show connection number/string of added
11258 inferior.
11259 * process-stratum-target.h
11260 (process_stratum_target::connection_string): New virtual method.
11261 (process_stratum_target::connection_number): New field.
11262 * remote.c (remote_target::connection_string): New override.
11263 * target-connection.c: New file.
11264 * target-connection.h: New file.
11265 * target.c (decref_target): Remove process_stratum targets from
11266 the connection list.
11267 (target_stack::push): Add process_stratum targets to the
11268 connection list.
11269
11270 2020-01-10 Pedro Alves <palves@redhat.com>
11271
11272 Revert:
11273 2016-04-12 Pedro Alves <palves@redhat.com>
11274 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11275 Remove references to name.
11276 * serial.h (struct serial) <name>: Delete.
11277
11278 2020-01-10 Pedro Alves <palves@redhat.com>
11279
11280 * gdbarch-selftests.c (register_to_value_test): Remove "target
11281 already pushed" check.
11282
11283 2020-01-10 Pedro Alves <palves@redhat.com>
11284 John Baldwin <jhb@FreeBSD.org>
11285
11286 * aarch64-linux-nat.c
11287 (aarch64_linux_nat_target::thread_architecture): Adjust.
11288 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11289 (task_command_1): Likewise.
11290 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11291 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11292 (aix_thread_target::store_registers)
11293 (aix_thread_target::thread_alive): Adjust.
11294 * amd64-fbsd-tdep.c: Include "inferior.h".
11295 (amd64fbsd_get_thread_local_address): Pass down target.
11296 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11297 thread's gdbarch instead of target_gdbarch.
11298 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11299 get_last_target_status.
11300 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11301 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11302 inferiors.
11303 (update_inserted_breakpoint_locations): Skip if inferiors with no
11304 execution.
11305 (update_global_location_list): When handling moribund locations,
11306 find representative inferior for location's pspace, and use thread
11307 count of its process_stratum target.
11308 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11309 * bsd-uthread.c (bsd_uthread_target::wait): Use
11310 as_process_stratum_target and adjust thread_change_ptid and
11311 add_thread calls.
11312 (bsd_uthread_target::update_thread_list): Use
11313 as_process_stratum_target and adjust find_thread_ptid,
11314 thread_change_ptid and add_thread calls.
11315 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11316 find_thread_ptid call.
11317 * corelow.c (add_to_thread_list): Adjust add_thread call.
11318 (core_target_open): Adjust add_thread_silent and thread_count
11319 calls.
11320 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11321 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11322 * event-top.c (async_disconnect): Pop targets from all inferiors.
11323 * exec.c (add_target_sections): Push exec target on all inferiors
11324 sharing the program space.
11325 (remove_target_sections): Remove the exec target from all
11326 inferiors sharing the program space.
11327 (exec_on_vfork): New.
11328 * exec.h (exec_on_vfork): Declare.
11329 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11330 Pass it down.
11331 (fbsd_nat_target::update_thread_list): Adjust.
11332 (fbsd_nat_target::resume): Adjust.
11333 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11334 down.
11335 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11336 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11337 get_thread_arch_regcache call.
11338 * fork-child.c (gdb_startup_inferior): Pass target down to
11339 startup_inferior and set_executing.
11340 * gdbthread.h (struct process_stratum_target): Forward declare.
11341 (add_thread, add_thread_silent, add_thread_with_info)
11342 (in_thread_list): Add process_stratum_target parameter.
11343 (find_thread_ptid(inferior*, ptid_t)): New overload.
11344 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11345 parameter.
11346 (all_threads()): Delete overload.
11347 (all_threads, all_non_exited_threads): Add process_stratum_target
11348 parameter.
11349 (all_threads_safe): Use brace initialization.
11350 (thread_count): Add process_stratum_target parameter.
11351 (set_resumed, set_running, set_stop_requested, set_executing)
11352 (threads_are_executing, finish_thread_state): Add
11353 process_stratum_target parameter.
11354 (switch_to_thread): Use is_current_thread.
11355 * i386-fbsd-tdep.c: Include "inferior.h".
11356 (i386fbsd_get_thread_local_address): Pass down target.
11357 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11358 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11359 have_inferiors check.
11360 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11361 (inf_ptrace_target::attach): Adjust.
11362 * infcall.c (run_inferior_call): Adjust.
11363 * infcmd.c (run_command_1): Pass target to
11364 scoped_finish_thread_state.
11365 (proceed_thread_callback): Skip inferiors with no execution.
11366 (continue_command): Rename 'all_threads' local to avoid hiding
11367 'all_threads' function. Adjust get_last_target_status call.
11368 (prepare_one_step): Adjust set_running call.
11369 (signal_command): Use user_visible_resume_target. Compare thread
11370 pointers instead of inferior_ptid.
11371 (info_program_command): Adjust to pass down target.
11372 (attach_command): Mark target's 'thread_executing' flag.
11373 (stop_current_target_threads_ns): New, factored out from ...
11374 (interrupt_target_1): ... this. Switch inferior before making
11375 target calls.
11376 * inferior-iter.h
11377 (struct all_inferiors_iterator, struct all_inferiors_range)
11378 (struct all_inferiors_safe_range)
11379 (struct all_non_exited_inferiors_range): Filter on
11380 process_stratum_target too. Remove explicit.
11381 * inferior.c (inferior::inferior): Push dummy target on target
11382 stack.
11383 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11384 Add process_stratum_target parameter, and pass it down.
11385 (have_live_inferiors): Adjust.
11386 (switch_to_inferior_and_push_target): New.
11387 (add_inferior_command, clone_inferior_command): Handle
11388 "-no-connection" parameter. Use
11389 switch_to_inferior_and_push_target.
11390 (_initialize_inferior): Mention "-no-connection" option in
11391 the help of "add-inferior" and "clone-inferior" commands.
11392 * inferior.h: Include "process-stratum-target.h".
11393 (interrupt_target_1): Use bool.
11394 (struct inferior) <push_target, unpush_target, target_is_pushed,
11395 find_target_beneath, top_target, process_target, target_at,
11396 m_stack>: New.
11397 (discard_all_inferiors): Delete.
11398 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11399 (all_inferiors, all_non_exited_inferiors): Add
11400 process_stratum_target parameter.
11401 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11402 (target_last_proc_target): New global.
11403 (follow_fork_inferior): Push target on new inferior. Pass target
11404 to add_thread_silent. Call exec_on_vfork. Handle target's
11405 reference count.
11406 (follow_fork): Adjust get_last_target_status call. Also consider
11407 target.
11408 (follow_exec): Push target on new inferior.
11409 (struct execution_control_state) <target>: New field.
11410 (user_visible_resume_target): New.
11411 (do_target_resume): Call target_async.
11412 (resume_1): Set target's threads_executing flag. Consider resume
11413 target.
11414 (commit_resume_all_targets): New.
11415 (proceed): Also consider resume target. Skip threads of inferiors
11416 with no execution. Commit resumtion in all targets.
11417 (start_remote): Pass current inferior to wait_for_inferior.
11418 (infrun_thread_stop_requested): Consider target as well. Pass
11419 thread_info pointer to clear_inline_frame_state instead of ptid.
11420 (infrun_thread_thread_exit): Consider target as well.
11421 (random_pending_event_thread): New inferior parameter. Use it.
11422 (do_target_wait): Rename to ...
11423 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11424 down.
11425 (threads_are_resumed_pending_p, do_target_wait): New.
11426 (prepare_for_detach): Adjust calls.
11427 (wait_for_inferior): New inferior parameter. Handle it. Use
11428 do_target_wait_1 instead of do_target_wait.
11429 (fetch_inferior_event): Adjust. Switch to representative
11430 inferior. Pass target down.
11431 (set_last_target_status): Add process_stratum_target parameter.
11432 Save target in global.
11433 (get_last_target_status): Add process_stratum_target parameter and
11434 handle it.
11435 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11436 (context_switch): Check inferior_ptid == null_ptid before calling
11437 inferior_thread().
11438 (get_inferior_stop_soon): Pass down target.
11439 (wait_one): Rename to ...
11440 (poll_one_curr_target): ... this.
11441 (struct wait_one_event): New.
11442 (wait_one): New.
11443 (stop_all_threads): Adjust.
11444 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11445 event's target.
11446 (switch_back_to_stepped_thread): Also consider target.
11447 (print_stop_event): Update.
11448 (normal_stop): Update. Also consider the resume target.
11449 * infrun.h (wait_for_inferior): Remove declaration.
11450 (user_visible_resume_target): New declaration.
11451 (get_last_target_status, set_last_target_status): New
11452 process_stratum_target parameter.
11453 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11454 process_stratum_target parameter, and use it.
11455 (clear_inline_frame_state (thread_info*)): New.
11456 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11457 process_stratum_target parameter.
11458 (clear_inline_frame_state (thread_info*)): Declare.
11459 * linux-fork.c (delete_checkpoint_command): Pass target down to
11460 find_thread_ptid.
11461 (checkpoint_command): Adjust.
11462 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11463 instead of just tweaking inferior_ptid.
11464 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11465 (exit_lwp): Pass target down to find_thread_ptid.
11466 (attach_proc_task_lwp_callback): Pass target down to
11467 add_thread/set_running/set_executing.
11468 (linux_nat_target::attach): Pass target down to
11469 thread_change_ptid.
11470 (get_detach_signal): Pass target down to find_thread_ptid.
11471 Consider last target status's target.
11472 (linux_resume_one_lwp_throw, resume_lwp)
11473 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11474 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11475 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11476 (linux_nat_target::async_wait_fd): New.
11477 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11478 target down.
11479 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11480 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11481 * linux-thread-db.c (struct thread_db_info::process_target): New
11482 field.
11483 (add_thread_db_info): Save target.
11484 (get_thread_db_info): New process_stratum_target parameter. Also
11485 match target.
11486 (delete_thread_db_info): New process_stratum_target parameter.
11487 Also match target.
11488 (thread_from_lwp): Adjust to pass down target.
11489 (thread_db_notice_clone): Pass down target.
11490 (check_thread_db_callback): Pass down target.
11491 (try_thread_db_load_1): Always push the thread_db target.
11492 (try_thread_db_load, record_thread): Pass target down.
11493 (thread_db_target::detach): Pass target down. Always unpush the
11494 thread_db target.
11495 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11496 target down. Always unpush the thread_db target.
11497 (find_new_threads_callback, thread_db_find_new_threads_2)
11498 (thread_db_target::update_thread_list): Pass target down.
11499 (thread_db_target::pid_to_str): Pass current inferior down.
11500 (thread_db_target::get_thread_local_address): Pass target down.
11501 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11502 target down.
11503 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11504 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11505 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11506 (procfs_init_inferior): Rename to ...
11507 (procfs_target::procfs_init_inferior): ... this and adjust.
11508 (procfs_target::create_inferior, procfs_notice_thread)
11509 (procfs_do_thread_registers): Adjust.
11510 * ppc-fbsd-tdep.c: Include "inferior.h".
11511 (ppcfbsd_get_thread_local_address): Pass down target.
11512 * proc-service.c (ps_xfer_memory): Switch current inferior and
11513 program space as well.
11514 (get_ps_regcache): Pass target down.
11515 * process-stratum-target.c
11516 (process_stratum_target::thread_address_space)
11517 (process_stratum_target::thread_architecture): Pass target down.
11518 * process-stratum-target.h
11519 (process_stratum_target::threads_executing): New field.
11520 (as_process_stratum_target): New.
11521 * ravenscar-thread.c
11522 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11523 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11524 down.
11525 * record-btrace.c (record_btrace_target::info_record): Adjust.
11526 (record_btrace_target::record_method)
11527 (record_btrace_target::record_is_replaying)
11528 (record_btrace_target::fetch_registers)
11529 (get_thread_current_frame_id, record_btrace_target::resume)
11530 (record_btrace_target::wait, record_btrace_target::stop): Pass
11531 target down.
11532 * record-full.c (record_full_wait_1): Switch to event thread.
11533 Pass target down.
11534 * regcache.c (regcache::regcache)
11535 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11536 process_stratum_target parameter and handle it.
11537 (current_thread_target): New global.
11538 (get_thread_regcache): Add process_stratum_target parameter and
11539 handle it. Switch inferior before calling target method.
11540 (get_thread_regcache): Pass target down.
11541 (get_thread_regcache_for_ptid): Pass target down.
11542 (registers_changed_ptid): Add process_stratum_target parameter and
11543 handle it.
11544 (registers_changed_thread, registers_changed): Pass target down.
11545 (test_get_thread_arch_aspace_regcache): New.
11546 (current_regcache_test): Define a couple local test_target_ops
11547 instances and use them for testing.
11548 (readwrite_regcache): Pass process_stratum_target parameter.
11549 (cooked_read_test, cooked_write_test): Pass mock_target down.
11550 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11551 (get_thread_arch_aspace_regcache): Add process_stratum_target
11552 parameter.
11553 (regcache::target): New method.
11554 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11555 (regcache::registers_changed_ptid): Add process_stratum_target
11556 parameter.
11557 (regcache::m_target): New field.
11558 (registers_changed_ptid): Add process_stratum_target parameter.
11559 * remote.c (remote_state::supports_vCont_probed): New field.
11560 (remote_target::async_wait_fd): New method.
11561 (remote_unpush_and_throw): Add remote_target parameter.
11562 (get_current_remote_target): Adjust.
11563 (remote_target::remote_add_inferior): Push target.
11564 (remote_target::remote_add_thread)
11565 (remote_target::remote_notice_new_inferior)
11566 (get_remote_thread_info): Pass target down.
11567 (remote_target::update_thread_list): Skip threads of inferiors
11568 bound to other targets. (remote_target::close): Don't discard
11569 inferiors. (remote_target::add_current_inferior_and_thread)
11570 (remote_target::process_initial_stop_replies)
11571 (remote_target::start_remote)
11572 (remote_target::remote_serial_quit_handler): Pass down target.
11573 (remote_target::remote_unpush_target): New remote_target
11574 parameter. Unpush the target from all inferiors.
11575 (remote_target::remote_unpush_and_throw): New remote_target
11576 parameter. Pass it down.
11577 (remote_target::open_1): Check whether the current inferior has
11578 execution instead of checking whether any inferior is live. Pass
11579 target down.
11580 (remote_target::remote_detach_1): Pass down target. Use
11581 remote_unpush_target.
11582 (extended_remote_target::attach): Pass down target.
11583 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11584 (remote_target::append_resumption): Pass down target.
11585 (remote_target::append_pending_thread_resumptions)
11586 (remote_target::remote_resume_with_hc, remote_target::resume)
11587 (remote_target::commit_resume): Pass down target.
11588 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11589 (remote_target::interrupt_query)
11590 (remote_target::remove_new_fork_children)
11591 (remote_target::check_pending_events_prevent_wildcard_vcont)
11592 (remote_target::remote_parse_stop_reply)
11593 (remote_target::process_stop_reply): Pass down target.
11594 (first_remote_resumed_thread): New remote_target parameter. Pass
11595 it down.
11596 (remote_target::wait_as): Pass down target.
11597 (unpush_and_perror): New remote_target parameter. Pass it down.
11598 (remote_target::readchar, remote_target::remote_serial_write)
11599 (remote_target::getpkt_or_notif_sane_1)
11600 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11601 down target.
11602 (remote_target::mourn_inferior): Pass down target. Use
11603 remote_unpush_target.
11604 (remote_target::core_of_thread)
11605 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11606 (remote_target::pid_to_exec_file)
11607 (remote_target::thread_handle_to_thread_info): Pass down target.
11608 (remote_target::async_wait_fd): New.
11609 * riscv-fbsd-tdep.c: Include "inferior.h".
11610 (riscv_fbsd_get_thread_local_address): Pass down target.
11611 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11612 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11613 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11614 Adjust.
11615 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11616 * solib-svr4.c (enable_break): Pass down target.
11617 * spu-multiarch.c (parse_spufs_run): Pass down target.
11618 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11619 * target-delegates.c: Regenerate.
11620 * target.c (g_target_stack): Delete.
11621 (current_top_target): Return the current inferior's top target.
11622 (target_has_execution_1): Refer to the passed-in inferior's top
11623 target.
11624 (target_supports_terminal_ours): Check whether the initial
11625 inferior was already created.
11626 (decref_target): New.
11627 (target_stack::push): Incref/decref the target.
11628 (push_target, push_target, unpush_target): Adjust.
11629 (target_stack::unpush): Defref target.
11630 (target_is_pushed): Return bool. Adjust to refer to the current
11631 inferior's target stack.
11632 (dispose_inferior): Delete, and inline parts ...
11633 (target_preopen): ... here. Only dispose of the current inferior.
11634 (target_detach): Hold strong target reference while detaching.
11635 Pass target down.
11636 (target_thread_name): Add assertion.
11637 (target_resume): Pass down target.
11638 (target_ops::beneath, find_target_at): Adjust to refer to the
11639 current inferior's target stack.
11640 (get_dummy_target): New.
11641 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11642 has a thread running.
11643 (initialize_targets): Rename to ...
11644 (_initialize_target): ... this.
11645 * target.h: Include "gdbsupport/refcounted-object.h".
11646 (struct target_ops): Inherit refcounted_object.
11647 (target_ops::shortname, target_ops::longname): Make const.
11648 (target_ops::async_wait_fd): New method.
11649 (decref_target): Declare.
11650 (struct target_ops_ref_policy): New.
11651 (target_ops_ref): New typedef.
11652 (get_dummy_target): Declare function.
11653 (target_is_pushed): Return bool.
11654 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11655 (all_matching_threads_iterator::all_matching_threads_iterator):
11656 Handle filter target.
11657 * thread-iter.h (struct all_matching_threads_iterator, struct
11658 all_matching_threads_range, class all_non_exited_threads_range):
11659 Filter by target too. Remove explicit.
11660 * thread.c (threads_executing): Delete.
11661 (inferior_thread): Pass down current inferior.
11662 (clear_thread_inferior_resources): Pass down thread pointer
11663 instead of ptid_t.
11664 (add_thread_silent, add_thread_with_info, add_thread): Add
11665 process_stratum_target parameter. Use it for thread and inferior
11666 searches.
11667 (is_current_thread): New.
11668 (thread_info::deletable): Use it.
11669 (find_thread_ptid, thread_count, in_thread_list)
11670 (thread_change_ptid, set_resumed, set_running): New
11671 process_stratum_target parameter. Pass it down.
11672 (set_executing): New process_stratum_target parameter. Pass it
11673 down. Adjust reference to 'threads_executing'.
11674 (threads_are_executing): New process_stratum_target parameter.
11675 Adjust reference to 'threads_executing'.
11676 (set_stop_requested, finish_thread_state): New
11677 process_stratum_target parameter. Pass it down.
11678 (switch_to_thread): Also match inferior.
11679 (switch_to_thread): New process_stratum_target parameter. Pass it
11680 down.
11681 (update_threads_executing): Reimplement.
11682 * top.c (quit_force): Pop targets from all inferior.
11683 (gdb_init): Don't call initialize_targets.
11684 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11685 Declare.
11686 (windows_add_thread, windows_delete_thread): Adjust.
11687 (get_windows_debug_event): Rename to ...
11688 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11689 * tracefile-tfile.c (tfile_target_open): Pass down target.
11690 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11691 Forward declare.
11692 (switch_to_thread): Add process_stratum_target parameter.
11693 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11694 parameter. Use it.
11695 (mi_on_resume): Pass target down.
11696 * nat/fork-inferior.c (startup_inferior): Add
11697 process_stratum_target parameter. Pass it down.
11698 * nat/fork-inferior.h (startup_inferior): Add
11699 process_stratum_target parameter.
11700 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11701
11702 2020-01-10 Pedro Alves <palves@redhat.com>
11703
11704 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11705 directly. Instead find the first thread in the thread list and
11706 use switch_to_thread.
11707
11708 2020-01-10 Pedro Alves <palves@redhat.com>
11709
11710 * remote.c (remote_target::remote_add_inferior): Don't bind a
11711 process to the current inferior if the current inferior is already
11712 bound to a process.
11713
11714 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11715 Pedro Alves <palves@redhat.com>
11716
11717 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11718 If no process is specified, return null_ptid instead of
11719 inferior_ptid.
11720 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11721 TARGET_WAITKIND_SIGNALLED with no pid.
11722
11723 2020-01-10 Pedro Alves <palves@redhat.com>
11724
11725 * remote.c (first_remote_resumed_thread): New.
11726 (remote_target::wait_as): Use it as default event_ptid instead of
11727 inferior_ptid.
11728
11729 2020-01-10 Pedro Alves <palves@redhat.com>
11730
11731 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11732
11733 2020-01-10 Pedro Alves <palves@redhat.com>
11734
11735 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11736 not -1.
11737
11738 2020-01-10 Pedro Alves <palves@redhat.com>
11739
11740 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11741 ptid to get_last_target_status.
11742 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11743 ptid to get_last_target_status.
11744 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11745 get_last_target_status.
11746 (info_program_command): Don't pass a target_waitstatus to
11747 get_last_target_status.
11748 * infrun.c (init_wait_for_inferior): Use
11749 nullify_last_target_wait_ptid.
11750 (get_last_target_status): Handle nullptr arguments.
11751 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11752 (print_stop_event): Don't pass a ptid to get_last_target_status.
11753 (normal_stop): Don't pass a ptid to get_last_target_status.
11754 * infrun.h (get_last_target_status, set_last_target_status): Move
11755 comments here and update.
11756 (nullify_last_target_wait_ptid): Declare.
11757 * linux-fork.c (fork_load_infrun_state): Remove local extern
11758 declaration of nullify_last_target_wait_ptid.
11759 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11760 to get_last_target_status.
11761
11762 2020-01-10 Pedro Alves <palves@redhat.com>
11763
11764 * gdbthread.h (scoped_restore_current_thread)
11765 <dont_restore, restore, m_dont_restore>: Declare.
11766 * thread.c (thread_alive): Add assertion. Return bool.
11767 (switch_to_thread_if_alive): New.
11768 (prune_threads): Switch inferior/thread.
11769 (print_thread_info_1): Switch thread before calling target methods.
11770 (scoped_restore_current_thread::restore): New, factored out from
11771 ...
11772 (scoped_restore_current_thread::~scoped_restore_current_thread):
11773 ... this.
11774 (scoped_restore_current_thread::scoped_restore_current_thread):
11775 Add assertion.
11776 (thread_apply_all_command, thread_select): Use
11777 switch_to_thread_if_alive.
11778 * infrun.c (proceed, restart_threads, handle_signal_stop)
11779 (switch_back_to_stepped_thread): Switch current thread before
11780 calling target methods.
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * inferior.c (switch_to_inferior_no_thread): New function,
11785 factored out from ...
11786 (inferior_command): ... here.
11787 * inferior.h (switch_to_inferior_no_thread): Declare.
11788 * mi/mi-main.c (run_one_inferior): Use
11789 switch_to_inferior_no_thread.
11790
11791 2020-01-10 Pedro Alves <palves@redhat.com>
11792
11793 * infcmd.c (kill_command): Remove dead code.
11794
11795 2020-01-10 Pedro Alves <palves@redhat.com>
11796
11797 * remote.c (remote_target::mourn_inferior): No longer check
11798 whether the target is running.
11799
11800 2020-01-10 Pedro Alves <palves@redhat.com>
11801
11802 * corelow.c (core_target::has_execution): Change parameter type to
11803 inferior pointer.
11804 * inferior.c (number_of_live_inferiors): Use
11805 inferior::has_execution instead of target_has_execution_1.
11806 * inferior.h (inferior::has_execution): New.
11807 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11808 inferior::has_execution instead of target_has_execution_1.
11809 * process-stratum-target.c
11810 (process_stratum_target::has_execution): Change parameter type to
11811 inferior pointer. Check the inferior's PID instead of
11812 inferior_ptid.
11813 * process-stratum-target.h
11814 (process_stratum_target::has_execution): Change parameter type to
11815 inferior pointer.
11816 * record-full.c (record_full_core_target::has_execution): Change
11817 parameter type to inferior pointer.
11818 * target.c (target_has_execution_1): Change parameter type to
11819 inferior pointer.
11820 (target_has_execution_current): Adjust.
11821 * target.h (target_ops::has_execution): Change parameter type to
11822 inferior pointer.
11823 (target_has_execution_1): Change parameter type to inferior
11824 pointer. Change return type to bool.
11825 * tracefile.h (tracefile_target::has_execution): Change parameter
11826 type to inferior pointer.
11827
11828 2020-01-10 Pedro Alves <palves@redhat.com>
11829
11830 * exceptions.c (print_flush): Remove current_top_target() check.
11831
11832 2020-01-10 Pedro Alves <palves@redhat.com>
11833
11834 * remote.c (show_remote_exec_file): Show the current inferior's
11835 exec-file instead of the command variable's value.
11836
11837 2020-01-10 Pedro Alves <palves@redhat.com>
11838
11839 * record-full.c (record_full_resume_ptid): New global.
11840 (record_full_target::resume): Set it.
11841 (record_full_wait_1): Use record_full_resume_ptid instead of
11842 inferior_ptid.
11843
11844 2020-01-10 Pedro Alves <palves@redhat.com>
11845
11846 * gdbthread.h (scoped_restore_current_thread)
11847 <dont_restore, restore, m_dont_restore>: Declare.
11848 * thread.c (thread_alive): Add assertion. Return bool.
11849 (switch_to_thread_if_alive): New.
11850 (prune_threads): Switch inferior/thread.
11851 (print_thread_info_1): Switch thread before calling target methods.
11852 (scoped_restore_current_thread::restore): New, factored out from
11853 ...
11854 (scoped_restore_current_thread::~scoped_restore_current_thread):
11855 ... this.
11856 (scoped_restore_current_thread::scoped_restore_current_thread):
11857 Add assertion.
11858 (thread_apply_all_command, thread_select): Use
11859 switch_to_thread_if_alive.
11860
11861 2020-01-10 George Barrett <bob@bob131.so>
11862
11863 * stap-probe.c (stap_modify_semaphore): Don't check for null
11864 semaphores.
11865 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11866 for null semaphores.
11867
11868 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11871 all source windows, and maintain horizontal scroll status while
11872 doing so.
11873
11874 2020-01-09 Tom Tromey <tom@tromey.com>
11875
11876 PR tui/18932:
11877 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11878 update_source_window, not print_source_lines.
11879
11880 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11881
11882 * tui/tui.c (tui_enable): Register tui hooks after calling
11883 tui_display_main.
11884
11885 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11886
11887 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11888
11889 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11890
11891 * thread.c (print_thread_info_1): Fix indentation.
11892
11893 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11894
11895 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11896 unique_xmalloc_ptr outside the if to always free the demangled name.
11897
11898 2020-01-08 Tom Tromey <tromey@adacore.com>
11899
11900 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11901 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11902 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11903 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11904 Remove.
11905 (section_offsets): New typedef.
11906 * symtab.c (fixup_section, get_msymbol_address): Update.
11907 * symmisc.c (dump_msymbols): Update.
11908 * symfile.h (relative_addr_info_to_section_offsets)
11909 (symfile_map_offsets_to_segments): Update.
11910 * symfile.c (build_section_addr_info_from_objfile)
11911 (init_objfile_sect_indices): Update.
11912 (struct place_section_arg): Change type of "offsets".
11913 (place_section): Update.
11914 (relative_addr_info_to_section_offsets): Change type of
11915 "section_offsets". Remove "num_sections" parameter.
11916 (default_symfile_offsets, syms_from_objfile_1)
11917 (set_objfile_default_section_offset): Update.
11918 (reread_symbols): No need to preserve section offsets by hand.
11919 (symfile_map_offsets_to_segments): Change type of "offsets".
11920 * stap-probe.c (relocate_address): Update.
11921 * stabsread.h (process_one_symbol): Update.
11922 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11923 (solib_target_relocate_section_addresses): Update.
11924 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11925 Update.
11926 * solib-frv.c (frv_relocate_main_executable): Update.
11927 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11928 * solib-aix.c (solib_aix_get_section_offsets): Change return
11929 type.
11930 (solib_aix_solib_create_inferior_hook): Update.
11931 * remote.c (remote_target::get_offsets): Update.
11932 * psymtab.c (find_pc_sect_psymtab): Update.
11933 * psympriv.h (struct partial_symbol) <address, text_low,
11934 text_high>: Update.
11935 * objfiles.h (obj_section_offset): Update.
11936 (struct objfile) <section_offsets>: Change type.
11937 <num_sections>: Remove.
11938 (objfile_relocate): Update.
11939 * objfiles.c (entry_point_address_query): Update
11940 (relocate_one_symbol): Change type of "section_offsets".
11941 (objfile_relocate1, objfile_relocate1): Change type of
11942 "new_offsets".
11943 (objfile_rebase1): Update.
11944 * mipsread.c (mipscoff_symfile_read): Update.
11945 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11946 parameter.
11947 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11948 (parse_external, psymtab_to_symtab_1): Update.
11949 * machoread.c (macho_symfile_offsets): Update.
11950 * ia64-tdep.c (ia64_find_unwind_table): Update.
11951 * hppa-tdep.c (read_unwind_info): Update.
11952 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11953 * dwarf2read.c (create_addrmap_from_index)
11954 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11955 (process_psymtab_comp_unit_reader, add_partial_symbol)
11956 (add_partial_subprogram, process_full_comp_unit)
11957 (read_file_scope, read_func_scope, read_lexical_block_scope)
11958 (read_call_site_scope, dwarf2_rnglists_process)
11959 (dwarf2_ranges_process, dwarf2_ranges_read)
11960 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11961 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11962 Update.
11963 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11964 Update.
11965 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11966 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11967 (process_one_symbol): Change type of "section_offsets".
11968 * ctfread.c (get_objfile_text_range): Update.
11969 * coffread.c (coff_symtab_read, enter_linenos)
11970 (process_coff_symbol): Update.
11971 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11972 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11973
11974 2020-01-08 Tom Tromey <tromey@adacore.com>
11975
11976 * dwarf2read.c (parse_macro_definition): Use std::string.
11977 (parse_macro_definition): Likewise.
11978
11979 2020-01-08 Tom Tromey <tromey@adacore.com>
11980
11981 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11982 (ATTR_ALLOC_CHUNK): Remove.
11983
11984 2020-01-08 Tom Tromey <tromey@adacore.com>
11985
11986 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11987
11988 2020-01-08 Tom Tromey <tromey@adacore.com>
11989
11990 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11991 (dwarf2_compute_name, open_dwo_file): Likewise.
11992 (process_enumeration_scope): Use std::vector.
11993 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11994 (partial_die_info::fixup, dwarf2_start_subfile)
11995 (guess_full_die_structure_name, dwarf2_name): Likewise.
11996 (determine_prefix): Update.
11997 (guess_full_die_structure_name): Make return type const.
11998 (partial_die_full_name): Return unique_xmalloc_ptr.
11999 (DW_FIELD_ALLOC_CHUNK): Remove.
12000
12001 2020-01-07 Tom Tromey <tromey@adacore.com>
12002
12003 PR build/24937:
12004 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12005
12006 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12007
12008 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12009
12010 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12011
12012 * stack.c (print_frame_info): Move disassemble_next_line code
12013 inside source_print block.
12014
12015 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12016
12017 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12018 gdb/signals.h, as we are now using native signal symbols.
12019
12020 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12021
12022 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12023 overflow by an early check of content vs threshold.
12024 * tui/tui-source.c (tui_source_window::line_is_displayed):
12025 Likewise.
12026
12027 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12028
12029 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12030
12031 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12032
12033 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12034 export table if no section contains it's RVA.
12035
12036 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12037
12038 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12039
12040 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12041
12042 * source.c (print_source_lines_base): Set last_line_listed.
12043
12044 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12045
12046 * tui/tui-disasm.c: Remove trailing spaces.
12047
12048 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12049 Pedro Alves <palves@redhat.com>
12050
12051 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12052 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12053 (windows_gdb_signal_to_target): New function, uses the above
12054 enumeration to convert GDB internal signal codes to equivalent
12055 Windows codes.
12056 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12057 * windows-nat.c: Include "gdb_wait.h".
12058 (get_windows_debug_event): Extract the fatal exception from the
12059 exit status and convert to the equivalent Posix signal number.
12060 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12061 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12062 * gdbsupport/gdb_wait.c: New file, implements
12063 windows_status_to_termsig.
12064 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12065 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12066
12067 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12068
12069 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12070 show_layout.
12071
12072 2020-01-05 Luis Machado <luis.machado@linaro.org>
12073
12074 * aarch64-linux-nat.c
12075 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12076 and bfd_mach_aarch64.
12077
12078 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12079
12080 * ui-file.c (stdio_file::can_emit_style_escape)
12081 (tee_file::can_emit_style_escape): Ensure style is used also on
12082 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12083 to gdb_stdout.
12084 * main.c (set_gdb_data_directory): Use file style to output the
12085 warning that the given pathname is not a directory.
12086 * top.c (show_history_filename, gdb_safe_append_history)
12087 (show_gdb_datadir): Use file style.
12088
12089 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12090
12091 * solib-target.c (struct lm_info_target):
12092 Change offsets to be a unique_xmalloc_ptr.
12093 (solib_target_relocate_section_addresses): Update.
12094
12095 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12096
12097 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12098
12099 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12100
12101 * MAINTAINERS (Write After Approval): Add myself.
12102
12103 2020-01-02 Luis Machado <luis.machado@linaro.org>
12104
12105 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12106 Cell BE architecture.
12107 * target.h (struct target_ops) <thread_architecture>: Likewise.
12108
12109 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12110
12111 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12112
12113 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12114
12115 * MAINTAINERS (Write After Approval): Add myself.
12116
12117 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12118
12119 * gdbarch.sh: Update copyright year range of generated files.
12120
12121 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12122
12123 Update copyright year range in all GDB files.
12124
12125 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12126
12127 * copyright.py: Convert to Python 3.
12128
12129 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12130
12131 * copyright.py: Adapt after move of gnulib directory from gdb
12132 directory to toplevel directory.
12133
12134 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12135
12136 * copyright.py (main): Exit if run from the wrong directory.
12137
12138 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12139
12140 * top.c (print_gdb_version): Change copyright year to 2020.
12141
12142 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12143
12144 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12145
12146 For older changes see ChangeLog-2019.
12147 \f
12148 Local Variables:
12149 mode: change-log
12150 left-margin: 8
12151 fill-column: 74
12152 version-control: never
12153 coding: utf-8
12154 End: