gdb: fix IA64 build failure of linux-nat
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2
3 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4 'gdbarch_num_regs'.
5
6 2020-08-17 Tom Tromey <tromey@adacore.com>
7
8 * ada-varobj.c (ada_varobj_decode_var): Handle case where
9 ada_get_decoded_value returns NULL.
10
11 2020-08-17 Tom Tromey <tromey@adacore.com>
12
13 * python/py-inferior.c (infpy_search_memory): Use
14 gdb_py_object_from_ulongest.
15 * python/py-infevents.c (create_inferior_call_event_object)
16 (create_memory_changed_event_object): Use
17 gdb_py_object_from_ulongest.
18 * python/py-linetable.c (ltpy_entry_get_pc): Use
19 gdb_py_object_from_ulongest.
20
21 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * loc.c (class symbol_needs_eval_context): Fix indentation.
24
25 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
28 bool.
29
30 2020-08-17 Tom de Vries <tdevries@suse.de>
31
32 PR gdb/26393
33 * gdbtypes.c (dump_dynamic_prop): New function.
34 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
35
36 2020-08-15 Tom de Vries <tdevries@suse.de>
37
38 PR backtrace/26390
39 * stack.c (print_frame_args): Temporarily set the selected
40 frame to FRAME while printing the frame's arguments.
41
42 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
43
44 PR breakpoints/26385
45 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
46 Always clear watchpoint with PTRACE_SET_DEBUGREG.
47
48 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
49
50 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
51 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
52 and >= to check return value instead of == -1 and != -1.
53
54 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * utils.h (class gdb_argv) <as_array_view>: New method.
57 * utils.c (gdb_argv_as_array_view_test): New.
58 (_initialize_utils): Register selftest.
59 * maint.c (maintenance_selftest): Use the new method.
60
61 2020-08-13 Kamil Rytarowski <n54@gmx.com>
62
63 * target.h (supports_dumpcore, dumpcore): New
64 function declarations.
65 * target.c (supports_dumpcore, dumpcore): New
66 functions.
67 * target-delegates.c: Rebuild.
68 * gcore.c (gcore_command): Use target_supports_dumpcore ()
69 and target_dumpcore ().
70
71 2020-08-13 Aaron Merey <amerey@redhat.com>
72
73 * debuginfod-support.c: Replace global variables with user_data.
74
75 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * maint.c (maintenance_selftest): Split args and pass array_view
78 to run_tests.
79
80 2020-08-12 Luis Machado <luis.machado@linaro.org>
81
82 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
83 type's length.
84 Use %s and pulongest to print the length.
85
86 2020-08-12 Pedro Alves <palves@redhat.com>
87
88 * NEWS: Move "Multi-target debugging support" item to the
89 "Changes since GDB 9" section.
90
91 2020-08-12 Pedro Alves <palves@redhat.com>
92
93 PR gdb/26336
94 * progspace.c (program_space::remove_objfile): Invalidate the
95 frame cache.
96
97 2020-08-11 Tom de Vries <tdevries@suse.de>
98
99 * MAINTAINERS: Mark ms1 as deleted.
100
101 2020-08-10 Luis Machado <luis.machado@linaro.org>
102
103 PR gdb/26310
104
105 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
106 act accordingly.
107 (aarch64_analyze_prologue_test): Add more unit tests to exercise
108 movz/str/stur/stp skipping behavior.
109
110 2020-08-10 Luis Machado <luis.machado@linaro.org>
111
112 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
113 struct user_sve_header instead of struct sve_context.
114
115 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * read.h (dwarf2_fetch_die_loc_sect_off,
118 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
119 `void *` parameter with function_view.
120 * read.c (dwarf2_fetch_die_loc_sect_off,
121 dwarf2_fetch_die_loc_cu_off): Likewise.
122 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
123 (per_cu_dwarf_call): Adjust.
124 (get_frame_address_in_block_wrapper): Remove.
125 (indirect_synthetic_pointer): Adjust.
126 (get_ax_pc): Remove.
127 (dwarf2_compile_expr_to_ax): Adjust.
128
129 2020-08-08 Tom de Vries <tdevries@suse.de>
130
131 PR build/26344
132 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
133 constructor.
134 * regcache.c (get_thread_arch_aspace_regcache): Same.
135
136 2020-08-07 Tom Tromey <tromey@adacore.com>
137
138 * ravenscar-thread.c
139 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
140 New method.
141 (ravenscar_thread_target::wait): Check
142 runtime_initialized.
143 (ravenscar_thread_target::prepare_to_store)
144 (ravenscar_thread_target::stopped_by_sw_breakpoint)
145 (ravenscar_thread_target::stopped_by_hw_breakpoint)
146 (ravenscar_thread_target::stopped_by_watchpoint)
147 (ravenscar_thread_target::stopped_data_address)
148 (ravenscar_thread_target::core_of_thread): Use
149 scoped_restore_current_thread and
150 set_base_thread_from_ravenscar_task.
151
152 2020-08-07 Tom Tromey <tromey@adacore.com>
153
154 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
155
156 2020-08-07 Tom Tromey <tromey@adacore.com>
157
158 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
159 update_inferior_ptid before update_thread_list.
160 (temporarily_change_regcache_ptid): New class.
161 (ravenscar_thread_target::fetch_registers)
162 (ravenscar_thread_target::store_registers)
163 (ravenscar_thread_target::prepare_to_store): Use base thread when
164 forwarding operation.
165
166 2020-08-07 Tom Tromey <tromey@adacore.com>
167
168 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
169 "is_pid" case.
170
171 2020-08-07 Tom Tromey <tromey@adacore.com>
172
173 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
174 New methods.
175 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
176 first.
177 (ravenscar_thread_target::add_thread): Rename from
178 ravenscar_add_thread.
179 (ravenscar_thread_target::update_thread_list): Use a lambda.
180 (ravenscar_thread_target::xfer_partial): New method.
181
182 2020-08-07 Tom Tromey <tromey@adacore.com>
183
184 * ada-lang.h (ada_task_list_iterator_ftype): Now a
185 gdb::function_view.
186 (iterate_over_live_ada_tasks): Change type of argument.
187 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
188 of argument.
189
190 2020-08-07 Tom Tromey <tromey@adacore.com>
191
192 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
193 Remove.
194 (ravenscar_thread_target::extra_thread_info): Remove.
195 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
196 defer to target beneath for non-Ravenscar threads.
197
198 2020-08-07 Tom Tromey <tromey@adacore.com>
199
200 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
201 get_base_thread_from_ravenscar_task>: Now methods.
202 <m_cpu_map>: New member.
203 (ravenscar_thread_target::get_thread_base_cpu): Rename from
204 ravenscar_get_thread_base_cpu. Check m_cpu_map.
205 (ravenscar_thread_target::task_is_currently_active): Update.
206 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
207 Now a method.
208 (ravenscar_thread_target::add_active_thread): Put initial thread
209 into the m_cpu_map.
210
211 2020-08-07 Tom Tromey <tromey@adacore.com>
212
213 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
214 event_ptid.
215
216 2020-08-07 Tom Tromey <tromey@adacore.com>
217
218 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
219 runtime_initialized.
220
221 2020-08-07 Tom Tromey <tromey@adacore.com>
222
223 * ravenscar-thread.c (ravenscar_thread_target): Don't call
224 add_active_thread.
225 (ravenscar_thread_target::add_active_thread): Now public.
226 (ravenscar_inferior_created): Call add_active_thread after pushing
227 the target.
228
229 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * regcache.c (ptid_regcache_map): New type.
232 (target_ptid_regcache_map): New type.
233 (regcaches): Change type to target_ptid_regcache_map.
234 (get_thread_arch_aspace_regcache): Update to regcaches' new
235 type.
236 (regcache_thread_ptid_changed): Likewise.
237 (registers_changed_ptid): Likewise.
238 (regcaches_size): Likewise.
239 (regcaches_test): Update.
240 (regcache_thread_ptid_changed): Update.
241 * regcache.h (regcache_up): New type.
242 * gdbsupport/ptid.h (hash_ptid): New struct.
243
244 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
245
246 * observable.h (thread_ptid_changed): Add parameter
247 `process_stratum_target *`.
248 * infrun.c (infrun_thread_ptid_changed): Add parameter
249 `process_stratum_target *` and use it.
250 (selftests): New namespace.
251 (infrun_thread_ptid_changed): New function.
252 (_initialize_infrun): Register selftest.
253 * regcache.c (regcache_thread_ptid_changed): Add parameter
254 `process_stratum_target *` and use it.
255 (regcache_thread_ptid_changed): New function.
256 (_initialize_regcache): Register selftest.
257 * thread.c (thread_change_ptid): Pass target to
258 thread_ptid_changed observable.
259
260 2020-08-06 Caroline Tice <cmtice@google.com>
261
262 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
263 (struct dwp_sections): Update field comments. Add loclists and
264 rnglists fields.
265 (struct virtual_v2_dwo_sections): Rename struct to
266 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
267 size & offset fields for loclists and rnglists.
268 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
269 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
270 skipping dummy type units.
271 (create_dwp_hash_table): Update the large comment above the function to
272 discuss Version 5 DWP files as well, with references. Update all the
273 version checks in the function to check for version 5 as well. Add new
274 section at the end to create dwp hash table for version 5.
275 (create_dwp_v2_section): Rename function to
276 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
277 Add V5 to error message text.
278 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
279 into calls to create_dwp_v2_or_v5_section.
280 (create_dwo_unit_in_dwp_v5): New function.
281 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
282 check for version2; add else clause to handle version 5.
283 (open_and_init_dwo_file): Add code to check dwarf version & only call
284 create_debug_types_hash_table (with sections.types) if version is not 5;
285 else call create_debug_type_hash_table, with sections.info.
286 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
287 version 5.
288 (dwarf2_locate_v5_dwp_sections): New function.
289 (open_and_init_dwp_file): Add else-if clause for version 5 to call
290 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
291
292 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
293
294 * regcache.h (class regcache): Remove friend
295 registers_changed_ptid.
296 <regcache_thread_ptid_changed>: Remove.
297 <regcaches>: Remove.
298 * regcache.c (regcache::regcaches): Rename to...
299 (regcaches): ... this. Make static.
300 (get_thread_arch_aspace_regcache): Update.
301 (regcache::regcache_thread_ptid_changed): Rename to...
302 (regcache_thread_ptid_changed): ... this. Update.
303 (class regcache_access): Remove.
304 (regcaches_test): Update.
305 (_initialize_regcache): Update.
306 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
307 <forward_list>.
308
309 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
310
311 * regcache.h (class regcache) <current_regcache>: Rename to...
312 <regcaches>: ... this. Move doc here.
313 * regcache.c (regcache::current_regcache) Rename to...
314 (regcache::regcaches): ... this. Move doc to header.
315 (get_thread_arch_aspace_regcache): Update.
316 (regcache::regcache_thread_ptid_changed): Update.
317 (registers_changed_ptid): Update.
318 (class regcache_access) <current_regcache_size>: Rename to...
319 <regcaches_size>: ... this.
320 (current_regcache_test): Rename to...
321 (regcaches_test): ... this.
322 (_initialize_regcache): Update.
323
324 2020-08-06 Victor Collod <vcollod@nvidia.com>
325
326 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
327
328 2020-08-05 Kevin Buettner <kevinb@redhat.com>
329
330 * corelow.c (core_target::build_file_mappings): Don't output
331 null pathname in warning.
332
333 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
336 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
337 gdb.dwarf2/dw2-single-line-discriminators.exp,
338 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
339
340 2020-08-05 Tom Tromey <tromey@adacore.com>
341
342 PR rust/26197:
343 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
344 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
345 Fix off-by-one and type size errors in ordinary case.
346
347 2020-08-05 Tom de Vries <tdevries@suse.de>
348
349 * gdbtypes.c (type_not_allocated, type_not_associated): Use
350 "prop->const_val () == 0" instead of "prop->const_val () != 0".
351
352 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
353
354 * frame.h (frame_id_p): Return bool.
355 (frame_id_artificial_p): Return bool.
356 (frame_id_eq): Return bool.
357 (has_stack_frames): Return bool.
358 (get_selected_frame): Fix typo in comment.
359 (get_frame_pc_if_available): Return bool.
360 (get_frame_address_in_block_if_available): Return bool.
361 (get_frame_func_if_available): Return bool.
362 (read_frame_register_unsigned): Return bool.
363 (get_frame_register_bytes): Return bool.
364 (safe_frame_unwind_memory): Return bool.
365 (deprecated_frame_register_read): Return bool.
366 (frame_unwinder_is): Return bool.
367 * frame.c (struct frame_info) <prev_arch::p>: Change type to
368 bool.
369 <this_id::p>: Likewise.
370 <prev_p>: Likewise.
371 (frame_stash_add): Return bool.
372 (get_frame_id): Use bool.
373 (frame_id_build_special) Use bool.
374 (frame_id_build_unavailable_stack): Use bool.
375 (frame_id_build): Use bool.
376 (frame_id_p): Return bool, use true/false instead of 1/0.
377 (frame_id_artificial_p): Likewise.
378 (frame_id_eq): Likewise.
379 (frame_id_inner): Likewise.
380 (get_frame_func_if_available): Likewise.
381 (read_frame_register_unsigned): Likewise.
382 (deprecated_frame_register_read): Likewise.
383 (get_frame_register_bytes): Likewise.
384 (has_stack_frames): Likewise.
385 (inside_main_func): Likewise.
386 (inside_entry_func): Likewise.
387 (get_frame_pc_if_available): Likewise.
388 (get_frame_address_in_block_if_available): Likewise.
389 (frame_unwinder_is): Likewise.
390 (safe_frame_unwind_memory): Likewise.
391 (frame_unwind_arch): Likewise.
392
393 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
394
395 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
396 type to cached_copy_status.
397 (fprintf_frame): Adjust.
398 (get_frame_func_if_available): Adjust.
399 (frame_cleanup_after_sniffer): Adjust.
400
401 2020-08-04 Mark Wielaard <mark@klomp.org>
402
403 * MAINTAINERS (Write After Approval): Update email address.
404
405 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
408 dynamic_prop::const_val.
409
410 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
413 dynamic_prop::kind.
414
415 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
418
419 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
420
421 * configure.tgt: Set gdb_sim for bpf-*-* targets.
422
423 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
424 Jose E. Marchesi <jose.marchesi@oracle.com>
425
426 * configure.tgt: Add entry for bpf-*-*.
427 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
428 (ALLDEPFILES): Add bpf-tdep.c.
429 * bpf-tdep.c: New file.
430 * MAINTAINERS: Add bpf target and maintainer.
431 * NEWS: Mention the support for the new target.
432
433 2020-08-04 Tom de Vries <tdevries@suse.de>
434
435 PR symtab/23270
436 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
437 Error.
438
439 2020-08-03 John Baldwin <jhb@FreeBSD.org>
440
441 * syscalls/freebsd.xml: Regenerate.
442
443 2020-08-03 John Baldwin <jhb@FreeBSD.org>
444
445 * syscalls/update-freebsd.sh: Fix usage and year range.
446
447 2020-08-03 Tom de Vries <tdevries@suse.de>
448
449 PR symtab/26333
450 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
451 DW_LNE_lo_user/DW_LNE_hi_user range.
452
453 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
454
455 PR ada/26318
456 * ada-lang.c (ada_modulus): Return 0 if property is not of const
457 kind.
458
459 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
462
463 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
464
465 * breakpoint.c (set_breakpoint_condition): Update the condition
466 expressions after checking that the input condition string parses
467 successfully and does not contain junk at the end.
468
469 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470
471 * breakpoint.c (set_breakpoint_condition): Update the
472 condition string after parsing the new condition successfully.
473
474 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
475
476 * proc-api.c (_STRUCTURED_PROC): Don't define.
477 * proc-events.c: Likewise.
478 * proc-flags.c: Likewise.
479 * proc-why.c: Likewise.
480 * procfs.c: Likewise.
481
482 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
483 * configure, config.in: Regenerate.
484
485 2020-07-30 Tom de Vries <tdevries@suse.de>
486
487 PR build/26320
488 * ui-style.h (struct ui_file_style::color): Wrap m_value and
489 m_red/m_green/m_blue in a union.
490
491 2020-07-29 Tom de Vries <tdevries@suse.de>
492
493 PR tdep/26280
494 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
495
496 2020-07-28 Tom Tromey <tromey@adacore.com>
497
498 PR symtab/26270:
499 * symtab.h (find_pc_partial_function_sym): Declare.
500 * cli/cli-cmds.c (disassemble_command): Use
501 find_pc_partial_function_sym. Check asm_demangle.
502 * blockframe.c (cache_pc_function_sym): New global.
503 (cache_pc_function_name): Remove.
504 (clear_pc_function_cache): Update.
505 (find_pc_partial_function_sym): New function, from
506 find_pc_partial_function.
507 (find_pc_partial_function): Rewrite using
508 find_pc_partial_function_sym.
509
510 2020-07-28 Tom Tromey <tromey@adacore.com>
511
512 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
513 help. Add usage.
514
515 2020-07-28 Tom Tromey <tromey@adacore.com>
516
517 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
518 <DW_OP_GNU_variable_value>: Cast to address type.
519
520 2020-07-28 Kamil Rytarowski <n54@gmx.com>
521
522 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
523 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
524 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
525 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
526 (nbsd_get_siginfo_type): New.
527 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
528 (_initialize_nbsd_tdep): New.
529
530 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR binutils/26301
533 * configure: Regenerated.
534
535 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
536
537 PR binutils/26301
538 * configure: Regenerated.
539
540 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * python/py-frame.c: Remove 'user-regs.h' include.
543 (frapy_read_register): Rewrite to make use of
544 gdbpy_parse_register_id.
545 * python/py-registers.c (gdbpy_parse_register_id): New function,
546 moved here from python/py-unwind.c. Updated the return type, and
547 also accepts register descriptor objects.
548 * python/py-unwind.c: Remove 'user-regs.h' include.
549 (pyuw_parse_register_id): Moved to python/py-registers.c.
550 (unwind_infopy_add_saved_register): Update to use
551 gdbpy_parse_register_id.
552 (pending_framepy_read_register): Likewise.
553 * python/python-internal.h (gdbpy_parse_register_id): Declare.
554
555 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
556
557 * python/py-registers.c: Add 'user-regs.h' include.
558 (register_descriptor_iter_find): New function.
559 (register_descriptor_iterator_object_methods): New static global
560 methods array.
561 (register_descriptor_iterator_object_type): Add pointer to methods
562 array.
563
564 2020-07-27 John Baldwin <jhb@FreeBSD.org>
565
566 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
567 for all architectures on FreeBSD 11.3 and later.
568
569 2020-07-27 Tom Tromey <tromey@adacore.com>
570
571 * gcore.h (load_corefile): Don't declare.
572
573 2020-07-27 Tom de Vries <tdevries@suse.de>
574
575 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
576 * config.in: Regenerate.
577 * configure: Regenerate.
578
579 2020-07-26 Eli Zaretskii <eliz@gnu.org>
580
581 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
582 ws2tcpip.h. When checking whether socklen_t type is defined, use
583 ws2tcpip.h if it is available and sys/socket.h isn't.
584 * configure: Regenerate.
585 * config.in: Regenerate.
586
587 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
588
589 PR fortran/23051
590 PR fortran/26139
591 * valops.c (value_ind): Pass address to
592 readjust_indirect_value_type.
593 * value.c (readjust_indirect_value_type): Make parameter
594 non-const, and add extra address parameter. Resolve original type
595 before using it.
596 * value.h (readjust_indirect_value_type): Update function
597 signature and comment.
598
599 2020-07-25 Tom de Vries <tdevries@suse.de>
600
601 PR symtab/26243
602 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
603 entries.
604
605 2020-07-24 Aaron Merey <amerey@redhat.com>
606
607 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
608 * configure: Rebuild.
609
610 2020-07-23 Kevin Buettner <kevinb@redhat.com>
611
612 PR corefiles/26294
613 * corelow.c (_initialize_corelow): Add period to help text
614 for "maintenance print core-file-backed-mappings".
615
616 2020-07-23 Pedro Alves <pedro@palves.net>
617
618 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
619 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
620 meanwhile.
621 * frame.c (frame_cache_generation, get_frame_cache_generation):
622 New.
623 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
624 (get_prev_frame_if_no_cycle): On exception, don't touch
625 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
626 * frame.h (get_frame_cache_generation): Declare.
627
628 2020-07-23 Tom de Vries <tdevries@suse.de>
629
630 PR tui/26282
631 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
632 New default constructor.
633
634 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
637 exclude non-statement entries.
638
639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
640
641 * NEWS (New commands): Mention new command
642 "maintenance print core-file-backed-mappings".
643
644 2020-07-22 Kevin Buettner <kevinb@redhat.com>
645
646 * corelow.c (gdbcmd.h): Include.
647 (core_target::info_proc_mappings): New method.
648 (get_current_core_target): New function.
649 (maintenance_print_core_file_backed_mappings): New function.
650 (_initialize_corelow): Add core-file-backed-mappings to
651 "maint print" commands.
652
653 2020-07-22 Kevin Buettner <kevinb@redhat.com>
654
655 * linux-tdep.c (dump_note_entry_p): New function.
656 (linux_dump_mapping_p_ftype): New typedef.
657 (linux_find_memory_regions_full): Add new parameter,
658 should_dump_mapping_p.
659 (linux_find_memory_regions): Adjust call to
660 linux_find_memory_regions_full.
661 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
662 call to linux_find_memory_regions_full.
663
664 2020-07-22 Kevin Buettner <kevinb@redhat.com>
665
666 * corelow.c (solist.h, unordered_map): Include.
667 (class core_target): Add field m_core_file_mappings and
668 method build_file_mappings.
669 (core_target::core_target): Call build_file_mappings.
670 (core_target::~core_target): Free memory associated with
671 m_core_file_mappings.
672 (core_target::build_file_mappings): New method.
673 (core_target::xfer_partial): Use m_core_file_mappings
674 for memory transfers.
675 * linux-tdep.c (linux_read_core_file_mappings): New
676 function.
677 (linux_core_info_proc_mappings): Rewrite to use
678 linux_read_core_file_mappings.
679 (linux_init_abi): Register linux_read_core_file_mappings.
680
681 2020-07-22 Kevin Buettner <kevinb@redhat.com>
682
683 * arch-utils.c (default_read_core_file_mappings): New function.
684 * arch-utils.c (default_read_core_file_mappings): Declare.
685 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
686 * gdbarch.h, gdbarch.c: Regenerate.
687
688 2020-07-22 Kevin Buettner <kevinb@redhat.com>
689
690 PR corefiles/25631
691 * corelow.c (core_target:xfer_partial): Revise
692 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
693 case after first checking the stratum beneath the core
694 target.
695 (has_all_memory): Return true.
696 * target.c (raw_memory_xfer_partial): Revise comment
697 regarding use of has_all_memory.
698
699 2020-07-22 Kevin Buettner <kevinb@redhat.com>
700
701 * exec.h (section_table_xfer_memory): Revise declaration,
702 replacing section name parameter with an optional callback
703 predicate.
704 * exec.c (section_table_xfer_memory): Likewise.
705 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
706 of section_table_xfer_memory.
707
708 2020-07-22 Tom Tromey <tromey@adacore.com>
709
710 * mi/mi-cmd-stack.c (list_args_or_locals): Use
711 lookup_symbol_search_name.
712
713 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 * python/py-registers.c (gdbpy_register_object_data_init): Remove
716 redundant local variable.
717 (gdbpy_get_register_descriptor): Extract descriptor vector as a
718 reference, not pointer, update code accordingly.
719
720 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
721 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
722
723 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
724 * jit.c (jit_breakpoint_re_set_internal): Use the
725 `skip_jit_symbol_lookup` field.
726
727 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
728 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
729
730 * jit.c (jit_read_descriptor): Define the descriptor address once,
731 use twice.
732 (jit_breakpoint_deleted): Move the declaration of the loop variable
733 `iter` into the loop header.
734 (jit_breakpoint_re_set_internal): Move the declaration of the local
735 variable `objf_data` to the first point of definition.
736 (jit_event_handler): Move the declaration of local variables
737 `code_entry`, `entry_addr`, and `objf` to their first point of use.
738 Rename `objf` to `jited`.
739
740 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
741
742 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
743 Remove.
744 * jit.c (get_jiter_objfile_data): Update.
745
746 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
747 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * jit.c (struct jit_program_space_data): Remove.
750 (jit_program_space_key): Remove.
751 (jiter_objfile_data::~jiter_objfile_data): Remove program space
752 stuff.
753 (get_jit_program_space_data): Remove.
754 (jit_breakpoint_deleted): Iterate on all of the program space's
755 objfiles.
756 (jit_inferior_init): Likewise.
757 (jit_breakpoint_re_set_internal): Likewise. Also change return
758 type to void.
759 (jit_breakpoint_re_set): Pass current_program_space to
760 jit_breakpoint_re_set_internal.
761
762 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * jit.h (struct jiter_objfile_data) <cached_code_address,
765 jit_breakpoint>: Move to here from ...
766 * jit.c (jit_program_space_data): ... here.
767 (jiter_objfile_data::~jiter_objfile_data): Update.
768 (jit_breakpoint_deleted): Update.
769 (jit_breakpoint_re_set_internal): Update.
770
771 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
774 checks.
775 (jit_read_descriptor): Remove NULL check.
776 (jit_event_handler): Add an assertion.
777
778 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * jit.h (struct jit_objfile_data): Split into...
781 (struct jiter_objfile_data): ... this ...
782 (struct jited_objfile_data): ... and this.
783 * objfiles.h (struct objfile) <jit_data>: Remove.
784 <jiter_data, jited_data>: New fields.
785 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
786 (jiter_objfile_data::~jiter_objfile_data): ... this.
787 (get_jit_objfile_data): Rename to ...
788 (get_jiter_objfile_data): ... this.
789 (add_objfile_entry): Update.
790 (jit_read_descriptor): Use get_jiter_objfile_data.
791 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
792 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
793 (jit_inferior_exit_hook): Use objfile's jited_data field.
794
795 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * jit.h: Forward-declare `struct minimal_symbol`.
798 (struct jit_objfile_data): Migrate to here from jit.c; also add a
799 constructor, destructor, and an objfile* field.
800 * jit.c (jit_objfile_data): Remove.
801 (struct jit_objfile_data): Migrate from here to jit.h.
802 (jit_objfile_data::~jit_objfile_data): New destructor
803 implementation with code moved from free_objfile_data.
804 (free_objfile_data): Delete.
805 (get_jit_objfile_data): Update to use the jit_data field of objfile.
806 (jit_find_objf_with_entry_addr): Ditto.
807 (jit_inferior_exit_hook): Ditto.
808 (_initialize_jit): Remove the call to
809 register_objfile_data_with_cleanup.
810 * objfiles.h (struct objfile) <jit_data>: New field.
811
812 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 * jit.h: Forward-declare `struct objfile`.
815 (jit_event_handler): Add a second parameter, the JITer objfile.
816 * jit.c (jit_read_descriptor): Change the signature to take the
817 JITer objfile as an argument instead of the jit_program_space_data.
818 (jit_inferior_init): Update the call to jit_read_descriptor.
819 (jit_event_handler): Use the new JITer objfile argument when calling
820 jit_read_descriptor.
821 * breakpoint.c (handle_jit_event): Update the call to
822 jit_event_handler to pass the JITer objfile.
823
824 2020-07-21 John Baldwin <jhb@FreeBSD.org>
825
826 * gdbarch.c: Regenerate.
827 * gdbarch.h: Regenerate.
828 * gdbarch.sh (handle_segmentation_fault): Remove method.
829 * infrun.c (handle_segmentation_fault): Remove.
830 (print_signal_received_reason): Remove call to
831 handle_segmentation_fault.
832
833 2020-07-21 John Baldwin <jhb@FreeBSD.org>
834
835 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
836 Rename to sparc64_linux_report_signal_info and add siggnal
837 argument.
838 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
839 instead of sparc64_linux_handle_segmentation_fault.
840
841 2020-07-21 John Baldwin <jhb@FreeBSD.org>
842
843 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
844 i386_linux_report_signal_info instead of
845 i386_linux_handle_segmentation_fault.
846 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
847 to i386_linux_report_signal_info and add siggnal argument.
848 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
849 of i386_linux_handle_segmentation_fault.
850 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
851 to i386_linux_report_signal_info and add siggnal argument.
852
853 2020-07-21 John Baldwin <jhb@FreeBSD.org>
854
855 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
856 hook if present.
857
858 2020-07-21 John Baldwin <jhb@FreeBSD.org>
859
860 * gdbarch.c: Regenerate.
861 * gdbarch.h: Regenerate.
862 * gdbarch.sh (report_signal_info): New method.
863 * infrun.c (print_signal_received_reason): Invoke gdbarch
864 report_signal_info hook if present.
865
866 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * python/py-registers.c : Add 'unordered_map' include.
869 (gdbpy_new_reggroup): Renamed to...
870 (gdbpy_get_reggroup): ...this. Update to only create register
871 group descriptors when needed.
872 (gdbpy_reggroup_iter_next): Update.
873
874 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * python/py-registers.c (gdbpy_register_object_data): New static
877 global.
878 (gdbpy_register_object_data_init): New function.
879 (gdbpy_new_register_descriptor): Renamed to...
880 (gdbpy_get_register_descriptor): ...this, and update to reuse
881 existing register descriptors where possible.
882 (gdbpy_register_descriptor_iter_next): Update.
883 (gdbpy_initialize_registers): Register new gdbarch data.
884
885 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
886
887 * linux-nat.c (stopped_pids): Make static.
888
889 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
890
891 PR ada/26235
892 * gdbtypes.c (ada_discrete_type_low_bound,
893 ada_discrete_type_high_bound): Handle undefined bounds.
894
895 2020-07-21 Kamil Rytarowski <n54@gmx.com>
896
897 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
898 declaration.
899 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
900 function.
901
902 2020-07-20 John Baldwin <jhb@FreeBSD.org>
903
904 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
905 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
906 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
907 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
908 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
909 method.
910
911 2020-07-20 Ludovic Courtès <ludo@gnu.org>
912
913 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
914 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
915 which are deprecated in Guile 3.0.
916 * configure.ac (try_guile_versions): Add "guile-3.0".
917 * configure (try_guile_versions): Regenerate.
918 * NEWS: Update entry.
919
920 2020-07-20 Ludovic Courtès <ludo@gnu.org>
921 Doug Evans <dje@google.com>
922
923 PR gdb/21104
924 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
925 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
926 USING_GUILE_BEFORE_2_2.
927 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
928 Change type to 'scm_t_port_type *'.
929 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
930 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
931 parameter and honor it. Update callers.
932 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
933 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
934 functions.
935 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
936 USING_GUILE_BEFORE_2_2.
937 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
938 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
939 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
940 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
941 and 'SCM_PORT_TYPE'.
942 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
943 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
944 (gdbscm_memory_port_read, gdbscm_memory_port_write)
945 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
946 [!USING_GUILE_BEFORE_2_2]: New functions.
947 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
948 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
949 'gdbscm_memory_port_read'.
950 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
951 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
952 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
953 function.
954 (ioscm_init_memory_port): Remove.
955 (ioscm_init_memory_port_stream): New function
956 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
957 function.
958 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
959 Return scm_from_uint (0).
960 (gdbscm_set_memory_port_read_buffer_size_x)
961 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
962 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
963 Return scm_from_uint (0).
964 (gdbscm_set_memory_port_write_buffer_size_x)
965 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
966 * configure.ac (try_guile_versions): Add "guile-2.2".
967 * configure: Regenerate.
968 * NEWS: Add entry.
969
970 2020-07-18 Tom Tromey <tom@tromey.com>
971
972 * linux-nat.c (linux_multi_process): Remove.
973 (linux_nat_target::supports_multi_process): Return true.
974
975 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
976
977 * arch/riscv.c (riscv_tdesc_cache): Change map type.
978 (riscv_lookup_target_description): Return pointer out of
979 unique_ptr.
980 * target-descriptions.c (allocate_target_description): Add
981 comment.
982 (target_desc_deleter::operator()): Likewise.
983 * target-descriptions.h (struct target_desc_deleter): Moved to
984 gdbsupport/tdesc.h.
985 (target_desc_up): Likewise.
986
987 2020-07-17 Tom Tromey <tromey@adacore.com>
988
989 * linux-nat.c (linux_nat_target::supports_non_stop)
990 (linux_nat_target::always_non_stop_p): Use "true".
991 (linux_nat_target::supports_disable_randomization): Use "true" and
992 "false".
993
994 2020-07-16 Caroline Tice <cmtice@google.com>
995
996 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
997 (RNGLIST_HEADER_SIZE64): New constant definition.
998 (struct dwop_section_names): Add rnglists_dwo.
999 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1000 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1001 (struct dwo_sections): Add rnglists field.
1002 (read_attribut_reprocess): Add tag parameter.
1003 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1004 (cu_debug_rnglists_section): New function (decl & definition).
1005 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1006 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1007 die whose range is being checked; get rnglist section from
1008 cu_debug_rnglists_section, to get from either objfile or dwo file as
1009 appropriate. Add cases for DW_RLE_base_addressx,
1010 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1011 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1012 test inside if-condition and updating complaint message.
1013 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1014 dwarf2_rnglists_process.
1015 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1016 dwarf2_ranges_process.
1017 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1018 need_ranges_base and update comment appropriately. Also pass die tag
1019 to dwarf2_ranges_read.
1020 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1021 need_ranges_base and update comment appropriately. Also pass die tag
1022 to dwarf2_ranges_process.
1023 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1024 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1025 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1026 need_ranges_base and update comment appropriately. Also pass die tag
1027 to read_attribute_reprocess and dwarf2_ranges_read.
1028 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1029 and update function comment appropriately.
1030 (read_loclist_index): Call read_loclists_rnglists_header instead of
1031 read_loclist_header.
1032 (read_rnglist_index): New function.
1033 (read_attribute_reprocess): Add tag parameter. Add code for
1034 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1035 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1036
1037 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1040 being resolved.
1041
1042 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * arch-utils.c (show_architecture): Update formatting of messages.
1045
1046 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1047
1048 * gdbtypes.h (struct type) <bounds>: Handle array and string
1049 types.
1050 * ada-lang.c (assign_aggregate): Use type::bounds on
1051 array/string type.
1052 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1053 * c-varobj.c (c_number_of_children): Likewise.
1054 (c_describe_child): Likewise.
1055 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1056 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1057 (f_type_print_base): Likewise.
1058 * f-valprint.c (f77_array_offset_tbl): Likewise.
1059 (f77_get_upperbound): Likewise.
1060 (f77_print_array_1): Likewise.
1061 * guile/scm-type.c (gdbscm_type_range): Likewise.
1062 * m2-typeprint.c (m2_array): Likewise.
1063 (m2_is_long_set_of_type): Likewise.
1064 * m2-valprint.c (get_long_set_bounds): Likewise.
1065 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1066 * python/py-type.c (typy_range): Likewise.
1067 * rust-lang.c (rust_internal_print_type): Likewise.
1068 * type-stack.c (type_stack::follow_types): Likewise.
1069 * valarith.c (value_subscripted_rvalue): Likewise.
1070 * valops.c (value_cast): Likewise.
1071
1072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1073
1074 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1075 callers to use the equivalent accessor methods.
1076
1077 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1078
1079 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1080 (struct type) <bit_stride>: New method.
1081 (TYPE_BIT_STRIDE): Remove.
1082 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1083
1084 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1085
1086 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1087 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1088 callers to use the equivalent accessor methods instead.
1089
1090 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1091
1092 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1093 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1094 callers to use the equivalent accessor methods instead.
1095
1096 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1099 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1100 to use dynamic_prop::kind.
1101
1102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1105 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1106 to get the bound property's kind and check against
1107 PROP_UNDEFINED.
1108
1109 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1112 all callers to use type::range_bounds followed by
1113 dynamic_prop::{low,high}.
1114
1115 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1118 const_val, set_const_val, baton, set_locexpr, set_loclist,
1119 set_addr_offset, variant_parts, set_variant_parts,
1120 original_type, set_original_type>: New methods.
1121 <kind>: Rename to...
1122 <m_kind>: ... this. Update all users to use the new methods
1123 instead.
1124 <data>: Rename to...
1125 <m_data>: ... this. Update all users to use the new methods
1126 instead.
1127
1128 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * gdbtypes.c (get_discrete_bounds): Return failure if
1131 the range type's bounds are not both defined and constant
1132 values.
1133 (get_array_bounds): Update comment. Remove undefined bound check.
1134
1135 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1138 the type::bounds method directly.
1139
1140 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1141
1142 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1143 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1144 are used to set the range type's bounds to use set_bounds.
1145
1146 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1147
1148 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1149
1150 2020-07-10 Pedro Alves <pedro@palves.net>
1151
1152 * gdbthread.h (inferior_ref): Define.
1153 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1154 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1155 * thread.c
1156 (scoped_restore_current_thread::restore):
1157 Adjust to gdb::ref_ptr.
1158 (scoped_restore_current_thread::~scoped_restore_current_thread):
1159 Remove manual decref handling.
1160 (scoped_restore_current_thread::scoped_restore_current_thread):
1161 Adjust to use
1162 inferior_ref::new_reference/thread_info_ref::new_reference.
1163 Incref the thread before calling get_frame_id instead of after.
1164 Let TARGET_CLOSE_ERROR propagate.
1165
1166 2020-07-10 Pedro Alves <pedro@palves.net>
1167
1168 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1169 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1170 NOT_AVAILABLE_ERROR.
1171 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1172 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1173
1174 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1175 Pedro Alves <pedro@palves.net>
1176
1177 PR gdb/26199
1178 * infrun.c (threads_are_resumed_pending_p): Delete.
1179 (do_target_wait): Remove threads_are_executing and
1180 threads_are_resumed_pending_p checks from the inferior_matches
1181 lambda. Update comments.
1182
1183 2020-07-10 Pedro Alves <pedro@palves.net>
1184
1185 PR gdb/26199
1186 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1187 executing threads.
1188
1189 2020-07-10 Pedro Alves <pedro@palves.net>
1190
1191 PR gdb/26199
1192 * infrun.c (handle_no_resumed): Handle multiple targets.
1193
1194 2020-07-10 Pedro Alves <pedro@palves.net>
1195
1196 PR gdb/26199
1197 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1198 target_is_async_p.
1199
1200 2020-07-10 Pedro Alves <pedro@palves.net>
1201
1202 PR gdb/26199
1203 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1204 threads, not all threads.
1205
1206 2020-07-10 Pedro Alves <pedro@palves.net>
1207
1208 PR gdb/26199
1209 * remote.c (remote_target::open_1): Pass remote target pointer as
1210 data to create_async_event_handler.
1211 (remote_async_inferior_event_handler): Mark async event handler
1212 before returning if the remote target still has either pending
1213 events or unacknowledged notifications.
1214
1215 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1216
1217 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1218 declaration.
1219 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1220 function.
1221
1222 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1223
1224 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1225 inferior_ptid.
1226
1227 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1228
1229 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1230 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1231 AT_FREEBSD_PS_STRINGS.
1232
1233 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1234
1235 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1236 of debugfile path on Windows.
1237
1238 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1239
1240 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1241 argument to 'data'.
1242
1243 2020-07-08 Tom Tromey <tromey@adacore.com>
1244
1245 * ada-lang.c (ada_exception_message_1): Use read_memory.
1246
1247 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 PR python/22748
1250 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1251 special handling for inline frames.
1252 * findvar.c (value_of_register_lazy): Skip inline frames when
1253 creating lazy register values.
1254 * frame.c (frame_id_computed_p): Delete definition.
1255 * frame.h (frame_id_computed_p): Delete declaration.
1256
1257 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * NEWS: Mention additions to Python API.
1260 * python/py-arch.c (archpy_register_groups): New function.
1261 (arch_object_methods): Add 'register_groups' method.
1262 * python/py-registers.c (reggroup_iterator_object): New struct.
1263 (reggroup_object): New struct.
1264 (gdbpy_new_reggroup): New function.
1265 (gdbpy_reggroup_to_string): New function.
1266 (gdbpy_reggroup_name): New function.
1267 (gdbpy_reggroup_iter): New function.
1268 (gdbpy_reggroup_iter_next): New function.
1269 (gdbpy_new_reggroup_iterator): New function
1270 (gdbpy_initialize_registers): Register new types.
1271 (reggroup_iterator_object_type): Define new Python type.
1272 (gdbpy_reggroup_getset): New static global.
1273 (reggroup_object_type): Define new Python type.
1274 * python/python-internal.h
1275
1276 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1279 * python/py-arch.c (archpy_registers): New function.
1280 (arch_object_methods): Add 'registers' method.
1281 * python/py-registers.c: New file.
1282 * python/python-internal.h
1283 (gdbpy_new_register_descriptor_iterator): Declare.
1284 (gdbpy_initialize_registers): Declare.
1285 * python/python.c (do_start_initialization): Call
1286 gdbpy_initialize_registers.
1287 * NEWS: Mention additions to the Python API.
1288
1289 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * NEWS: Mention new Python API method.
1292 * python/py-unwind.c (pending_framepy_architecture): New function.
1293 (pending_frame_object_methods): Add architecture method.
1294
1295 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * gdbarch.c: Regenerate.
1298 * gdbarch.h: Regenerate.
1299 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1300 (gdbarch_data): Use internal_error for the case where
1301 deprecated_set_gdbarch_data was originally needed.
1302 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1303 and use passed in obstack.
1304 (libunwind_frame_set_descr): Should no longer get back NULL from
1305 gdbarch_data.
1306 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1307 type.
1308 * user-regs.c (user_regs_init): Update parameters, and use passed
1309 in obstack.
1310 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1311 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1312
1313 2020-07-06 Tom de Vries <tdevries@suse.de>
1314
1315 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1316 End-Of-Sequence in lte_is_less_than.
1317 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1318 "gdb: Don't reorder line table entries too much when sorting".
1319
1320 2020-07-06 Tom de Vries <tdevries@suse.de>
1321
1322 PR tui/26205
1323 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1324
1325 2020-07-05 Tom de Vries <tdevries@suse.de>
1326
1327 PR build/26187
1328 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1329 std::uncaught_exceptions instead of deprecated
1330 std::uncaught_exception.
1331
1332 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * macroexp.h (macro_stringify): Return
1335 gdb::unique_xmalloc_ptr<char>.
1336 * macroexp.c (macro_stringify): Likewise.
1337 * macrotab.c (fixup_definition): Update.
1338
1339 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1342 (lex_one_token): Update.
1343 * macroexp.c (struct macro_buffer) <release>: Return
1344 gdb::unique_xmalloc_ptr<char>.
1345 (macro_stringify): Update.
1346 (macro_expand): Update.
1347 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1348 * macroexp.h (macro_expand_next): Likewise.
1349
1350 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1351
1352 * macroexp.h (macro_lookup_ftype): Remove.
1353 (macro_expand, macro_expand_once, macro_expand_next): Remove
1354 lookup function parameters, add scope parameter.
1355 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1356 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1357 * macroscope.h (standard_macro_lookup): Change parameter type
1358 to macro_scope.
1359 * macroscope.c (standard_macro_lookup): Likewise.
1360 * c-exp.y (lex_one_token): Update.
1361 * macrocmd.c (macro_expand_command): Likewise.
1362 (macro_expand_once_command): Likewise.
1363
1364 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * inf-loop.c (inferior_event_handler): Remove client_data param.
1367 * inf-loop.h (inferior_event_handler): Likewise.
1368 * infcmd.c (step_1): Adjust.
1369 * infrun.c (proceed): Adjust.
1370 (fetch_inferior_event): Remove client_data param.
1371 (infrun_async_inferior_event_handler): Adjust.
1372 * infrun.h (fetch_inferior_event): Remove `void *` param.
1373 * linux-nat.c (handle_target_event): Adjust.
1374 * record-btrace.c (record_btrace_handle_async_inferior_event):
1375 Adjust.
1376 * record-full.c (record_full_async_inferior_event_handler):
1377 Adjust.
1378 * remote.c (remote_async_inferior_event_handler): Adjust.
1379
1380 2020-07-01 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1383 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1384
1385 2020-07-01 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1388 tui_gen_win_info.
1389 (tui_win_info::make_window): Merge with
1390 tui_gen_win_info::make_window.
1391 (tui_win_info::make_visible): Move from tui_gen_win_info.
1392 * tui/tui-win.c (tui_win_info::max_width): Move from
1393 tui_gen_win_info.
1394 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1395 type.
1396 <window_factory>: Likewise.
1397 * tui/tui-layout.c (tui_win_info::resize): Move from
1398 tui_gen_win_info.
1399 (make_standard_window): Change return type.
1400 (get_locator_window, tui_get_window_by_name): Likewise.
1401 (tui_layout_window::apply): Remove a cast.
1402 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1403 (struct tui_win_info): Merge with tui_gen_win_info.
1404 (struct tui_gen_win_info): Remove.
1405
1406 2020-07-01 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-stack.h (struct tui_locator_window): Derive from
1409 tui_win_info.
1410 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1411 <can_box>: New method.
1412
1413 2020-07-01 Tom Tromey <tom@tromey.com>
1414
1415 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1416
1417 2020-07-01 Tom Tromey <tom@tromey.com>
1418
1419 * tui/tui-regs.c (tui_data_window::display_registers_from)
1420 (tui_data_window::display_registers_from)
1421 (tui_data_window::first_data_item_displayed)
1422 (tui_data_window::delete_data_content_windows): Update.
1423 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1424 Remove.
1425 (tui_data_window::check_register_values): Update.
1426 (tui_data_item_window::rerender): Add parameters. Update.
1427 (tui_data_item_window::refresh_window): Remove.
1428 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1429 virtual.
1430 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1431 tui_gen_win_info.
1432 <refresh_window, max_height, min_height>: Remove.
1433 <rerender>: Add parameters.
1434 <x, y, visible>: New members.
1435 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1436 <m_item_width>: New member.
1437
1438 2020-07-01 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-regs.c (tui_data_window::show_register_group)
1441 (tui_data_window::check_register_values): Update.
1442 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1443 from item_no.
1444
1445 2020-07-01 Tom Tromey <tom@tromey.com>
1446
1447 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1448 useless "if".
1449
1450 2020-07-01 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1453 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1454
1455 2020-07-01 Tom Tromey <tom@tromey.com>
1456
1457 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1458 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1459 (struct tui_line_or_address): Move from tui-data.h.
1460 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1461 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1462 (tui_cmd_window, tui_source_window_base, tui_source_window)
1463 (tui_disasm_window): Don't declare.
1464 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1465 to tui-winsource.h.
1466 (SINGLE_KEY): Move to tui-stack.c.
1467
1468 2020-07-01 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1471 std::string.
1472 * tui/tui-regs.c (class tab_expansion_file): New.
1473 (tab_expansion_file::write): New method.
1474 (tui_register_format): Change return type. Use
1475 tab_expansion_file.
1476 (tui_get_register, tui_data_window::display_registers_from)
1477 (tui_data_item_window::rerender): Update.
1478 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1479 * tui/tui-io.c (tui_expand_tabs): Remove.
1480
1481 2020-07-01 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1484
1485 2020-07-01 Fangrui Song <maskray@google.com>
1486
1487 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1488
1489 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1490
1491 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1492 forms for DW_AT_associated and DW_AT_allocated attributes,
1493 which is already checked in function attr_to_dynamic_prop.
1494
1495 2020-06-30 Tom Tromey <tromey@adacore.com>
1496
1497 * dwarf2/read.c (quirk_rust_enum): Correctly call
1498 alloc_rust_variant for default-less enum.
1499
1500 2020-06-30 Tom Tromey <tromey@adacore.com>
1501
1502 PR build/26183:
1503 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1504 gdb::to_string.
1505
1506 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1509 * gdbarch.h: Re-generate.
1510
1511 2020-06-28 Tom Tromey <tom@tromey.com>
1512
1513 * command.h (cmd_types): Remove.
1514 (cmd_type): Don't declare.
1515 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1516 typedef.
1517 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1518 * cli/cli-decode.c (cmd_type): Remove.
1519
1520 2020-06-27 Pedro Alves <palves@redhat.com>
1521
1522 * fork-child.c (prefork_hook): Adjust.
1523 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1524 Delete.
1525 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1526 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1527 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1528 Remove declarations.
1529 (struct inferior) <set_tty, tty>: New methods.
1530 (struct inferior) <terminal>: Rename to ...
1531 (struct inferior) <m_terminal>: ... this and make private.
1532 * main.c (captured_main_1): Adjust.
1533 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1534 (mi_cmd_inferior_tty_show): Adjust.
1535 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1536 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1537
1538 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1539
1540 * configure.ac: Add --enable-libctf: handle --disable-static
1541 properly.
1542 * acinclude.m4: sinclude ../config/enable.m4.
1543 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1544 (LIBCTF): Substitute in.
1545 (CTF_DEPS): New, likewise.
1546 (CLIBS): libctf needs symbols from libbfd: move earlier.
1547 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1548 flags.
1549 * ctfread.c: Surround in ENABLE_LIBCTF.
1550 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1551 * configure: Regenerate.
1552 * config.in: Likewise.
1553
1554 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1557
1558 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * inferior.h (struct inferior) <terminal>: Change type to
1561 gdb::unique_xmalloc_ptr<char>.
1562 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1563 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1564 field, adjust to unique pointer.
1565 (get_inferior_io_terminal): Adjust to unique pointer.
1566
1567 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1570 registers, not just the known core set of registers.
1571
1572 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1575 fflags, frm, and fcsr registers.
1576 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1577 restore groups.
1578 (riscv_tdesc_unknown_reg): New function.
1579 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1580 tdesc_use_registers.
1581 * riscv-tdep.h (struct gdbarch_tdep): Add
1582 unknown_csrs_first_regnum, unknown_csrs_count,
1583 duplicate_fflags_regnum, duplicate_frm_regnum, and
1584 duplicate_fcsr_regnum fields.
1585
1586 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1587
1588 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1589 callback, use the callback (when not null) to help number unknown
1590 registers.
1591 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1592 (tdesc_use_registers): Add extra parameter to declaration.
1593
1594 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1597 in the file.
1598 (class riscv_pending_register_alias): Likewise.
1599 (riscv_register_feature::register_info): Change 'required_p' field
1600 to 'required', and change its type. Add 'check' member function.
1601 (riscv_register_feature::register_info::check): Define new member
1602 function.
1603 (riscv_xreg_feature): Change initialisation of 'required' field.
1604 (riscv_freg_feature): Likewise.
1605 (riscv_virtual_feature): Likewise.
1606 (riscv_csr_feature): Likewise.
1607 (riscv_check_tdesc_feature): Take extra parameter, the csr
1608 tdesc_feature, rewrite the function to use the new
1609 riscv_register_feature::register_info::check function.
1610 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1611
1612 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * features/Makefile: Remove all references to the deleted files
1615 below.
1616 * features/riscv/32bit-csr.c: Deleted.
1617 * features/riscv/32bit-csr.xml: Deleted.
1618 * features/riscv/64bit-csr.c: Deleted.
1619 * features/riscv/64bit-csr.xml: Deleted.
1620 * features/riscv/rebuild-csr-xml.sh: Deleted.
1621
1622 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1623
1624 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1625 whitespace error for declaration of names member variable.
1626 (struct riscv_register_feature): Add new prefer_first_name member
1627 variable, and fix whitespace error in declaration of registers.
1628 (riscv_xreg_feature): Initialize prefer_first_name field.
1629 (riscv_freg_feature): Likewise.
1630 (riscv_virtual_feature): Likewise.
1631 (riscv_csr_feature): Likewise.
1632 (riscv_register_name): Expand on comments. Remove register name
1633 modifications for CSR and virtual registers.
1634
1635 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1638 errors.
1639
1640 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1641
1642 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1643 riscv-opc.h.
1644 (class riscv_pending_register_alias): New class.
1645 (riscv_check_tdesc_feature): Take vector of pending aliases and
1646 populate it as appropriate.
1647 (riscv_setup_register_aliases): Delete.
1648 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1649 to riscv_check_tdesc_feature in all cases. Use the vector to
1650 create the register aliases.
1651
1652 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1653
1654 * sol2-tdep.c (sol2_static_transform_name): Remove.
1655 (sol2_init_abi): Don't register it.
1656 * gdbarch.sh (static_transform_name): Remove.
1657 * gdbarch.c, gdbarch.h: Regenerate.
1658
1659 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1660 gdbarch_static_transform_name.
1661 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1662 * stabsread.c (define_symbol) <'X'>: Remove.
1663 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1664 handling.
1665 <'V'>: Likewise.
1666 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1667 <'S'>: Remove call to gdbarch_static_transform_name.
1668
1669 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1670
1671 * procfs.c (procfs_pre_trace): New function.
1672 (procfs_target::create_inferior): Pass it to fork_inferior.
1673
1674 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1675
1676 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1677 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1678 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1679 sol2-tdep.o, sparc-sol2-tdep.o.
1680 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1681 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1682 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1683 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1684
1685 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1686
1687 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1688 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1689 Call sol2_init_abi.
1690 Remove calls to set_gdbarch_skip_solib_resolver,
1691 set_gdbarch_core_pid_to_str.
1692 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1693 (i386_sol2_static_transform_name): Remove.
1694 (i386_sol2_init_abi): Call sol2_init_abi.
1695 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1696 set_gdbarch_static_transform_name,
1697 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1698 Use sol2_sigtramp_p.
1699 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1700 (sol2_sigtramp_p): New function.
1701 (sol2_static_transform_name): New function.
1702 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1703 (sol2_init_abi): New function.
1704 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1705 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1706 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1707 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1708 (sparc_sol2_static_transform_name): Remove.
1709 (sparc32_sol2_init_abi): Call sol2_init_abi.
1710 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1711 set_gdbarch_static_transform_name,
1712 set_gdbarch_skip_solib_resolver,
1713 set_gdbarch_core_pid_to_str.
1714 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1715 (sparc_sol2_static_transform_name): Remove
1716 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1717 call sol2_sigtramp_p.
1718 (sparc64_sol2_init_abi): Call sol2_init_abi.
1719 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1720 set_gdbarch_static_transform_name,
1721 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1722
1723 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1724
1725 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1726 * exec.c (validate_exec_file): If from_tty, set both
1727 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1728 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1729 and from_tty, unconditionally ask a confirmation.
1730
1731 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * target-descriptions.c (tdesc_architecture_name): Protect against
1734 NULL pointer dereference.
1735 (maint_print_xml_tdesc_cmd): New function.
1736 (_initialize_target_descriptions): Register new 'maint print
1737 xml-tdesc' command and give it the filename completer.
1738 * NEWS: Mention new 'maint print xml-tdesc' command.
1739
1740 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * target-descriptions.c (class tdesc_compatible_info): New class.
1743 (struct target_desc): Change type of compatible vector.
1744 (tdesc_compatible_p): Update for change in type of
1745 target_desc::compatible.
1746 (tdesc_compatible_info_list): New function.
1747 (tdesc_compatible_info_arch_name): New function.
1748 (tdesc_add_compatible): Update for change in type of
1749 target_desc::compatible.
1750 (print_c_tdesc::visit_pre): Likewise.
1751
1752 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1755 whitespace to underscore.
1756 (maint_print_c_tdesc_cmd): Use fake filename for target
1757 descriptions that came from the target.
1758 (_initialize_target_descriptions): Add filename command completion
1759 for 'maint print c-tdesc'.
1760
1761 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1762
1763 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1764 lines.
1765
1766 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1769 lines.
1770 (dwarf2_find_location_expression): Likewise.
1771 (call_site_parameter_matches): Likewise.
1772 (dwarf2_compile_expr_to_ax): Likewise.
1773 (disassemble_dwarf_expression): Likewise.
1774 (loclist_describe_location): Likewise.
1775
1776 2020-06-23 Pedro Alves <palves@redhat.com>
1777
1778 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1779 progspace-and-thread.h. Include scoped-mock-context.h instead.
1780 (register_to_value_test): Use scoped_mock_context.
1781 * regcache.c: Include "scoped-mock-context.h".
1782 (cooked_read_test): Don't error out if a target is already pushed.
1783 Use scoped_mock_context. Adjust.
1784 * scoped-mock-context.h: New file.
1785
1786 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1789 initializer.
1790 (ada_language::is_string_type_p): New member function.
1791 * c-lang.c (c_language_data): Delete la_is_string_type_p
1792 initializer.
1793 (cplus_language_data): Likewise.
1794 (asm_language_data): Likewise.
1795 (minimal_language_data): Likewise.
1796 * d-lang.c (d_language_data): Likewise.
1797 * f-lang.c (f_is_string_type_p): Delete function, implementation
1798 moved to f_language::is_string_type_p.
1799 (f_language_data): Delete la_is_string_type_p initializer.
1800 (f_language::is_string_type_p): New member function,
1801 implementation from f_is_string_type_p.
1802 * go-lang.c (go_is_string_type_p): Delete function, implementation
1803 moved to go_language::is_string_type_p.
1804 (go_language_data): Delete la_is_string_type_p initializer.
1805 (go_language::is_string_type_p): New member function,
1806 implementation from go_is_string_type_p.
1807 * language.c (language_defn::is_string_type_p): Define new member
1808 function.
1809 (default_is_string_type_p): Make static, add comment copied from
1810 header file.
1811 (unknown_language_data): Delete la_is_string_type_p initializer.
1812 (unknown_language::is_string_type_p): New member function.
1813 (auto_language_data): Delete la_is_string_type_p initializer.
1814 (auto_language::is_string_type_p): New member function.
1815 * language.h (language_data): Delete la_is_string_type_p field.
1816 (language_defn::is_string_type_p): Declare new function.
1817 (default_is_string_type_p): Delete desclaration, move comment to
1818 definition.
1819 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1820 moved to m2_language::is_string_type_p.
1821 (m2_language_data): Delete la_is_string_type_p initializer.
1822 (m2_language::is_string_type_p): New member function,
1823 implementation from m2_is_string_type_p.
1824 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1825 initializer.
1826 * opencl-lang.c (opencl_language_data): Likewise.
1827 * p-lang.c (pascal_is_string_type_p): Delete function,
1828 implementation moved to pascal_language::is_string_type_p.
1829 (pascal_language_data): Delete la_is_string_type_p initializer.
1830 (pascal_language::is_string_type_p): New member function,
1831 implementation from pascal_is_string_type_p.
1832 * rust-lang.c (rust_is_string_type_p): Delete function,
1833 implementation moved to rust_language::is_string_type_p.
1834 (rust_language_data): Delete la_is_string_type_p initializer.
1835 (rust_language::is_string_type_p): New member function,
1836 implementation from rust_is_string_type_p.
1837 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1838 is_string_type_p.
1839
1840 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * ada-lang.c (ada_language_data): Delete la_print_typedef
1843 initializer.
1844 (ada_language::print_typedef): New member function.
1845 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1846 (cplus_language_data): Likewise.
1847 (asm_language_data): Likewise.
1848 (minimal_language_data): Likewise.
1849 * d-lang.c (d_language_data): Likewise.
1850 * f-lang.c (f_language_data): Likewise.
1851 (f_language::print_typedef): New member function.
1852 * go-lang.c (go_language_data): Delete la_print_typedef
1853 initializer.
1854 * language.c (language_defn::print_typedef): Define member
1855 function.
1856 (unknown_language_data): Delete la_print_typedef initializer.
1857 (unknown_language::print_typedef): New member function.
1858 (auto_language_data): Delete la_print_typedef initializer.
1859 (auto_language::print_typedef): New member function.
1860 * language.h (language_data): Delete la_print_typedef field.
1861 (language_defn::print_typedef): Declare new member function.
1862 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1863 (default_print_typedef): Delete declaration.
1864 * m2-lang.c (m2_language_data): Delete la_print_typedef
1865 initializer.
1866 (m2_language::print_typedef): New member function.
1867 * objc-lang.c (objc_language_data): Delete la_print_typedef
1868 initializer.
1869 * opencl-lang.c (opencl_language_data): Likewise.
1870 * p-lang.c (pascal_language_data): Likewise.
1871 (pascal_language::print_typedef): New member function.
1872 * rust-lang.c (rust_print_typedef): Delete function,
1873 implementation moved to rust_language::print_typedef.
1874 (rust_language): Delete la_print_typedef initializer.
1875 (rust_language::print_typedef): New member function,
1876 implementation from rust_print_typedef.
1877 * typeprint.c (default_print_typedef): Delete.
1878
1879 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1882 (ada_language::printstr): New member function.
1883 * c-lang.c (c_language_data): Delete la_printstr initializer.
1884 (cplus_language_data): Likewise.
1885 (asm_language_data): Likewise.
1886 (minimal_language_data): Likewise.
1887 * d-lang.c (d_language_data): Likewise.
1888 * f-lang.c (f_printstr): Rename to f_language::printstr.
1889 (f_language_data): Delete la_printstr initializer.
1890 (f_language::printstr): New member function, implementation from
1891 f_printstr.
1892 * go-lang.c (go_language_data): Delete la_printstr initializer.
1893 * language.c (language_defn::printstr): Define new member
1894 function.
1895 (unk_lang_printstr): Delete.
1896 (unknown_language_data): Delete la_printstr initializer.
1897 (unknown_language::printstr): New member function.
1898 (auto_language_data): Delete la_printstr initializer.
1899 (auto_language::printstr): New member function.
1900 * language.h (language_data): Delete la_printstr field.
1901 (language_defn::printstr): Declare new member function.
1902 (LA_PRINT_STRING): Update call to printstr.
1903 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1904 (m2_language_data): Delete la_printstr initializer.
1905 (m2_language::printstr): New member function, implementation from
1906 m2_printstr.
1907 * objc-lang.c (objc_language_data): Delete la_printstr
1908 initializer.
1909 * opencl-lang.c (opencl_language_data): Likewise.
1910 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1911 (pascal_language_data): Delete la_printstr initializer.
1912 (pascal_language::printstr): New member function, implementation
1913 from pascal_printstr.
1914 * p-lang.h (pascal_printstr): Delete declaration.
1915 * rust-lang.c (rust_printstr): Update header comment.
1916 (rust_language_data): Delete la_printstr initializer.
1917 (rust_language::printstr): New member function.
1918
1919 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1922 (ada_language::printchar): New member function.
1923 * c-lang.c (c_language_data): Delete la_printchar initializer.
1924 (cplus_language_data): Likewise.
1925 (asm_language_data): Likewise.
1926 (minimal_language_data): Likewise.
1927 * d-lang.c (d_language_data): Likewise.
1928 * f-lang.c (f_printchar): Rename to f_language::printchar.
1929 (f_language_data): Delete la_printchar initializer.
1930 (f_language::printchar): New member function, implementation from
1931 f_printchar.
1932 * go-lang.c (go_language_data): Delete la_printchar initializer.
1933 * language.c (unk_lang_printchar): Delete.
1934 (language_defn::printchar): Define new member function.
1935 (unknown_language_data): Delete la_printchar initializer.
1936 (unknown_language::printchar): New member function.
1937 (auto_language_data): Delete la_printchar initializer.
1938 (auto_language::printchar): New member function.
1939 * language.h (language_data): Delete la_printchar field.
1940 (language_defn::printchar): Declare new member function.
1941 (LA_PRINT_CHAR): Update call to printchar.
1942 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1943 (m2_language::printchar): New member function.
1944 * objc-lang.c (objc_language_data): Delete la_printchar
1945 initializer.
1946 * opencl-lang.c (opencl_language_data): Likewise.
1947 * p-lang.c (pascal_language_data): Delete la_printchar
1948 initializer.
1949 (pascal_language::printchar): New member function.
1950 * rust-lang.c (rust_printchar): Rename to
1951 rust_language::printchar.
1952 (rust_language_data): Delete la_printchar initializer.
1953 (rust_language::printchar): New member function, implementation
1954 from rust_printchar.
1955
1956 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1959 (ada_language_data): Delete la_emitchar initializer.
1960 (ada_language::emitchar): New member function, implementation from
1961 emit_char.
1962 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1963 (cplus_language_data): Likewise.
1964 (asm_language_data): Likewise.
1965 (minimal_language_data): Likewise.
1966 * d-lang.c (d_language_data): Likewise.
1967 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1968 (f_language_data): Delete la_emitchar initializer.
1969 (f_language::emitchar): New member function, implementation from
1970 f_emit_char.
1971 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1972 * language.c (unk_lang_emit_char): Delete.
1973 (language_defn::emitchar): New member function definition.
1974 (unknown_language_data): Delete la_emitchar initializer.
1975 (unknown_language::emitchar): New member function.
1976 (auto_language_data): Delete la_emitchar initializer.
1977 (auto_language::emitchar): New member function.
1978 * language.h (language_data): Delete la_emitchar field.
1979 (language_defn::emitchar): New member field declaration.
1980 (LA_EMIT_CHAR): Update call to emitchar.
1981 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1982 (m2_language_data): Delete la_emitchar initializer.
1983 (m2_language::emitchar): New member function, implementation from
1984 m2_emit_char.
1985 * objc-lang.c (objc_language_data): Delete la_emitchar
1986 initializer.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1989 (pascal_language_data): Delete la_emitchar initializer.
1990 (pascal_language::emitchar): New member function, implementation
1991 from pascal_emit_char.
1992 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1993 (rust_language_data): Delete la_emitchar initializer.
1994 (rust_language::emitchar): New member function, implementation
1995 from rust_emitchar.
1996
1997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2000 (ada_language_data): Delete la_post_parser initializer.
2001 (ada_language::post_parser): New member function.
2002 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2003 (cplus_language_data): Likewise.
2004 (asm_language_data): Likewise.
2005 (minimal_language_data): Likewise.
2006 * d-lang.c (d_language_data): Likewise.
2007 * f-lang.c (f_language_data): Likewise.
2008 * go-lang.c (go_language_data): Likewise.
2009 * language.c (unknown_language_data): Likewise.
2010 (auto_language_data): Likewise.
2011 * language.h (language_data): Delete la_post_parser field.
2012 (language_defn::post_parser): New member function.
2013 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2014 * objc-lang.c (objc_language_data): Likewise.
2015 * opencl-lang.c (opencl_language_data): Likewise.
2016 * p-lang.c (pascal_language_data): Likewise.
2017 * parse.c (parse_exp_in_context): Update call to post_parser.
2018 (null_post_parser): Delete definition.
2019 * parser-defs.h (null_post_parser): Delete declaration.
2020 * rust-lang.c (rust_language_data): Delete la_post_parser
2021 initializer.
2022
2023 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (parse): Rename to ada_language::parser.
2026 (ada_language_data): Delete la_parser initializer.
2027 (ada_language::parser): New member function, implementation from
2028 parse.
2029 * c-lang.c (c_language_data): Delete la_parser initializer.
2030 (cplus_language_data): Likewise.
2031 (asm_language_data): Likewise.
2032 (minimal_language_data): Likewise.
2033 * d-lang.c (d_language_data): Likewise.
2034 (d_language::parser): New member function.
2035 * f-lang.c (f_language_data): Delete la_parser initializer.
2036 (f_language::parser): New member function.
2037 * go-lang.c (go_language_data): Delete la_parser initializer.
2038 (go_language::parser): New member function.
2039 * language.c (unk_lang_parser): Delete.
2040 (language_defn::parser): Define new member function.
2041 (unknown_language_data): Delete la_parser initializer.
2042 (unknown_language::parser): New member function.
2043 (auto_language_data): Delete la_parser initializer.
2044 (auto_language::parser): New member function.
2045 * language.h (language_data): Delete la_parser field.
2046 (language_defn::parser): Declare new member function.
2047 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2048 (m2_language::parser): New member function.
2049 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2050 * opencl-lang.c (opencl_language_data): Likewise.
2051 * p-lang.c (pascal_language_data): Likewise.
2052 (pascal_language::parser): New member function.
2053 * parse.c (parse_exp_in_context): Update call to parser.
2054 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2055 (rust_language::parser): New member function.
2056
2057 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * top.c (print_gdb_configuration): Print --with-python-libdir
2060 configuration value.
2061
2062 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2063
2064 * NEWS: Mention change to the alias command.
2065
2066 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2067
2068 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2069 (alias_command_completer)
2070 (make_alias_options_def_group): New functions.
2071 (alias_opts, alias_option_defs): New struct and array.
2072 (alias_usage_error): Update usage.
2073 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2074 Use option framework.
2075 (_initialize_cli_cmds): Update alias command help.
2076 Update aliases command help.
2077 (show_user):
2078 Add NULL for new default_args lookup_cmd argument.
2079 (valid_command_p): Rename to validate_aliased_command.
2080 Add NULL for new default_args lookup_cmd argument. Verify that the
2081 aliased_command has no default args.
2082 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2083 (lookup_cmd_1, lookup_cmd): New argument default_args.
2084 (add_alias_cmd):
2085 Add NULL for new default_args lookup_cmd argument.
2086 (print_help_for_command): Show default args under the layout
2087 alias some_alias = some_aliased_cmd some_alias_default_arg.
2088 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2089 xfree default_args in destructor.
2090 * cli/cli-script.c (process_next_line, do_define_command):
2091 Add NULL for new default_args lookup_cmd argument.
2092 * command.h: Declare new default_args argument in lookup_cmd
2093 and lookup_cmd_1.
2094 * completer.c (complete_line_internal_1):
2095 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2096 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2097 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2098 Likewise.
2099 * infcmd.c (_initialize_infcmd): Likewise.
2100 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2101 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2102 * python/py-param.c (add_setshow_generic): Likewise.
2103 * remote.c (_initialize_remote): Likewise.
2104 * top.c (execute_command): Prepend default_args if command has some.
2105 (set_verbose):
2106 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2107 * tracepoint.c (validate_actionline, encode_actions_1):
2108 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2109
2110 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 * jit.c (jit_read_descriptor): Use bool as the return type.
2113 (jit_breakpoint_re_set_internal): Use bool as the return type.
2114 Invert the return value logic; return true if the jit breakpoint
2115 has been successfully initialized.
2116 (jit_inferior_init): Update the call to
2117 jit_breakpoint_re_set_internal.
2118
2119 2020-06-22 Pedro Alves <palves@redhat.com>
2120
2121 PR gdb/25939
2122 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2123 Use the current inferior instead. Don't return
2124 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2125 wait again.
2126 * sol-thread.c (sol_thread_target::wait): Don't reference
2127 inferior_ptid.
2128 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2129 (sol_update_thread_list_callback): Use the current inferior's pid
2130 instead of inferior_ptid.
2131
2132 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133
2134 * procfs.c: Cleanup many comments.
2135
2136 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2137 (AFTER_WATCHFLAG): Replace by value.
2138
2139 (MAIN_PROC_NAME_FORMAT): Inline ...
2140 (create_procinfo): ... here.
2141
2142 (procfs_debug_inferior): Remove SYS_exec handling.
2143 (syscall_is_exec): Likewise.
2144 (procfs_set_exec_trap): Likewise.
2145
2146 (syscall_is_lwp_exit): Inline in callers.
2147 (syscall_is_exit): Likewise.
2148 (syscall_is_exec): Likewise.
2149 (syscall_is_lwp_create): Likewise.
2150
2151 (invalidate_cache): Remove #if 0 code.
2152
2153 (make_signal_thread_runnable): Remove.
2154 (procfs_target::resume): Remove #if 0 code.
2155
2156 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157
2158 PR gdb/25939
2159 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2160 call ...
2161 (procfs_target::create_inferior): ... here.
2162
2163 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2164
2165 * exec.c (validate_exec_file): Ensure the build-id is up to
2166 date by calling reopen_exec_file (that checks file timestamp
2167 to decide to re-read the file).
2168
2169 2020-06-18 Pedro Alves <palves@redhat.com>
2170
2171 PR gdb/25412
2172 * gdbthread.h (delete_thread, delete_thread_silent)
2173 (find_thread_ptid): Update comments.
2174 * thread.c (current_thread_): New global.
2175 (is_current_thread): Move higher, and reimplement.
2176 (inferior_thread): Reimplement.
2177 (set_thread_exited): Use bool. Add assertions.
2178 (add_thread_silent): Simplify thread-reuse handling by always
2179 calling delete_thread.
2180 (delete_thread): Remove intro comment.
2181 (find_thread_ptid): Skip exited threads.
2182 (switch_to_thread_no_regs): Write to current_thread_.
2183 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2184 INFERIOR_PTID. Clear current_thread_.
2185
2186 2020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * aix-thread.c (pd_update): Use switch_to_thread.
2189
2190 2020-06-18 Pedro Alves <palves@redhat.com>
2191
2192 * ravenscar-thread.c (ravenscar_thread_target): Update.
2193 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2194 (ravenscar_thread_target::add_active_thread): ... this. Don't
2195 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2196 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2197
2198 2020-06-18 Pedro Alves <palves@redhat.com>
2199
2200 * nat/windows-nat.c (current_windows_thread): Remove.
2201 * nat/windows-nat.h (current_windows_thread): Remove.
2202 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2203 Adjust.
2204 (display_selectors): Adjust to fetch the current
2205 windows_thread_info based on inferior_ptid.
2206 (fake_create_process): No longer write to current_windows_thread.
2207 (windows_nat_target::get_windows_debug_event):
2208 Don't set inferior_ptid or current_windows_thread.
2209 (windows_nat_target::wait): Adjust to not rely on
2210 current_windows_thread.
2211 (do_initial_windows_stuff): Now a method of windows_nat_target.
2212 Switch to the last_ptid thread.
2213 (windows_nat_target::attach): Adjust.
2214 (windows_nat_target::detach): Use switch_to_no_thread instead of
2215 writing to inferior_ptid directly.
2216 (windows_nat_target::create_inferior): Adjust.
2217
2218 2020-06-18 Pedro Alves <palves@redhat.com>
2219
2220 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2221
2222 2020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2225 after creating it, instead of writing to inferior_ptid. Don't
2226 write to inferior_ptid.
2227
2228 2020-06-18 Pedro Alves <palves@redhat.com>
2229
2230 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2231
2232 2020-06-18 Pedro Alves <palves@redhat.com>
2233
2234 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2235 it, instead of writing to inferior_ptid.
2236
2237 2020-06-18 Pedro Alves <palves@redhat.com>
2238
2239 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2240 to inferior_ptid.
2241
2242 2020-06-18 Pedro Alves <palves@redhat.com>
2243
2244 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2245 instead of writing to inferior_ptid directly.
2246
2247 2020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 * corelow.c (core_target::close): Use switch_to_no_thread instead
2250 of writing to inferior_ptid directly.
2251 (add_to_thread_list, core_target_open): Use switch_to_thread
2252 instead of writing to inferior_ptid directly.
2253
2254 2020-06-18 Pedro Alves <palves@redhat.com>
2255
2256 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2257 inferior_ptid.
2258 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2259 inferior_ptid.
2260 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2261 inferior_ptid directly.
2262 (darwin_nat_target::init_thread_list): Switch to thread, instead
2263 of writing to inferior_ptid.
2264 (darwin_nat_target::attach): Don't write to inferior_ptid.
2265 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2266
2267 2020-06-18 Pedro Alves <palves@redhat.com>
2268
2269 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2270 thread.
2271 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2272 Instead use switch_to_thread.
2273 (gnu_nat_target::detach): Use switch_to_no_thread
2274 instead of writing to inferior_ptid directly. Used passed-in
2275 inferior instead of looking up the inferior by pid.
2276
2277 2020-06-18 Pedro Alves <palves@redhat.com>
2278
2279 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2280 inferior_ptid.
2281
2282 2020-06-18 Pedro Alves <palves@redhat.com>
2283
2284 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2285 inferior_ptid.
2286 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2287 thread.
2288 (nto_procfs_target::detach): Avoid referencing
2289 inferior_ptid. Use switch_to_no_thread instead of writing to
2290 inferior_ptid directly.
2291 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2292 instead of writing to inferior_ptid directly.
2293 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2294 to thread.
2295
2296 2020-06-18 Pedro Alves <palves@redhat.com>
2297
2298 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2299 after creating it, instead of writing to inferior_ptid.
2300 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2301 to inferior_ptid directly.
2302 (gdbsim_target::wait): Don't write to inferior_ptid.
2303
2304 2020-06-18 Pedro Alves <palves@redhat.com>
2305
2306 * remote.c (remote_target::remote_notice_new_inferior): Use
2307 switch_to_thread instead of writing to inferior_ptid directly.
2308 (remote_target::add_current_inferior_and_thread): Use
2309 switch_to_no_thread instead of writing to inferior_ptid directly.
2310 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2311 and switch_to_thread instead of using set_current_inferior or
2312 writing to inferior_ptid directly.
2313
2314 2020-06-18 Pedro Alves <palves@redhat.com>
2315
2316 * tracectf.c (ctf_target_open): Switch to added thread instead of
2317 writing to inferior_ptid directly.
2318 (ctf_target::close): Use switch_to_no_thread instead of writing to
2319 inferior_ptid directly.
2320
2321 2020-06-18 Pedro Alves <palves@redhat.com>
2322
2323 * tracefile-tfile.c (tfile_target_open): Don't write to
2324 inferior_ptid directly, instead switch to added thread.
2325 (tfile_target::close): Use switch_to_no_thread instead of writing
2326 to inferior_ptid directly.
2327
2328 2020-06-18 Pedro Alves <palves@redhat.com>
2329
2330 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2331 (procfs_target::detach): Use switch_to_no_thread
2332 instead of writing to inferior_ptid directly.
2333 (do_attach): Change return type to void. Switch to the added
2334 thread.
2335 (procfs_target::create_inferior): Switch to the added thread.
2336 (procfs_do_thread_registers): Don't write to inferior_ptid.
2337
2338 2020-06-18 Pedro Alves <palves@redhat.com>
2339
2340 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2341 of writing to inferior_ptid.
2342 (scoped_restore_exited_inferior): Delete.
2343 (handle_vfork_child_exec_or_exit): Simplify using
2344 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2345 instead of writing to inferior_ptid.
2346 (THREAD_STOPPED_BY): Delete.
2347 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2348 (thread_stopped_by_hw_breakpoint): Delete.
2349 (save_waitstatus): Use
2350 scoped_restore_current_thread+switch_to_thread, and call
2351 target_stopped_by_watchpoint instead of
2352 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2353 instead of thread_stopped_by_sw_breakpoint, and
2354 target_stopped_by_hw_breakpoint instead of
2355 thread_stopped_by_hw_breakpoint.
2356 (handle_inferior_event)
2357 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2358 inferior_ptid directly, nor
2359 set_current_inferior/set_current_program_space. Use
2360 switch_to_thread / switch_to_inferior_no_thread instead.
2361
2362 2020-06-18 Pedro Alves <palves@redhat.com>
2363
2364 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2365 instead of writing to inferior_ptid.
2366
2367 2020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2370 added thread.
2371 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2372 to the added thread.
2373 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2374 instead of writing to inferior_ptid.
2375
2376 2020-06-18 Pedro Alves <palves@redhat.com>
2377
2378 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2379 (register_to_value_test): Mock a program_space too. Heap-allocate
2380 the address space. Don't write to inferior_ptid. Use
2381 switch_to_thread instead.
2382
2383 2020-06-18 Pedro Alves <palves@redhat.com>
2384
2385 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2386 Delete.
2387 (find_signalled_thread()): New, factored out from
2388 linux_make_corefile_notes and adjusted to handle exited threads.
2389 (linux_make_corefile_notes): Adjust to use the new
2390 find_signalled_thread.
2391
2392 2020-06-18 Pedro Alves <palves@redhat.com>
2393
2394 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2395 of saving/restoring inferior_ptid.
2396
2397 2020-06-17 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2400 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2401 declare.
2402 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2403
2404 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2407 of partial symtabs.
2408
2409 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2410
2411 * regformats/reg-arm.dat: Remove.
2412 * regformats/reg-bfin.dat: Remove.
2413 * regformats/reg-cris.dat: Remove.
2414 * regformats/reg-crisv32.dat: Remove.
2415 * regformats/reg-m32r.dat: Remove.
2416 * regformats/reg-tilegx.dat: Remove.
2417 * regformats/reg-tilegx32.dat: Remove.
2418
2419 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * features/Makefile (WHICH): Remove arm files.
2422 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2423 * regformats/arm/arm-with-neon.dat: Remove.
2424 * regformats/arm/arm-with-vfpv2.dat: Remove.
2425 * regformats/arm/arm-with-vfpv3.dat: Remove.
2426
2427 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * features/Makefile (XMLTOC): Remove rx.xml.
2430
2431 2020-06-17 Pedro Alves <palves@redhat.com>
2432
2433 * gdbthread.h (thread_control_state) <trap_expected> Update
2434 comments.
2435
2436 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2439 ada_language::lookup_symbol_nonlocal.
2440 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2441 (ada_language::lookup_symbol_nonlocal): New member function,
2442 implementation from ada_lookup_symbol_nonlocal.
2443 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2444 initializer.
2445 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2446 initializer.
2447 (cplus_language::lookup_symbol_nonlocal): New member function.
2448 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2449 (minimal_language_data) Likewise.
2450 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2451 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2452 initializer.
2453 (d_language::lookup_symbol_nonlocal): New member function.
2454 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2455 initializer.
2456 (f_language::lookup_symbol_nonlocal): New member function.
2457 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2458 initializer.
2459 * language.c (unknown_language_data): Likewise.
2460 (auto_language_data): Likewise.
2461 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2462 field.
2463 (language_defn::lookup_symbol_nonlocal): New member function.
2464 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2465 initializer.
2466 * objc-lang.c (objc_language_data): Likewise.
2467 * opencl-lang.c (opencl_language_data): Likewise.
2468 * p-lang.c (pascal_language_data): Likewise.
2469 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2470 rust_language::lookup_symbol_nonlocal.
2471 (rust_language_data): Delete la_lookup_symbol_nonlocal
2472 initializer.
2473 (rust_language::lookup_symbol_nonlocal): New member function,
2474 implementation from rust_lookup_symbol_nonlocal.
2475 * symtab.c (lookup_symbol_aux): Update call to
2476 lookup_symbol_nonlocal.
2477 (basic_lookup_symbol_nonlocal): Rename to...
2478 (language_defn::lookup_symbol_nonlocal): ...this, and update
2479 header comment. Remove language_defn parameter, and replace with
2480 uses of `this'.
2481 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2482
2483 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2486 initializer.
2487 (ada_language::value_print_inner): New member function.
2488 * c-lang.c (c_language_data): Delete la_value_print_inner
2489 initializer.
2490 (cplus_language_data): Likewise.
2491 (asm_language_data): Likewise.
2492 (minimal_language_data): Likewise.
2493 * d-lang.c (d_language_data): Likewise.
2494 (d_language::value_print_inner): New member function.
2495 * f-lang.c (f_language_data): Delete la_value_print_inner
2496 initializer.
2497 (f_language::value_print_inner): New member function.
2498 * f-lang.h (f_value_print_innner): Rename to...
2499 (f_value_print_inner): ...this (note spelling of 'inner').
2500 * f-valprint.c (f_value_print_innner): Rename to...
2501 (f_value_print_inner): ...this (note spelling of 'inner').
2502 * go-lang.c (go_language_data): Delete la_value_print_inner
2503 initializer.
2504 (go_language::value_print_inner): New member function.
2505 * language.c (language_defn::value_print_inner): Define new member
2506 function.
2507 (unk_lang_value_print_inner): Delete.
2508 (unknown_language_data): Delete la_value_print_inner initializer.
2509 (unknown_language::value_print_inner): New member function.
2510 (auto_language_data): Delete la_value_print_inner initializer.
2511 (auto_language::value_print_inner): New member function.
2512 * language.h (language_data): Delete la_value_print_inner field.
2513 (language_defn::value_print_inner): Delcare new member function.
2514 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2515 initializer.
2516 (m2_language::value_print_inner): New member function.
2517 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2518 initializer.
2519 * opencl-lang.c (opencl_language_data): Likewise.
2520 * p-lang.c (pascal_language_data): Likewise.
2521 (pascal_language::value_print_inner): New member function.
2522 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2523 initializer.
2524 (rust_language::value_print_inner): New member function.
2525 * valprint.c (do_val_print): Update call to value_print_inner.
2526
2527 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * ada-lang.c (ada_language_data): Delete la_value_print
2530 initializer.
2531 (ada_language::value_print): New member function.
2532 * c-lang.c (c_language_data): Delete la_value_print initializer.
2533 (cplus_language_data): Likewise.
2534 (asm_language_data): Likewise.
2535 (minimal_language_data): Likewise.
2536 * d-lang.c (d_language_data): Likewise.
2537 * f-lang.c (f_language_data): Likewise.
2538 * go-lang.c (go_language_data): Likewise.
2539 * language.c (unk_lang_value_print): Delete.
2540 (language_defn::value_print): Define new member function.
2541 (unknown_language_data): Delete la_value_print initializer.
2542 (unknown_language::value_print): New member function.
2543 (auto_language_data): Delete la_value_print initializer.
2544 (auto_language::value_print): New member function.
2545 * language.h (language_data): Delete la_value_print field.
2546 (language_defn::value_print): Declare new member function.
2547 (LA_VALUE_PRINT): Update call to value_print.
2548 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2549 * objc-lang.c (objc_language_data): Likewise.
2550 * opencl-lang.c (opencl_language_data): Likewise.
2551 * p-lang.c (pascal_language_data): Likewise.
2552 (pascal_language::value_print): New member function.
2553 * rust-lang.c (rust_language_data): Delete la_value_print
2554 initializer.
2555
2556 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * ada-lang.c (ada_watch_location_expression): Rename to
2559 ada_language::watch_location_expression.
2560 (ada_language_data): Delete la_watch_location_expression
2561 initializer.
2562 (ada_language::watch_location_expression): New member function,
2563 implementation from ada_watch_location_expression.
2564 * breakpoint.c (watch_command_1): Update call to
2565 watch_location_expression.
2566 * c-lang.c (c_watch_location_expression): Rename to
2567 language_defn::watch_location_expression.
2568 (c_language_data): Delete la_watch_location_expression
2569 initializer.
2570 (cplus_language_data): Likewise.
2571 (asm_language_data): Likewise.
2572 (minimal_language_data): Likewise.
2573 * c-lang.h (c_watch_location_expression): Delete declaration.
2574 * d-lang.c (d_language_data): Delete la_watch_location_expression
2575 initializer.
2576 * f-lang.c (f_language_data): Likewise.
2577 * go-lang.c (go_language_data): Likewise.
2578 * language.c (language_defn::watch_location_expression): Member
2579 function implementation from c_watch_location_expression.
2580 (unknown_language_data): Delete la_watch_location_expression
2581 initializer.
2582 (auto_language_data): Likewise.
2583 * language.h (language_data): Delete la_watch_location_expression
2584 field.
2585 (language_defn::watch_location_expression): Declare new member
2586 function.
2587 * m2-lang.c (m2_language_data): Delete
2588 la_watch_location_expression initializer.
2589 * objc-lang.c (objc_language_data): Likewise.
2590 * opencl-lang.c (opencl_language_data): Likewise.
2591 * p-lang.c (pascal_language_data): Likewise.
2592 * rust-lang.c (rust_watch_location_expression): Rename to
2593 rust_language::watch_location_expression.
2594 (rust_language_data): Delete la_watch_location_expression
2595 initializer.
2596 (rust_language::watch_location_expression): New member function,
2597 implementation from rust_watch_location_expression.
2598
2599 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2602 ada_language::collect_symbol_completion_matches.
2603 (ada_language_data): Delete la_collect_symbol_completion_matches
2604 initializer.
2605 (ada_language::collect_symbol_completion_matches): New member
2606 function, implementation from
2607 ada_collect_symbol_completion_matches.
2608 * c-lang.c (c_language_data): Delete
2609 la_collect_symbol_completion_matches initializer.
2610 (cplus_language_data): Likewise.
2611 (asm_language_data): Likewise.
2612 (minimal_language_data): Likewise.
2613 * d-lang.c (d_language_data): Likewise.
2614 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2615 f_language::collect_symbol_completion_matches.
2616 (f_language_data): Delete la_collect_symbol_completion_matches
2617 initializer.
2618 (f_language::collect_symbol_completion_matches) New member
2619 function, implementation from f_collect_symbol_completion_matches.
2620 * go-lang.c (go_language_data): Delete
2621 la_collect_symbol_completion_matches initializer.
2622 * language.c (unknown_language_data): Likewise.
2623 (auto_language_data): Likewise.
2624 * language.h (language_data): Delete
2625 la_collect_symbol_completion_matches field.
2626 (language_defn::collect_symbol_completion_matches): New member
2627 function.
2628 * m2-lang.c (m2_language_data): Delete
2629 la_collect_symbol_completion_matches initializer.
2630 * objc-lang.c (objc_language_data): Likewise.
2631 * opencl-lang.c (opencl_language_data): Likewise.
2632 * p-lang.c (pascal_language_data): Likewise.
2633 * rust-lang.c (rust_language_data): Likewise.
2634 * symtab.c (default_collect_symbol_completion_matches): Delete.
2635 (collect_symbol_completion_matches): Update call to
2636 collect_symbol_completion_matches.
2637 (collect_symbol_completion_matches_type): Likewise.
2638 * symtab.h (default_collect_symbol_completion_matches): Delete
2639 declaration.
2640
2641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2644 (ada_language_data): Delete la_word_break_characters initializer.
2645 (ada_language::word_break_characters): New member function.
2646 * c-lang.c (c_language_data): Delete la_word_break_characters
2647 initializer.
2648 (cplus_language_data): Likewise.
2649 (asm_language_data): Likewise.
2650 (minimal_language_data): Likewise.
2651 * completer.c: Update global comment.
2652 (advance_to_expression_complete_word_point): Update call to
2653 word_break_characters.
2654 (complete_files_symbols): Likewise.
2655 (complete_line_internal_1): Likewise.
2656 (default_completer_handle_brkchars): Likewise.
2657 (skip_quoted_chars): Likewise.
2658 * d-lang.c (d_language_data): Delete la_word_break_characters
2659 initializer.
2660 * f-lang.c (f_word_break_characters): Delete.
2661 (f_language_data): Delete la_word_break_characters initializer.
2662 (f_language::word_break_characters): New member function.
2663 * go-lang.c (go_language_data): Delete la_word_break_characters
2664 initializer.
2665 * language.c (unknown_language_data): Likewise.
2666 (auto_language_data): Likewise.
2667 * language.h (default_word_break_characters): Move declaration to
2668 earlier in the file.
2669 (language_data): Delete la_word_break_characters field.
2670 (language_defn::word_break_characters): New member function.
2671 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2672 initializer.
2673 * objc-lang.c (objc_language_data): Likewise.
2674 * opencl-lang.c (opencl_language_data): Likewise.
2675 * p-lang.c (pascal_language_data): Likewise.
2676 * rust-lang.c (rust_language_data): Likewise.
2677
2678 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2681 (ada_language_data): Delete la_get_symbol_name_matcher
2682 initializer.
2683 (language_defn::get_symbol_name_matcher_inner): New member
2684 function.
2685 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2686 initializer.
2687 (cplus_language_data): Likewise.
2688 (cplus_language::get_symbol_name_matcher_inner): New member
2689 function.
2690 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2691 (minimal_language_data): Likewise.
2692 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2693 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2694 initializer.
2695 * dictionary.c (iter_match_first_hashed): Update call to
2696 get_symbol_name_matcher.
2697 (iter_match_next_hashed): Likewise.
2698 (iter_match_next_linear): Likewise.
2699 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2700 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2701 initializer.
2702 (f_language::get_symbol_name_matcher_inner): New member function.
2703 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2704 initializer.
2705 * language.c (default_symbol_name_matcher): Update header comment,
2706 make static.
2707 (language_defn::get_symbol_name_matcher): New definition.
2708 (language_defn::get_symbol_name_matcher_inner): Likewise.
2709 (get_symbol_name_matcher): Delete.
2710 (unknown_language_data): Delete la_get_symbol_name_matcher
2711 initializer.
2712 (auto_language_data): Likewise.
2713 * language.h (language_data): Delete la_get_symbol_name_matcher
2714 field.
2715 (language_defn::get_symbol_name_matcher): New member function.
2716 (language_defn::get_symbol_name_matcher_inner): Likewise.
2717 (default_symbol_name_matcher): Delete declaration.
2718 * linespec.c (find_methods): Update call to
2719 get_symbol_name_matcher.
2720 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2721 initializer.
2722 * minsyms.c (lookup_minimal_symbol): Update call to
2723 get_symbol_name_matcher.
2724 (iterate_over_minimal_symbols): Likewise.
2725 * objc-lang.c (objc_language_data): Delete
2726 la_get_symbol_name_matcher initializer.
2727 * opencl-lang.c (opencl_language_data): Likewise.
2728 * p-lang.c (pascal_language_data): Likewise.
2729 * psymtab.c (psymbol_name_matches): Update call to
2730 get_symbol_name_matcher.
2731 * rust-lang.c (rust_language_data): Delete
2732 la_get_symbol_name_matcher initializer.
2733 * symtab.c (symbol_matches_search_name): Update call to
2734 get_symbol_name_matcher.
2735 (compare_symbol_name): Likewise.
2736
2737 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * ada-lang.c (ada_language_data): Delete la_compute_program
2740 initializer.
2741 * c-lang.c (c_language_data): Likewise.
2742 (c_language::compute_program): New member function.
2743 (cplus_language_data): Delete la_compute_program initializer.
2744 (cplus_language::compute_program): New member function.
2745 (asm_language_data): Delete la_compute_program initializer.
2746 (minimal_language_data): Likewise.
2747 * c-lang.h (c_compute_program): Update comment.
2748 (cplus_compute_program): Likewise.
2749 * compile/compile-c-support.c (c_compute_program): Likewise.
2750 (cplus_compute_program): Likewise.
2751 * compile/compile.c (compile_to_object): Update call to
2752 la_compute_program.
2753 * d-lang.c (d_language_data): Delete la_compute_program
2754 initializer.
2755 * f-lang.c (f_language_data): Likewise.
2756 * go-lang.c (go_language_data): Likewise.
2757 * language.c (unknown_language_data): Likewise.
2758 (auto_language_data): Likewise.
2759 * language.h (language_data): Delete la_compute_program field.
2760 (language_defn::compute_program): New member function.
2761 * m2-lang.c (m2_language_data): Delete la_compute_program
2762 initializer.
2763 * objc-lang.c (objc_language_data): Likewise.
2764 * opencl-lang.c (opencl_language_data): Likewise.
2765 * p-lang.c (pascal_language_data): Likewise.
2766 * rust-lang.c (rust_language_data): Likewise.
2767
2768 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * ada-lang.c (ada_language_data) Delete
2771 la_class_name_from_physname initializer.
2772 * c-lang.c (c_language_data): Likewise.
2773 (cplus_language_data): Likewise.
2774 (cplus_language::class_name_from_physname): New member function.
2775 (asm_language_data): Delete la_class_name_from_physname
2776 initializer.
2777 (minimal_language_data): Likewise.
2778 * d-lang.c (d_language_data): Likewise.
2779 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2780 method on language_defn class.
2781 (guess_full_die_structure_name): Likewise.
2782 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2783 initializer.
2784 * go-lang.c (go_language_data): Likewise.
2785 * language.c (language_class_name_from_physname): Delete.
2786 (unk_lang_class_name): Delete.
2787 (unknown_language_data): Delete la_class_name_from_physname
2788 initializer.
2789 (auto_language_data): Likewise.
2790 * language.h (language_data): Delete la_class_name_from_physname
2791 field.
2792 (language_defn::class_name_from_physname): New function.
2793 (language_class_name_from_physname): Delete declaration.
2794 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2795 initializer.
2796 * objc-lang.c (objc_language_data): Likewise.
2797 * opencl-lang.c (opencl_language_data): Likewise.
2798 * p-lang.c (pascal_language_data): Likewise.
2799 * rust-lang.c (rust_language_data): Likewise.
2800
2801 2020-06-16 Tom Tromey <tom@tromey.com>
2802
2803 * tui/tui-data.h (STATUS_NAME): New macro.
2804 * tui/tui-layout.c (tui_remove_some_windows)
2805 (initialize_known_windows, tui_register_window)
2806 (tui_layout_split::remove_windows, initialize_layouts)
2807 (tui_new_layout_command): Don't use hard-coded window names.
2808
2809 2020-06-16 Tom Tromey <tom@tromey.com>
2810
2811 PR tui/25348:
2812 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2813 tui_initialize_readline. Only run once. Call rl_initialize.
2814 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2815 tui_initialize_readline.
2816 * tui/tui-io.c (tui_setup_io): Call
2817 tui_ensure_readline_initialized.
2818 * tui/tui-interp.c (tui_interp::init): Update.
2819
2820 2020-06-16 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2823 Also preserve the status window.
2824
2825 2020-06-16 Tom Tromey <tom@tromey.com>
2826
2827 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2828 where m_window==nullptr.
2829
2830 2020-06-15 Tom Tromey <tromey@adacore.com>
2831
2832 * windows-nat.c (windows_nat::handle_output_debug_string):
2833 Update.
2834 (windows_nat::handle_ms_vc_exception): Update.
2835 * target.h (target_read_string): Change API.
2836 * target.c (target_read_string): Change API.
2837 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2838 Update.
2839 * solib-frv.c (frv_current_sos): Update.
2840 * solib-dsbt.c (dsbt_current_sos): Update.
2841 * solib-darwin.c (darwin_current_sos): Update.
2842 * linux-thread-db.c (inferior_has_bug): Update.
2843 * expprint.c (print_subexp_standard): Update.
2844 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2845 (ada_exception_message_1): Update.
2846
2847 2020-06-15 Tom Tromey <tromey@adacore.com>
2848
2849 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2850
2851 2020-06-15 Tom Tromey <tromey@adacore.com>
2852
2853 * valprint.c (read_string): Update comment.
2854 * target.c (MIN): Remove.
2855 (target_read_string): Rewrite.
2856
2857 2020-06-15 Tom Tromey <tromey@adacore.com>
2858
2859 * corefile.c (read_memory_string): Remove.
2860 * ada-valprint.c (ada_value_print_ptr): Update.
2861 * ada-lang.h (ada_tag_name): Change return type.
2862 * ada-lang.c (type_from_tag): Update.
2863 (ada_tag_name_from_tsd): Change return type. Use
2864 target_read_string.
2865 (ada_tag_name): Likewise.
2866 * gdbcore.h (read_memory_string): Don't declare.
2867
2868 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2869
2870 * symtab.c (rbreak_command): Ignore Windows drive colon.
2871
2872 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * NEWS: Mention removed GDBserver host support.
2875
2876 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2877
2878 * features/riscv/rebuild-csr-xml.sh: Updated.
2879
2880 2020-06-11 Tom Tromey <tom@tromey.com>
2881
2882 PR gdb/18318:
2883 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2884
2885 2020-06-09 Jonny Grant <jg@jguk.org>
2886 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * main.c (captured_main_1): Don't print new line after help.
2889 (print_gdb_help): add mailing list and IRC channel information
2890 to --help. Add new lines between items in the footer. Remove
2891 quotes around bug url.
2892
2893 2020-06-11 Keith Seitz <keiths@redhat.com>
2894
2895 PR gdb/21356
2896 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2897 Resolve typedefs for type length calculations.
2898
2899 2020-06-10 Tom de Vries <tdevries@suse.de>
2900
2901 PR ada/24713
2902 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2903 (write_psymbols): Enable .gdb_index for ada.
2904 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2905 ada.
2906
2907 2020-06-10 Tom de Vries <tdevries@suse.de>
2908
2909 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2910 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2911 namei" instead of "const char *name" argument.
2912 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2913 dw2_symtab_iter_init.
2914
2915 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2916
2917 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2918 to use type::field and field::type instead.
2919
2920 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2923 to use field::type instead.
2924
2925 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2926
2927 * gdbtypes.h (struct field) <type, set_type>: New methods.
2928 Rename `type` field to...
2929 <m_type>: ... this. Change references throughout to use type or
2930 set_type methods.
2931 (FIELD_TYPE): Use field::type. Change call sites that modify
2932 the field's type to use field::set_type instead.
2933
2934 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2937 to use type::index_type instead.
2938
2939 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2942 methods.
2943 (TYPE_INDEX_TYPE): Use type::index_type.
2944 * gdbtypes.c (create_array_type_with_stride): Likewise.
2945
2946 2020-06-07 Tom Tromey <tom@tromey.com>
2947
2948 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2949 parameter.
2950 (generic_value_print): Update.
2951
2952 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 Revert commit 982a38f60b0.
2955 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2956
2957 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2960 avoid use after free.
2961
2962 2020-06-05 Tom de Vries <tdevries@suse.de>
2963
2964 * NEWS: Fix typos.
2965
2966 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2969 the per_bfd object.
2970 (dwarf2_read_debug_names): Likewise.
2971 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2972 object when re-using a per_bfd object with an index.
2973
2974 2020-06-03 Tom de Vries <tdevries@suse.de>
2975
2976 PR symtab/26046
2977 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2978 children for C++.
2979 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2980 DW_TAG_subprogram.
2981
2982 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * ada-lang.c (ada_language_data): Delete skip_trampoline
2985 initializer.
2986 * c-lang.c (c_language_data): Likewise.
2987 (cplus_language_data): Likewise.
2988 (cplus_language::skip_trampoline): New member function.
2989 (asm_language_data): Delete skip_trampoline initializer.
2990 (minimal_language_data): Likewise.
2991 * d-lang.c (d_language_data): Likewise.
2992 * f-lang.c (f_language_data): Likewise.
2993 * go-lang.c (go_language_data): Likewise.
2994 * language.c (unk_lang_trampoline): Delete function.
2995 (skip_language_trampoline): Update.
2996 (unknown_language_data): Delete skip_trampoline initializer.
2997 (auto_language_data): Likewise.
2998 * language.h (language_data): Delete skip_trampoline field.
2999 (language_defn::skip_trampoline): New function.
3000 * m2-lang.c (m2_language_data): Delete skip_trampoline
3001 initializer.
3002 * objc-lang.c (objc_skip_trampoline): Delete function, move
3003 implementation to objc_language::skip_trampoline.
3004 (objc_language_data): Delete skip_trampoline initializer.
3005 (objc_language::skip_trampoline): New member function with
3006 implementation from objc_skip_trampoline.
3007 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3008 initializer.
3009 * p-lang.c (pascal_language_data): Likewise.
3010 * rust-lang.c (rust_language_data): Likewise.
3011
3012 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3013
3014 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3015 (ada_language::demangle): New member function.
3016 * c-lang.c (c_language_data): Delete la_demangle initializer.
3017 (cplus_language_data): Delete la_demangle initializer.
3018 (cplus_language::demangle): New member function.
3019 (asm_language_data): Delete la_demangle initializer.
3020 (minimal_language_data): Delete la_demangle initializer.
3021 * d-lang.c (d_language_data): Delete la_demangle initializer.
3022 (d_language::demangle): New member function.
3023 * f-lang.c (f_language_data): Delete la_demangle initializer.
3024 (f_language::demangle): New member function.
3025 * go-lang.c (go_language_data): Delete la_demangle initializer.
3026 (go_language::demangle): New member function.
3027 * language.c (language_demangle): Update.
3028 (unk_lang_demangle): Delete.
3029 (unknown_language_data): Delete la_demangle initializer.
3030 (unknown_language::demangle): New member function.
3031 (auto_language_data): Delete la_demangle initializer.
3032 (auto_language::demangle): New member function.
3033 * language.h (language_data): Delete la_demangle field.
3034 (language_defn::demangle): New function.
3035 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3036 * objc-lang.c (objc_language_data): Delete la_demangle
3037 initializer.
3038 (objc_language::demangle): New member function.
3039 * opencl-lang.c (opencl_language_data): Delete la_demangle
3040 initializer.
3041 * p-lang.c (pascal_language_data): Likewise.
3042 * rust-lang.c (rust_language_data): Likewise.
3043 (rust_language::demangle): New member function.
3044
3045 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * ada-lang.c (ada_language_data): Delete la_print_type
3048 initializer.
3049 (ada_language::print_type): New member function.
3050 * c-lang.c (c_language_data): Delete la_print_type initializer.
3051 (c_language::print_type): New member function.
3052 (cplus_language_data): Delete la_print_type initializer.
3053 (cplus_language::print_type): New member function.
3054 (asm_language_data): Delete la_print_type initializer.
3055 (asm_language::print_type): New member function.
3056 (minimal_language_data): Delete la_print_type initializer.
3057 (minimal_language::print_type): New member function.
3058 * d-lang.c (d_language_data): Delete la_print_type initializer.
3059 (d_language::print_type): New member function.
3060 * f-lang.c (f_language_data): Delete la_print_type initializer.
3061 (f_language::print_type): New member function.
3062 * go-lang.c (go_language_data): Delete la_print_type initializer.
3063 (go_language::print_type): New member function.
3064 * language.c (unk_lang_print_type): Delete.
3065 (unknown_language_data): Delete la_print_type initializer.
3066 (unknown_language::print_type): New member function.
3067 (auto_language_data): Delete la_print_type initializer.
3068 (auto_language::print_type): New member function.
3069 * language.h (language_data): Delete la_print_type field.
3070 (language_defn::print_type): New function.
3071 (LA_PRINT_TYPE): Update.
3072 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3073 (m2_language::print_type): New member function.
3074 * objc-lang.c (objc_language_data): Delete la_print_type
3075 initializer.
3076 (objc_language::print_type): New member function.
3077 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3078 to opencl_language::print_type.
3079 (opencl_language_data): Delete la_print_type initializer.
3080 (opencl_language::print_type): New member function, implementation
3081 from opencl_print_type.
3082 * p-lang.c (pascal_language_data): Delete la_print_type
3083 initializer.
3084 (pascal_language::print_type): New member function.
3085 * rust-lang.c (rust_print_type): Delete, implementation moved to
3086 rust_language::print_type.
3087 (rust_language_data): Delete la_print_type initializer.
3088 (rust_language::print_type): New member function, implementation
3089 from rust_print_type.
3090
3091 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3094 implementation moves to...
3095 (ada_language::sniff_from_mangled_name): ...here. Update return
3096 type.
3097 (ada_language_data): Delete la_sniff_from_mangled_name
3098 initializer.
3099 * c-lang.c (c_language_data): Likewise.
3100 (cplus_language_data): Likewise.
3101 (cplus_language::sniff_from_mangled_name): New member function,
3102 implementation taken from gdb_sniff_from_mangled_name.
3103 (asm_language_data): Delete la_sniff_from_mangled_name
3104 initializer.
3105 (minimal_language_data): Likewise.
3106 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3107 implementation moves to cplus_language::sniff_from_mangled_name.
3108 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3109 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3110 moves to...
3111 (d_language::sniff_from_mangled_name): ...here.
3112 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3113 * f-lang.c (f_language_data): Likewise.
3114 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3115 moves to...
3116 (go_language::sniff_from_mangled_name): ...here.
3117 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3118 * language.c (language_sniff_from_mangled_name): Delete.
3119 (unknown_language_data): Delete la_sniff_from_mangled_name
3120 initializer.
3121 (auto_language_data): Likewise.
3122 * language.h (language_data): Delete la_sniff_from_mangled_name
3123 field.
3124 (language_defn::sniff_from_mangled_name): New function.
3125 (language_sniff_from_mangled_name): Delete declaration.
3126 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3127 field.
3128 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3129 implementation moves to...
3130 (objc_language::sniff_from_mangled_name): ...here.
3131 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3132 * opencl-lang.c (opencl_language_data): Likewise.
3133 * p-lang.c (pascal_language_data): Likewise.
3134 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3135 implementation moves to...
3136 (rust_language::sniff_from_mangled_name): ...here.
3137 (rust_language_data): Delete la_sniff_from_mangled_name
3138 initializer.
3139 * symtab.c (symbol_find_demangled_name): Call
3140 sniff_from_mangled_name member function.
3141
3142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3145 initializer.
3146 * c-lang.c (c_language_data): Likewise.
3147 (cplus_language_data): Likewise.
3148 (cplus_language::search_name_hash): New member function.
3149 (asm_language_data): Delete la_search_name_hash initializer.
3150 (minimal_language_data): Likewise.
3151 * d-lang.c (d_language_data): Likewise.
3152 * dictionary.c (default_search_name_hash): Rename to...
3153 (language_defn::search_name_hash): ...this.
3154 * f-lang.c (f_language_data): Likewise.
3155 (f_language::search_name_hash): New member function.
3156 * go-lang.c (go_language_data): Delete la_search_name_hash
3157 initializer.
3158 * language.c (unknown_language_data): Likewise.
3159 (auto_language_data): Likewise.
3160 * language.h (struct language_data): Delete la_search_name_hash
3161 field.
3162 (language_defn::search_name_hash): Declare new member function.
3163 (default_search_name_hash): Delete declaration.
3164 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3165 initializer.
3166 * objc-lang.c (objc_language_data): Likewise.
3167 * opencl-lang.c (opencl_language_data): Likewise.
3168 * p-lang.c (pascal_language_data): Likewise.
3169 * rust-lang.c (rust_language_data): Likewise.
3170 * symtab.c (search_name_hash): Update call.
3171
3172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3175 initializer.
3176 * c-lang.c (class compile_instance): Declare.
3177 (c_language_data): Delete la_get_compile_instance initializer.
3178 (c_language::get_compile_instance): New member function.
3179 (cplus_language_data): Delete la_get_compile_instance initializer.
3180 (cplus_language::get_compile_instance): New member function.
3181 (asm_language_data): Delete la_get_compile_instance initializer.
3182 (minimal_language_data): Likewise.
3183 * c-lang.h (c_get_compile_context): Update comment.
3184 (cplus_get_compile_context): Update comment.
3185 * compile/compile.c (compile_to_object): Update calls, don't rely
3186 on function pointer being NULL.
3187 * d-lang.c (d_language_data): Delete la_get_compile_instance
3188 initializer.
3189 * f-lang.c (f_language_data): Likewise.
3190 * go-lang.c (go_language_data): Likewise.
3191 * language.c (unknown_language_data): Likewise.
3192 (auto_language_data): Likewise.
3193 * language.h (language_data): Delete la_get_compile_instance field.
3194 (language_defn::get_compile_instance): New member function.
3195 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3196 initializer.
3197 * objc-lang.c (objc_language_data): Likewise.
3198 * opencl-lang.c (opencl_language_data): Likewise.
3199 * p-lang.c (pascal_language_data): Likewise.
3200 * rust-lang.c (rust_language_data): Likewise.
3201
3202 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * ada-lang.c (ada_add_all_symbols): Update comment.
3205 (ada_iterate_over_symbols): Delete, move implementation to...
3206 (ada_language::iterate_over_symbols): ...here, a new member
3207 function, rewrite to use range based for loop.
3208 (ada_language_data): Delete la_iterate_over_symbols initializer.
3209 * c-lang.c (c_language_data): Likewise.
3210 (cplus_language_data): Likewise.
3211 (asm_language_data): Likewise.
3212 (minimal_language_data): Likewise.
3213 * d-lang.c (d_language_data): Likewise.
3214 * f-lang.c (f_language_data): Likewise.
3215 * go-lang.c (go_language_data): Likewise.
3216 * language.c (unknown_language_data): Likewise.
3217 (auto_language_data): Likewise.
3218 * language.h (language_data): Delete la_iterate_over_symbols field.
3219 (language_defn::iterate_over_symbols): New member function.
3220 (LA_ITERATE_OVER_SYMBOLS): Update.
3221 * linespec.c (iterate_over_all_matching_symtabs): Update.
3222 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3223 initializer.
3224 * objc-lang.c (objc_language_data): Likewise.
3225 * opencl-lang.c (opencl_language_data): Likewise.
3226 * p-lang.c (pascal_language_data): Likewise.
3227 * rust-lang.c (rust_language_data): Likewise.
3228
3229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * ada-lang.c (ada_language_data): Delete
3232 la_lookup_transparent_type initializer.
3233 * c-lang.c (c_language_data): Likewise.
3234 (cplus_language_data): Likewise.
3235 (cplus_language::lookup_transparent_type): New member function.
3236 (asm_language_data): Delete la_lookup_transparent_type
3237 initializer.
3238 (minimal_language_data): Likewise.
3239 * d-lang.c (d_language_data): Likewise.
3240 * f-lang.c (f_language_data): Likewise.
3241 * go-lang.c (go_language_data): Likewise.
3242 * language.c (unknown_language_data): Likewise.
3243 (auto_language_data): Likewise.
3244 * language.h (struct language_data): Delete
3245 la_lookup_transparent_type field.
3246 (language_defn::lookup_transparent_type): New member function.
3247 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3248 initializer.
3249 * objc-lang.c (objc_language_data): Likewise.
3250 * opencl-lang.c (opencl_language_data): Likewise.
3251 * p-lang.c (pascal_language_data): Likewise.
3252 * rust-lang.c (rust_language_data): Likewise.
3253 * symtab.c (symbol_matches_domain): Update call.
3254
3255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_arch_info): Delete function, move
3258 implementation to...
3259 (ada_language::language_arch_info): ...here, a new member
3260 function.
3261 (ada_language_data): Delete la_language_arch_info.
3262 * c-lang.c (c_language_data): Likewise.
3263 (c_language::language_arch_info): New member function.
3264 (cplus_language_arch_info): Delete function, move
3265 implementation to...
3266 (cplus_language::language_arch_info): ...here, a new member
3267 function.
3268 (cplus_language_data): Delete la_language_arch_info.
3269 (asm_language_data): Likewise.
3270 (asm_language::language_arch_info): New member function.
3271 (minimal_language_data): Delete la_language_arch_info.
3272 (minimal_language::language_arch_info): New member function.
3273 * d-lang.c (d_language_arch_info): Delete function, move
3274 implementation to...
3275 (d_language::language_arch_info): ...here, a new member
3276 function.
3277 (d_language_data): Delete la_language_arch_info.
3278 * f-lang.c (f_language_arch_info): Delete function, move
3279 implementation to...
3280 (f_language::language_arch_info): ...here, a new member
3281 function.
3282 (f_language_data): Delete la_language_arch_info.
3283 * go-lang.c (go_language_arch_info): Delete function, move
3284 implementation to...
3285 (go_language::language_arch_info): ...here, a new member
3286 function.
3287 (go_language_data): Delete la_language_arch_info.
3288 * language.c (unknown_language_data): Likewise.
3289 (unknown_language::language_arch_info): New member function.
3290 (auto_language_data): Delete la_language_arch_info.
3291 (auto_language::language_arch_info): New member function.
3292 (language_gdbarch_post_init): Update call to
3293 la_language_arch_info.
3294 * language.h (language_data): Delete la_language_arch_info
3295 function pointer.
3296 (language_defn::language_arch_info): New function.
3297 * m2-lang.c (m2_language_arch_info): Delete function, move
3298 implementation to...
3299 (m2_language::language_arch_info): ...here, a new member
3300 function.
3301 (m2_language_data): Delete la_language_arch_info.
3302 * objc-lang.c (objc_language_arch_info): Delete function, move
3303 implementation to...
3304 (objc_language::language_arch_info): ...here, a new member
3305 function.
3306 (objc_language_data): Delete la_language_arch_info.
3307 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3308 implementation to...
3309 (opencl_language::language_arch_info): ...here, a new member
3310 function.
3311 (opencl_language_data): Delete la_language_arch_info.
3312 * p-lang.c (pascal_language_arch_info): Delete function, move
3313 implementation to...
3314 (pascal_language::language_arch_info): ...here, a new member
3315 function.
3316 (pascal_language_data): Delete la_language_arch_info.
3317 * rust-lang.c (rust_language_arch_info): Delete function, move
3318 implementation to...
3319 (rust_language::language_arch_info): ...here, a new member
3320 function.
3321 (rust_language_data): Delete la_language_arch_info.
3322
3323 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3326 initializer.
3327 * c-lang.c (c_language_data): Likewise.
3328 (cplus_language_data): Likewise.
3329 (cplus_language::pass_by_reference_info): New method.
3330 (asm_language_data): Delete la_pass_by_reference initializer.
3331 (minimal_language_data): Likewise.
3332 * cp-abi.c (cp_pass_by_reference): Remove use of
3333 default_pass_by_reference.
3334 * d-lang.c (d_language_data): Likewise.
3335 * f-lang.c (f_language_data): Likewise.
3336 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3337 default_pass_by_reference.
3338 * go-lang.c (go_language_data): Likewise.
3339 * language.c (language_pass_by_reference): Update.
3340 (default_pass_by_reference): Delete.
3341 (unknown_language_data): Delete la_pass_by_reference
3342 initializer.
3343 (auto_language_data): Likewise.
3344 * language.h (struct language_data): Delete la_pass_by_reference
3345 field.
3346 (language_defn::pass_by_reference_info): New member function.
3347 (default_pass_by_reference): Delete declaration.
3348 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3349 initializer.
3350 * objc-lang.c (objc_language_data): Likewise.
3351 * opencl-lang.c (opencl_language_data): Likewise.
3352 * p-lang.c (pascal_language_data): Likewise.
3353 * rust-lang.c (rust_language_data): Likewise.
3354
3355 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * ada-lang.c (ada_read_var_value): Delete function, move
3358 implementation to...
3359 (ada_language::read_var_value): ...here.
3360 (ada_language_data): Delete la_read_var_value initializer.
3361 * c-lang.c (c_language_data): Likewise.
3362 (cplus_language_data): Likewise.
3363 (minimal_language_data): Likewise.
3364 * d-lang.c (d_language_data): Likewise.
3365 * f-lang.c (f_language_data): Likewise.
3366 * findvar.c (default_read_var_value): Rename to...
3367 (language_defn::read_var_value): ...this.
3368 * findvar.c (read_var_value): Update header comment, and change to
3369 call member function instead of function pointer.
3370 * go-lang.c (go_language_data): Likewise.
3371 * language.c (unknown_language_data): Delete la_read_var_value
3372 initializer.
3373 (auto_language_data): Likewise.
3374 * language.h (struct language_data): Delete la_read_var_value
3375 field.
3376 (language_defn::read_var_value): New member function.
3377 (default_read_var_value): Delete declaration.
3378 * m2-lang.c (m2_language_data): Delete la_read_var_value
3379 initializer.
3380 * objc-lang.c (objc_language_data): Likewise.
3381 * opencl-lang.c (opencl_language_data): Likewise.
3382 * p-lang.c (pascal_language_data): Likewise.
3383 * rust-lang.c (rust_language_data): Likewise.
3384 * value.h (default_read_var_value): Delete declaration.
3385
3386 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * ada-lang.c (ada_print_array_index): Delete function, move
3389 implementation to...
3390 (ada_language::print_array_index): ...here.
3391 (ada_language_data): Delete la_print_array_index initializer.
3392 * c-lang.c (c_language_data): Likewise.
3393 (cplus_language_data): Likewise.
3394 (minimal_language_data): Likewise.
3395 * d-lang.c (d_language_data): Likewise.
3396 * f-lang.c (f_language_data): Likewise.
3397 * go-lang.c (go_language_data): Likewise.
3398 * language.c (default_print_array_index): Delete function, move
3399 implementation to...
3400 (language_defn::print_array_index): ...here.
3401 (unknown_language_data): Delete la_print_array_index initializer.
3402 (auto_language_data): Likewise.
3403 * language.h (struct language_data): Delete la_print_array_index
3404 field.
3405 (language_defn::print_array_index): New member function.
3406 (LA_PRINT_ARRAY_INDEX): Update.
3407 (default_print_array_index): Delete declaration.
3408 * m2-lang.c (m2_language_data): Delete la_print_array_index
3409 initializer.
3410 * objc-lang.c (objc_language_data): Likewise.
3411 * opencl-lang.c (opencl_language_data): Likewise.
3412 * p-lang.c (pascal_language_data): Likewise.
3413 * rust-lang.c (rust_language_data): Likewise.
3414
3415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * gdb/ada-lang.c (ada_language_defn): Convert to...
3418 (ada_language_data): ...this.
3419 (class ada_language): New class.
3420 (ada_language_defn): New static global.
3421 * gdb/c-lang.c (c_language_defn): Convert to...
3422 (c_language_data): ...this.
3423 (class c_language): New class.
3424 (c_language_defn): New static global.
3425 (cplus_language_defn): Convert to...
3426 (cplus_language_data): ...this.
3427 (class cplus_language): New class.
3428 (cplus_language_defn): New static global.
3429 (asm_language_defn): Convert to...
3430 (asm_language_data): ...this.
3431 (class asm_language): New class.
3432 (asm_language_defn): New static global.
3433 (minimal_language_defn): Convert to...
3434 (minimal_language_data): ...this.
3435 (class minimal_language): New class.
3436 (minimal_language_defn): New static global.
3437 * gdb/d-lang.c (d_language_defn): Convert to...
3438 (d_language_data): ...this.
3439 (class d_language): New class.
3440 (d_language_defn): New static global.
3441 * gdb/f-lang.c (f_language_defn): Convert to...
3442 (f_language_data): ...this.
3443 (class f_language): New class.
3444 (f_language_defn): New static global.
3445 * gdb/go-lang.c (go_language_defn): Convert to...
3446 (go_language_data): ...this.
3447 (class go_language): New class.
3448 (go_language_defn): New static global.
3449 * gdb/language.c (unknown_language_defn): Remove declaration.
3450 (current_language): Initialize to nullptr, real initialization is
3451 moved to _initialize_language.
3452 (languages): Delete global.
3453 (language_defn::languages): Define.
3454 (set_language_command): Use language_defn::languages.
3455 (set_language): Likewise.
3456 (range_error): Likewise.
3457 (language_enum): Likewise.
3458 (language_def): Likewise.
3459 (add_set_language_command): Use language_def::languages for the
3460 language list, and language_def to lookup language pointers.
3461 (skip_language_trampoline): Use language_defn::languages.
3462 (unknown_language_defn): Convert to...
3463 (unknown_language_data): ...this.
3464 (class unknown_language): New class.
3465 (unknown_language_defn): New static global.
3466 (auto_language_defn): Convert to...
3467 (auto_language_data): ...this.
3468 (class auto_language): New class.
3469 (auto_language_defn): New static global.
3470 (language_gdbarch_post_init): Use language_defn::languages.
3471 (_initialize_language): Initialize current_language.
3472 * gdb/language.h (struct language_defn): Rename to...
3473 (struct language_data): ...this.
3474 (struct language_defn): New.
3475 (auto_language_defn): Delete.
3476 (unknown_language_defn): Delete.
3477 (minimal_language_defn): Delete.
3478 (ada_language_defn): Delete.
3479 (asm_language_defn): Delete.
3480 (c_language_defn): Delete.
3481 (cplus_language_defn): Delete.
3482 (d_language_defn): Delete.
3483 (f_language_defn): Delete.
3484 (go_language_defn): Delete.
3485 (m2_language_defn): Delete.
3486 (objc_language_defn): Delete.
3487 (opencl_language_defn): Delete.
3488 (pascal_language_defn): Delete.
3489 (rust_language_defn): Delete.
3490 * gdb/m2-lang.c (m2_language_defn): Convert to...
3491 (m2_language_data): ...this.
3492 (class m2_language): New class.
3493 (m2_language_defn): New static global.
3494 * gdb/objc-lang.c (objc_language_defn): Convert to...
3495 (objc_language_data): ...this.
3496 (class objc_language): New class.
3497 (objc_language_defn): New static global.
3498 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3499 (opencl_language_data): ...this.
3500 (class opencl_language): New class.
3501 (opencl_language_defn): New static global.
3502 * gdb/p-lang.c (pascal_language_defn): Convert to...
3503 (pascal_language_data): ...this.
3504 (class pascal_language): New class.
3505 (pascal_language_defn): New static global.
3506 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3507 language pointer, update comment format.
3508 * gdb/rust-lang.c (rust_language_defn): Convert to...
3509 (rust_language_data): ...this.
3510 (class rust_language): New class.
3511 (rust_language_defn): New static global.
3512
3513 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3516 member variable.
3517 <m_stmt_at_address>: New member variable.
3518 (lnp_state_machine::record_line): Don't record some lines, update
3519 tracking of is_stmt at the same address.
3520 (lnp_state_machine::lnp_state_machine): Initialise new member
3521 variables.
3522
3523 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3524
3525 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3526 "-include gnu-nat-mig.h".
3527 * gnu-nat-mig.h: New file.
3528 * gnu-nat.c: Include "gnu-nat-mig.h".
3529 (exc_server, msg_reply_server, notify_server,
3530 process_reply_server): Remove declarations.
3531
3532 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3533
3534 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3535 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3536 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3537 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3538 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3539 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3540 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3541 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3542 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3543 to gnu_nat_target class.
3544 * gnu-nat.c: Likewise.
3545 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3546 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3547 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3548 object.
3549 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3550 instead of `gnu_target'.
3551
3552 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3553
3554 * i386-gnu-tdep.c: Include "gdbcore.h"
3555 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3556 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3557 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3558 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3559 i386_gnu_sigcontext_addr): New functions
3560 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3561 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3562 tdep.
3563
3564 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3565
3566 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3567 before fork_inferior call. Avoid calling it if target_is_pushed returns
3568 true.
3569
3570 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3571
3572 * gnu-nat.h (gnu_target): New variable declaration.
3573 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3574 gnu_target.
3575 * gnu-nat.c (gnu_target): New variable.
3576 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3577 add_thread_silent, and add_thread calls.
3578 (gnu_nat_target::create_inferior): Pass gnu_target to
3579 add_thread_silent, thread_change_ptid call.
3580 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3581 call.
3582
3583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3584
3585 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3586 (gnu_nat_target::find_memory_regions): Remove unused
3587 `old_address' variable.
3588
3589 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3590
3591 * gnu-nat.c: Include "gdbarch.h".
3592
3593 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3594
3595 * reply_mig_hack.awk (Error return): Cast function through
3596 void *, to bypass compiler function call check.
3597
3598 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3599
3600 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3601 $(srcdir)/reply_mig_hack.awk.
3602
3603 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3604
3605 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3606
3607 2020-05-30 Jonny Grant <jg@jguk.org>
3608
3609 * configure.ac (ACX_BUGURL): change bug URL to https.
3610
3611 2020-05-30 Pedro Alves <palves@redhat.com>
3612
3613 * cp-support.c (replace_typedefs_template): New.
3614 (replace_typedefs_qualified_name): Handle
3615 DEMANGLE_COMPONENT_TEMPLATE.
3616
3617 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3620 dwarf2/index-cache.h, dwarf2/index-write.c,
3621 dwarf2/index-write.h, dwarf2/line-header.c,
3622 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3623 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3624 variables and fields from `dwarf2_per_objfile` to just
3625 `per_objfile` throughout.
3626
3627 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3628
3629 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3630 <push_dwarf_reg_entry_value>: Add comment.
3631
3632 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3633 Keith Seitz <keiths@redhat.com>
3634
3635 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3636 instead of PyEval_ReleaseLock.
3637 (class gdbpy_gil): Move to earlier in file.
3638 (finalize_python): Set gdb_python_initialized.
3639 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3640 when not initialized.
3641
3642 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3643
3644 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3645 <push_dwarf_reg_entry_value>: Remove assert. Override
3646 per_objfile with caller_per_objfile.
3647
3648 2020-05-28 Tom de Vries <tdevries@suse.de>
3649
3650 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3651 PR gold/15646 workaround to symbol kind "type".
3652
3653 2020-05-27 Tom Tromey <tromey@adacore.com>
3654
3655 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3656
3657 2020-05-27 Tom Tromey <tromey@adacore.com>
3658
3659 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3660 Use htab_find_with_hash.
3661 <add_abbrev>: Remove "abbrev_number" parameter.
3662 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3663 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3664 (hash_abbrev): Add comment.
3665 (abbrev_table::lookup_abbrev): Move to header file.
3666 (abbrev_table::read): Update.
3667
3668 2020-05-27 Tom Tromey <tromey@adacore.com>
3669
3670 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3671 method.
3672 <canonical_name>: New member.
3673 <raw_name>: Rename from "name".
3674 (partial_die_info): Initialize canonical_name.
3675 (scan_partial_symbols): Check raw_name.
3676 (partial_die_parent_scope, partial_die_full_name)
3677 (add_partial_symbol, add_partial_subprogram)
3678 (add_partial_enumeration, load_partial_dies): Use "name" method.
3679 (partial_die_info::name): New method.
3680 (partial_die_info::read, guess_partial_die_structure_name)
3681 (partial_die_info::fixup): Update.
3682
3683 2020-05-27 Tom Tromey <tromey@adacore.com>
3684
3685 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3686 <get_ref_die_offset>: Inline.
3687 <get_ref_die_offset_complaint>: New method.
3688 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3689 (attribute::get_ref_die_offset_complaint): Rename from
3690 get_ref_die_offset. Just issue complaint.
3691
3692 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3693
3694 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3695
3696 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3697
3698 * exec.c (exec_file_attach): Use errno value of first openp failure.
3699
3700 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3701
3702 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3703 Don't close thread handle.
3704
3705 2020-05-27 Tom Tromey <tom@tromey.com>
3706 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3709 shared_ptr.
3710 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3711 member.
3712 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3713 dwarf2_per_bfd_objfile_data_key>: New globals.
3714 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3715 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3716 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3717 shared.
3718 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3719 short-circuit when sharing.
3720 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3721 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3722
3723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3726 to...
3727 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3728 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3729
3730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3733 build_name_components, find_name_components_bounds>:
3734 Add per_objfile parameter.
3735 (struct mapped_index) <symbol_name_at>: Likewise.
3736 (struct mapped_debug_names): Remove constructor.
3737 <dwarf2_per_objfile>: Remove field.
3738 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3739 (mapped_index_base::find_name_components_bounds,
3740 mapped_index_base::build_name_components,
3741 dw2_expand_symtabs_matching_symbol): Likewise.
3742 (class mock_mapped_index) <symbol_name_at>: Likewise.
3743 (check_match): Likewise.
3744 (check_find_bounds_finds): Likewise.
3745 (test_mapped_index_find_name_component_bounds): Update.
3746 (CHECK_MATCH): Update.
3747 (dw2_expand_symtabs_matching): Update.
3748 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3749 per_objfile parameter.
3750 <find_vec_in_debug_names>: Likewise.
3751 <m_per_objfile>: New field.
3752 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3753 parameter.
3754 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3755 (dw2_debug_names_iterator::next): Update.
3756 (dw2_debug_names_lookup_symbol): Update.
3757 (dw2_debug_names_expand_symtabs_for_function): Update.
3758 (dw2_debug_names_map_matching_symbols): Update.
3759 (dw2_debug_names_expand_symtabs_matching): Update.
3760 (dwarf2_read_debug_names): Update.
3761
3762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3765 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3766 move to dwarf2_per_objfile.
3767 <read_in_chain>: Remove.
3768 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3769 remove_all_cus, age_comp_units>: New methods.
3770 <m_dwarf2_cus>: New member.
3771 (struct dwarf2_per_cu_data) <cu>: Remove.
3772 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3773 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3774 moved to methods of dwarf2_per_objfile.
3775 (dwarf2_clear_marks): Remove.
3776 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3777 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3778 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3779 (dwarf2_per_objfile::remove_all_cus): New.
3780 (class free_cached_comp_units) <~free_cached_comp_units>:
3781 Update.
3782 (load_cu): Update.
3783 (dw2_do_instantiate_symtab): Adjust.
3784 (fill_in_sig_entry_from_dwo_entry): Adjust.
3785 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3786 (cutu_reader::cutu_reader): Likewise.
3787 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3788 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3789 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3790 and dwarf2_per_objfile::age_comp_units.
3791 (load_partial_comp_unit): Update.
3792 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3793 (process_queue): Likewise.
3794 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3795 backlink.
3796 (dwarf2_read_addr_index): Likewise.
3797 (follow_die_offset): Likewise.
3798 (dwarf2_fetch_die_loc_sect_off): Likewise.
3799 (dwarf2_fetch_constant_bytes): Likewise.
3800 (dwarf2_fetch_die_type_sect_off): Likewise.
3801 (follow_die_sig_1): Likewise.
3802 (load_full_type_unit): Likewise.
3803 (read_signatured_type): Likewise.
3804 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3805 (dwarf2_cu::~dwarf2_cu): Remove.
3806 (dwarf2_per_objfile::get_cu): New.
3807 (dwarf2_per_objfile::set_cu): New.
3808 (age_cached_comp_units): Rename to...
3809 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3810 to std::unordered_map.
3811 (free_one_cached_comp_unit): Rename to...
3812 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3813 to std::unordered_map.
3814 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3815 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3816 a dwarf2_per_objfile in data.
3817 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3818 (dwarf2_clear_marks): Remove.
3819
3820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3823 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3824 (init_tu_and_read_dwo_dies): Likewise.
3825 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3826 (cutu_reader::cutu_reader): Likewise.
3827 (load_partial_comp_unit): Likewise.
3828 (process_psymtab_comp_unit): Update.
3829 (build_type_psymtabs_1): Update.
3830 (process_skeletonless_type_unit): Update.
3831 (load_full_comp_unit): Update.
3832 (find_partial_die): Update.
3833 (dwarf2_read_addr_index): Update.
3834 (read_signatured_type): Update.
3835
3836 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3837
3838 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3839 m_header_read_in>: New fields.
3840 <get_header>: New method.
3841 * dwarf2/read.c (per_cu_header_read_in): Remove.
3842 (dwarf2_per_cu_data::get_header): New.
3843 (dwarf2_per_cu_data::addr_size): Update.
3844 (dwarf2_per_cu_data::offset_size): Update.
3845 (dwarf2_per_cu_data::ref_addr_size): Update.
3846
3847 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3848
3849 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3850 (dw2_do_instantiate_symtab): Update.
3851 (queue_and_load_all_dwo_tus): Change parameter from
3852 dwarf2_per_cu_data to dwarf2_cu.
3853 (dwarf2_fetch_die_loc_sect_off): Update.
3854 (dwarf2_fetch_constant_bytes): Update.
3855 (dwarf2_fetch_die_type_sect_off): Update.
3856
3857 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * dwarf2/read.c (process_full_comp_unit,
3860 process_full_type_unit): Remove per_cu, per_objfile paramters.
3861 Add dwarf2_cu parameter.
3862 (process_queue): Update.
3863
3864 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3865
3866 * dwarf2/read.c (create_cu_from_index_list): Replace
3867 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3868 (create_cus_from_index_list): Likewise.
3869 (create_cus_from_index): Likewise.
3870 (create_signatured_type_table_from_index): Likewise.
3871 (create_cus_from_debug_names_list): Likewise.
3872 (create_cus_from_debug_names): Likewise.
3873 (dwarf2_read_gdb_index): Update.
3874 (dwarf2_read_debug_names): Update.
3875
3876 2020-05-27 Tom Tromey <tom@tromey.com>
3877 Simon Marchi <simon.marchi@efficios.com>
3878
3879 * dwarf2/read.h (struct dwarf2_per_objfile)
3880 <get_type_for_signatured_type, set_type_for_signatured_type>:
3881 New methods.
3882 <m_type_map>: New member.
3883 (struct signatured_type) <type>: Remove.
3884 * dwarf2/read.c
3885 (dwarf2_per_objfile::get_type_for_signatured_type,
3886 dwarf2_per_objfile::set_type_for_signatured_type): New.
3887 (get_signatured_type): Use new methods.
3888
3889 2020-05-27 Tom Tromey <tom@tromey.com>
3890 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3893 (struct dwarf2_per_objfile) <type_units>: New member.
3894 <get_type_unit_group_unshareable>: New method.
3895 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3896 num_symtabs, symtabs>: Remove; move to
3897 type_unit_group_unshareable.
3898 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3899 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3900 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3901
3902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * dwarf2/read.h (struct dwarf2_per_cu_data):
3905 <dwarf2_per_objfile>: Remove.
3906 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3907 dwarf2_per_objfile.
3908 (create_signatured_type_table_from_index): Likewise.
3909 (create_signatured_type_table_from_debug_names): Likewise.
3910 (create_debug_type_hash_table): Likewise.
3911 (fill_in_sig_entry_from_dwo_entry): Likewise.
3912 (create_type_unit_group): Likewise.
3913 (read_comp_units_from_section): Likewise.
3914 (create_cus_hash_table): Likewise.
3915
3916 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3919 dwarf2_per_cu_data::dwarf2_per_objfile.
3920 (compute_compunit_symtab_includes): Likewise.
3921 (dwarf2_cu::start_symtab): Likewise.
3922
3923 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3926 parameter.
3927 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3928 (read_namespace_alias): Update.
3929 (lookup_die_type): Update.
3930 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3931 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3932 Update.
3933 (disassemble_dwarf_expression): Update.
3934
3935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * dwarf2/read.h (struct dwarf2_queue_item): Add
3938 dwarf2_per_objfile parameter, assign new parameter.
3939 <per_objfile>: New field.
3940 * dwarf2/read.c (free_one_cached_comp_unit): Add
3941 dwarf2_per_objfile parameter.
3942 (queue_comp_unit): Likewise.
3943 (dw2_do_instantiate_symtab): Update.
3944 (process_psymtab_comp_unit): Update.
3945 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3946 (process_imported_unit_die): Update.
3947 (queue_and_load_dwo_tu): Update.
3948 (follow_die_offset): Update.
3949 (follow_die_sig_1): Update.
3950
3951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3954 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3955 (read_call_site_scope): Assign per_objfile.
3956 (dwarf2_per_cu_data::objfile): Remove.
3957 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3958 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3959 dwarf2_per_objfile parameter.
3960 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3961 dwarf2_per_objfile parameter.
3962 (dwarf_expr_reg_to_entry_parameter): Add output
3963 dwarf2_per_objfile parameter.
3964 (locexpr_get_frame_base): Update.
3965 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3966 <push_dwarf_reg_entry_value>: Update.
3967 <call_site_to_target_addr>: Update.
3968 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3969 parameter.
3970 (value_of_dwarf_reg_entry): Update.
3971 (rw_pieced_value): Update.
3972 (indirect_synthetic_pointer): Update.
3973 (dwarf2_evaluate_property): Update.
3974 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3975 parameter.
3976 (locexpr_read_variable): Update.
3977 (locexpr_get_symbol_read_needs): Update.
3978 (loclist_read_variable): Update.
3979
3980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3983 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3984 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3985 parameter.
3986 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3987 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3988 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3989 parameter.
3990 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3991 sect_variable_value): Add dwarf2_per_objfile parameter.
3992 (class dwarf_evaluate_loc_desc) <dwarf_call,
3993 dwarf_variable_value>: Update.
3994 (fetch_const_value_from_synthetic_pointer): Add
3995 dwarf2_per_objfile parameter.
3996 (fetch_const_value_from_synthetic_pointer): Update.
3997 (coerced_pieced_ref): Update.
3998 (class symbol_needs_eval_context) <dwarf_call,
3999 dwarf_variable_value>: Update.
4000 (dwarf2_compile_expr_to_ax): Update.
4001
4002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4005 parameter.
4006 (dwarf2_evaluate_loc_desc_full): Update.
4007
4008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4011 parameter.
4012 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4013 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4014 dwarf2_per_objfile parameter.
4015 (decode_debug_loc_dwo_addresses): Likewise.
4016 (dwarf2_find_location_expression): Update.
4017 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4018 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4019 parameter.
4020 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4021 parameter.
4022 (locexpr_describe_location_1): Likewise.
4023 (locexpr_describe_location): Update.
4024
4025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4028 Remove.
4029 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4030 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4031 (dwarf2_compile_property_to_c): Update.
4032 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4033 use text offset from objfile.
4034 (locexpr_tracepoint_var_ref): Update.
4035 (locexpr_generate_c_location): Update.
4036 (loclist_describe_location): Update.
4037 (loclist_tracepoint_var_ref): Update.
4038 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4039 dwarf2_per_objfile parameter.
4040 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4041 use text offset from objfile.
4042 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4043
4044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * dwarf2/expr.h (struct dwarf_expr_context)
4047 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4048 <offset>: Remove.
4049 <per_objfile>: New member.
4050 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4051 dwarf2_per_objfile parameter. Don't set offset, set
4052 per_objfile.
4053 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4054 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4055 a dwarf2_per_objfile object instead of an offset.
4056 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4057 constructor.
4058 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4059 to dwarf2_expr_executor constructor. Don't set offset.
4060 (dwarf2_fetch_cfa_info): Update.
4061 (struct dwarf2_frame_cache) <text_offset>: Remove.
4062 <per_objfile>: New field.
4063 (dwarf2_frame_cache): Update.
4064 (dwarf2_frame_prev_register): Update.
4065 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4066 <dwarf_evaluate_loc_desc>: Add constructor.
4067 (dwarf2_evaluate_loc_desc_full): Update.
4068 (dwarf2_locexpr_baton_eval): Update.
4069 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4070 Add constructor.
4071 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4072
4073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4076 addr_sized_int_type>: Move to dwarf2_cu.
4077 <int_type>: Move to dwarf2_per_objfile.
4078 (struct dwarf2_per_objfile) <int_type>: Move here.
4079 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4080 addr_sized_int_type>: Move here.
4081 (read_func_scope): Update.
4082 (read_array_type): Update.
4083 (read_tag_string_type): Update.
4084 (attr_to_dynamic_prop): Update.
4085 (dwarf2_per_cu_data::int_type): Rename to...
4086 (dwarf2_per_objfile::int_type): ... this.
4087 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4088 (dwarf2_cu::addr_sized_int_type): ... this.
4089 (read_subrange_type): Update.
4090 (dwarf2_per_cu_data::addr_type): Rename to...
4091 (dwarf2_cu::addr_type): ... this.
4092 (set_die_type): Update.
4093
4094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4097 data through per_cu->cu.
4098
4099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4102 dwarf2_per_cu_data parameter fo dwarf2_cu.
4103 (lookup_dwo_type_unit): Likewise.
4104 (read_cutu_die_from_dwo): Likewise.
4105 (lookup_dwo_unit): Likewise.
4106 (open_and_init_dwo_file): Likewise.
4107 (lookup_dwo_cutu): Likewise.
4108 (lookup_dwo_comp_unit): Likewise.
4109 (lookup_dwo_type_unit): Likewise.
4110 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4111 (cutu_reader::cutu_reader): Update.
4112
4113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4116 parameter.
4117 (process_full_type_unit): Likewise.
4118 (process_queue): Update.
4119
4120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * dwarf2/read.c (recursively_compute_inclusions): Add
4123 dwarf2_per_objfile parameter.
4124 (compute_compunit_symtab_includes): Likewise.
4125 (process_cu_includes): Update.
4126
4127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4130 parameter.
4131 (create_type_unit_group): Update.
4132 (process_psymtab_comp_unit_reader): Update.
4133 (build_type_psymtabs_reader): Update.
4134
4135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4138 object through m_this_cu->cu.
4139
4140 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4141
4142 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4143 the info parameter.
4144 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4145
4146 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4149 per_objfile parameter.
4150 (load_full_type_unit): Add per_objfile parameter.
4151 (read_signatured_type): Likewise.
4152 (load_full_comp_unit): Likewise.
4153 (load_cu): Likewise.
4154 (dw2_do_instantiate_symtab): Likewise.
4155 (dw2_get_file_names): Likewise.
4156 (dw2_map_symtabs_matching_filename): Update.
4157 (dw_expand_symtabs_matching_file_matcher): Update.
4158 (dw2_map_symbol_filenames): Update.
4159 (process_psymtab_comp_unit): Add per_objfile parameter.
4160 (build_type_psymtabs_1): Update.
4161 (process_skeletonless_type_unit): Update.
4162 (dwarf2_build_psymtabs_hard): Update.
4163 (load_partial_comp_unit): Add per_objfile parameter.
4164 (scan_partial_symbols): Update.
4165 (load_full_comp_unit): Add per_objfile parameter.
4166 (process_imported_unit_die): Update.
4167 (create_cus_hash_table): Update.
4168 (find_partial_die): Update.
4169 (dwarf2_read_addr_index): Update.
4170 (follow_die_offset): Update.
4171 (dwarf2_fetch_die_loc_sect_off): Update.
4172 (dwarf2_fetch_constant_bytes): Update.
4173 (dwarf2_fetch_die_type_sect_off): Update.
4174 (follow_die_sig_1): Update.
4175 (load_full_type_unit): Add per_objfile parameter.
4176 (read_signatured_type): Likewise.
4177
4178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4181 of objfile_name.
4182
4183 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4186 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4187 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4188 field.
4189 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4190 (create_cus_from_index): Update.
4191 (dwarf2_read_gdb_index): Update.
4192 (create_cus_from_debug_names): Update.
4193 (dwarf2_read_debug_names): Update.
4194 (get_abbrev_section_for_cu): Update.
4195 (create_all_comp_units): Update.
4196 (read_attribute_value): Update.
4197 (get_debug_line_section): Update.
4198 * dwarf2/index-cache.c (index_cache::store): Update.
4199 * dwarf2/index-write.c (save_gdb_index_command): Update.
4200 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4201
4202 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4205 member.
4206 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4207 dwarf2_per_cu_data::per_bfd.
4208 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4209 (create_type_unit_group): Likewise.
4210 (queue_comp_unit): Remove reference to
4211 per_cu->dwarf2_per_objfile.
4212 (maybe_queue_comp_unit): Likewise.
4213 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4214 (create_cus_hash_table): Assign new field.
4215
4216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * dwarf2/read.c: Replace
4219 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4220 dwarf2_cu->per_objfile throughout.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4225 parameter, don't use per_cu->dwarf2_per_objfile.
4226 (dw2_instantiate_symtab): Likewise.
4227 (dw2_find_last_source_symtab): Update.
4228 (dw2_map_expand_apply): Update.
4229 (dw2_lookup_symbol): Update.
4230 (dw2_expand_symtabs_for_function): Update.
4231 (dw2_expand_all_symtabs): Update.
4232 (dw2_expand_symtabs_with_fullname): Update.
4233 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4234 don't use per_cu->dwarf2_per_objfile.
4235 (dw2_expand_marked_cus): Update.
4236 (dw2_find_pc_sect_compunit_symtab): Update.
4237 (dw2_debug_names_lookup_symbol): Update.
4238 (dw2_debug_names_expand_symtabs_for_function): Update.
4239 (dw2_debug_names_map_matching_symbols): Update.
4240 (dwarf2_psymtab::expand_psymtab): Update.
4241
4242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4245 <per_objfile>: New member.
4246 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4247 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4248 call to dwarf2_cu.
4249 (cutu_reader::cutu_reader): Update.
4250 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4251
4252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4255 struct dwarf2_per_objfile.
4256 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4257 dwarf2_per_bfd.
4258 * dwarf2/read.c (set_die_type): Update.
4259 (get_die_type_at_offset): Update.
4260
4261 2020-05-27 Tom Tromey <tom@tromey.com>
4262 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4265 method.
4266 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4267 get_symtab, set_symtab>: New methods.
4268 <m_symtabs>: New field.
4269 (struct dwarf2_psymtab): Derive from partial_symtab.
4270 <readin_p, get_compunit_symtab>: Declare methods.
4271 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4272 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4273 New methods.
4274 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4275 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4276 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4277 (dw2_symtab_iter_next, dw2_print_stats)
4278 (dw2_expand_symtabs_with_fullname)
4279 (dw2_expand_symtabs_matching_one)
4280 (dw_expand_symtabs_matching_file_matcher)
4281 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4282 (dw2_debug_names_iterator::next)
4283 (dw2_debug_names_map_matching_symbols)
4284 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4285 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4286 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4287 New methods.
4288 (get_compunit_symtab, process_full_comp_unit)
4289 (process_full_type_unit): Update.
4290 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4291
4292 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4295 then introduce a new dwarf2_per_objfile type.
4296 <read_line_string>: Move to the new dwarf2_per_objfile type.
4297 <objfile>: Likewise.
4298 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4299 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4300 dwarf2_per_objfile->per_bfd.
4301 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4302 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4303 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4304 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4305 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4306 (dwarf2_per_objfile::locate_sections): Rename to...
4307 (dwarf2_per_bfd::locate_sections): ... this.
4308 (dwarf2_per_objfile::get_cutu): Rename to...
4309 (dwarf2_per_bfd::get_cutu): ... this.
4310 (dwarf2_per_objfile::get_cu): Rename to...
4311 (dwarf2_per_bfd::get_cu): ... this.
4312 (dwarf2_per_objfile::get_tu): Rename to...
4313 (dwarf2_per_bfd::get_tu): ... this.
4314 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4315 (dwarf2_per_bfd::allocate_per_cu): ... this.
4316 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4317 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4318 (get_gdb_index_contents_ftype): Change parameter from
4319 dwarf2_per_objfile to dwarf2_per_bfd.
4320 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4321 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4322
4323 2020-05-27 Tom Tromey <tom@tromey.com>
4324 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4327 (allocate_piece_closure): Set "per_objfile" member.
4328 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4329 (locexpr_describe_location, loclist_describe_location): Use new
4330 member.
4331 * dwarf2/read.c (read_call_site_scope)
4332 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4333 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4334 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4335 handle_data_member_location): Set per_objfile member.
4336 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4337 member.
4338 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4339
4340 2020-05-27 Tom Tromey <tom@tromey.com>
4341
4342 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4343 allocate_signatured_type>: Declare new methods.
4344 <m_num_psymtabs>: New member.
4345 (struct dwarf2_per_cu_data) <index>: New member.
4346 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4347 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4348 (create_cu_from_index_list): Use allocate_per_cu.
4349 (create_signatured_type_table_from_index)
4350 (create_signatured_type_table_from_debug_names)
4351 (create_debug_type_hash_table, add_type_unit)
4352 (read_comp_units_from_section): Use allocate_signatured_type.
4353
4354 2020-05-27 Tom Tromey <tom@tromey.com>
4355
4356 * psymtab.c (partial_map_expand_apply)
4357 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4358 (psym_lookup_global_symbol_language)
4359 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4360 (psym_print_stats, psym_expand_symtabs_for_function)
4361 (psym_map_symbol_filenames, psym_map_matching_symbols)
4362 (psym_expand_symtabs_matching)
4363 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4364 (maintenance_check_psymtabs): Update.
4365 * psympriv.h (struct partial_symtab) <readin_p,
4366 get_compunit_symtab>: Add objfile parameter.
4367 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4368 Likewise.
4369 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4370 get_compunit_symtab>: Likewise.
4371 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4372
4373 2020-05-27 Tom Tromey <tom@tromey.com>
4374
4375 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4376 member.
4377 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4378 (create_cu_from_index_list)
4379 (create_signatured_type_table_from_index)
4380 (create_signatured_type_table_from_debug_names)
4381 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4382 (dwarf2_create_include_psymtab)
4383 (create_debug_type_hash_table, add_type_unit)
4384 (create_type_unit_group, read_comp_units_from_section)
4385 (dwarf2_compute_name, create_cus_hash_table)
4386 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4387 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4388 obstack.
4389 (dw2_get_real_path): Likewise. Change argument to
4390 dwarf2_per_objfile.
4391
4392 2020-05-27 Luis Machado <luis.machado@linaro.org>
4393
4394 PR tdep/26000
4395 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4396 for ldrd (immediate).
4397
4398 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4399
4400 * command.h: Add comment giving the name of class_tui.
4401 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4402 create the fake command for the help for class_tui.
4403
4404 2020-05-26 Tom Tromey <tromey@adacore.com>
4405
4406 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4407 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4408 (val_atr): New function.
4409 (value_val_atr): Use it.
4410 * ada-valprint.c (print_optional_low_bound): Change low bound
4411 handling for enums.
4412 (val_print_packed_array_elements): Don't call discrete_position.
4413 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4414 discrete_position for enum types.
4415 * language.c (default_print_array_index): Change type.
4416 * language.h (struct language_defn) <la_print_array_index>: Add
4417 index_type parameter, change type of index_value.
4418 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4419 (default_print_array_index): Update.
4420 * valprint.c (maybe_print_array_index): Don't call
4421 value_from_longest. Update.
4422 (value_print_array_elements): Don't call discrete_position.
4423
4424 2020-05-26 Tom Tromey <tromey@adacore.com>
4425
4426 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4427 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4428
4429 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4430
4431 PR gdb/13519
4432 * avr-tdep.c (avr_integer_to_address): Return data or code
4433 address accordingly to the second 'type' argument of the
4434 function.
4435
4436 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4437
4438 * infcmd.c, inferior.h: (construct_inferior_arguments):
4439 Moved function from here to gdbsupport/common-inferior.{h,cc}
4440
4441 2020-05-23 Tom Tromey <tom@tromey.com>
4442
4443 Revert commit eca1f90c:
4444 * NEWS: Remove entry for completion styling.
4445 * completer.c (_rl_completion_prefix_display_length): Move
4446 declaration later.
4447 (gdb_fnprint): Revert.
4448 (gdb_display_match_list_1): Likewise.
4449 * cli/cli-style.c (completion_prefix_style)
4450 (completion_difference_style, completion_suffix_style): Remove.
4451 (_initialize_cli_style): Revert.
4452 * cli/cli-style.h (completion_prefix_style)
4453 (completion_difference_style, completion_suffix_style): Don't
4454 declare.
4455
4456 2020-05-24 Pedro Alves <palves@redhat.com>
4457
4458 * symtab.c (completion_list_add_name): Return boolean indication
4459 of whether the symbol matched.
4460 (completion_list_add_symbol): Don't try to remove C++ aliases if
4461 the symbol didn't match in the first place.
4462 * symtab.h (completion_list_add_name): Return bool.
4463
4464 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4467 type::field.
4468
4469 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4470
4471 GDB 9.2 released.
4472
4473 2020-05-23 Tom Tromey <tom@tromey.com>
4474
4475 * NEWS: Add entry for completion styling.
4476 * completer.c (_rl_completion_prefix_display_length): Move
4477 declaration earlier.
4478 (gdb_fnprint): Use completion_style.
4479 (gdb_display_match_list_1): Likewise.
4480 * cli/cli-style.c (completion_prefix_style)
4481 (completion_difference_style, completion_suffix_style): New
4482 globals.
4483 (_initialize_cli_style): Register new globals.
4484 * cli/cli-style.h (completion_prefix_style)
4485 (completion_difference_style, completion_suffix_style): Declare.
4486
4487 2020-05-23 Pedro Alves <palves@redhat.com>
4488
4489 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4490 (parse_escape): Use ISDIGIT instead of isdigit.
4491 (puts_debug): Use gdb_isprint instead of isprint.
4492 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4493 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4494 ISSPACE instead of isspace.
4495 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4496 instead of isspace.
4497 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4498 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4499 instead of isxdigit and ISDIGIT instead of isdigit.
4500
4501 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (struct type) <field>: New method.
4504 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4505 or type::field.
4506
4507 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4510 (TYPE_FIELDS): Use type::fields. Change all call sites that
4511 modify the propery to use type::set_fields instead.
4512
4513 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4516 type::num_fields instead.
4517
4518 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4521 methods.
4522 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4523 that modify the number of fields to use type::set_num_fields
4524 instead.
4525
4526 2020-05-22 Tom Tromey <tromey@adacore.com>
4527
4528 * compile/compile-object-load.h (munmap_list_free): Don't
4529 declare.
4530
4531 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * annotate.c (annotate_source_line): Update return type, add call
4534 to update current symtab and line.
4535 * annotate.h (annotate_source_line): Update return type, and
4536 extend header comment.
4537 * source.c (info_line_command): Check annotation_level before
4538 calling annotate_source_line.
4539 * stack.c (print_frame_info): If calling annotate_source_line
4540 returns true, then don't print any other source line information.
4541
4542 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4545
4546 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * coffread.c (patch_type): Remove NULL check before xfree.
4549 * corefile.c (set_gnutarget): Likewise.
4550 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4551 * exec.c (build_section_table): Likewise.
4552 * remote.c (remote_target::pass_signals): Likewise.
4553 * utils.c (n_spaces): Likewise.
4554 * cli/cli-script.c (document_command): Likewise.
4555 * i386-windows-tdep.c (core_process_module_section): Likewise.
4556 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4557
4558 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * symfile.c (reread_symbols): Clear objfile's section_offsets
4561 vector and section indices, re-compute them by calling
4562 sym_offsets.
4563
4564 2020-05-20 Tom Tromey <tromey@adacore.com>
4565
4566 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4567 (desc_one_bound, desc_index_type): Compute field name.
4568
4569 2020-05-20 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/25833
4572 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4573
4574 2020-05-20 Alan Modra <amodra@gmail.com>
4575
4576 PR 25993
4577 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4578 bfd_set_filename.
4579 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4580 passed to bfd_set_filename.
4581 * symfile-mem.c (add_vsyscall_page): Likewise for string
4582 passed to symbol_file_add_from_memory.
4583 (symbol_file_add_from_memory): Make name param a const char* and
4584 don't strdup.
4585
4586 2020-05-20 Alan Modra <amodra@gmail.com>
4587
4588 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4589 rather than accessing bfd->filename directly.
4590 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4591 and use bfd_section_name.
4592 * dwarf2/frame.c (decode_frame_entry): Likewise.
4593 * exec.c (exec_set_section_address): Likewise.
4594 * solib-aix.c (solib_aix_bfd_open): Likewise.
4595 * stap-probe.c (get_stap_base_address): Likewise.
4596 * symfile.c (reread_symbols): Likewise.
4597
4598 2020-05-19 Tom Tromey <tromey@adacore.com>
4599
4600 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4601
4602 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4605
4606 2020-05-19 Pedro Alves <palves@redhat.com>
4607
4608 * NEWS (set exec-file-mismatch): Adjust entry.
4609 * exec.c: Include "build-id.h".
4610 (validate_exec_file): Try to match build IDs instead of filenames.
4611 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4612 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4613 and pass down 'warn_if_slow'.
4614 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4615 gdb_bfd_open_closure to pass it down.
4616 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4617
4618 2020-05-19 Pedro Alves <palves@redhat.com>
4619
4620 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4621 * target.c (target_fileio_open_1): Rename to target_fileio_open
4622 and make extern. Use bool.
4623 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4624 (target_fileio_read_alloc_1): Adjust.
4625 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4626 (target_fileio_open_warn_if_slow): Delete declaration.
4627
4628 2020-05-19 Pedro Alves <palves@redhat.com>
4629
4630 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4631 Adjust all callers.
4632
4633 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4634
4635 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4636 whether disp is negative.
4637
4638 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * symfile.h (struct symfile_segment_data)
4641 <~symfile_segment_data>: Remove.
4642 <segment_info>: Change to std::vector.
4643 * symfile.c (default_symfile_segments): Update.
4644 * elfread.c (elf_symfile_segments): Update.
4645
4646 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4649 <segments>: New.
4650 <segment_bases, segment_sizes>: Remove.
4651 * symfile.c (default_symfile_segments): Update.
4652 * elfread.c (elf_symfile_segments): Update.
4653 * remote.c (remote_target::get_offsets): Update.
4654 * solib-target.c (solib_target_relocate_section_addresses):
4655 Update.
4656
4657 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * symfile.h (struct symfile_segment_data): Initialize fields.
4660 <~symfile_segment_data>: Add.
4661 (symfile_segment_data_up): New.
4662 (struct sym_fns) <sym_segments>: Return a
4663 symfile_segment_data_up.
4664 (default_symfile_segments): Return a symfile_segment_data_up.
4665 (free_symfile_segment_data): Remove.
4666 (get_symfile_segment_data): Return a symfile_segment_data_up.
4667 * symfile.c (default_symfile_segments): Likewise.
4668 (get_symfile_segment_data): Likewise.
4669 (free_symfile_segment_data): Remove.
4670 (symfile_find_segment_sections): Update.
4671 * elfread.c (elf_symfile_segments): Return a
4672 symfile_segment_data_up.
4673 * remote.c (remote_target::get_offsets): Update.
4674 * solib-target.c (solib_target_relocate_section_addresses):
4675 Update.
4676 * symfile-debug.c (debug_sym_segments): Return a
4677 symfile_segment_data_up.
4678
4679 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4680
4681 PR build/25981
4682 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4683 Hardcode register numbers.
4684
4685 PR build/25981
4686 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4687 procfs_find_LDT_entry): Remove.
4688 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4689 procfs_find_LDT_entry): Remove.
4690 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4691 Remove.
4692
4693 2020-05-17 Pedro Alves <palves@redhat.com>
4694 Andrew Burgess <andrew.burgess@embecosm.com>
4695 Keno Fischer <keno@juliacomputing.com>
4696
4697 PR gdb/25741
4698 * breakpoint.c (build_target_condition_list): Update comments.
4699 (build_target_command_list): Update comments and skip matching
4700 locations.
4701 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4702 a separate function. Simplify "set breakpoint auto-hw off"
4703 handling.
4704 (insert_breakpoints): Update comment.
4705 (tracepoint_locations_match): New parameter. For breakpoints,
4706 compare location types too, if the caller wants to.
4707 (handle_automatic_hardware_breakpoints): New functions.
4708 (bp_location_is_less_than): Also sort by location type and
4709 hardware breakpoint length.
4710 (update_global_location_list): Handle "set breakpoint auto-hw on"
4711 here.
4712 (update_breakpoint_locations): Ask breakpoint_locations_match to
4713 ignore location types.
4714
4715 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4718 type::name instead.
4719
4720 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * gdbtypes.h (struct type) <name, set_name>: New methods.
4723 (TYPE_CODE): Use type::name. Change all call sites used to set
4724 the name to use type::set_name instead.
4725
4726 2020-05-16 Tom Tromey <tom@tromey.com>
4727
4728 * top.c (quit_force): Update.
4729 * infrun.c (handle_no_resumed): Update.
4730 * top.h (all_uis): New function.
4731 (ALL_UIS): Remove.
4732
4733 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4736
4737 2020-05-16 Pedro Alves <palves@redhat.com>
4738
4739 * ia64-linux-nat.c
4740 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4741 Declare method.
4742 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4743
4744 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4747 (sparc64_adi_info): Likewise.
4748
4749 2020-05-15 Tom Tromey <tom@tromey.com>
4750
4751 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4752 block_objfile.
4753 (lookup_objfile_from_block): Remove.
4754 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4755 (lookup_global_symbol): Use block_objfile.
4756 * symtab.h (lookup_objfile_from_block): Don't declare.
4757 * printcmd.c (clear_dangling_display_expressions): Use
4758 block_objfile.
4759 * parse.c (operator_check_standard): Use block_objfile.
4760
4761 2020-05-15 Tom Tromey <tom@tromey.com>
4762
4763 * language.c (language_alloc_type_symbol): Set
4764 SYMBOL_SECTION.
4765 * symtab.c (initialize_objfile_symbol): Remove.
4766 (allocate_symbol): Remove.
4767 (allocate_template_symbol): Remove.
4768 * dwarf2/read.c (fixup_go_packaging): Use "new".
4769 (new_symbol): Use "new".
4770 (read_variable): Don't call initialize_objfile_symbol. Use
4771 "new".
4772 (read_func_scope): Use "new".
4773 * xcoffread.c (process_xcoff_symbol): Don't call
4774 initialize_objfile_symbol.
4775 (SYMBOL_DUP): Remove.
4776 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4777 "new".
4778 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4779 (allocate_template_symbol): Don't declare.
4780 (struct symbol): Add copy constructor. Change defaults.
4781 * jit.c (finalize_symtab): Use "new".
4782 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4783 Use "new".
4784 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4785 (common_block_end): Use "new".
4786 * mdebugread.c (parse_symbol): Use "new".
4787 (new_symbol): Likewise.
4788
4789 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4790
4791 * NEWS: Mention changes to help and apropos.
4792
4793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * command.h (enum command_class): Improve comments, document
4796 that class_alias is for user-defined aliases, give the class
4797 name for each class, remove unused class_xdb.
4798 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4799 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4800 by a precise class.
4801 * infcmd.c (_initialize_infcmd): Likewise.
4802 * reverse.c (_initialize_reverse): Likewise.
4803 * stack.c (_initialize_stack): Likewise.
4804 * symfile.c (_initialize_symfile): Likewise.
4805 * tracepoint.c (_initialize_tracepoint): Likewise.
4806
4807 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4808
4809 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4810 when their aliased command is traversed.
4811 (help_cmd): Add fput_command_names_styled call to
4812 output command name and aliases when command has an alias.
4813
4814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4817 * cli/cli-decode.c (help_cmd_list): Declare as static,
4818 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4819 a command together with the command.
4820 (fput_command_name_styled, fput_command_names_styled): New functions.
4821 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4822 fput_command_name_styled.
4823 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4824 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4825
4826 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4827
4828 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4829 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4830 * command.h (cmd_show_list): Likewise.
4831 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4832 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4833
4834 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835
4836 * unittests/command-def-selftests.c (traverse_command_structure):
4837 Verify all commands of a list have the same prefix command and
4838 that only the top cmdlist commands have a null prefix.
4839
4840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4843 as prefix, not one of its aliases.
4844 (set_cmd_prefix): Remove.
4845 (do_add_cmd): Centralize the setting of the prefix of a command, when
4846 command is defined after its full chain of prefix commands.
4847 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4848 (add_setshow_cmd_full): Likewise.
4849 (update_prefix_field_of_prefixed_commands): New function.
4850 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4851 update_prefix_field_of_prefixed_commands.
4852 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4853 addresses of remote_set_cmdlist and remote_show_cmdlist given
4854 as argument, not the address of an argument.
4855 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4856 * gdb/remote.c (_initialize_remote): Likewise.
4857
4858 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4859
4860 * cli/cli-cmds.c (alias_command): Check for an existing alias
4861 using lookup_cmd_composition, as valid_command_p is too strict
4862 and forbids aliases that are the prefix of an existing alias
4863 or command.
4864 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4865 command is properly recognised as a valid command.
4866
4867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4868
4869 * unittests/help-doc-selftests.c: Rename to
4870 unittests/command-def-selftests.c
4871 * unittests/command-def-selftests.c (help_doc_tests): Update some
4872 comments.
4873 (command_structure_tests, traverse_command_structure): New namespace
4874 and function.
4875 (command_structure_invariants_tests): New function.
4876 (_initialize_command_def_selftests) Renamed from
4877 _initialize_help_doc_selftests, register command_structure_invariants
4878 selftest.
4879
4880 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4881
4882 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4883 an alias of 'show'.
4884
4885 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4886
4887 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4888 ada_is_fixed_point_type. Update all callers.
4889 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4890 all callers.
4891 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4892 Update all callers.
4893 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4894 print_fixed_point_type. Update all callers.
4895 * ada-valprint.c (ada_value_print_num): Replace call to
4896 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4897
4898 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4899
4900 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4901 processors.
4902 (cpu_supports_bts): Add CV_AMD case.
4903
4904 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4905 Simon Marchi <simon.marchi@efficios.com>
4906
4907 * infrun.c (stop_all_threads): Collect multiple wait events at
4908 each pass.
4909
4910 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4913 type::code instead.
4914
4915 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * gdbtypes.h (struct type) <code, set_code>: New methods.
4918 (TYPE_CODE): Use type::code. Change all call sites used to set
4919 the code to use type::set_code instead.
4920
4921 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4922 Tom de Vries <tdevries@suse.de>
4923 Pedro Alves <palves@redhat.com>
4924
4925 PR threads/25478
4926 * infrun.c (stop_all_threads): Do NOT ignore
4927 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4928 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4929 received.
4930 (handle_no_resumed): Remove code handling a live inferior with no
4931 threads.
4932 * remote.c (has_single_non_exited_thread): New.
4933 (remote_target::update_thread_list): Do not delete a thread if is
4934 the last thread of the process.
4935 * thread.c (thread_select): Call delete_exited_threads instead of
4936 prune_threads.
4937
4938 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4939
4940 * infrun.c (stop_all_threads): Enable/disable thread events of all
4941 targets. Move a debug message denoting the end of the function
4942 into the SCOPED_EXIT block.
4943
4944 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4945
4946 * process-stratum-target.h: Include <set>.
4947 (all_non_exited_process_targets, switch_to_target_no_thread): New
4948 function declarations.
4949 * process-stratum-target.c (all_non_exited_process_targets)
4950 (switch_to_target_no_thread): New function implementations.
4951
4952 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4953
4954 * infrun.c (handle_inferior_event): Extract out a piece of code
4955 into...
4956 (mark_non_executing_threads): ...this new function.
4957
4958 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4959
4960 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4961 use.
4962
4963 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4964
4965 * regcache.c (regcache_read_pc_protected): New function
4966 implementation that returns 0 if the PC cannot read via
4967 'regcache_read_pc'.
4968 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4969 instead of 'regcache_read_pc'.
4970 (keep_going_pass_signal): Ditto.
4971
4972 2020-05-13 Tom Tromey <tromey@adacore.com>
4973
4974 * ada-lang.c (align_value): Remove.
4975 (ada_template_to_fixed_record_type_1): Use align_up.
4976
4977 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4978
4979 * async-event.c: Update the copyright year.
4980 * async-event.h: Update the copyright year.
4981
4982 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * objfiles.h (is_addr_in_objfile,
4985 shared_objfile_contains_address_p): Return bool.
4986 * objfile.c (is_addr_in_objfile,
4987 shared_objfile_contains_address_p): Return bool.
4988
4989 2020-05-11 Tom Tromey <tromey@adacore.com>
4990
4991 * cli/cli-cmds.c (info_command): Restore.
4992 (_initialize_cli_cmds): Use add_prefix_command for "info".
4993 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4994
4995 2020-05-11 Tom Tromey <tromey@adacore.com>
4996
4997 * ada-lang.c (ada_value_primitive_field): Now public.
4998 * ada-lang.h (ada_value_primitive_field): Declare.
4999 * ada-valprint.c (print_field_values): Use
5000 ada_value_primitive_field for wrapper fields.
5001
5002 2020-05-11 Tom de Vries <tdevries@suse.de>
5003
5004 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5005 MODULE_DOMAIN.
5006
5007 2020-05-11 Tom de Vries <tdevries@suse.de>
5008
5009 PR symtab/25941
5010 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5011 with length 0, if not gdb-produced.
5012 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5013
5014 2020-05-09 Tom de Vries <tdevries@suse.de>
5015
5016 PR gdb/25955
5017 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5018 calculation.
5019
5020 2020-05-09 Tom Tromey <tom@tromey.com>
5021
5022 * top.c (server_command): Now bool.
5023 * top.h (server_command): Now bool.
5024
5025 2020-05-08 Tom Tromey <tromey@adacore.com>
5026
5027 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5028 already being processed.
5029
5030 2020-05-08 Tom Tromey <tom@tromey.com>
5031
5032 * printcmd.c (struct display) <next>: Remove.
5033 <display>: New constructor.
5034 <exp_string>: Now a std::string.
5035 <enabled_p>: Now a bool.
5036 (display_number): Move definition earlier.
5037 (displays): Rename from display_chain. Now a std::vector.
5038 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5039 (display_command): Update.
5040 (do_one_display, disable_display)
5041 (enable_disable_display_command, do_enable_disable_display):
5042 Update.
5043 (free_display): Remove.
5044 (clear_displays): Rewrite.
5045 (delete_display): Update.
5046 (map_display_numbers): Use function_view. Remove "data"
5047 parameter. Update.
5048 (do_delete_display): Remove.
5049 (undisplay_command): Update.
5050 (do_one_display, do_displays, disable_display)
5051 (info_display_command): Update.
5052 (do_enable_disable_display): Remove.
5053 (enable_disable_display_command)
5054 (clear_dangling_display_expressions): Update.
5055
5056 2020-05-08 Tom Tromey <tom@tromey.com>
5057
5058 * symtab.c (set_symbol_cache_size)
5059 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5060 (maintenance_print_symbol_cache_statistics): Update.
5061 * symmisc.c (print_symbol_bcache_statistics)
5062 (print_objfile_statistics, maintenance_print_objfiles)
5063 (maintenance_info_symtabs, maintenance_check_symtabs)
5064 (maintenance_expand_symtabs, maintenance_info_line_tables):
5065 Update.
5066 * symfile-debug.c (set_debug_symfile): Update.
5067 * source.c (forget_cached_source_info): Update.
5068 * python/python.c (gdbpy_progspaces): Update.
5069 * psymtab.c (maintenance_info_psymtabs): Update.
5070 * probe.c (parse_probes): Update.
5071 * linespec.c (iterate_over_all_matching_symtabs)
5072 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5073 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5074 * exec.c (exec_target::close): Update.
5075 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5076 * breakpoint.c (print_one_breakpoint_location)
5077 (create_longjmp_master_breakpoint)
5078 (create_std_terminate_master_breakpoint): Update.
5079 * progspace.c (program_spaces): Now a std::vector.
5080 (maybe_new_address_space): Update.
5081 (add_program_space): Remove.
5082 (program_space::program_space): Update.
5083 (remove_program_space): Update.
5084 (number_of_program_spaces): Remove.
5085 (print_program_space, update_address_spaces): Update.
5086 * progspace.h (program_spaces): Change type.
5087 (ALL_PSPACES): Remove.
5088 (number_of_program_spaces): Don't declare.
5089 (struct program_space) <next>: Remove.
5090
5091 2020-05-08 Tom Tromey <tom@tromey.com>
5092
5093 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5094 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5095 (enable_break): Update.
5096 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5097 (frv_fdpic_find_canonical_descriptor): Update.
5098 (frv_fetch_objfile_link_map): Update.
5099 * progspace.c (program_space::free_all_objfiles): Update.
5100 (program_space::solibs): New method.
5101 * progspace.h (struct program_space) <solibs>: New method.
5102 * solist.h (master_so_list): Don't declare.
5103 (ALL_SO_LIBS): Remove.
5104 * solib.h (so_list_head): Remove.
5105 (update_solib_list): Update comment.
5106 * solib.c (master_so_list): Remove.
5107 (solib_used, update_solib_list, solib_add)
5108 (info_sharedlibrary_command, clear_solib)
5109 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5110
5111 2020-05-08 Tom Tromey <tom@tromey.com>
5112
5113 * extension.c (extension_languages): Now a std::array.
5114 (ALL_EXTENSION_LANGUAGES): Remove.
5115 (get_ext_lang_defn, get_ext_lang_of_file)
5116 (eval_ext_lang_from_control_command): Update.
5117 (finish_ext_lang_initialization)
5118 (auto_load_ext_lang_scripts_for_objfile)
5119 (ext_lang_type_printers::ext_lang_type_printers)
5120 (apply_ext_lang_type_printers)
5121 (ext_lang_type_printers::~ext_lang_type_printers)
5122 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5123 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5124 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5125 (get_matching_xmethod_workers, ext_lang_colorize)
5126 (ext_lang_before_prompt): Update.
5127 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5128
5129 2020-05-08 Tom Tromey <tom@tromey.com>
5130
5131 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5132 overload.
5133 <swap_string, m_string>: Remove.
5134 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5135 Update.
5136 * stabsread.c (define_symbol, read_type): Update.
5137 * linespec.c (find_linespec_symbols): Update.
5138 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5139 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5140 * dbxread.c (read_dbx_symtab): Update.
5141 * cp-support.h (cp_canonicalize_string_full)
5142 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5143 Return unique_xmalloc_ptr.
5144 * cp-support.c (inspect_type): Update.
5145 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5146 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5147 Likewise.
5148 * c-typeprint.c (print_name_maybe_canonical): Update.
5149 * break-catch-throw.c (check_status_exception_catchpoint):
5150 Update.
5151
5152 2020-05-08 Tom de Vries <tdevries@suse.de>
5153
5154 * infrun.c (follow_fork): Copy current_line and current_symtab to
5155 child thread.
5156
5157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * async-event.c (struct async_signal_handler, struct
5160 async_event_handler): Reformat, remove typedef.
5161
5162 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5165 access thistype->main_type->dyn_prop_list directly.
5166
5167 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5170 (remove_dyn_prop): Remove. Update all users to use
5171 type::remove_dyn_prop.
5172 * gdbtypes.c (remove_dyn_prop): Rename to...
5173 (type::remove_dyn_prop): ... this.
5174
5175 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5176
5177 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5178 (add_dyn_prop): Remove. Update all users to use
5179 type::add_dyn_prop.
5180 * gdbtypes.c (add_dyn_prop): Rename to...
5181 (type::add_dyn_prop): ... this.
5182
5183 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5186 (get_dyn_prop): Remove. Update all users to use
5187 type::dyn_prop.
5188 * gdbtypes.c (get_dyn_prop): Rename to...
5189 (type::dyn_prop): ... this.
5190
5191 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5194
5195 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5198 instruction, skip it if it's there.
5199
5200 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5203
5204 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5207 * gdbtypes.c (recursive_dump_type): Remove use of
5208 TYPE_INCOMPLETE.
5209
5210 2020-05-03 Tom Tromey <tom@tromey.com>
5211
5212 * breakpoint.c (catch_command, tcatch_command): Remove.
5213 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5214 add_show_prefix_cmd.
5215 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5216 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5217 Remove.
5218 (add_internal_problem_command): Use add_basic_prefix_cmd,
5219 add_show_prefix_cmd.
5220 * mips-tdep.c (set_mipsfpu_command): Remove.
5221 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5222 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5223 (_initialize_index_cache): Use add_basic_prefix_cmd.
5224 * memattr.c (dummy_cmd): Remove.
5225 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5226 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5227 (_initialize_tui_win): Use add_basic_prefix_cmd,
5228 add_show_prefix_cmd.
5229 * cli/cli-logging.c (set_logging_command): Remove.
5230 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5231 add_show_prefix_cmd.
5232 (show_logging_command): Remove.
5233 * target.c (target_command): Remove.
5234 (add_target): Use add_basic_prefix_cmd.
5235
5236 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5237
5238 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5239
5240 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5241
5242 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5243 info_command.
5244
5245 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5246
5247 * nbsd-nat.c (nbsd_enable_proc_events)
5248 (nbsd_nat_target::post_startup_inferior): Add.
5249 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5250 (nbsd_nat_target::update_thread_list): Rewrite.
5251 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5252 "PTRACE_LWP_CREATE".
5253 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5254
5255 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5256
5257 * stack.c (_initialize_stack): Remove duplicated creation
5258 of "frame" command and "f" alias.
5259
5260 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5261
5262 PR gdb/18706
5263 * gdbtypes.c (check_typedef): Calculate size of array of
5264 stubbed type.
5265
5266 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5267
5268 PR gdb/15559
5269 * i386-tdep.c (i386_push_dummy_call): Call
5270 i386_thiscall_push_dummy_call.
5271 (i386_thiscall_push_dummy_call): New function.
5272 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5273 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5274 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5275
5276 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * gdbarch.sh (do_read): Add shellcheck disable directive for
5279 warning SC2162.
5280
5281 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5284 "referenced but not assigned" warning.
5285
5286 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbarch.sh: Remove code that sets fallbackdefault.
5289
5290 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbarch.sh: Use shell operators && and || instead of
5293 -a and -o.
5294
5295 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbarch.sh: Use $(...) instead of `...`.
5298
5299 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * gdbarch.sh: Use double quotes around variables.
5302
5303 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbarch.sh: Use %s with printf, instead of variables in the
5306 format string.
5307
5308 2020-04-29 Tom Tromey <tromey@adacore.com>
5309
5310 PR ada/25875:
5311 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5312 type fields here.
5313 (read_enumeration_type): Call
5314 update_enumeration_type_from_children later. Update comments.
5315 (process_enumeration_scope): Don't create type fields.
5316
5317 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5318
5319 * nbsd-tdep.c: Include "xml-syscall.h".
5320 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5321
5322 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5323
5324 * nbsd-nat.c: Include "sys/wait.h".
5325 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5326 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5327 (nbsd_nat_target::remove_exec_catchpoint)
5328 (nbsd_nat_target::set_syscall_catchpoint): Add.
5329 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5330 (nbsd_nat_target::insert_exec_catchpoint)
5331 (nbsd_nat_target::remove_exec_catchpoint)
5332 (nbsd_nat_target::set_syscall_catchpoint): Add.
5333 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5334 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5335 `nbsd_get_syscall_number'.
5336
5337 2020-04-29 Tom Tromey <tom@tromey.com>
5338
5339 * stack.c (print_block_frame_labels): Remove.
5340
5341 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5342
5343 PR gdb/17320
5344 * ada-valprint.c (val_print_packed_array_elements): Move array
5345 end bracket to new line.
5346 (ada_val_print_string): Remove extra spaces before first array
5347 element.
5348 * c-valprint.c (c_value_print_array): Likewise.
5349 * m2-valprint.c (m2_print_array_contents): Likewise.
5350 (m2_value_print_inner): Likewise.
5351 * p-valprint.c (pascal_value_print_inner): Likewise.
5352 * valprint.c (generic_val_print_array): Likewise.
5353 (value_print_array_elements): Move first array element and array
5354 end bracket to new line.
5355
5356 2020-04-29 Tom de Vries <tdevries@suse.de>
5357
5358 PR symtab/25889
5359 * linespec.c (find_method): Fix ix calculation.
5360
5361 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5362
5363 * syscalls/update-netbsd.sh: New file.
5364 * syscalls/netbsd.xml: Regenerate.
5365 * data-directory/Makefile.in: Register `netbsd.xml' in
5366 `SYSCALLS_FILES'.
5367
5368 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * syscalls/update-freebsd.sh: Add double quotes.
5371
5372 2020-04-28 Tom Tromey <tom@tromey.com>
5373
5374 * NEWS: Update.
5375 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5376 (cmdpy_init): Allow class_tui.
5377
5378 2020-04-28 Mark Williams <mark@myosotissp.com>
5379
5380 PR gdb/24480
5381 * dwarf2read.c: Add missing assingments to list_in_scope when
5382 start_symtab was already called.
5383
5384 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5385
5386 PR gdb/25881
5387 * dwarf2/read.c (offset_map_type): Use
5388 gdb:hash_enum<sect_offset> as hash function.
5389
5390 2020-04-28 Tom de Vries <tdevries@suse.de>
5391
5392 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5393 with DW_AT_signature.
5394
5395 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5396
5397 * configure.ac: Remove check for fs_base/gs_base in
5398 user_regs_struct.
5399 * configure: Re-generate.
5400 * config.in: Re-generate.
5401 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5402 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5403 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5404
5405 2020-04-27 Luis Machado <luis.machado@linaro.org>
5406
5407 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5408 problematic inline frame unwinding situation.
5409 * frame.c (frame_id_computed_p): New function.
5410 * frame.h (frame_id_computed_p): New prototype.
5411
5412 2020-04-26 Tom Tromey <tom@tromey.com>
5413
5414 * command.h (enum command_class) <class_pseudo>: Remove.
5415
5416 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5417
5418 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5419 and whitespace.
5420
5421 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5422
5423 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5424 `PT_GET_PROCESS_STATE' block.
5425
5426 2020-04-24 Tom Tromey <tom@tromey.com>
5427
5428 * symtab.h (symbol_get_demangled_name): Don't declare.
5429 * symtab.c (symbol_get_demangled_name): Remove.
5430 (general_symbol_info::natural_name)
5431 (general_symbol_info::demangled_name): Update.
5432
5433 2020-04-24 Tom Tromey <tom@tromey.com>
5434
5435 PR rust/25025:
5436 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5437
5438 2020-04-24 Tom Tromey <tom@tromey.com>
5439
5440 PR symtab/12707:
5441 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5442 exists.
5443 (new_symbol): Likewise.
5444 * compile/compile-object-load.c (get_out_value_type): Use
5445 symbol_matches_search_name.
5446
5447 2020-04-24 Tom Tromey <tom@tromey.com>
5448
5449 * dwarf2/read.c (add_partial_symbol): Do not call
5450 compute_and_set_names.
5451
5452 2020-04-24 Tom Tromey <tom@tromey.com>
5453
5454 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5455 overload.
5456
5457 2020-04-24 Tom Tromey <tom@tromey.com>
5458
5459 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5460 (add_psymbol_to_list): New overload. Make old overload call new
5461 one.
5462 * psympriv.h (add_psymbol_to_list): New overload.
5463
5464 2020-04-24 Tom Tromey <tom@tromey.com>
5465
5466 * dwarf2/read.c (partial_die_info::read) <case
5467 DW_AT_linkage_name>: Use value_as_string.
5468 (dwarf2_string_attr): Use value_as_string.
5469 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5470 method.
5471 * dwarf2/attribute.c (attribute::value_as_string): New method.
5472
5473 2020-04-24 Tom Tromey <tom@tromey.com>
5474
5475 * symtab.c (general_symbol_info::natural_name)
5476 (general_symbol_info::demangled_name): Check for language_rust.
5477
5478 2020-04-24 Tom Tromey <tom@tromey.com>
5479
5480 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5481 (dwarf2_physname): ... from here.
5482 (partial_die_info::read): Add Rust "{" hack.
5483
5484 2020-04-24 Tom Tromey <tom@tromey.com>
5485
5486 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5487 method.
5488 (symbol_set_demangled_name): Don't declare.
5489 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5490 symbol_set_demangled_name.
5491 (general_symbol_info::set_language)
5492 (general_symbol_info::compute_and_set_names): Update.
5493 * minsyms.c (minimal_symbol_reader::install): Update.
5494 * dwarf2/read.c (new_symbol): Update.
5495
5496 2020-04-24 Tom Tromey <tromey@adacore.com>
5497
5498 PR python/23662:
5499 * python/py-type.c (convert_field): Handle
5500 FIELD_LOC_KIND_DWARF_BLOCK.
5501 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5502 (typy_get_dynamic): Nw function.
5503 (type_object_getset): Add "dynamic".
5504 * NEWS: Add entry.
5505
5506 2020-04-24 Tom Tromey <tromey@adacore.com>
5507
5508 * ada-typeprint.c (print_choices, print_variant_part)
5509 (print_record_field_types_dynamic): New functions.
5510 (print_record_field_types): Use print_record_field_types_dynamic.
5511
5512 2020-04-24 Tom Tromey <tromey@adacore.com>
5513
5514 * dwarf2/read.c (handle_data_member_location): New overload.
5515 (dwarf2_add_field): Use it.
5516 (decode_locdesc): Add "computed" parameter. Update comment.
5517 * gdbtypes.c (is_dynamic_type_internal): Also look for
5518 FIELD_LOC_KIND_DWARF_BLOCK.
5519 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5520 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5521 virtual base classes.
5522 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5523 FIELD_LOC_KIND_DWARF_BLOCK.
5524
5525 2020-04-24 Tom Tromey <tromey@adacore.com>
5526
5527 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5528 * gdbtypes.c (is_dynamic_type_internal): Check
5529 TYPE_HAS_DYNAMIC_LENGTH.
5530 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5531 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5532 New macros.
5533 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5534 constant.
5535
5536 2020-04-24 Tom Tromey <tromey@adacore.com>
5537
5538 * dwarf2/read.c (struct variant_field): Rewrite.
5539 (struct variant_part_builder): New.
5540 (struct nextfield): Remove "variant" field. Add "offset".
5541 (struct field_info): Add "current_variant_part" and
5542 "variant_parts".
5543 (alloc_discriminant_info): Remove.
5544 (alloc_rust_variant): New function.
5545 (quirk_rust_enum): Update.
5546 (dwarf2_add_field): Set "offset" member. Don't handle
5547 DW_TAG_variant_part.
5548 (offset_map_type): New typedef.
5549 (convert_variant_range, create_one_variant)
5550 (create_one_variant_part, create_variant_parts)
5551 (add_variant_property): New functions.
5552 (dwarf2_attach_fields_to_type): Call add_variant_property.
5553 (read_structure_type): Don't handle DW_TAG_variant_part.
5554 (handle_variant_part, handle_variant): New functions.
5555 (handle_struct_member_die): Use them.
5556 (process_structure_scope): Don't handle variant parts.
5557 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5558 (struct discriminant_info): Remove.
5559 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5560 (struct main_type) <flag_discriminated_union>: Remove.
5561 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5562 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5563 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5564 Update.
5565 * valops.c (value_union_variant): Remove.
5566 * value.h (value_union_variant): Don't declare.
5567
5568 2020-04-24 Tom Tromey <tromey@adacore.com>
5569
5570 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5571 (ada_value_primitive_packed_val): Update.
5572 * ada-valprint.c (ada_value_print_1): Update.
5573 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5574 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5575 just an address. Use evaluate_for_locexpr_baton.
5576 (dwarf2_evaluate_property): Update.
5577 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5578 array_view.
5579 * findvar.c (default_read_var_value): Update.
5580 * gdbtypes.c (compute_variant_fields_inner)
5581 (resolve_dynamic_type_internal): Update.
5582 (resolve_dynamic_type): Change type of valaddr parameter.
5583 * gdbtypes.h (resolve_dynamic_type): Update.
5584 * valarith.c (value_subscripted_rvalue): Update.
5585 * value.c (value_from_contents_and_address): Update.
5586
5587 2020-04-24 Tom Tromey <tromey@adacore.com>
5588
5589 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5590 "push_initial_value" parameter.
5591 (dwarf2_evaluate_property): Likewise.
5592 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5593
5594 2020-04-24 Tom Tromey <tromey@adacore.com>
5595
5596 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5597 (variant::matches, compute_variant_fields_recurse)
5598 (compute_variant_fields_inner, compute_variant_fields): New
5599 functions.
5600 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5601 Use resolved_type after type is made.
5602 (operator==): Add new cases.
5603 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5604 (struct discriminant_range, struct variant, struct variant_part):
5605 New.
5606 (union dynamic_prop_data) <variant_parts, original_type>: New
5607 members.
5608 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5609 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5610 constants.
5611 * value.c (unpack_bits_as_long): Now public.
5612 * value.h (unpack_bits_as_long): Declare.
5613
5614 2020-04-24 Tom Tromey <tromey@adacore.com>
5615
5616 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5617 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5618
5619 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5620
5621 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5622
5623 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5624
5625 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5626 (remove_fork_catchpoint, post_startup_inferior)
5627 (post_attach): Move...
5628 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5629 (remove_fork_catchpoint, post_startup_inferior)
5630 (post_attach): ...here.
5631 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5632 (remove_fork_catchpoint, post_startup_inferior)
5633 (post_attach): Move...
5634 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5635 (remove_fork_catchpoint, post_startup_inferior)
5636 (post_attach): ...here.
5637
5638 2020-04-24 Tom Tromey <tromey@adacore.com>
5639
5640 * nat/windows-nat.h (struct windows_thread_info)
5641 <pc_adjusted>: New member.
5642 * windows-nat.c (windows_fetch_one_register): Check
5643 pc_adjusted.
5644 (windows_nat_target::get_windows_debug_event)
5645 (windows_nat_target::wait): Set pc_adjusted.
5646
5647 2020-04-24 Tom de Vries <tdevries@suse.de>
5648
5649 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5650 Run gdb-add-index inside temp dir.
5651
5652 2020-04-23 Tom Tromey <tromey@adacore.com>
5653
5654 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5655 in loop.
5656
5657 2020-04-23 Luis Machado <luis.machado@linaro.org>
5658
5659 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5660 get_frame_register instead of gdbarch_unwind_pc.
5661
5662 2020-04-23 Tom de Vries <tdevries@suse.de>
5663
5664 * symtab.c (lookup_global_symbol): Prefer def over decl.
5665
5666 2020-04-23 Tom de Vries <tdevries@suse.de>
5667
5668 PR symtab/25807
5669 * block.c (best_symbol, better_symbol): Promote to external.
5670 * block.h (best_symbol, better_symbol): Declare.
5671 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5672 decl.
5673
5674 2020-04-23 Tom Tromey <tromey@adacore.com>
5675
5676 PR ada/25837:
5677 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5678 "const char *", not a "const std::string &".
5679 <name_and_matcher::operator==>: Update.
5680 * unittests/lookup_name_info-selftests.c: Change type of
5681 "result".
5682
5683 2020-04-23 Tom Tromey <tom@tromey.com>
5684
5685 * inferior.h (iterate_over_inferiors): Don't declare.
5686 * inferior.c (iterate_over_inferiors): Remove.
5687 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5688 Remove.
5689 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5690 use iterate_over_inferiors.
5691 (darwin_resume_inferior_it)
5692 (struct resume_inferior_threads_param)
5693 (darwin_resume_inferior_threads_it): Remove.
5694 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5695
5696 2020-04-23 Tom de Vries <tdevries@suse.de>
5697
5698 * blockframe.c (find_pc_partial_function): Use
5699 find_pc_sect_compunit_symtab rather than
5700 objfile->sf->qf->find_pc_sect_compunit_symtab.
5701
5702 2020-04-22 Tom de Vries <tdevries@suse.de>
5703
5704 PR symtab/25764
5705 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5706 in psymtabs.
5707
5708 2020-04-22 Tom de Vries <tdevries@suse.de>
5709
5710 PR symtab/25801
5711 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5712 symtabs.
5713
5714 2020-04-22 Tom de Vries <tdevries@suse.de>
5715
5716 PR symtab/25700
5717 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5718 CU if already created.
5719
5720 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5721
5722 * infrun.c (displaced_step_fixup): Switch to the event_thread
5723 before calling displaced_step_restore, not after.
5724
5725 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5726
5727 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5728 its inferior is not recorded by us.
5729 (record_btrace_target_open): Replace call to
5730 all_non_exited_threads () with call to current_inferior
5731 ()->non_exited_threads ().
5732 (record_btrace_target::stop_recording): Likewise.
5733 (record_btrace_target::close): Likewise.
5734 (record_btrace_target::wait): Likewise.
5735 (record_btrace_target::record_stop_replaying): Likewise.
5736
5737 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5738
5739 * btrace.c (btrace_enable): Throw an error on double enables and
5740 when enabling recording fails.
5741 (btrace_disable): Throw an error if the thread is not recorded.
5742
5743 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5744
5745 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5746 request if we do not have a thread_info.
5747
5748 2020-04-21 Tom de Vries <tdevries@suse.de>
5749
5750 PR gdb/25471
5751 * thread.c
5752 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5753 exception in get_frame_id.
5754
5755 2020-04-20 Tom Tromey <tromey@adacore.com>
5756
5757 * python/python.c (struct gdbpy_event): Mark move constructor as
5758 noexcept.
5759 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5760 constructor as noexcept.
5761 * completer.h (struct completion_result): Mark move constructor as
5762 noexcept.
5763 * completer.c (completion_result::completion_result): Use
5764 initialization style. Don't call reset_match_list.
5765
5766 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5767
5768 * MAINTAINERS (Write After Approval): Add myself.
5769
5770 2020-04-18 Tom Tromey <tom@tromey.com>
5771
5772 * windows-tdep.c (init_w32_command_list)
5773 (w32_prefix_command_valid): Restore.
5774 (_initialize_windows_tdep): Call init_w32_command_list.
5775
5776 2020-04-18 Tom Tromey <tom@tromey.com>
5777
5778 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5779 * value.c (value_fn_field): Update.
5780 * valops.c (find_function_in_inferior)
5781 (value_allocate_space_in_inferior): Update.
5782 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5783 Update.
5784 * tui/tui-source.c (tui_source_window::set_contents): Update.
5785 * symtab.c (lookup_global_or_static_symbol)
5786 (find_function_start_sal_1, skip_prologue_sal)
5787 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5788 * symmisc.c (dump_msymbols, dump_symtab_1)
5789 (maintenance_print_one_line_table): Update.
5790 * symfile.c (init_entry_point_info, section_is_mapped)
5791 (list_overlays_command, simple_read_overlay_table)
5792 (simple_overlay_update_1): Update.
5793 * stap-probe.c (handle_stap_probe): Update.
5794 * stabsread.c (dbx_init_float_type, define_symbol)
5795 (read_one_struct_field, read_enum_type, read_range_type): Update.
5796 * source.c (info_line_command): Update.
5797 * python/python.c (gdbpy_source_objfile_script)
5798 (gdbpy_execute_objfile_script): Update.
5799 * python/py-type.c (save_objfile_types): Update.
5800 * python/py-objfile.c (py_free_objfile): Update.
5801 * python/py-inferior.c (python_new_objfile): Update.
5802 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5803 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5804 (maintenance_check_psymtabs): Update.
5805 * printcmd.c (info_address_command): Update.
5806 * objfiles.h (struct objfile) <arch>: New method, from
5807 get_objfile_arch.
5808 (get_objfile_arch): Don't declare.
5809 * objfiles.c (get_objfile_arch): Remove.
5810 (filter_overlapping_sections): Update.
5811 * minsyms.c (msymbol_is_function): Update.
5812 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5813 (output_nondebug_symbol): Update.
5814 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5815 (mdebug_expand_psymtab): Update.
5816 * machoread.c (macho_add_oso_symfile): Update.
5817 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5818 Update.
5819 * linux-fork.c (checkpoint_command): Update.
5820 * linespec.c (convert_linespec_to_sals): Update.
5821 * jit.c (finalize_symtab): Update.
5822 * infrun.c (insert_exception_resume_from_probe): Update.
5823 * ia64-tdep.c (ia64_find_unwind_table): Update.
5824 * hppa-tdep.c (internalize_unwinds): Update.
5825 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5826 Update.
5827 * gcore.c (call_target_sbrk): Update.
5828 * elfread.c (record_minimal_symbol, elf_symtab_read)
5829 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5830 (elf_gnu_ifunc_resolve_by_got): Update.
5831 * dwarf2/read.c (create_addrmap_from_index)
5832 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5833 (read_debug_names_from_section)
5834 (process_psymtab_comp_unit_reader, add_partial_symbol)
5835 (add_partial_subprogram, process_full_comp_unit)
5836 (read_file_scope, read_func_scope, read_lexical_block_scope)
5837 (read_call_site_scope, dwarf2_ranges_read)
5838 (dwarf2_record_block_ranges, dwarf2_add_field)
5839 (mark_common_block_symbol_computed, read_tag_pointer_type)
5840 (read_tag_string_type, dwarf2_init_float_type)
5841 (dwarf2_init_complex_target_type, read_base_type)
5842 (partial_die_info::read, partial_die_info::read)
5843 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5844 (dwarf2_fetch_die_loc_sect_off): Update.
5845 * dwarf2/loc.c (dwarf2_find_location_expression)
5846 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5847 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5848 (dwarf2_loc_desc_get_symbol_read_needs)
5849 (locexpr_describe_location_piece, locexpr_describe_location_1)
5850 (loclist_describe_location): Update.
5851 * dwarf2/index-write.c (write_debug_names): Update.
5852 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5853 * dtrace-probe.c (dtrace_process_dof): Update.
5854 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5855 (process_one_symbol): Update.
5856 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5857 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5858 (coff_read_enum_type): Update.
5859 * cli/cli-cmds.c (edit_command, list_command): Update.
5860 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5861 * breakpoint.c (create_overlay_event_breakpoint)
5862 (create_longjmp_master_breakpoint)
5863 (create_std_terminate_master_breakpoint)
5864 (create_exception_master_breakpoint, get_sal_arch): Update.
5865 * block.c (block_gdbarch): Update.
5866 * annotate.c (annotate_source_line): Update.
5867
5868 2020-04-17 Tom Tromey <tromey@adacore.com>
5869
5870 * auto-load.c (show_auto_load_cmd): Remove.
5871 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5872 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5873 (maintenance_print_arc_command): Remove.
5874 * tui/tui-win.c (tui_command): Remove.
5875 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5876 * tui/tui-layout.c (tui_layout_command): Remove.
5877 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5878 * python/python.c (user_set_python, user_show_python): Remove.
5879 (_initialize_python): Use add_basic_prefix_cmd,
5880 add_show_prefix_cmd.
5881 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5882 (install_gdb_commands): Use add_basic_prefix_cmd,
5883 add_show_prefix_cmd.
5884 (info_guile_command): Remove.
5885 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5886 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5889 Remove do_set and do_show parameters.
5890 * cli/cli-style.c (set_style, show_style): Remove.
5891 (_initialize_cli_style): Use add_basic_prefix_cmd,
5892 add_show_prefix_cmd.
5893 (cli_style_option::add_setshow_commands): Remove do_set and
5894 do_show parameters.
5895 (cli_style_option::add_setshow_commands): Use
5896 add_basic_prefix_cmd, add_show_prefix_cmd.
5897 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5898 (set_style_name): Remove.
5899 * cli/cli-dump.c (dump_command, append_command): Remove.
5900 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5901 (tekhex_dump_command, binary_dump_command)
5902 (binary_append_command): Remove.
5903 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5904 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5905 (init_w32_command_list): Remove; move into ...
5906 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5907 * valprint.c (set_print, show_print, set_print_raw)
5908 (show_print_raw): Remove.
5909 (_initialize_valprint): Use add_basic_prefix_cmd,
5910 add_show_prefix_cmd.
5911 * typeprint.c (set_print_type, show_print_type): Remove.
5912 (_initialize_typeprint): Use add_basic_prefix_cmd,
5913 add_show_prefix_cmd.
5914 * record.c (set_record_command, show_record_command): Remove.
5915 (_initialize_record): Use add_basic_prefix_cmd,
5916 add_show_prefix_cmd.
5917 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5918 add_show_prefix_cmd.
5919 (info_command, show_command, set_debug, show_debug): Remove.
5920 * top.h (set_history, show_history): Don't declare.
5921 * top.c (set_history, show_history): Remove.
5922 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5923 (unset_tdesc_cmd): Remove.
5924 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5925 add_show_prefix_cmd.
5926 * symtab.c (info_module_command): Remove.
5927 (_initialize_symtab): Use add_basic_prefix_cmd.
5928 * symfile.c (overlay_command): Remove.
5929 (_initialize_symfile): Use add_basic_prefix_cmd.
5930 * sparc64-tdep.c (info_adi_command): Remove.
5931 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5932 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5933 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5934 add_show_prefix_cmd.
5935 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5936 (_initialize_serial): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5939 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5940 add_show_prefix_cmd.
5941 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5942 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5945 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5946 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5947 add_show_prefix_cmd.
5948 * remote.c (remote_command, set_remote_cmd): Remove.
5949 (_initialize_remote): Use add_basic_prefix_cmd.
5950 * record-full.c (set_record_full_command)
5951 (show_record_full_command): Remove.
5952 (_initialize_record_full): Use add_basic_prefix_cmd,
5953 add_show_prefix_cmd.
5954 * record-btrace.c (cmd_set_record_btrace)
5955 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5956 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5957 (cmd_show_record_btrace_pt): Remove.
5958 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5959 add_show_prefix_cmd.
5960 * ravenscar-thread.c (set_ravenscar_command)
5961 (show_ravenscar_command): Remove.
5962 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5963 add_show_prefix_cmd.
5964 * mips-tdep.c (show_mips_command, set_mips_command)
5965 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5966 add_show_prefix_cmd.
5967 * maint.c (maintenance_command, maintenance_info_command)
5968 (maintenance_check_command, maintenance_print_command)
5969 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5970 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5971 add_show_prefix_cmd.
5972 (show_per_command_cmd): Remove.
5973 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5974 Remove.
5975 (maintenance_show_test_settings_cmd): Remove.
5976 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5977 add_show_prefix_cmd.
5978 * maint-test-options.c (maintenance_test_options_command):
5979 Remove.
5980 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5981 * macrocmd.c (macro_command): Remove
5982 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5983 * language.c (set_check, show_check): Remove.
5984 (_initialize_language): Use add_basic_prefix_cmd,
5985 add_show_prefix_cmd.
5986 * infcmd.c (unset_command): Remove.
5987 (_initialize_infcmd): Use add_basic_prefix_cmd.
5988 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5989 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5990 add_show_prefix_cmd.
5991 * go32-nat.c (go32_info_dos_command): Remove.
5992 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5993 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5994 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5995 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5996 (_initialize_frame): Use add_basic_prefix_cmd,
5997 add_show_prefix_cmd.
5998 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5999 (_initialize_dcache): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 * cp-support.c (maint_cplus_command): Remove.
6002 (_initialize_cp_support): Use add_basic_prefix_cmd.
6003 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6004 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6005 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6006 add_basic_prefix_cmd, add_show_prefix_cmd.
6007 * breakpoint.c (save_command): Remove.
6008 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6009 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6010 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6011 add_show_prefix_cmd.
6012 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6013 (set_ada_command, show_ada_command): Remove.
6014 (_initialize_ada_language): Use add_basic_prefix_cmd,
6015 add_show_prefix_cmd.
6016 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6017
6018 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6019
6020 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6021 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6022
6023 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6026 warning messages.
6027
6028 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6029
6030 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6031 import table is not at beginning of .idata section.
6032
6033 2020-04-16 Pedro Alves <palves@redhat.com>
6034
6035 * inferior.c (delete_inferior): Use delete operator directly
6036 instead of delete_program_space.
6037 * progspace.c (add_program_space): New, factored out from
6038 program_space::program_space.
6039 (remove_program_space): New, factored out from
6040 delete_program_space.
6041 (program_space::program_space): Remove intro comment. Rewrite.
6042 (program_space::~program_space): Remove intro comment. Call
6043 remove_program_space.
6044 (delete_program_space): Delete.
6045 * progspace.h (program_space::program_space): Make explicit. Move
6046 intro comment here, adjusted.
6047 (program_space::~program_space): Move intro comment here,
6048 adjusted.
6049 (delete_program_space): Remove.
6050
6051 2020-04-16 Tom Tromey <tromey@adacore.com>
6052
6053 * windows-nat.c (windows_nat::handle_access_violation): New
6054 function.
6055 * nat/windows-nat.h (handle_access_violation): Declare.
6056 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6057 windows-nat.c. Call handle_access_violation.
6058
6059 2020-04-16 Tom de Vries <tdevries@suse.de>
6060
6061 PR symtab/25791
6062 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6063 CUs without psymtab.
6064
6065 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6066
6067 * python/python.c (do_start_initialization): Don't call
6068 PyEval_InitThreads for Python 3.9 and beyond.
6069
6070 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6071
6072 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6073 thread functions.
6074 (obsd_nat_target::wait): Likewise.
6075
6076 2020-04-15 Tom Tromey <tromey@adacore.com>
6077
6078 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6079 (DEBUG_EXCEPT): Use debug_printf.
6080
6081 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6082
6083 * completer.c (class completion_tracker::completion_hash_entry)
6084 <hash_name>: New member function.
6085 (completion_tracker::discard_completions): New callback to hash a
6086 completion_hash_entry, pass this to htab_create_alloc.
6087
6088 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6089
6090 * windows-nat.c (windows_make_so): Warn rather than stopping with
6091 an error if realpath() fails.
6092
6093 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6094
6095 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6096 (nbsd_nat_target::info_proc): Add do_status.
6097
6098 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6099 Tom de Vries <tdevries@suse.de>
6100
6101 PR symtab/25718
6102 * psympriv.h (struct partial_symtab::read_symtab)
6103 (struct partial_symtab::expand_psymtab)
6104 (struct partial_symtab::read_dependencies): Update comments.
6105 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6106 read_symtab for includer.
6107 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6108 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6109 (struct dwarf2_include_psymtab::m_readin): Remove.
6110 (struct dwarf2_include_psymtab::includer): New member function.
6111 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6112
6113 2020-04-14 Tom de Vries <tdevries@suse.de>
6114
6115 PR symtab/25720
6116 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6117 with NULL symbol_matcher and lookup_name.
6118 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6119 and lookup_name.
6120 * dwarf2/read.c (dw2_expand_symtabs_matching)
6121 (dw2_debug_names_expand_symtabs_matching): Same.
6122 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6123 Make lookup_name a pointer. Update comment.
6124 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6125 lookup_name being a pointer.
6126 * symfile.c (expand_symtabs_matching): Same.
6127 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6128 * linespec.c (iterate_over_all_matching_symtabs): Same.
6129
6130 2020-04-13 Tom Tromey <tom@tromey.com>
6131
6132 * run-on-main-thread.c: Update include.
6133 * unittests/main-thread-selftests.c: Update include.
6134 * tui/tui-win.c: Update include.
6135 * tui/tui-io.c: Update include.
6136 * tui/tui-interp.c: Update include.
6137 * tui/tui-hooks.c: Update include.
6138 * top.h: Update include.
6139 * top.c: Update include.
6140 * ser-base.c: Update include.
6141 * remote.c: Update include.
6142 * remote-notif.c: Update include.
6143 * remote-fileio.c: Update include.
6144 * record-full.c: Update include.
6145 * record-btrace.c: Update include.
6146 * python/python.c: Update include.
6147 * posix-hdep.c: Update include.
6148 * mingw-hdep.c: Update include.
6149 * mi/mi-main.c: Update include.
6150 * mi/mi-interp.c: Update include.
6151 * main.c: Update include.
6152 * linux-nat.c: Update include.
6153 * interps.c: Update include.
6154 * infrun.c: Update include.
6155 * inf-loop.c: Update include.
6156 * event-top.c: Update include.
6157 * event-loop.c: Move to ../gdbsupport/.
6158 * event-loop.h: Move to ../gdbsupport/.
6159 * async-event.h: Update include.
6160 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6161
6162 2020-04-13 Tom Tromey <tom@tromey.com>
6163
6164 * tui/tui-win.c: Include async-event.h.
6165 * remote.c: Include async-event.h.
6166 * remote-notif.c: Include async-event.h.
6167 * record-full.c: Include async-event.h.
6168 * record-btrace.c: Include async-event.h.
6169 * infrun.c: Include async-event.h.
6170 * event-top.c: Include async-event.h.
6171 * event-loop.h: Move some declarations to async-event.h.
6172 * event-loop.c: Don't include ser-event.h or top.h. Move some
6173 code to async-event.c.
6174 * async-event.h: New file.
6175 * async-event.c: New file.
6176 * Makefile.in (COMMON_SFILES): Add async-event.c.
6177 (HFILES_NO_SRCDIR): Add async-event.h.
6178
6179 2020-04-13 Tom Tromey <tom@tromey.com>
6180
6181 * utils.c (flush_streams): New function.
6182 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6183
6184 2020-04-13 Tom Tromey <tom@tromey.com>
6185
6186 * event-loop.c (handle_file_event): Use warning, not
6187 printf_unfiltered.
6188
6189 2020-04-13 Tom Tromey <tom@tromey.com>
6190
6191 * event-loop.c: Include <chrono>.
6192
6193 2020-04-13 Tom Tromey <tom@tromey.com>
6194
6195 * gdb_select.h: Move to ../gdbsupport/.
6196 * event-loop.c: Update include path.
6197 * top.c: Update include path.
6198 * ser-base.c: Update include path.
6199 * ui-file.c: Update include path.
6200 * ser-tcp.c: Update include path.
6201 * guile/scm-ports.c: Update include path.
6202 * posix-hdep.c: Update include path.
6203 * ser-unix.c: Update include path.
6204 * gdb_usleep.c: Update include path.
6205 * mingw-hdep.c: Update include path.
6206 * inflow.c: Update include path.
6207 * infrun.c: Update include path.
6208 * event-top.c: Update include path.
6209
6210 2020-04-13 Tom Tromey <tom@tromey.com>
6211
6212 * configure: Rebuild.
6213 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6214
6215 2020-04-13 Tom Tromey <tom@tromey.com>
6216
6217 * event-loop.h (start_event_loop): Don't declare.
6218 * event-loop.c (start_event_loop): Move...
6219 * main.c (start_event_loop): ...here. Now static.
6220
6221 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6222
6223 * MAINTAINERS: Update my email address.
6224
6225 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6226
6227 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6228 IP_ALL.
6229
6230 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6231
6232 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6233 (nbsd_nat_target::info_proc): Add do_cmdline.
6234
6235 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6236
6237 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6238 (nbsd_nat_target::info_proc): Add do_cwd.
6239
6240 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6241
6242 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6243
6244 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6245
6246 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6247 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6248 (nbsd_nat_target::info_proc): New functions.
6249 * nbsd-nat.c (kinfo_get_vmmap): New function.
6250 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6251 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6252 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6253 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6254 functions.
6255 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6256 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6257 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6258 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6259 (KINFO_VME_FLAG_GROWS_DOWN): New.
6260
6261 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6262
6263 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6264 bit shift.
6265
6266 2020-04-10 Tom Tromey <tromey@adacore.com>
6267
6268 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6269
6270 2020-04-10 Tom Tromey <tromey@adacore.com>
6271
6272 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6273 separate debug files.
6274
6275 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6276
6277 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6278 Move to...
6279 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6280 ... here.
6281 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6282 Check for STATUS_WX86_BREAKPOINT.
6283 (windows_nat_target::wait): Same.
6284
6285 2020-04-10 Tom de Vries <tdevries@suse.de>
6286
6287 PR cli/25808
6288 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6289
6290 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6293 (Write After Approval): Remove Tom de Vries.
6294
6295 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6296
6297 revert partially:
6298 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6299
6300 * buildsym.c (record_line): Fix undefined behavior and preserve
6301 lines at eof.
6302
6303 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6304
6305 * auxv.h (svr4_auxv_parse): New.
6306 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6307 and generic_auxv_parse.
6308 (svr4_auxv_parse): Add.
6309 * obsd-tdep.c: Include "auxv.h".
6310 (obsd_auxv_parse): Remove.
6311 (obsd_init_abi): Remove comment.
6312 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6313 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6314 * nbsd-tdep.c: Include "auxv.h".
6315 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6316
6317 2020-04-08 Tom Tromey <tromey@adacore.com>
6318
6319 * nat/windows-nat.h (last_wait_event): Don't declare.
6320 (wait_for_debug_event): Update comment.
6321 * nat/windows-nat.c (last_wait_event): Now static.
6322
6323 2020-04-08 Tom Tromey <tromey@adacore.com>
6324
6325 * windows-nat.c (wait_for_debug_event): Move to
6326 nat/windows-nat.c.
6327 * nat/windows-nat.h (wait_for_debug_event): Declare.
6328 * nat/windows-nat.c (wait_for_debug_event): Move from
6329 windows-nat.c. No longer static.
6330
6331 2020-04-08 Tom Tromey <tromey@adacore.com>
6332
6333 * windows-nat.c (get_windows_debug_event): Use
6334 fetch_pending_stop.
6335 * nat/windows-nat.h (fetch_pending_stop): Declare.
6336 * nat/windows-nat.c (fetch_pending_stop): New function.
6337
6338 2020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * windows-nat.c (windows_continue): Use matching_pending_stop and
6341 continue_last_debug_event.
6342 * nat/windows-nat.h (matching_pending_stop)
6343 (continue_last_debug_event): Declare.
6344 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6345 (matching_pending_stop, continue_last_debug_event): New
6346 functions.
6347
6348 2020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6351 (handle_exception_result): Move to nat/windows-nat.h.
6352 (DEBUG_EXCEPTION_SIMPLE): Remove.
6353 (windows_nat::handle_ms_vc_exception): New function.
6354 (handle_exception): Move to nat/windows-nat.c.
6355 (get_windows_debug_event): Update.
6356 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6357 nat/windows-nat.c.
6358 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6359 (handle_exception_result): Move from windows-nat.c.
6360 (handle_exception): Declare.
6361 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6362 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6363 windows-nat.c.
6364
6365 2020-04-08 Tom Tromey <tromey@adacore.com>
6366
6367 * windows-nat.c (exception_count, event_count): Remove.
6368 (handle_exception, get_windows_debug_event)
6369 (do_initial_windows_stuff): Update.
6370
6371 2020-04-08 Tom Tromey <tromey@adacore.com>
6372
6373 * windows-nat.c (windows_nat::handle_load_dll)
6374 (windows_nat::handle_unload_dll): Rename. No longer static.
6375 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6376 Declare.
6377
6378 2020-04-08 Tom Tromey <tromey@adacore.com>
6379
6380 * complaints.h (stop_whining): Declare at top-level.
6381 (complaint): Don't declare stop_whining.
6382
6383 2020-04-08 Tom Tromey <tromey@adacore.com>
6384
6385 * windows-nat.c (windows_nat::handle_output_debug_string):
6386 Rename. No longer static.
6387 * nat/windows-nat.h (handle_output_debug_string): Declare.
6388
6389 2020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (current_process_handle, current_process_id)
6392 (main_thread_id, last_sig, current_event, last_wait_event)
6393 (current_windows_thread, desired_stop_thread_id, pending_stops)
6394 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6395 (display_selectors, fake_create_process)
6396 (get_windows_debug_event): Update.
6397 * nat/windows-nat.h (current_process_handle, current_process_id)
6398 (main_thread_id, last_sig, current_event, last_wait_event)
6399 (current_windows_thread, desired_stop_thread_id, pending_stops)
6400 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6401 * nat/windows-nat.c (current_process_handle, current_process_id)
6402 (main_thread_id, last_sig, current_event, last_wait_event)
6403 (current_windows_thread, desired_stop_thread_id, pending_stops)
6404 (siginfo_er): New globals. Move from windows-nat.c.
6405
6406 2020-04-08 Tom Tromey <tromey@adacore.com>
6407
6408 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6409 (handle_load_dll): Update.
6410 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6411
6412 2020-04-08 Tom Tromey <tromey@adacore.com>
6413
6414 * windows-nat.c (enum thread_disposition_type): Move to
6415 nat/windows-nat.h.
6416 (windows_nat::thread_rec): Rename from thread_rec. No longer
6417 static.
6418 (windows_add_thread, windows_nat_target::fetch_registers)
6419 (windows_nat_target::store_registers, handle_exception)
6420 (windows_nat_target::resume, get_windows_debug_event)
6421 (windows_nat_target::get_tib_address)
6422 (windows_nat_target::thread_name)
6423 (windows_nat_target::thread_alive): Update.
6424 * nat/windows-nat.h (enum thread_disposition_type): Move from
6425 windows-nat.c.
6426 (thread_rec): Declare.
6427
6428 2020-04-08 Tom Tromey <tromey@adacore.com>
6429
6430 * windows-nat.c: Add "using namespace".
6431 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6432 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6433
6434 2020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * nat/windows-nat.h (struct windows_thread_info): Declare
6437 destructor.
6438 * nat/windows-nat.c (~windows_thread_info): New.
6439
6440 2020-04-08 Tom Tromey <tromey@adacore.com>
6441
6442 PR gdb/22992
6443 * windows-nat.c (current_event): Update comment.
6444 (last_wait_event, desired_stop_thread_id): New globals.
6445 (struct pending_stop): New.
6446 (pending_stops): New global.
6447 (windows_nat_target) <stopped_by_sw_breakpoint>
6448 <supports_stopped_by_sw_breakpoint>: New methods.
6449 (windows_fetch_one_register): Add assertions. Adjust PC.
6450 (windows_continue): Handle pending stops. Suspend other threads
6451 when stepping. Use last_wait_event
6452 (wait_for_debug_event): New function.
6453 (get_windows_debug_event): Use wait_for_debug_event. Handle
6454 pending stops. Queue spurious stops.
6455 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6456 (windows_nat_target::kill): Use wait_for_debug_event.
6457 * nat/windows-nat.h (struct windows_thread_info)
6458 <stopped_at_software_breakpoint>: New field.
6459 * nat/windows-nat.c (windows_thread_info::resume): Clear
6460 stopped_at_software_breakpoint.
6461
6462 2020-04-08 Tom Tromey <tromey@adacore.com>
6463
6464 * windows-nat.c (enum thread_disposition_type): New.
6465 (thread_rec): Replace "get_context" parameter with "disposition";
6466 change type.
6467 (windows_add_thread, windows_nat_target::fetch_registers)
6468 (windows_nat_target::store_registers, handle_exception)
6469 (windows_nat_target::resume, get_windows_debug_event)
6470 (windows_nat_target::get_tib_address)
6471 (windows_nat_target::thread_name)
6472 (windows_nat_target::thread_alive): Update.
6473
6474 2020-04-08 Tom Tromey <tromey@adacore.com>
6475
6476 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6477 (windows_continue): Use windows_continue::resume.
6478 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6479 resume>: Declare new methods.
6480 * nat/windows-nat.c: New file.
6481 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (windows_add_thread, windows_delete_thread)
6486 (windows_nat_target::fetch_registers)
6487 (windows_nat_target::store_registers, fake_create_process)
6488 (windows_nat_target::resume, windows_nat_target::resume)
6489 (get_windows_debug_event, windows_nat_target::wait)
6490 (windows_nat_target::pid_to_str)
6491 (windows_nat_target::get_tib_address)
6492 (windows_nat_target::get_ada_task_ptid)
6493 (windows_nat_target::thread_name)
6494 (windows_nat_target::thread_alive): Use lwp, not tid.
6495
6496 2020-04-08 Tom Tromey <tromey@adacore.com>
6497
6498 * windows-nat.c (handle_exception)
6499 (windows_nat_target::thread_name): Update.
6500 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6501 <name>: Now unique_xmalloc_ptr.
6502
6503 2020-04-08 Tom Tromey <tromey@adacore.com>
6504
6505 * windows-nat.c (thread_rec)
6506 (windows_nat_target::fetch_registers): Update.
6507 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6508 Update comment.
6509 <debug_registers_changed, reload_context>: Now bool.
6510
6511 2020-04-08 Tom Tromey <tromey@adacore.com>
6512
6513 * windows-nat.c (windows_add_thread): Use new.
6514 (windows_init_thread_list, windows_delete_thread): Use delete.
6515 (get_windows_debug_event): Update.
6516 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6517 destructor, and initializers.
6518
6519 2020-04-08 Tom Tromey <tromey@adacore.com>
6520
6521 * windows-nat.c (struct windows_thread_info): Remove.
6522 * nat/windows-nat.h: New file.
6523
6524 2020-04-08 Tom Tromey <tromey@adacore.com>
6525
6526 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6527 (thread_rec, windows_add_thread, windows_delete_thread)
6528 (windows_continue): Update.
6529
6530 2020-04-08 Tom Tromey <tromey@adacore.com>
6531
6532 * windows-nat.c (struct windows_thread_info): Remove typedef.
6533 (thread_head): Remove.
6534 (thread_list): New global.
6535 (thread_rec, windows_add_thread, windows_init_thread_list)
6536 (windows_delete_thread, windows_continue): Update.
6537
6538 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * windows-tdep.h (windows_init_abi): Add comment.
6541 (cygwin_init_abi): New declaration.
6542 * windows-tdep.c: Split signal enumeration in two, one for
6543 Windows and one for Cygwin.
6544 (windows_gdb_signal_to_target): Only deal with signal of the
6545 Windows OS ABI.
6546 (cygwin_gdb_signal_to_target): New function.
6547 (windows_init_abi): Rename to windows_init_abi_common, don't set
6548 gdb_signal_to_target gdbarch method. Add new new function with
6549 this name.
6550 (cygwin_init_abi): New function.
6551 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6552 comment. Don't call windows_init_abi.
6553 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6554 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6555 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6556 i386_windows_init_abi_common, don't call windows_init_abi. Add
6557 a new function of this name.
6558 (i386_cygwin_init_abi): New function.
6559 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6560 OS ABI Cygwin.
6561
6562 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6565 parameter.c.
6566 (dwarf2_read_gdb_index): Update.
6567
6568 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6569
6570 * nbsd-tdep.c: Include "objfiles.h".
6571 (nbsd_skip_solib_resolver): New.
6572 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6573
6574 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6575
6576 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6577 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6578 with DW_LLE_base_addressx are being emitted in DWARFv5.
6579 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6580 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6581 unsigned integer.
6582
6583 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6584
6585 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6586 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6587 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6588 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6589 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6590 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6591 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6592
6593
6594 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6595
6596 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6597 (read_loclist_index): New function definition.
6598 (lookup_loclist_base): New function definition.
6599 (read_loclist_header): New function definition.
6600 (dwarf2_cu): Add loclist_base and loclist_header field.
6601 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6602 (read_full_die_1): Read the value of DW_AT_loclists_base.
6603 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6604 (read_attribute_value): Handle DW_FORM_loclistx.
6605 (skip_one_die): Handle DW_FORM_loclistx.
6606 (loclist_header): New structure declaration.
6607 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6608
6609 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6610
6611 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6612 constructor. Remove `addr` parameter from other constructor and
6613 add `per_cu` parameter.
6614 * dwarf2/read.c (create_partial_symtab): Update.
6615
6616 2020-04-07 Tom de Vries <tdevries@suse.de>
6617
6618 PR symtab/25796
6619 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6620 (partial_die_info::fixup): Inherit has_const_value.
6621
6622 2020-04-07 Tom de Vries <tdevries@suse.de>
6623
6624 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6625 symbols without address.
6626
6627 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6628
6629 * nbsd-nat.h (struct thread_info): Add forward declaration.
6630 (nbsd_nat_target::thread_alive): Add.
6631 (nbsd_nat_target::thread_name): Likewise.
6632 (nbsd_nat_target::update_thread_list): Likewise.
6633 (update_thread_list::post_attach): Likewise.
6634 (post_attach::pid_to_str): Likewise.
6635 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6636 (nbsd_thread_lister): Add.
6637 (nbsd_nat_target::thread_alive): Likewise.
6638 (nbsd_nat_target::thread_name): Likewise.
6639 (nbsd_add_threads): Likewise.
6640 (update_thread_list::post_attach): Likewise.
6641 (nbsd_nat_target::update_thread_list): Likewise.
6642 (post_attach::pid_to_str): Likewise.
6643
6644 2020-04-06 Tom Tromey <tromey@adacore.com>
6645
6646 * ada-valprint.c (print_variant_part): Extract the variant field.
6647 (print_field_values): Use the field as the outer value when
6648 recursing.
6649
6650 2020-04-06 Tom Tromey <tromey@adacore.com>
6651
6652 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6653 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6654 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6655 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6656 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6657
6658 2020-04-06 Tom Tromey <tromey@adacore.com>
6659
6660 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6661 TYPE_CODE_ERROR.
6662
6663 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6664
6665 * nbsd-tdep.c: Include "gdbarch.h".
6666 Define enum with NetBSD signal numbers.
6667 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6668 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6669 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6670 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6671 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6672 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6673 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6674 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6675 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6676 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6677 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6678 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6679
6680 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6681
6682 PR gdb/25325
6683 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6684
6685 2020-04-03 Tom Tromey <tromey@adacore.com>
6686
6687 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6688 Read constant block.
6689
6690 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6691
6692 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6693 (gdb_bfd_get_full_section_contents): New declaration.
6694 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6695 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6696 gdb_bfd_get_full_section_contents.
6697
6698 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6699
6700 * exec.c (build_section_table): Replace internal_error with
6701 gdb_assert.
6702 (section_table_xfer_memory_partial): Likewise.
6703 * mdebugread.c (parse_partial_symbols): Likewise.
6704 * psymtab.c (lookup_partial_symbol): Likewise.
6705 * utils.c (wrap_here): Likewise.
6706
6707 2020-04-02 Tom Tromey <tromey@adacore.com>
6708
6709 * f-lang.c (build_fortran_types): Use arch_type to initialize
6710 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6711
6712 2020-04-02 Tom Tromey <tromey@adacore.com>
6713
6714 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6715 of attributes.
6716
6717 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6718 Bernd Edlinger <bernd.edlinger@hotmail.de>
6719 Tom Tromey <tromey@adacore.com>
6720
6721 * buildsym.c (buildsym_compunit::record_line): Remove
6722 deduplication code.
6723
6724 2020-04-02 Tom de Vries <tdevries@suse.de>
6725
6726 PR ada/24671
6727 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6728
6729 2020-04-02 Tom de Vries <tdevries@suse.de>
6730
6731 * dwarf2/read.c (dwarf2_gdb_index_functions,
6732 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6733 NULL.
6734 * psymtab.c (psym_lookup_global_symbol_language): New function.
6735 (psym_functions): Init psym_lookup_global_symbol_language with
6736 psym_lookup_global_symbol_language.
6737 * symfile-debug.c (debug_sym_quick_functions): Init
6738 lookup_global_symbol_language with NULL.
6739 * symfile.c (set_initial_language): Remove fixme comment.
6740 * symfile.h (struct quick_symbol_functions): Add
6741 lookup_global_symbol_language.
6742 * symtab.c (find_quick_global_symbol_language): New function.
6743 (find_main_name): Use find_quick_global_symbol_language.
6744
6745 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6746
6747 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6748
6749 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6750
6751 * buildsym.c (record_line): Fix undefined behavior and preserve
6752 lines at eof.
6753
6754 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6755
6756 * buildsym.c (record_line): Fix the resizing condition.
6757
6758 2020-04-01 Tom Tromey <tom@tromey.com>
6759
6760 * value.h (value_literal_complex): Add comment.
6761 * valops.c (value_literal_complex): Refer to value.h.
6762
6763 2020-04-01 Tom Tromey <tom@tromey.com>
6764
6765 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6766 (scalar_type): New rule, from typebase.
6767 (typebase): Use scalar_type. Recognize complex types.
6768 (field_name): Handle FLOAT_KEYWORD.
6769 (ident_tokens): Add _Complex and __complex__.
6770
6771 2020-04-01 Tom Tromey <tom@tromey.com>
6772
6773 PR exp/25299:
6774 * valarith.c (promotion_type, complex_binop): New functions.
6775 (scalar_binop): Handle complex numbers. Use promotion_type.
6776 (value_pos, value_neg, value_complement): Handle complex numbers.
6777
6778 2020-04-01 Tom Tromey <tom@tromey.com>
6779
6780 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6781 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6782 (parse_number): Handle complex numbers.
6783
6784 2020-04-01 Tom Tromey <tom@tromey.com>
6785
6786 * c-valprint.c (c_decorations): Change complex suffix to "i".
6787
6788 2020-04-01 Tom Tromey <tom@tromey.com>
6789
6790 * valprint.c (generic_value_print_complex): Use accessors.
6791 * value.h (value_real_part, value_imaginary_part): Declare.
6792 * valops.c (value_real_part, value_imaginary_part): New
6793 functions.
6794 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6795
6796 2020-04-01 Tom Tromey <tom@tromey.com>
6797
6798 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6799 (read_range_type): Update.
6800 * mdebugread.c (basic_type): Update.
6801 * go-lang.c (build_go_types): Use init_complex_type.
6802 * gdbtypes.h (struct main_type) <complex_type>: New member.
6803 (init_complex_type): Update.
6804 (arch_complex_type): Don't declare.
6805 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6806 Make name if none given. Use alloc_type_copy. Look for cached
6807 complex type.
6808 (arch_complex_type): Remove.
6809 (gdbtypes_post_init): Use init_complex_type.
6810 * f-lang.c (build_fortran_types): Use init_complex_type.
6811 * dwarf2/read.c (read_base_type): Update.
6812 * d-lang.c (build_d_types): Use init_complex_type.
6813 * ctfread.c (read_base_type): Update.
6814
6815 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6816
6817 * infrun.c (stop_all_threads): Update assertion, plus when
6818 stopping threads, take into account that we might be trying
6819 to stop an all-stop target.
6820 (stop_waiting): Call 'stop_all_threads' if there exists a
6821 non-stop target.
6822
6823 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6824
6825 * target.h (exists_non_stop_target): New function declaration.
6826 * target.c (exists_non_stop_target): New function.
6827
6828 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6829
6830 PR gdb/24789
6831 * eval.c (is_integral_or_integral_reference): New function.
6832 (evaluate_subexp_standard): Allow integer references in
6833 pointer arithmetic.
6834
6835 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6836
6837 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6838 check for no ptid in the stop reply when the target is non-stop.
6839
6840 2020-04-01 Tom Tromey <tromey@adacore.com>
6841
6842 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6843 "name" parameter to rvalue reference. Initialize m_name_holder.
6844 <lookup_name_info>: New overloads.
6845 <name>: Return gdb::string_view.
6846 <c_str>: New method.
6847 <make_ignore_params>: Update.
6848 <search_name_hash>: Update.
6849 <language_lookup_name>: Return const char *.
6850 <m_name>: Change type.
6851 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6852 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6853 (lookup_name_info::match_any): Update.
6854 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6855 Update.
6856 * minsyms.c (linkage_name_str): Update.
6857 * language.c (default_symbol_name_matcher): Update.
6858 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6859 Update.
6860 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6861 (ada_lookup_name_info::ada_lookup_name_info): Update.
6862 (literal_symbol_name_matcher): Update.
6863
6864 2020-04-01 Tom Tromey <tromey@adacore.com>
6865
6866 * psymtab.c (psymtab_search_name): Remove function.
6867 (psym_lookup_symbol): Create search name and lookup name here.
6868 (lookup_partial_symbol): Remove "name" parameter; add
6869 lookup_name.
6870 (psym_expand_symtabs_for_function): Update.
6871
6872 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6873
6874 PR tui/25597:
6875 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6876
6877 2020-03-31 Tom Tromey <tromey@adacore.com>
6878
6879 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6880 memcpy.
6881
6882 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6883
6884 * features/riscv/32bit-csr.xml: Regenerated.
6885 * features/riscv/64bit-csr.xml: Regenerated.
6886
6887 2020-03-30 Tom Tromey <tromey@adacore.com>
6888
6889 * ada-valprint.c (print_variant_part): Update.
6890 * ada-lang.h (ada_which_variant_applies): Update.
6891 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6892 outer_valaddr parameters; replace with "outer" value parameter.
6893 (to_fixed_variant_branch_type): Update.
6894
6895 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6896
6897 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6898 <list>. Remove inclusion of observable.h.
6899 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6900 (struct arch_lwp_info): New struct.
6901 (class ppc_linux_dreg_interface): New class.
6902 (struct ppc_linux_process_info): New struct.
6903 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6904 <low_new_clone, low_forget_process, low_prepare_to_resume>
6905 <copy_thread_dreg_state, mark_thread_stale>
6906 <mark_debug_registers_changed, register_hw_breakpoint>
6907 <clear_hw_breakpoint, register_wp, clear_wp>
6908 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6909 <num_memory_accesses, get_trigger_type>
6910 <create_watchpoint_request, hwdebug_point_cmp>
6911 <init_arch_lwp_info, get_arch_lwp_info>
6912 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6913 methods.
6914 <struct ptid_hash>: New inner struct.
6915 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6916 members.
6917 (saved_dabr_value, hwdebug_info, max_slots_number)
6918 (struct hw_break_tuple, struct thread_points, ppc_threads)
6919 (have_ptrace_hwdebug_interface)
6920 (hwdebug_find_thread_points_by_tid)
6921 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6922 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6923 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6924 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6925 use m_dreg_interface.
6926 (hwdebug_point_cmp): Change to...
6927 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6928 reference arguments instead of pointers.
6929 (ppc_linux_nat_target::ranged_break_num_registers): Use
6930 m_dreg_interface.
6931 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6932 m_dreg_interface. Call register_hw_breakpoint.
6933 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6934 m_dreg_interface. Call clear_hw_breakpoint.
6935 (get_trigger_type): Change to...
6936 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6937 comment.
6938 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6939 use m_dreg_interface. Call register_hw_breakpoint.
6940 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6941 use m_dreg_interface. Call clear_hw_breakpoint.
6942 (can_use_watchpoint_cond_accel): Change to...
6943 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6944 method. Update comment, use m_dreg_interface and
6945 m_process_info.
6946 (calculate_dvc): Change to...
6947 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6948 m_dreg_interface.
6949 (num_memory_accesses): Change to...
6950 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6951 (check_condition): Change to...
6952 (ppc_linux_nat_target::check_condition): ...this method.
6953 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6954 comment, use m_dreg_interface.
6955 (create_watchpoint_request): Change to...
6956 (ppc_linux_nat_target::create_watchpoint_request): ...this
6957 method. Use m_dreg_interface.
6958 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6959 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6960 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6961 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6962 (ppc_linux_nat_target::low_forget_process)
6963 (ppc_linux_nat_target::low_new_fork)
6964 (ppc_linux_nat_target::low_new_clone)
6965 (ppc_linux_nat_target::low_delete_thread)
6966 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6967 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6968 only call mark_thread_stale.
6969 (ppc_linux_thread_exit): Remove.
6970 (ppc_linux_nat_target::stopped_data_address): Change to...
6971 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6972 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6973 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6974 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6975 comment. Call low_stopped_data_address.
6976 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6977 m_dreg_interface.
6978 (ppc_linux_nat_target::masked_watch_num_registers): Use
6979 m_dreg_interface.
6980 (ppc_linux_nat_target::copy_thread_dreg_state)
6981 (ppc_linux_nat_target::mark_thread_stale)
6982 (ppc_linux_nat_target::mark_debug_registers_changed)
6983 (ppc_linux_nat_target::register_hw_breakpoint)
6984 (ppc_linux_nat_target::clear_hw_breakpoint)
6985 (ppc_linux_nat_target::register_wp)
6986 (ppc_linux_nat_target::clear_wp)
6987 (ppc_linux_nat_target::init_arch_lwp_info)
6988 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6989 (_initialize_ppc_linux_nat): Remove observer callback.
6990
6991 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6992
6993 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6994 (ppc_linux_nat_target::auxv_parse)
6995 (ppc_linux_nat_target::read_description)
6996 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6997 Move up.
6998
6999 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7000
7001 * linux-nat.h (low_new_clone): New method.
7002 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7003
7004 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7005
7006 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7007 (dbx_expand_psymtab): ... this.
7008 (start_psymtab): Update.
7009 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7010 (mdebug_expand_psymtab): ... this.
7011 (parse_partial_symbols): Update.
7012 (new_psymtab): Update.
7013 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7014 (xcoff_expand_psymtab): ... this.
7015 (xcoff_start_psymtab): Update.
7016
7017 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7018
7019 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7020 <expand_dependencies>: ... this.
7021 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7022 (partial_symtab::expand_dependencies): ... this.
7023 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7024 Update.
7025 (dwarf2_psymtab::expand_psymtab): Update.
7026 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7027 * mdebugread.c (psymtab_to_symtab_1): Update.
7028 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7029
7030 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7031
7032 * psympriv.h (discard_psymtab): Remove.
7033 * dbxread.c (dbx_end_psymtab): Update.
7034 * xcoffread.c (xcoff_end_psymtab): Update.
7035
7036 2020-03-28 Tom Tromey <tom@tromey.com>
7037
7038 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7039 comment.
7040
7041 2020-03-28 Tom Tromey <tom@tromey.com>
7042
7043 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7044
7045 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7046
7047 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7048
7049 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7050
7051 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7052
7053 2020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7056 (mark_common_block_symbol_computed, read_tag_string_type)
7057 (attr_to_dynamic_prop, read_subrange_type): Update.
7058 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7059 to be methods on struct attribute.
7060 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7061 (read_call_site_scope, partial_die_info::read)
7062 (partial_die_info::read, lookup_die_type, follow_die_ref):
7063 Update.
7064 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7065 from dwarf2_get_ref_die_offset.
7066 (attribute::constant_value): New method, from
7067 dwarf2_get_attr_constant_value.
7068 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7069 Declare method.
7070 <constant_value>: New method.
7071
7072 2020-03-26 Tom Tromey <tom@tromey.com>
7073
7074 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7075 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7076 (dwarf_type_encoding_name): Move to stringify.c.
7077 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7078 * dwarf2/stringify.c: New file.
7079 * dwarf2/stringify.h: New file.
7080
7081 2020-03-26 Tom Tromey <tom@tromey.com>
7082
7083 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7084 Rewrite.
7085
7086 2020-03-26 Tom Tromey <tom@tromey.com>
7087
7088 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7089 methods.
7090 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7091 (lookup_ranges_base): Likewise.
7092 (read_cutu_die_from_dwo, read_full_die_1): Update.
7093
7094 2020-03-26 Tom Tromey <tom@tromey.com>
7095
7096 * dwarf2/read.c (read_import_statement, read_file_scope)
7097 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7098 (read_lexical_block_scope, read_call_site_scope)
7099 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7100 (handle_struct_member_die, process_structure_scope)
7101 (update_enumeration_type_from_children)
7102 (process_enumeration_scope, read_array_type, read_common_block)
7103 (read_namespace, read_module, read_subroutine_type): Update.
7104 (sibling_die): Remove.
7105
7106 2020-03-26 Tom Tromey <tom@tromey.com>
7107
7108 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7109 (build_type_psymtabs_reader, read_structure_type)
7110 (read_enumeration_type, read_full_die_1): Update.
7111 (dwarf2_attr_no_follow): Move to die.h.
7112 * dwarf2/die.h (struct die_info) <attr>: New method.
7113
7114 2020-03-26 Tom Tromey <tom@tromey.com>
7115
7116 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7117 <base_address>: Now an optional.
7118 (dwarf2_find_base_address, dwarf2_rnglists_process)
7119 (dwarf2_ranges_process, fill_in_loclist_baton)
7120 (dwarf2_symbol_mark_computed): Update.
7121
7122 2020-03-26 Tom Tromey <tom@tromey.com>
7123
7124 * dwarf2/read.c (struct die_info): Move to die.h.
7125 * dwarf2/die.h: New file.
7126
7127 2020-03-26 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7130 * dwarf2/read.c
7131 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7132 Move to line-header.c.
7133 (read_checked_initial_length_and_offset, read_formatted_entries):
7134 Likewise.
7135 (dwarf_decode_line_header): Split into two.
7136 * dwarf2/line-header.c
7137 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7138 Move from read.c.
7139 (read_checked_initial_length_and_offset, read_formatted_entries):
7140 Likewise.
7141 (dwarf_decode_line_header): New function, split from read.c.
7142
7143 2020-03-26 Tom Tromey <tom@tromey.com>
7144
7145 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7146 Declare method.
7147 * dwarf2/read.c (read_attribute_value): Update.
7148 (dwarf2_per_objfile::read_line_string): Rename from
7149 read_indirect_line_string.
7150 (read_formatted_entries): Update.
7151
7152 2020-03-26 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7155 variable.
7156
7157 2020-03-26 Tom Tromey <tom@tromey.com>
7158
7159 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7160 const.
7161 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7162 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7163 parameter const.
7164
7165 2020-03-26 Tom Tromey <tom@tromey.com>
7166
7167 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7168 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7169 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7170 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7171
7172 2020-03-26 Tom Tromey <tom@tromey.com>
7173
7174 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7175 file_names_size, file_full_name, file_file_name>: Use const.
7176 <file_name_at, file_names>: Add const overload.
7177 * dwarf2/line-header.c (line_header::file_file_name)
7178 (line_header::file_full_name): Update.
7179
7180 2020-03-26 Tom Tromey <tom@tromey.com>
7181
7182 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7183 (macro_start_file, consume_improper_spaces)
7184 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7185 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7186 (dwarf_decode_macros): Move to macro.c.
7187 * dwarf2/macro.c: New file.
7188 * dwarf2/macro.h: New file.
7189 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7190
7191 2020-03-26 Tom Tromey <tom@tromey.com>
7192
7193 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7194 method.
7195 * dwarf2/section.c: New method. From
7196 read_indirect_string_at_offset_from.
7197 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7198 (read_indirect_string_at_offset_from): Move to section.c.
7199 (read_indirect_string_at_offset): Rewrite.
7200 (read_indirect_line_string_at_offset): Remove.
7201 (read_indirect_string, read_indirect_line_string)
7202 (dwarf_decode_macro_bytes): Update.
7203
7204 2020-03-26 Tom Tromey <tom@tromey.com>
7205
7206 * dwarf2/section.h (struct dwarf2_section_info)
7207 <overload_complaint>: Declare.
7208 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7209 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7210 Rename from dwarf2_section_buffer_overflow_complaint.
7211 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7212 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7213
7214 2020-03-26 Tom Tromey <tom@tromey.com>
7215
7216 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7217 Declare.
7218 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7219 Move from read.c.
7220 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7221 to section.c.
7222
7223 2020-03-26 Tom Tromey <tom@tromey.com>
7224
7225 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7226
7227 2020-03-26 Tom Tromey <tom@tromey.com>
7228
7229 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7230 "builder".
7231 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7232 parameter.
7233 (dwarf_decode_macros): Update.
7234
7235 2020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/read.c (read_attribute_value): Update.
7238 (read_indirect_string_from_dwz): Move to dwz.c; change into
7239 method.
7240 (dwarf_decode_macro_bytes): Update.
7241 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7242 * dwarf2/dwz.c: New file.
7243 * Makefile.in (COMMON_SFILES): Add dwz.c.
7244
7245 2020-03-26 Tom Tromey <tom@tromey.com>
7246
7247 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7248 * dwarf2/read.c: Add include.
7249 * dwarf2/index-write.c: Add include.
7250 * dwarf2/index-cache.c: Add include.
7251 * dwarf2/dwz.h: New file.
7252
7253 2020-03-25 Tom Tromey <tom@tromey.com>
7254
7255 * compile/compile-object-load.c (get_out_value_type): Mention
7256 correct symbol name in error message.
7257
7258 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7259
7260 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7261
7262 2020-03-25 Tom de Vries <tdevries@suse.de>
7263
7264 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7265 * symmisc.c (dump_symtab_1): Print user and includes fields.
7266 (maintenance_info_symtabs): Same.
7267
7268 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7269
7270 PR gdb/25534
7271 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7272 (riscv_regcache_cooked_write): New function.
7273 (riscv_push_dummy_call): Use new function.
7274 (riscv_return_value): Likewise.
7275
7276 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7277
7278 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7279 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7280 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7281 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7282 * infrun.c (follow_fork): Likewise.
7283 (follow_fork_inferior): Likewise.
7284 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7285 * linux-nat.h (class linux_nat_target): Likewise.
7286 * remote.c (class remote_target) <follow_fork>: Likewise.
7287 (remote_target::follow_fork): Likewise.
7288 * target-delegates.c: Re-generate.
7289 * target.c (default_follow_fork): Likewise.
7290 (target_follow_fork): Likewise.
7291 * target.h (struct target_ops) <follow_fork>: Likewise.
7292 (target_follow_fork): Likewise.
7293
7294 2020-03-24 Tom de Vries <tdevries@suse.de>
7295
7296 * psymtab.c (maintenance_info_psymtabs): Print user field.
7297
7298 2020-03-20 Tom Tromey <tromey@adacore.com>
7299
7300 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7301 const.
7302 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7303 const.
7304
7305 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7306
7307 * ptrace.m4: Don't check for ptrace declaration.
7308 * config.in: Re-generate.
7309 * configure: Re-generate.
7310 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7311 not defined.
7312
7313 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7314
7315 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7316 `PTRACE_TYPE_RET'.
7317 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7318 * sparc-nat.c (gdb_ptrace): Likewise.
7319 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7320
7321 2020-03-20 Tom Tromey <tromey@adacore.com>
7322
7323 * c-exp.y (lex_one_token): Fix assert.
7324
7325 2020-03-20 Tom Tromey <tromey@adacore.com>
7326
7327 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7328 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7329 strncpy call.
7330
7331 2020-03-20 Tom Tromey <tromey@adacore.com>
7332
7333 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7334
7335 2020-03-20 Tom Tromey <tromey@adacore.com>
7336
7337 * ada-valprint.c (print_variant_part): Remove parameters; switch
7338 to value-based API.
7339 (print_field_values): Likewise.
7340 (ada_val_print_struct_union): Likewise.
7341 (ada_value_print_1): Update.
7342
7343 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7344
7345 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7346 nbsd_nat_target instead of inf_ptrace_target.
7347 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7348 nbsd_nat_target.
7349
7350 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7351
7352 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7353 it to the ptrace call.
7354 * (store_registers): Likewise.
7355
7356 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7357
7358 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7359 it to the ptrace call.
7360 * (store_registers): Likewise.
7361
7362 2020-03-19 Luis Machado <luis.machado@linaro.org>
7363
7364 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7365 valid, fetch vg value from ptrace.
7366
7367 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7368 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7369 * inf-ptrace.c: Likewise.
7370 * (gdb_ptrace): Add.
7371 * (inf_ptrace_target::resume): Update.
7372 * (inf_ptrace_target::xfer_partial): Likewise.
7373 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7374 * (inf_ptrace_peek_poke): Update.
7375
7376 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7377
7378 * x86-bsd-nat.c (gdb_ptrace): New.
7379 * (x86bsd_dr_set): Add new argument `ptid'.
7380 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7381 x86bsd_dr_set_addr): Update.
7382
7383 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 * remote.c (remote_target::process_stop_reply): Handle events for
7386 all threads differently.
7387
7388 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * completer.c (completion_tracker::remove_completion): Define new
7391 function.
7392 * completer.h (completion_tracker::remove_completion): Declare new
7393 function.
7394 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7395 when adding a C++ function symbol.
7396
7397 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7398
7399 * completer.c (completion_tracker::completion_hash_entry): Define
7400 new class.
7401 (advance_to_filename_complete_word_point): Call
7402 recompute_lowest_common_denominator.
7403 (completion_tracker::completion_tracker): Call discard_completions
7404 to setup the hash table.
7405 (completion_tracker::discard_completions): Allow for being called
7406 from the constructor, pass new equal function, and element deleter
7407 when constructing the hash table. Initialise new class member
7408 variables.
7409 (completion_tracker::maybe_add_completion): Remove use of
7410 m_entries_vec, and store more information into m_entries_hash.
7411 (completion_tracker::recompute_lcd_visitor): New function, most
7412 content taken from...
7413 (completion_tracker::recompute_lowest_common_denominator):
7414 ...here, this now just visits each item in the hash calling the
7415 above visitor.
7416 (completion_tracker::build_completion_result): Remove use of
7417 m_entries_vec, call recompute_lowest_common_denominator.
7418 * completer.h (completion_tracker::have_completions): Remove use
7419 of m_entries_vec.
7420 (completion_tracker::completion_hash_entry): Declare new class.
7421 (completion_tracker::recompute_lowest_common_denominator): Change
7422 function signature.
7423 (completion_tracker::recompute_lcd_visitor): Declare new function.
7424 (completion_tracker::m_entries_vec): Delete.
7425 (completion_tracker::m_entries_hash): Initialize to NULL.
7426 (completion_tracker::m_lowest_common_denominator_valid): New
7427 member variable.
7428 (completion_tracker::m_lowest_common_denominator_max_length): New
7429 member variable.
7430
7431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7432
7433 * regformats/regdef.h: Put reg in gdb namespace.
7434
7435 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7436
7437 * i386-bsd-nat.c (gdb_ptrace): New.
7438 * (i386bsd_fetch_inferior_registers,
7439 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7440 * (i386bsd_fetch_inferior_registers,
7441 i386bsd_store_inferior_registers) Use gdb_ptrace.
7442
7443 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7444
7445 * amd64-bsd-nat.c (gdb_ptrace): New.
7446 * (amd64bsd_fetch_inferior_registers,
7447 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7448 * (amd64bsd_fetch_inferior_registers,
7449 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7450
7451 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7452
7453 * user-regs.c (user_reg::read): Rename to...
7454 (user_reg::xread): ...this.
7455 * (append_user_reg): Rename argument `read' to `xread'.
7456 * (user_reg_add_builtin): Likewise.
7457 * (user_reg_add): Likewise.
7458 * (value_of_user_reg): Likewise.
7459
7460 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7461
7462 * sparc-nat.c (gdb_ptrace): New.
7463 * sparc-nat.c (sparc_fetch_inferior_registers)
7464 (sparc_store_inferior_registers) Remove obsolete comment.
7465 * sparc-nat.c (sparc_fetch_inferior_registers)
7466 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7467 * sparc-nat.c (sparc_fetch_inferior_registers)
7468 (sparc_store_inferior_registers) Use gdb_ptrace.
7469
7470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7471
7472 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7473 it to the ptrace call.
7474 * sh-nbsd-nat.c (store_registers): Likewise.
7475
7476 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7477
7478 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7479 nbsd_nat_target instead of inf_ptrace_target.
7480 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7481 nbsd_nat_target.
7482
7483 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7484
7485 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7486
7487 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7488
7489 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7490 <sys/sysctl.h>.
7491 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7492
7493 2020-03-17 Tom de Vries <tdevries@suse.de>
7494
7495 PR gdb/23710
7496 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7497 fields.
7498 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7499 fields.
7500 (process_imported_unit_die): Skip import of c++ CUs.
7501
7502 2020-03-16 Tom Tromey <tom@tromey.com>
7503
7504 * p-valprint.c (pascal_object_print_value): Initialize
7505 base_value.
7506
7507 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7508 Shahab Vahedi <shahab@synopsys.com>
7509
7510 * Makefile.in: Add arch/arc.o
7511 * configure.tgt: Likewise.
7512 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7513 (_initialize_arc_tdep): Don't initialize old target descriptions.
7514 (arc_read_description): New function to cache target descriptions.
7515 * arc-tdep.h (arc_read_description): Add proto type.
7516 * arch/arc.c: New file.
7517 * arch/arc.h: Likewise.
7518 * features/Makefile: Replace old target descriptions with new.
7519 * features/arc-arcompact.c: Remove.
7520 * features/arc-arcompact.xml: Likewise.
7521 * features/arc-v2.c: Likewise
7522 * features/arc-v2.xml: Likewise
7523 * features/arc/aux-arcompact.xml: New file.
7524 * features/arc/aux-v2.xml: Likewise.
7525 * features/arc/core-arcompact.xml: Likewise.
7526 * features/arc/core-v2.xml: Likewise.
7527 * features/arc/aux-arcompact.c: Generate.
7528 * features/arc/aux-v2.c: Likewise.
7529 * features/arc/core-arcompact.c: Likewise.
7530 * features/arc/core-v2.c: Likewise.
7531 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7532
7533 2020-03-16 Tom Tromey <tromey@adacore.com>
7534
7535 PR gdb/25663:
7536 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7537 putting value into bcache.
7538
7539 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7540
7541 PR gdb/21500
7542 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7543 to...
7544 (amd64_windows_init_abi_common): ... this. Don't set size of
7545 long type.
7546 (amd64_windows_init_abi): New function.
7547 (amd64_cygwin_init_abi): New function.
7548 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7549 the Cygwin OS ABI.
7550 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7551 comment.
7552
7553 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7556 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7557 (pe_import_directory_entry): New struct type.
7558 (is_linked_with_cygwin_dll): New function.
7559 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7560 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7561 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7562
7563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7564
7565 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7566 i386_cygwin_core_osabi_sniffer.
7567
7568 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7569
7570 * i386-cygwin-tdep.c: Rename to...
7571 * i386-windows-tdep.c: ... this.
7572 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7573 i386-windows-tdep.c.
7574 * configure.tgt: Likewise.
7575
7576 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7579 * osabi.c (gdb_osabi_names): Add "Windows".
7580 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7581 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7582 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7583 i386_cygwin_osabi_sniffer.
7584 (_initialize_i386_cygwin_tdep): Register OS ABI
7585 GDB_OSABI_WINDOWS for i386.
7586 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7587 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7588 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7589 for x86-64.
7590 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7591 when the target matches '*-*-mingw*'.
7592
7593 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * defs.h (enum gdb_osabi): Move to...
7596 * osabi.h (enum gdb_osabi): ... here.
7597 * gdbarch.sh: Include osabi.h in gdbarch.h.
7598 * gdbarch.h: Re-generate.
7599
7600 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7603 function.
7604 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7605
7606 2020-03-14 Tom Tromey <tom@tromey.com>
7607
7608 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7609 for C++.
7610 (c_type_print_modifier): Likewise. Add "language" parameter.
7611 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7612 (c_type_print_base_1): Update.
7613 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7614 constants.
7615 * type-stack.c (type_stack::insert): Handle tp_atomic and
7616 tp_restrict.
7617 (type_stack::follow_type_instance_flags): Likewise.
7618 (type_stack::follow_types): Likewise. Merge type-following code.
7619 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7620 (space_identifier, cv_with_space_id)
7621 (const_or_volatile_or_space_identifier_noopt)
7622 (const_or_volatile_or_space_identifier): Remove.
7623 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7624 rules.
7625 (ptr_operator, typebase): Update.
7626 (enum token_flag) <FLAG_C>: New constant.
7627 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7628 "_Atomic".
7629 (lex_one_token): Handle FLAG_C.
7630
7631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7632
7633 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7634 it to the ptrace call.
7635 * m68k-bsd-nat.c (store_registers): Likewise.
7636
7637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7638
7639 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7640 gdb_byte *.
7641 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7642 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7643 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7644
7645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7646
7647 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7648 nbsd_nat_target instead of inf_ptrace_target.
7649 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7650 nbsd_nat_target.
7651
7652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7653
7654 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7655 register_t.
7656
7657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7658
7659 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7660 it to the ptrace call.
7661 * alpha-bsd-nat.c (store_registers): Likewise.
7662
7663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7664
7665 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7666 includes.
7667 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7668 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7669 fill_fpregset): Likewise.
7670
7671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7672
7673 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7674 nbsd_nat_target instead of inf_ptrace_target.
7675 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7676 nbsd_nat_target.
7677
7678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7681 register_t.
7682
7683 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7684
7685 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7686 it to the ptrace call.
7687 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7688 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7689 * arm-nbsd-nat.c (store_register): Likewise.
7690 * arm-nbsd-nat.c (store_regs): Likewise.
7691 * arm-nbsd-nat.c (store_fp_register): Likewise.
7692 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7693
7694 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7695
7696 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7697 nbsd_nat_target instead of inf_ptrace_target.
7698 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7699 nbsd_nat_target.
7700
7701 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7702
7703 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7704 it to the ptrace call.
7705 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7706
7707 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7708
7709 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7710 it to the ptrace call.
7711 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7712
7713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7714
7715 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7716 gdb_byte *.
7717 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7718
7719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7720
7721 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7722 instead of inf_ptrace_target.
7723 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7724 nbsd_nat_target.
7725
7726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7727
7728 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7729 register_t.
7730
7731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7732
7733 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7734 register_t.
7735
7736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7737
7738 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7739 register_t.
7740
7741 2020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * value.h (val_print): Don't declare.
7744 * valprint.h (val_print_array_elements)
7745 (val_print_scalar_formatted, generic_val_print): Don't declare.
7746 * valprint.c (generic_val_print_array): Take a struct value.
7747 (generic_val_print_ptr, generic_val_print_memberptr)
7748 (generic_val_print_bool, generic_val_print_int)
7749 (generic_val_print_char, generic_val_print_complex)
7750 (generic_val_print): Remove.
7751 (generic_value_print): Update.
7752 (do_val_print): Remove unused parameters. Don't call
7753 la_val_print.
7754 (val_print): Remove.
7755 (common_val_print): Update. Don't call value_check_printable.
7756 (val_print_scalar_formatted, val_print_array_elements): Remove.
7757 * rust-lang.c (rust_val_print): Remove.
7758 (rust_language_defn): Update.
7759 * p-valprint.c (pascal_val_print): Remove.
7760 (pascal_value_print_inner): Update.
7761 (pascal_object_print_val_fields, pascal_object_print_val):
7762 Remove.
7763 (pascal_object_print_static_field): Update.
7764 * p-lang.h (pascal_val_print): Don't declare.
7765 * p-lang.c (pascal_language_defn): Update.
7766 * opencl-lang.c (opencl_language_defn): Update.
7767 * objc-lang.c (objc_language_defn): Update.
7768 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7769 * m2-lang.h (m2_val_print): Don't declare.
7770 * m2-lang.c (m2_language_defn): Update.
7771 * language.h (struct language_defn) <la_val_print>: Remove.
7772 * language.c (unk_lang_value_print_inner): Rename. Change
7773 argument types.
7774 (unknown_language_defn, auto_language_defn): Update.
7775 * go-valprint.c (go_val_print): Remove.
7776 * go-lang.h (go_val_print): Don't declare.
7777 * go-lang.c (go_language_defn): Update.
7778 * f-valprint.c (f_val_print): Remove.
7779 * f-lang.h (f_value_print): Don't declare.
7780 * f-lang.c (f_language_defn): Update.
7781 * d-valprint.c (d_val_print): Remove.
7782 * d-lang.h (d_value_print): Don't declare.
7783 * d-lang.c (d_language_defn): Update.
7784 * cp-valprint.c (cp_print_value_fields)
7785 (cp_print_value_fields_rtti, cp_print_value): Remove.
7786 (cp_print_static_field): Update.
7787 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7788 (c_val_print_struct, c_val_print_union, c_val_print_int)
7789 (c_val_print_memberptr, c_val_print): Remove.
7790 * c-lang.h (c_val_print_array, cp_print_value_fields)
7791 (cp_print_value_fields_rtti): Don't declare.
7792 * c-lang.c (c_language_defn, cplus_language_defn)
7793 (asm_language_defn, minimal_language_defn): Update.
7794 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7795 (ada_val_print_enum): Take a struct value.
7796 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7797 (ada_val_print): Remove.
7798 (ada_value_print_1): Update.
7799 (printable_val_type): Remove.
7800 * ada-lang.h (ada_val_print): Don't declare.
7801 * ada-lang.c (ada_language_defn): Update.
7802
7803 2020-03-13 Tom Tromey <tom@tromey.com>
7804
7805 * valprint.c (do_val_print): Update.
7806 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7807 a struct value.
7808 (value_to_value_object_no_release): Declare.
7809 * python/py-value.c (value_to_value_object_no_release): New
7810 function.
7811 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7812 struct value.
7813 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7814 function.
7815 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7816 a struct value.
7817 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7818 Declare.
7819 (gdbscm_apply_val_pretty_printer): Take a struct value.
7820 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7821 value.
7822 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7823 value.
7824 * extension-priv.h (struct extension_language_ops)
7825 <apply_val_pretty_printer>: Take a struct value.
7826 * cp-valprint.c (cp_print_value): Create a struct value.
7827 (cp_print_value): Update.
7828
7829 2020-03-13 Tom Tromey <tom@tromey.com>
7830
7831 * ada-valprint.c (print_field_values): Call common_val_print.
7832
7833 2020-03-13 Tom Tromey <tom@tromey.com>
7834
7835 * ada-valprint.c (val_print_packed_array_elements): Remove
7836 bitoffset and val parameters. Call common_val_print.
7837 (ada_val_print_string): Remove offset, address, and original_value
7838 parameters.
7839 (ada_val_print_array): Update.
7840 (ada_value_print_array): New function.
7841 (ada_value_print_1): Call it.
7842
7843 2020-03-13 Tom Tromey <tom@tromey.com>
7844
7845 * ada-valprint.c (ada_value_print): Use common_val_print.
7846
7847 2020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7850
7851 2020-03-13 Tom Tromey <tom@tromey.com>
7852
7853 * ada-valprint.c (ada_value_print_num): New function.
7854 (ada_value_print_1): Use it.
7855
7856 2020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7859
7860 2020-03-13 Tom Tromey <tom@tromey.com>
7861
7862 * ada-valprint.c (ada_value_print_ptr): New function.
7863 (ada_value_print_1): Use it.
7864
7865 2020-03-13 Tom Tromey <tom@tromey.com>
7866
7867 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7868 call common_val_print.
7869 (ada_val_print_1): Update.
7870 (ada_value_print_1): New function.
7871 (ada_value_print_inner): Rewrite.
7872
7873 2020-03-13 Tom Tromey <tom@tromey.com>
7874
7875 * cp-valprint.c (cp_print_value_fields): Update.
7876 (cp_print_value): New function.
7877
7878 2020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * m2-valprint.c (m2_value_print_inner): Use
7881 cp_print_value_fields.
7882 * cp-valprint.c (cp_print_value_fields): New function.
7883 * c-valprint.c (c_value_print_struct): New function.
7884 (c_value_print_inner): Use c_value_print_struct.
7885 * c-lang.h (cp_print_value_fields): Declare.
7886
7887 2020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * c-valprint.c (c_value_print_array): New function.
7890 (c_value_print_inner): Use it.
7891
7892 2020-03-13 Tom Tromey <tom@tromey.com>
7893
7894 * c-valprint.c (c_value_print_memberptr): New function.
7895 (c_value_print_inner): Use it.
7896
7897 2020-03-13 Tom Tromey <tom@tromey.com>
7898
7899 * c-valprint.c (c_value_print_int): New function.
7900 (c_value_print_inner): Use it.
7901
7902 2020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * c-valprint.c (c_value_print_ptr): New function.
7905 (c_value_print_inner): Use it.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * c-valprint.c (c_value_print_inner): Rewrite.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * valprint.c (generic_value_print_complex): New function.
7914 (generic_value_print): Use it.
7915
7916 2020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * valprint.c (generic_val_print_float): Don't call
7919 val_print_scalar_formatted.
7920 (generic_val_print, generic_value_print): Update.
7921
7922 2020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * valprint.c (generic_value_print_char): New function
7925 (generic_value_print): Use it.
7926
7927 2020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * valprint.c (generic_value_print_int): New function.
7930 (generic_value_print): Use it.
7931
7932 2020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * valprint.c (generic_value_print_bool): New function.
7935 (generic_value_print): Use it.
7936
7937 2020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * valprint.c (generic_val_print_func): Simplify.
7940 (generic_val_print, generic_value_print): Update.
7941
7942 2020-03-13 Tom Tromey <tom@tromey.com>
7943
7944 * valprint.c (generic_val_print_flags): Remove.
7945 (generic_val_print, generic_value_print): Update.
7946 (val_print_type_code_flags): Add original_value parameter.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * valprint.c (generic_val_print): Update.
7951 (generic_value_print): Update.
7952 * valprint.c (generic_val_print_enum): Don't call
7953 val_print_scalar_formatted.
7954
7955 2020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7958 * valprint.c (generic_value_print_ptr): New function.
7959
7960 2020-03-13 Tom Tromey <tom@tromey.com>
7961
7962 * valprint.c (generic_value_print): Rewrite.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * p-valprint.c (pascal_object_print_value_fields)
7967 (pascal_object_print_value): New functions.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * p-valprint.c (pascal_value_print_inner): Rewrite.
7972
7973 2020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * f-valprint.c (f_value_print_innner): Rewrite.
7976
7977 2020-03-13 Tom Tromey <tom@tromey.com>
7978
7979 * m2-valprint.c (m2_print_unbounded_array): New overload.
7980 (m2_print_unbounded_array): Update.
7981 (m2_print_array_contents): Take a struct value.
7982 (m2_value_print_inner): Rewrite.
7983
7984 2020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7987 (d_value_print_inner): New function.
7988 * d-lang.h (d_value_print_inner): Declare.
7989 * d-lang.c (d_language_defn): Use d_value_print_inner.
7990
7991 2020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * go-valprint.c (go_value_print_inner): New function.
7994 * go-lang.h (go_value_print_inner): Declare.
7995 * go-lang.c (go_language_defn): Use go_value_print_inner.
7996
7997 2020-03-13 Tom Tromey <tom@tromey.com>
7998
7999 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8000 API.
8001 (rust_val_print): Rewrite.
8002 (rust_value_print_inner): New function, from rust_val_print.
8003 (rust_language_defn): Use rust_value_print_inner.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (ada_value_print_inner): New function.
8008 * ada-lang.h (ada_value_print_inner): Declare.
8009 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8010
8011 2020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * f-valprint.c (f_value_print_innner): New function.
8014 * f-lang.h (f_value_print_innner): Declare.
8015 * f-lang.c (f_language_defn): Use f_value_print_innner.
8016
8017 2020-03-13 Tom Tromey <tom@tromey.com>
8018
8019 * p-valprint.c (pascal_value_print_inner): New function.
8020 * p-lang.h (pascal_value_print_inner): Declare.
8021 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8022
8023 2020-03-13 Tom Tromey <tom@tromey.com>
8024
8025 * m2-valprint.c (m2_value_print_inner): New function.
8026 * m2-lang.h (m2_value_print_inner): Declare.
8027 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8028
8029 2020-03-13 Tom Tromey <tom@tromey.com>
8030
8031 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8032 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8033 * c-valprint.c (c_value_print_inner): New function.
8034 * c-lang.h (c_value_print_inner): Declare.
8035 * c-lang.c (c_language_defn, cplus_language_defn)
8036 (asm_language_defn, minimal_language_defn): Use
8037 c_value_print_inner.
8038
8039 2020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * p-valprint.c (pascal_object_print_value_fields): Now static.
8042 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8043
8044 2020-03-13 Tom Tromey <tom@tromey.com>
8045
8046 * c-valprint.c (c_val_print_array): Simplify.
8047
8048 2020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * valprint.c (value_print_array_elements): New function.
8051 * valprint.h (value_print_array_elements): Declare.
8052
8053 2020-03-13 Tom Tromey <tom@tromey.com>
8054
8055 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8056 * mips-tdep.c (mips_print_register): Use
8057 value_print_scalar_formatted.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * valprint.h (value_print_scalar_formatted): Declare.
8062 * valprint.c (value_print_scalar_formatted): New function.
8063
8064 2020-03-13 Tom Tromey <tom@tromey.com>
8065
8066 * valprint.h (generic_value_print): Declare.
8067 * valprint.c (generic_value_print): New function.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * valprint.c (do_val_print): Call la_value_print_inner, if
8072 available.
8073 * rust-lang.c (rust_language_defn): Update.
8074 * p-lang.c (pascal_language_defn): Update.
8075 * opencl-lang.c (opencl_language_defn): Update.
8076 * objc-lang.c (objc_language_defn): Update.
8077 * m2-lang.c (m2_language_defn): Update.
8078 * language.h (struct language_defn) <la_value_print_inner>: New
8079 member.
8080 * language.c (unknown_language_defn, auto_language_defn): Update.
8081 * go-lang.c (go_language_defn): Update.
8082 * f-lang.c (f_language_defn): Update.
8083 * d-lang.c (d_language_defn): Update.
8084 * c-lang.c (c_language_defn, cplus_language_defn)
8085 (asm_language_defn, minimal_language_defn): Update.
8086 * ada-lang.c (ada_language_defn): Update.
8087
8088 2020-03-13 Tom Tromey <tom@tromey.com>
8089
8090 * c-valprint.c (c_value_print): Use common_val_print.
8091
8092 2020-03-13 Tom Tromey <tom@tromey.com>
8093
8094 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8095
8096 2020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * f-valprint.c (f77_print_array_1, f_val_print): Use
8099 common_val_print.
8100
8101 2020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * riscv-tdep.c (riscv_print_one_register_info): Use
8104 common_val_print.
8105
8106 2020-03-13 Tom Tromey <tom@tromey.com>
8107
8108 * mi/mi-main.c (output_register): Use common_val_print.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * infcmd.c (default_print_one_register_info): Use
8113 common_val_print.
8114
8115 2020-03-13 Tom Tromey <tom@tromey.com>
8116
8117 * valprint.h (common_val_print_checked): Declare.
8118 * valprint.c (common_val_print_checked): New function.
8119 * stack.c (print_frame_arg): Use common_val_print_checked.
8120
8121 2020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * valprint.c (do_val_print): New function, from val_print.
8124 (val_print): Use do_val_print.
8125 (common_val_print): Use do_val_print.
8126
8127 2020-03-13 Tom Tromey <tom@tromey.com>
8128
8129 * valprint.c (value_print): Use scoped_value_mark.
8130
8131 2020-03-13 Tom de Vries <tdevries@suse.de>
8132
8133 PR symtab/25646
8134 * psymtab.c (partial_symtab::partial_symtab): Don't set
8135 globals_offset and statics_offset. Push element onto
8136 current_global_psymbols and current_static_psymbols stacks.
8137 (concat): New function.
8138 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8139 element from current_global_psymbols and current_static_psymbols
8140 stacks. Concat popped elements to global_psymbols and
8141 static_symbols.
8142 (add_psymbol_to_list): Use current_global_psymbols and
8143 current_static_psymbols stacks.
8144 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8145 current_static_psymbols fields.
8146
8147 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8148
8149 * corelow.c (sniff_core_bfd): Remove.
8150 (class core_target) <m_core_vec>: Remove.
8151 (core_target::core_target): Update.
8152 (core_file_fns): Remove.
8153 (deprecated_add_core_fns): Remove.
8154 (default_core_sniffer): Remove.
8155 (sniff_core_bfd): Remove.
8156 (default_check_format): Remove.
8157 (gdb_check_format): Remove.
8158 (core_target_open): Update.
8159 (core_target::get_core_register_section): Update.
8160 (get_core_registers_cb): Update.
8161 (core_target::fetch_registers): Update.
8162 * gdbcore.h (struct core_fns): Remove.
8163 (deprecated_add_core_fns): Remove.
8164 (default_core_sniffer): Remove.
8165 (default_check_format): Remove.
8166
8167 2020-03-12 Tom Tromey <tom@tromey.com>
8168
8169 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8170 CORE_ADDR.
8171 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8172
8173 2020-03-12 Tom Tromey <tom@tromey.com>
8174
8175 * remote.c (remote_target::download_tracepoint)
8176 (remote_target::enable_tracepoint)
8177 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8178 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8179 sprintf_vma.
8180
8181 2020-03-12 Tom Tromey <tom@tromey.com>
8182
8183 * symfile-mem.c: Update CORE_ADDR size assert.
8184
8185 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * selftest.m4: Move to gdbsupport/.
8188 * acinclude.m4: Update path to selftest.m4.
8189
8190 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8193 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8194 gdbarch-selfselftests.c and selftest-arch.c.
8195 (SUBDIR_UNITTESTS_OBS): Rename to...
8196 (SELFTESTS_OBS): ... this.
8197 (COMMON_SFILES): Remove disasm-selftests.c and
8198 gdbarch-selftests.c.
8199 * configure.ac: Don't add selftest-arch.{c,o} to
8200 CONFIG_{SRCS,OBS}.
8201 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8202 preprocessor conditions.
8203
8204 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8205
8206 * configure.ac: Don't source bfd/development.sh.
8207 * selftest.m4: Modify comment.
8208 * configure: Re-generate.
8209
8210 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8213 not "true" or "false".
8214 * configure: Re-generate.
8215
8216 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8217
8218 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8219 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8220 renamed to arm_nbsd_supply_gregset.
8221 (fetch_register): Update to call arm_nbsd_supply_gregset.
8222 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8223 (arm_netbsd_nat_target::fetch_registers): Update.
8224 (fetch_elfcore_registers): Removed.
8225 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8226 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8227 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8228 not require NetBSD system headers.
8229 (arm_nbsd_regset): New struct.
8230 (arm_nbsd_iterate_over_regset_sections): New function.
8231 (arm_netbsd_init_abi_common): Updated to call
8232 set_gdbarch_iterate_over_regset_sections.
8233 * arm-nbsd-tdep.h: New file.
8234
8235 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8236
8237 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8238 recursion.
8239
8240 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8241
8242 * configure: Re-generate.
8243
8244 2020-03-11 Tom Tromey <tromey@adacore.com>
8245
8246 * ada-typeprint.c (print_choices): Fix comment.
8247
8248 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8251 previous item in the list, when the list has no items.
8252
8253 2020-03-11 Tom de Vries <tdevries@suse.de>
8254
8255 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8256 PROP_LOCLIST handling code.
8257
8258 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8259
8260 * buildsym-legacy.c (record_line): Pass extra parameter to
8261 record_line.
8262 * buildsym.c (buildsym_compunit::record_line): Take an extra
8263 parameter, reduce duplication in the line table, and record the
8264 is_stmt flag in the line table.
8265 * buildsym.h (buildsym_compunit::record_line): Add extra
8266 parameter.
8267 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8268 non-statement lines.
8269 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8270 this to the symtab builder.
8271 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8272 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8273 through to dwarf_record_line_1.
8274 * infrun.c (process_event_stop_test): When stepping, don't stop at
8275 a non-statement instruction, and only refresh the step info when
8276 we land in the middle of a line's range. Also add an extra
8277 comment.
8278 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8279 field.
8280 * record-btrace.c (btrace_find_line_range): Only record lines
8281 marked as is-statement.
8282 * stack.c (frame_show_address): Show the frame address if we are
8283 in a non-statement sal.
8284 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8285 (maintenance_print_one_line_table): Print a header for the is_stmt
8286 column, and include is_stmt information in the output.
8287 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8288 preference to non-statements.
8289 (find_pcs_for_symtab_line): Prefer is-statement entries.
8290 (find_line_common): Likewise.
8291 * symtab.h (struct linetable_entry): Add is_stmt field.
8292 (struct symtab_and_line): Likewise.
8293 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8294 arranging the line table.
8295
8296 2020-03-07 Tom de Vries <tdevries@suse.de>
8297
8298 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8299 DIE.
8300
8301 2020-03-07 Tom Tromey <tom@tromey.com>
8302
8303 * valops.c (value_literal_complex): Remove obsolete comment.
8304 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8305 comment.
8306
8307 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8308
8309 * infrun.h: Forward-declare thread_info.
8310 (set_step_info): Add thread_info parameter, add doc.
8311 * infrun.c (set_step_info): Add thread_info parameter, move doc
8312 to header.
8313 * infrun.c (process_event_stop_test): Pass thread to
8314 set_step_info call.
8315 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8316 set_step_info.
8317 (prepare_one_step): Add thread_info parameter, pass it to
8318 set_step_frame and prepare_one_step (recursive) call.
8319 (step_1): Pass thread to prepare_one_step call.
8320 (step_command_fsm::should_stop): Pass thread to
8321 prepare_one_step.
8322 (until_next_fsm): Pass thread to set_step_frame call.
8323 (finish_command): Pass thread to set_step_info call.
8324
8325 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8326
8327 * windows-tdep.c (windows_solib_create_inferior_hook):
8328 Check if inferior is running.
8329
8330 2020-03-06 Tom de Vries <tdevries@suse.de>
8331
8332 * NEWS: Fix "the the".
8333 * ctfread.c: Same.
8334
8335 2020-03-06 Tom de Vries <tdevries@suse.de>
8336
8337 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8338
8339 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * .dir-locals.el: Add a comment referencing the other copies of
8342 this file.
8343
8344 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8345
8346 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8347 psargs.
8348
8349 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8350
8351 * .gitattributes: New file.
8352
8353 2020-03-04 Tom Tromey <tom@tromey.com>
8354
8355 * symmisc.c (print_symbol_bcache_statistics)
8356 (print_objfile_statistics): Update.
8357 * symfile.c (allocate_symtab): Use intern.
8358 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8359 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8360 macro_cache>: Remove.
8361 <string_cache>: New member.
8362 (struct objfile) <intern>: New methods.
8363 * elfread.c (elf_symtab_read): Use intern.
8364 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8365 (dwarf2_compute_name, dwarf2_physname)
8366 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8367 names.
8368 (guess_partial_die_structure_name): Update.
8369 (partial_die_info::fixup): Intern name.
8370 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8371 name.
8372 (dwarf2_name): Intern name. Update.
8373 * buildsym.c (buildsym_compunit::get_macro_table): Use
8374 string_cache.
8375
8376 2020-03-04 Tom Tromey <tom@tromey.com>
8377
8378 * jit.c (bfd_open_from_target_memory): Make "target" const.
8379 * corefile.c (gnutarget): Now const.
8380 * gdbcore.h (gnutarget): Now const.
8381
8382 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8383
8384 * NEWS: Mention support for WOW64 processes.
8385 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8386 (amd64_windows_segment_register_p): Remove static.
8387 (_initialize_amd64_windows_nat): Update.
8388 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8389 * i386-windows-nat.c (context_offset): Update.
8390 (i386_mappings): Rename and remove static.
8391 (i386_windows_segment_register_p): Remove static.
8392 (_initialize_i386_windows_nat): Update.
8393 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8394 (STATUS_WX86_SINGLE_STEP): New macro.
8395 (EnumProcessModulesEx): New macro.
8396 (Wow64SuspendThread): New macro.
8397 (Wow64GetThreadContext): New macro.
8398 (Wow64SetThreadContext): New macro.
8399 (Wow64GetThreadSelectorEntry): New macro.
8400 (windows_set_context_register_offsets): Add static.
8401 (windows_set_segment_register_p): Likewise.
8402 (windows_add_thread): Adapt for WOW64 processes.
8403 (windows_fetch_one_register): Likewise.
8404 (windows_nat_target::fetch_registers): Likewise.
8405 (windows_store_one_register): Likewise.
8406 (display_selector): Likewise.
8407 (display_selectors): Likewise.
8408 (handle_exception): Likewise.
8409 (windows_continue): Likewise.
8410 (windows_nat_target::resume): Likewise.
8411 (windows_add_all_dlls): Likewise.
8412 (do_initial_windows_stuff): Likewise.
8413 (windows_nat_target::attach): Likewise.
8414 (windows_get_exec_module_filename): Likewise.
8415 (windows_nat_target::create_inferior): Likewise.
8416 (windows_xfer_siginfo): Likewise.
8417 (_initialize_loadable): Initialize Wow64SuspendThread,
8418 Wow64GetThreadContext, Wow64SetThreadContext,
8419 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8420 * windows-nat.h (windows_set_context_register_offsets):
8421 Remove declaration.
8422 (windows_set_segment_register_p): Likewise.
8423 (i386_windows_segment_register_p): Add declaration.
8424 (amd64_windows_segment_register_p): Likewise.
8425
8426 2020-03-04 Luis Machado <luis.machado@linaro.org>
8427
8428 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8429 in "info registers" for AArch64/ARM.
8430
8431 The change caused "info registers" to not print GPR's.
8432
8433 gdb/ChangeLog:
8434
8435 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8436
8437 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8438 when reg->group is empty and reggroup is not.
8439
8440 2020-03-03 Tom Tromey <tromey@adacore.com>
8441
8442 * dwarf2/frame.c (struct dwarf2_frame_cache)
8443 <checked_tailcall_bottom, entry_cfa_sp_offset,
8444 entry_cfa_sp_offset_p>: Remove members.
8445 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8446 (dwarf2_frame_prev_register): Don't call
8447 dwarf2_tailcall_sniffer_first.
8448 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8449 * frame-unwind.c (add_unwinder): New fuction.
8450 (frame_unwind_init): Use it. Add tailcall unwinder.
8451
8452 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8453 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8454
8455 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8456 value should be printed as true.
8457
8458 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8459
8460 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8461 (windows_init_abi): Set and use windows_so_ops.
8462
8463 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8464
8465 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8466 when verifying if dealing with a convenience variable.
8467
8468 2020-03-03 Luis Machado <luis.machado@linaro.org>
8469
8470 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8471
8472 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8473
8474 * infrun.c (gdbarch_supports_displaced_stepping): New.
8475 (use_displaced_stepping): Break up conditions in smaller pieces.
8476 Use gdbarch_supports_displaced_stepping.
8477 (displaced_step_prepare_throw): Use
8478 gdbarch_supports_displaced_stepping.
8479
8480 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * NEWS: Mention new behaviour of the history filename.
8483 * top.c (write_history_p): Add comment.
8484 (show_write_history_p): Add header comment, give a different
8485 message when history writing is on, but the history filename is
8486 empty.
8487 (history_filename): Add comment.
8488 (history_filename_empty): New function.
8489 (show_history_filename): Add header comment, give a different
8490 message when the filename is empty.
8491 (init_history): Compare history_filename against nullptr, and only
8492 read history if the filename is not empty.
8493 (set_history_filename): Add header comment, and only make
8494 non-empty filenames absolute.
8495 (init_main): Make the filename argument to 'set history filename'
8496 optional.
8497
8498 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8499
8500 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8501 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8502 (fetch_fp_register): Update.
8503 (fetch_fp_regs): Update.
8504 (store_fp_register): Update.
8505 (store_fp_regs): Update.
8506 (arm_netbsd_nat_target::read_description): New function.
8507 (fetch_elfcore_registers): Update.
8508
8509 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8512 general_thread if the stop reply is missing a thread-id.
8513 (remote_target::process_stop_reply): Use the first non-exited
8514 thread if the target didn't pass a thread-id.
8515 * infrun.c (do_target_wait): Move call to
8516 switch_to_inferior_no_thread to ....
8517 (do_target_wait_1): ... here.
8518
8519 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8520
8521 * debuginfod-support.c: Include defs.h first.
8522
8523 2020-02-28 Tom de Vries <tdevries@suse.de>
8524
8525 * symfile.c (set_initial_language): Use default language for lookup.
8526
8527 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8530 reader variable, pass `this` to read_cutu_die_from_dwo.
8531
8532 2020-02-27 Aaron Merey <amerey@redhat.com>
8533
8534 * source.c (open_source_file): Check for nullptr when computing
8535 srcpath.
8536
8537 2020-02-27 Tom Tromey <tromey@adacore.com>
8538
8539 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8540 member.
8541 (dwarf2_add_field): Don't update nfields.
8542 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8543
8544 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8547 abs.
8548
8549 2020-02-26 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8552 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8553 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8554 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8555 per_cu_data.
8556
8557 2020-02-26 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/index-write.c (psym_index_map): Change type.
8560 (add_address_entry_worker, write_one_signatured_type)
8561 (recursively_count_psymbols, recursively_write_psymbols)
8562 (class debug_names, psyms_seen_size, write_gdbindex)
8563 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8564
8565 2020-02-26 Aaron Merey <amerey@redhat.com>
8566
8567 * Makefile.in: Handle optional debuginfod support.
8568 * NEWS: Update.
8569 * README: Add --with-debuginfod summary.
8570 * config.in: Regenerate.
8571 * configure: Regenerate.
8572 * configure.ac: Handle optional debuginfod support.
8573 * debuginfod-support.c: debuginfod helper functions.
8574 * debuginfod-support.h: Ditto.
8575 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8576 summary.
8577 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8578 when a dwz file cannot be found.
8579 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8580 debuginfo file cannot be found.
8581 * source.c (open_source_file): Query debuginfod servers when a
8582 source file cannot be found.
8583 * top.c (print_gdb_configuration): Include
8584 --{with,without}-debuginfod in the output.
8585
8586 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8587
8588 * thread.c (thr_try_catch_cmd): Print thread name.
8589
8590 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8593 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8594 dwarf2_fetch_die_type_sect_off): Move to...
8595 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8596 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8597 dwarf2_fetch_die_type_sect_off): ... here.
8598 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8599 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8600 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8601
8602 2020-02-26 Tom de Vries <tdevries@suse.de>
8603
8604 PR gdb/25603
8605 * symfile.c (set_initial_language): Exit-early if
8606 language_mode == language_mode_manual.
8607
8608 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8609
8610 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8611 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8612 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8613
8614 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * gdbtypes.c (create_array_type_with_stride): Handle negative
8617 array strides.
8618 * valarith.c (value_subscripted_rvalue): Likewise.
8619
8620 2020-02-25 Luis Machado <luis.machado@linaro.org>
8621
8622 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8623
8624 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8625
8626 * loc.h (dwarf2_get_die_type): Move to...
8627 * read.h (dwarf2_get_die_type): ... here.
8628 * read.c (dwarf2_get_die_type): Move doc to header.
8629
8630 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8631
8632 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8633 'gnulib/Makefile.in' to the list.
8634
8635 2020-02-24 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8638 Remove.
8639 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8640 XOBNEWVEC.
8641
8642 2020-02-24 Tom Tromey <tom@tromey.com>
8643
8644 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8645 New method.
8646 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8647 (dw2_do_instantiate_symtab, dw2_get_file_names)
8648 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8649
8650 2020-02-24 Tom Tromey <tom@tromey.com>
8651
8652 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8653 make_scoped_restore.
8654 (dwarf2_psymtab::read_symtab): Don't clear
8655 reading_partial_symbols.
8656
8657 2020-02-24 Tom de Vries <tdevries@suse.de>
8658
8659 PR gdb/25592
8660 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8661
8662 2020-02-24 Tom de Vries <tdevries@suse.de>
8663
8664 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8665 commands layout next/prev/regs.
8666
8667 2020-02-22 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8670 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8671
8672 2020-02-22 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8675
8676 2020-02-22 Tom Tromey <tom@tromey.com>
8677
8678 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8679 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8680 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8681 * tui/tui.c (_initialize_tui): Add usage text.
8682
8683 2020-02-22 Tom Tromey <tom@tromey.com>
8684
8685 * tui/tui-win.c (tui_set_focus_command)
8686 (tui_set_win_height_command): Use error_no_arg.
8687 (_initialize_tui_win): Update help text.
8688 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8689
8690 2020-02-22 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8693 * tui/tui-disasm.h (struct tui_disasm_window)
8694 <display_start_addr>: Declare.
8695 * tui/tui-source.h (struct tui_source_window)
8696 <display_start_addr>: Declare.
8697 * tui/tui-winsource.h (struct tui_source_window_base)
8698 <show_source_line, display_start_addr>: New methods.
8699 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8700 Rename and move to protected section.
8701 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8702 (tui_source_window_base::do_erase_source_content): Update.
8703 (tui_source_window_base::show_source_line): Now a method.
8704 (tui_source_window_base::show_source_content)
8705 (tui_source_window_base::tui_source_window_base)
8706 (tui_source_window_base::rerender)
8707 (tui_source_window_base::refill)
8708 (tui_source_window_base::do_scroll_horizontal)
8709 (tui_source_window_base::set_is_exec_point_at)
8710 (tui_source_window_base::update_breakpoint_info)
8711 (tui_source_window_base::update_exec_info): Update.
8712 * tui/tui-source.c (tui_source_window::set_contents)
8713 (tui_source_window::showing_source_p)
8714 (tui_source_window::do_scroll_vertical)
8715 (tui_source_window::location_matches_p)
8716 (tui_source_window::line_is_displayed): Update.
8717 (tui_source_window::display_start_addr): New method.
8718 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8719 (tui_disasm_window::do_scroll_vertical)
8720 (tui_disasm_window::location_matches_p): Update.
8721 (tui_disasm_window::display_start_addr): New method.
8722
8723 2020-02-22 Tom Tromey <tom@tromey.com>
8724
8725 * NEWS: Add entry for gdb.register_window_type.
8726 * tui/tui-layout.h (window_factory): New typedef.
8727 (tui_register_window): Declare.
8728 * tui/tui-layout.c (saved_tui_windows): New global.
8729 (tui_apply_current_layout): Use it.
8730 (tui_register_window): New function.
8731 * python/python.c (do_start_initialization): Call
8732 gdbpy_initialize_tui.
8733 (python_GdbMethods): Add "register_window_type" function.
8734 * python/python-internal.h (gdbpy_register_tui_window)
8735 (gdbpy_initialize_tui): Declare.
8736 * python/py-tui.c: New file.
8737 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8738
8739 2020-02-22 Tom Tromey <tom@tromey.com>
8740
8741 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8742
8743 2020-02-22 Tom Tromey <tom@tromey.com>
8744
8745 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8746 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8747 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8748 (tui_set_win_focus_to): Move from tui-win.c.
8749
8750 2020-02-22 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8753 functions.
8754 (known_window_types): New global.
8755 (tui_get_window_by_name): Reimplement.
8756 (initialize_known_windows): New function.
8757 (validate_window_name): Rewrite.
8758 (_initialize_tui_layout): Call initialize_known_windows.
8759
8760 2020-02-22 Tom Tromey <tom@tromey.com>
8761
8762 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8763 Remove constants.
8764 * tui/tui-winsource.h (struct tui_source_window_base)
8765 <tui_source_window_base>: Remove parameter.
8766 * tui/tui-winsource.c
8767 (tui_source_window_base::tui_source_window_base): Remove
8768 parameter.
8769 (tui_source_window_base::refill): Update.
8770 * tui/tui-stack.h (struct tui_locator_window)
8771 <tui_locator_window>: Update.
8772 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8773 Default the constructor.
8774 * tui/tui-regs.h (struct tui_data_item_window)
8775 <tui_data_item_window>: Default the constructor.
8776 (struct tui_data_window) <tui_data_window>: Likewise.
8777 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8778 Default the constructor.
8779 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8780 Default the constructor.
8781 <type>: Remove.
8782 (struct tui_win_info) <tui_win_info>: Default the constructor.
8783 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8784 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8785 Default the constructor.
8786
8787 2020-02-22 Tom Tromey <tom@tromey.com>
8788
8789 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8790 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8791 * tui/tui-win.c (tui_resize_all): Don't call
8792 tui_delete_invisible_windows.
8793 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8794 done.
8795 (tui_set_layout): Update.
8796 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8797 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8798 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8799
8800 2020-02-22 Tom Tromey <tom@tromey.com>
8801
8802 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8803 correctly.
8804
8805 2020-02-22 Tom Tromey <tom@tromey.com>
8806
8807 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8808
8809 2020-02-22 Tom Tromey <tom@tromey.com>
8810
8811 * tui/tui-winsource.h (struct tui_source_window_iterator)
8812 <inner_iterator>: New etytypedef.
8813 <tui_source_window_iterator>: Take "end" parameter.
8814 <tui_source_window_iterator>: Take iterator.
8815 <operator*, advance>: Update.
8816 <m_iter>: Change type.
8817 <m_end>: New field.
8818 (struct tui_source_windows) <begin, end>: Update.
8819 * tui/tui-layout.c (tui_windows): New global.
8820 (tui_apply_current_layout): Clear tui_windows.
8821 (tui_layout_window::apply): Update tui_windows.
8822 * tui/tui-data.h (tui_windows): Declare.
8823 (all_tui_windows): Now inline function.
8824 (class tui_window_iterator, struct all_tui_windows): Remove.
8825
8826 2020-02-22 Tom Tromey <tom@tromey.com>
8827
8828 PR tui/17850:
8829 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8830 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8831 "height" argument.
8832 (class tui_layout_window) <get_sizes>: Likewise.
8833 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8834 argument.
8835 <get_sizes>: Add "height" argument.
8836 <m_vertical>: New field.
8837 * tui/tui-layout.c (tui_layout_split::clone): Update.
8838 (tui_layout_split::get_sizes): Add "height" argument.
8839 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8840 (tui_new_layout_command): Parse "-horizontal".
8841 (_initialize_tui_layout): Update help string.
8842 (tui_layout_split::specification): Add "-horizontal" when needed.
8843 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8844 argument.
8845 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8846 New methods.
8847
8848 2020-02-22 Tom Tromey <tom@tromey.com>
8849
8850 * tui/tui-layout.h (enum tui_adjust_result): New.
8851 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8852 (class tui_layout_window) <adjust_size>: Return
8853 tui_adjust_result. Rewrite.
8854 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8855 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8856
8857 2020-02-22 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8860 parameter and return types.
8861 (class tui_layout_base) <specification>: Add "depth".
8862 (class tui_layout_window) <specification>: Add "depth".
8863 (class tui_layout_split) <specification>: Add "depth".
8864 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8865 and return types.
8866 (tui_new_layout_command): Parse sub-layouts.
8867 (_initialize_tui_layout): Update help string.
8868 (tui_layout_window::specification): Add "depth".
8869 (add_layout_command): Update.
8870
8871 2020-02-22 Tom Tromey <tom@tromey.com>
8872
8873 * NEWS: Add "tui new-layout" item.
8874 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8875 Add new-layout command to help text.
8876 (validate_window_name): New function.
8877 (tui_new_layout_command): New function.
8878 (_initialize_tui_layout): Register "new-layout".
8879 (tui_layout_window::specification): New method.
8880 (tui_layout_window::specification): New method.
8881 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8882 method.
8883 (class tui_layout_window) <specification>: New method.
8884 (class tui_layout_split) <specification>: New method.
8885
8886 2020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8889 * tui/tui-win.c (window_name_completer): Update comment.
8890 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8891 Declare method.
8892 (class tui_layout_window) <replace_window>: Likewise.
8893 (class tui_layout_split) <replace_window>: Likewise.
8894 (tui_set_layout): Don't declare.
8895 (tui_set_initial_layout): Declare function.
8896 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8897 (asm_regs_layout): New globals.
8898 (tui_current_layout, show_layout): Remove.
8899 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8900 (find_layout, tui_apply_layout): New function.
8901 (layout_completer): Remove.
8902 (tui_next_layout): Reimplement.
8903 (tui_next_layout_command): New function.
8904 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8905 (tui_regs_layout): Reimplement.
8906 (tui_regs_layout_command): New function.
8907 (extract_display_start_addr): Rewrite.
8908 (next_layout, prev_layout): Remove.
8909 (tui_layout_window::replace_window): New method.
8910 (tui_layout_split::replace_window): New method.
8911 (destroy_layout): New function.
8912 (layout_list): New global.
8913 (add_layout_command): New function.
8914 (initialize_layouts): Update.
8915 (tui_layout_command): New function.
8916 (_initialize_tui_layout): Install "layout" commands.
8917 * tui/tui-data.h (enum tui_layout_type): Remove.
8918 (tui_current_layout): Don't declare.
8919
8920 2020-02-22 Tom Tromey <tom@tromey.com>
8921
8922 * tui/tui-regs.c (tui_reg_layout): Remove.
8923 (tui_reg_command): Use tui_regs_layout.
8924 * tui/tui-layout.h (tui_reg_command): Declare.
8925 * tui/tui-layout.c (tui_reg_command): New function.
8926
8927 2020-02-22 Tom Tromey <tom@tromey.com>
8928
8929 * tui/tui.c (tui_rl_delete_other_windows): Call
8930 tui_remove_some_windows.
8931 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8932 Declare method.
8933 (class tui_layout_window) <remove_windows>: New method.
8934 (class tui_layout_split) <remove_windows>: Declare.
8935 (tui_remove_some_windows): Declare.
8936 * tui/tui-layout.c (tui_remove_some_windows): New function.
8937 (tui_layout_split::remove_windows): New method.
8938
8939 2020-02-22 Tom Tromey <tom@tromey.com>
8940
8941 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8942 * tui/tui-layout.h (tui_next_layout): Declare.
8943 * tui/tui-layout.c (tui_next_layout): New function.
8944
8945 2020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8948 correct coordinates.
8949
8950 2020-02-22 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8953 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8954 DATA_WIN case.
8955
8956 2020-02-22 Tom Tromey <tom@tromey.com>
8957
8958 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8959 TUI_DISASM_WIN, not tui_win_list.
8960
8961 2020-02-22 Tom Tromey <tom@tromey.com>
8962
8963 * valprint.c (generic_val_print_enum_1)
8964 (val_print_type_code_flags): Style member names.
8965 * rust-lang.c (val_print_struct, rust_print_enum)
8966 (rust_print_struct_def, rust_internal_print_type): Style member
8967 names.
8968 * p-valprint.c (pascal_object_print_value_fields): Style member
8969 names. Only call fprintf_symbol_filtered for static members.
8970 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8971 * f-valprint.c (f_val_print): Style member names.
8972 * f-typeprint.c (f_type_print_base): Style member names.
8973 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8974 call fprintf_symbol_filtered for static members.
8975 (cp_print_class_member): Style member names.
8976 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8977 member names.
8978 * ada-valprint.c (ada_print_scalar): Style enum names.
8979 (ada_val_print_enum): Likewise.
8980 * ada-typeprint.c (print_enum_type): Style enum names.
8981
8982 2020-02-21 Tom Tromey <tom@tromey.com>
8983
8984 * psympriv.h (struct partial_symtab): Update comment.
8985
8986 2020-02-21 Tom Tromey <tromey@adacore.com>
8987
8988 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8989 type is CORE_ADDR.
8990
8991 2020-02-21 Tom de Vries <tdevries@suse.de>
8992
8993 PR gdb/25534
8994 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8995 if dependencies[i]->user != NULL.
8996
8997 2020-02-21 Ali Tamur <tamur@google.com>
8998
8999 * dwarf2/read.c (dwarf2_name): Add null check.
9000
9001 2020-02-20 Tom Tromey <tom@tromey.com>
9002
9003 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9004 ">=", in binary search.
9005 (dwarf2_find_containing_comp_unit): New overload.
9006 (run_test): New self-test.
9007 (_initialize_dwarf2_read): Register new test.
9008
9009 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9010
9011 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9012 * riscv-tdep.h: Likewise.
9013 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9014 rv32-only CSR.
9015 * features/riscv/64bit-csr.xml: Regenerated.
9016
9017 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9018 Tom Tromey <tom@tromey.com>
9019
9020 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9021 of 'fputc_unfiltered'.
9022 (putchar_unfiltered): Call 'fputc_unfiltered'.
9023 (fputc_unfiltered): Call 'fputs_unfiltered'.
9024
9025 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * config.in: Regenerate.
9028 * configure: Regenerate.
9029 * configure.ac: Add --with-python-libdir option.
9030 * main.c: Use WITH_PYTHON_LIBDIR.
9031
9032 2020-02-19 Tom Tromey <tom@tromey.com>
9033
9034 * symtab.c (general_symbol_info::compute_and_set_names): Use
9035 obstack_strndup. Simplify call to symbol_set_demangled_name.
9036
9037 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * dwarf2/read.c (allocate_signatured_type_table,
9040 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9041 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9042 Remove objfile parameter, update all callers.
9043
9044 2020-02-19 Doug Evans <dje@google.com>
9045
9046 PR rust/25535
9047 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9048 rust_enum_variant calculation.
9049
9050 2020-02-19 Tom Tromey <tromey@adacore.com>
9051
9052 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9053
9054 2020-02-19 Tom Tromey <tromey@adacore.com>
9055
9056 * ada-lang.c (cache_symbol): Use obstack_strdup.
9057
9058 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * configure: Regenerate.
9061
9062 2020-02-19 Tom Tromey <tromey@adacore.com>
9063
9064 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9065 NULL check.
9066
9067 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9068
9069 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9070
9071 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9074 if GDBSERVER is not defined.
9075 (riscv_tdesc_cache): Likewise, also store const target_desc.
9076 (STATIC_IN_GDB): Define.
9077 (riscv_create_target_description): Update declaration with
9078 STATIC_IN_GDB.
9079 (riscv_lookup_target_description): New function, only define if
9080 GDBSERVER is not defined.
9081 * arch/riscv.h (riscv_create_target_description): Declare only
9082 when GDBSERVER is defined.
9083 (riscv_lookup_target_description): New declaration when GDBSERVER
9084 is not defined.
9085 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9086 (riscv_linux_read_features): ...this, and return
9087 riscv_gdbarch_features instead of target_desc.
9088 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9089 (riscv_linux_read_description): Rename to...
9090 (riscv_linux_read_features): ...this.
9091 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9092 Update to use riscv_gdbarch_features and
9093 riscv_lookup_target_description.
9094 * riscv-tdep.c (riscv_find_default_target_description): Use
9095 riscv_lookup_target_description instead of
9096 riscv_create_target_description.
9097
9098 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * valprint.c (generic_val_print_enum_1): When printing a flag
9101 enum with value 0 and there is no enumerator with value 0, print
9102 just "0" instead of "(unknown: 0x0)".
9103
9104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * valprint.c (generic_val_print_enum_1): Print unknown part of
9107 flag enum in hex.
9108
9109 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9112 flag enums to contain duplicate enumerators.
9113 * valprint.c (generic_val_print_enum_1): Update comment.
9114
9115 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c: Include "count-one-bits.h".
9118 (update_enumeration_type_from_children): If an enumerator has
9119 multiple bits set, don't treat the enumeration as a "flag enum".
9120 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9121 of flag enums have 0 or 1 bit set.
9122
9123 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9124
9125 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9126 conversion.
9127 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9128 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9129 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9130 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9131 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9132
9133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9136
9137 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9140 displaced_step_closure_up.
9141 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9142 (struct displaced_step_closure_up):
9143 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9144 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9145 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9146 Likewise.
9147 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9148 * gdbarch.c, gdbarch.h: Re-generate.
9149 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9150 displaced_step_closure_up.
9151 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9152 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9153 * infrun.h (displaced_step_closure_up): New type alias.
9154 (struct displaced_step_inferior_state) <step_closure>: Change
9155 type to displaced_step_closure_up.
9156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9157 displaced_step_closure_up.
9158 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9159
9160 2020-02-14 Tom Tromey <tom@tromey.com>
9161
9162 * minidebug.c (gnu_debug_key): New global.
9163 (find_separate_debug_file_in_section): Use it.
9164
9165 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9168 std::unique_ptr.
9169 * gdbarch.c: Re-generate.
9170 * gdbarch.h: Re-generate.
9171 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9172 change.
9173 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9174 type to std::unique_ptr.
9175 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9176 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9177 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9178 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9179 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9180 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9181 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9182 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9183 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9184
9185 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9188 std::unique_ptr.
9189 (displaced_step_clear): Rename to...
9190 (displaced_step_reset): ... this. Just call displaced->reset ().
9191 (displaced_step_clear_cleanup): Rename to...
9192 (displaced_step_reset_cleanup): ... this.
9193 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9194 (displaced_step_fixup): Likewise.
9195 (resume_1): Likewise.
9196 (handle_inferior_event): Restore child's memory before calling
9197 displaced_step_fixup on the parent.
9198 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9199 to std::unique_ptr.
9200 <step_closure>: Change type to std::unique_ptr.
9201
9202 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * arm-tdep.c: Include count-one-bits.h.
9205 (cleanup_block_store_pc): Use count_one_bits.
9206 (cleanup_block_load_pc): Use count_one_bits.
9207 (arm_copy_block_xfer): Use count_one_bits.
9208 (thumb2_copy_block_xfer): Use count_one_bits.
9209 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9210 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9211 (thumb_get_next_pcs_raw): Use count_one_bits.
9212 (arm_get_next_pcs_raw): Use count_one_bits_l.
9213 * arch/arm.c (bitcount): Remove.
9214 * arch/arm.h (bitcount): Remove.
9215
9216 2020-02-14 Tom Tromey <tromey@adacore.com>
9217
9218 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9219 Update.
9220 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9221 * dwarf2/loc.c (call_site_find_chain_1): Return
9222 unique_xmalloc_ptr.
9223 (call_site_find_chain): Likewise.
9224
9225 2020-02-14 Richard Biener <rguenther@suse.de>
9226
9227 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9228 on expression with division operators.
9229
9230 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9231
9232 * MAINTAINERS (Write After Approval): Adding myself.
9233
9234 2020-02-12 Tom Tromey <tom@tromey.com>
9235
9236 * event-loop.c (event_data, gdb_event, event_handler_func):
9237 Remove.
9238
9239 2020-02-12 Tom Tromey <tom@tromey.com>
9240
9241 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9242 (dwarf2_frame_objfile_data): Add comment.
9243 (find_comp_unit, set_comp_unit): New functions.
9244 (dwarf2_frame_find_fde): Use find_comp_unit.
9245 (dwarf2_build_frame_info): Use set_comp_unit.
9246
9247 2020-02-12 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9250 (comp_unit): Don't initialize objfile.
9251 (execute_cfa_program): Add text_offset parameter.
9252 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9253 (dwarf2_frame_cache): Update.
9254 (dwarf2_build_frame_info): Don't set "objfile" member.
9255
9256 2020-02-12 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9259 (decode_frame_entry): Likewise.
9260 (dwarf2_build_frame_info): Update.
9261
9262 2020-02-12 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9265 (decode_frame_entry_1): Use the comp_unit obstack.
9266
9267 2020-02-12 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/frame.c (struct comp_unit): Add initializers and
9270 constructor.
9271 (dwarf2_frame_objfile_data): Store a comp_unit.
9272 (dwarf2_frame_find_fde): Update.
9273 (dwarf2_build_frame_info): Use "new".
9274
9275 2020-02-12 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9278 (dwarf2_fde_table): Typedef for std::vector.
9279 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9280 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9281 (decode_frame_entry): Update.
9282 (dwarf2_build_frame_info): Use "new".
9283
9284 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9285
9286 * arm-tdep.c (arm_gdbarch_init): Update.
9287 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9288 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9289 have_neon, is_m>: Change to bool.
9290
9291 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9292
9293 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9294
9295 2020-02-12 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9298
9299 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9300
9301 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9302 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9303
9304 2020-02-11 Tom Tromey <tom@tromey.com>
9305
9306 * psymtab.h: Update comment.
9307
9308 2020-02-11 Tom Tromey <tom@tromey.com>
9309
9310 * gdb_obstack.h (struct auto_obstack): Use
9311 DISABLE_COPY_AND_ASSIGN.
9312
9313 2020-02-11 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2/frame.h (struct objfile): Don't forward declare.
9316
9317 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9318
9319 * cris-tdep.c (cris_supply_gregset): Change signature to match
9320 what struct regset expects.
9321 (cris_regset): New struct.
9322 (fetch_core_registers): Remove.
9323 (cris_iterate_over_regset_sections): New function.
9324 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9325 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9326
9327 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9328
9329 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9330 registers.
9331
9332 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9333
9334 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9335
9336 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * configure: Re-generate.
9339
9340 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * configure: Re-generate.
9343
9344 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * acinclude: Update warning.m4 path.
9347 * warning.m4: Move to gdbsupport.
9348
9349 2020-02-11 Tom Tromey <tromey@adacore.com>
9350
9351 * remote.c (remote_console_output): Update.
9352 * printcmd.c (printf_command): Update.
9353 * event-loop.c (gdb_wait_for_event): Update.
9354 * linux-nat.c (sigchld_handler): Update.
9355 * remote-sim.c (gdb_os_write_stdout): Update.
9356 (gdb_os_flush_stdout): Update.
9357 (gdb_os_flush_stderr): Update.
9358 (gdb_os_write_stderr): Update.
9359 * exceptions.c (print_exception): Update.
9360 * remote-fileio.c (remote_fileio_func_read): Update.
9361 (remote_fileio_func_write): Update.
9362 * tui/tui.c (tui_enable): Update.
9363 * tui/tui-interp.c (tui_interp::init): Update.
9364 * utils.c (init_page_info): Update.
9365 (putchar_unfiltered, fputc_unfiltered): Update.
9366 (gdb_flush): Update.
9367 (emit_style_escape): Update.
9368 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9369 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9370 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9371 (stderr_file::write): Update.
9372 (stderr_file::puts): Update.
9373 * ui-file.h (ui_file_isatty, ui_file_write)
9374 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9375 (ui_file_puts): Don't declare.
9376
9377 2020-02-10 Tom de Vries <tdevries@suse.de>
9378
9379 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9380 sentinel to char *.
9381
9382 2020-02-09 Tom de Vries <tdevries@suse.de>
9383
9384 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9385 filename if it matches "<artificial>".
9386
9387 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9388
9389 * windows-tdep.c (struct enum_value_name): New struct.
9390 (create_enum): New function.
9391 (windows_get_siginfo_type): Create and use enum types.
9392
9393 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9394
9395 * NEWS: Mention $_siginfo support for Windows.
9396 * windows-nat.c (handle_exception): Set siginfo_er.
9397 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9398 (windows_xfer_siginfo): New function.
9399 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9400 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9401 (init_windows_gdbarch_data): New function.
9402 (get_windows_gdbarch_data): New function.
9403 (windows_get_siginfo_type): New function.
9404 (windows_init_abi): Register windows_get_siginfo_type.
9405 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9406
9407 2020-02-08 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9410 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9411 <keep>: Declare method.
9412 <m_keep>: Remove member.
9413 <~cutu_reader>: Remove.
9414 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9415 (cutu_reader::cutu_reader): Update.
9416 (cutu_reader::keep): Rename from ~cutu_reader.
9417 (process_psymtab_comp_unit, build_type_psymtabs_1)
9418 (process_skeletonless_type_unit, load_partial_comp_unit)
9419 (load_full_comp_unit, dwarf2_read_addr_index)
9420 (read_signatured_type): Update.
9421
9422 2020-02-08 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9425 "want_partial_unit" parameter.
9426 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9427 Inline check for DW_TAG_partial_unit.
9428 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9429
9430 2020-02-08 Tom Tromey <tom@tromey.com>
9431
9432 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9433 read.c.
9434 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9435 read.c.
9436
9437 2020-02-08 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2/read.c (read_address): Move to comp-unit.c.
9440 (dwarf2_rnglists_process, dwarf2_ranges_process)
9441 (read_attribute_value, dwarf_decode_lines_1)
9442 (var_decode_location, decode_locdesc): Update.
9443 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9444 read.c. Remove "cu" parameter.
9445 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9446 method.
9447
9448 2020-02-08 Tom Tromey <tom@tromey.com>
9449
9450 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9451 (read_indirect_line_string): Update.
9452 * dwarf2/comp-unit.c (read_offset): Remove.
9453 (read_comp_unit_head): Update.
9454 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9455 method.
9456 (read_offset): Don't declare.
9457
9458 2020-02-08 Tom Tromey <tom@tromey.com>
9459
9460 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9461 * dwarf2/read.c (struct comp_unit_head): Move to
9462 dwarf2/comp-unit.h.
9463 (enum class rcuh_kind): Move to comp-unit.h.
9464 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9465 (read_comp_unit_head, error_check_comp_unit_head)
9466 (read_and_check_comp_unit_head): Move to comp-unit.c.
9467 (read_offset, dwarf_unit_type_name): Likewise.
9468 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9469 (cutu_reader::cutu_reader, read_call_site_scope)
9470 (find_partial_die, follow_die_offset): Update.
9471 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9472
9473 2020-02-08 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.c (read_offset_1): Move to leb.c.
9476 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9477 (dwarf_decode_macro_bytes): Update.
9478 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9479 * dwarf2/leb.h (read_offset): Declare.
9480
9481 2020-02-08 Tom Tromey <tom@tromey.com>
9482
9483 * dwarf2/read.c (dwarf2_section_size): Remove.
9484 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9485 Update.
9486 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9487
9488 2020-02-08 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.c (read_initial_length): Move to leb.c.
9491 * dwarf2/leb.h (read_initial_length): Declare.
9492 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9493 handle_nonstd parameter.
9494 * dwarf2/frame.c (read_initial_length): Remove.
9495 (decode_frame_entry_1): Update.
9496
9497 2020-02-08 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/loc.c (dwarf2_find_location_expression)
9500 (dwarf_evaluate_loc_desc::get_tls_address)
9501 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9502 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9503 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9504 (dwarf2_compile_property_to_c)
9505 (dwarf2_loc_desc_get_symbol_read_needs)
9506 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9507 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9508 (loclist_describe_location, loclist_tracepoint_var_ref)
9509 (loclist_generate_c_location): Update.
9510 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9511 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9512 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9513 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9514 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9515 (dwarf2_per_cu_data::addr_size)
9516 (dwarf2_per_cu_data::ref_addr_size)
9517 (dwarf2_per_cu_data::text_offset)
9518 (dwarf2_per_cu_data::addr_type): Now methods.
9519 (per_cu_header_read_in): Make per_cu "const".
9520 (dwarf2_version): Remove.
9521 (dwarf2_per_cu_data::int_type): Now a method.
9522 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9523 (set_die_type, read_array_type, read_subrange_index_type)
9524 (read_tag_string_type, read_subrange_type): Update.
9525 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9526 offset_size, ref_addr_size, text_offset, addr_type, version,
9527 objfile, int_type, addr_sized_int_type>: Declare methods.
9528
9529 2020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9532 Move earlier.
9533
9534 2020-02-08 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/read.h (dwarf_line_debug): Declare.
9537 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9538 * dwarf2/read.c: Move line_header code to new files.
9539 (dwarf_line_debug): No longer static.
9540 * dwarf2/line-header.c: New file.
9541 * dwarf2/line-header.h: New file.
9542
9543 2020-02-08 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/read.c (struct line_header) <file_full_name,
9546 file_file_name>: Return unique_xmalloc_ptr.
9547 (line_header::file_file_name): Update.
9548 (line_header::file_full_name): Update.
9549 (dw2_get_file_names_reader): Update.
9550 (macro_start_file): Update.
9551
9552 2020-02-08 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/read.c (struct line_header) <file_full_name,
9555 file_file_name>: Declare methods.
9556 (dw2_get_file_names_reader): Update.
9557 (file_file_name): Now a method.
9558 (file_full_name): Likewise.
9559 (macro_start_file): Update.
9560
9561 2020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2/read.c (dwarf_always_disassemble)
9564 (show_dwarf_always_disassemble): Move to loc.c.
9565 (_initialize_dwarf2_read): Move "always-disassemble" registration
9566 to loc.c.
9567 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9568 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9569 static.
9570 (show_dwarf_always_disassemble): Move from read.c.
9571 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9572
9573 2020-02-08 Tom Tromey <tom@tromey.com>
9574
9575 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9576 (create_quick_file_names_table): Return htab_up.
9577 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9578 Update.
9579 * dwarf2/read.h (struct dwarf2_per_objfile)
9580 <quick_file_names_table>: Now htab_up.
9581
9582 2020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9585
9586 2020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9589 Rewrite.
9590 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9591 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9592 (abbrev_table::abbrev_table): No longer inline.
9593 (ABBREV_HASH_SIZE): Remove.
9594 (abbrev_table::m_abbrevs): Now an htab_up.
9595
9596 2020-02-08 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9599 (cutu_reader): Update.
9600 (build_type_psymtabs_1): Update.
9601 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9602 (abbrev_table::alloc_abbrev): Update.
9603 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9604 (abbrev_table::read): New static method, renamed from
9605 abbrev_table_read_table.
9606 (abbrev_table::alloc_abbrev)
9607 (abbrev_table::add_abbrev): Now private.
9608 (abbrev_table::abbrev_table): Now private.
9609 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9610
9611 2020-02-08 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9614 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9615 htab_up.
9616
9617 2020-02-08 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9620 htab_up.
9621 (lookup_dwo_unit_in_dwp): Update.
9622 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9623 on obstack.
9624
9625 2020-02-08 Tom Tromey <tom@tromey.com>
9626
9627 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9628 obstack.
9629
9630 2020-02-08 Tom Tromey <tom@tromey.com>
9631
9632 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9633 line_header_hash.
9634 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9635 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9636 Change type to htab_up.
9637
9638 2020-02-08 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9641 htab_up. Don't allocate on obstack.
9642 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9643 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9644 Change type to htab_up.
9645
9646 2020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9649 Change type to htab_up.
9650 * dwarf2/read.c (create_signatured_type_table_from_index)
9651 (create_signatured_type_table_from_debug_names)
9652 (create_all_type_units, add_type_unit)
9653 (lookup_dwo_signatured_type, lookup_signatured_type)
9654 (process_skeletonless_type_unit): Update.
9655 (create_debug_type_hash_table, create_debug_types_hash_table):
9656 Change type of types_htab.
9657 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9658 htab_up. Don't allocate on obstack.
9659 (create_cus_hash_table): Change type of cus_htab parameter.
9660 (struct dwo_file) <cus, tus>: Now htab_up.
9661 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9662 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9663 (queue_and_load_all_dwo_tus): Update.
9664 * dwarf2/index-write.c (write_gdbindex): Update.
9665 (write_debug_names): Update.
9666
9667 2020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9670 dwarf2/read.c. Remove "next" member. Add constructor ntad
9671 destructor.
9672 (struct dwarf2_per_objfile) <queue>: New member.
9673 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9674 dwarf2/read.h.
9675 (dwarf2_queue, dwarf2_queue_tail): Remove.
9676 (class dwarf2_queue_guard): Add parameter to constructor. Use
9677 DISABLE_COPY_AND_ASSIGN.
9678 <m_per_objfile>: New member.
9679 <~dwarf2_queue_guard>: Rewrite.
9680 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9681 Update.
9682 (~dwarf2_queue_item): New.
9683
9684 2020-02-08 Tom Tromey <tom@tromey.com>
9685
9686 * dwarf2/read.c (struct die_info) <has_children>: New member.
9687 (dw2_get_file_names_reader): Remove has_children.
9688 (dw2_get_file_names): Update.
9689 (read_cutu_die_from_dwo): Remove has_children.
9690 (cutu_reader::init_tu_and_read_dwo_dies)
9691 (cutu_reader::cutu_reader): Update.
9692 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9693 Remove has_children.
9694 (build_type_psymtabs_1, process_skeletonless_type_unit)
9695 (load_partial_comp_unit, load_full_comp_unit): Update.
9696 (create_dwo_cu_reader): Remove has_children.
9697 (create_cus_hash_table, read_die_and_children): Update.
9698 (read_full_die_1,read_full_die): Remove has_children.
9699 (read_signatured_type): Update.
9700 (class cutu_reader) <has_children>: Remove.
9701
9702 2020-02-08 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/expr.c: Rename from dwarf2expr.c.
9705 * dwarf2/expr.h: Rename from dwarf2expr.h.
9706 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9707 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9708 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9709 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9710 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9711 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9712 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9713 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9714 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9715 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9716 * dwarf2/loc.c: Rename from dwarf2loc.c.
9717 * dwarf2/loc.h: Rename from dwarf2loc.h.
9718 * dwarf2/read.c: Rename from dwarf2read.c.
9719 * dwarf2/read.h: Rename from dwarf2read.h.
9720 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9721 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9722 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9723 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9724 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9725 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9726 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9727 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9728 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9729 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9730 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9731 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9732 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9733 Update.
9734 * Makefile.in (COMMON_SFILES): Update.
9735 (HFILES_NO_SRCDIR): Update.
9736
9737 2020-02-08 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9740 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9741
9742 2020-02-08 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2read.h (struct die_info): Don't declare.
9745
9746 2020-02-08 Tom Tromey <tom@tromey.com>
9747
9748 * dwarf2read.h (die_info_ptr): Remove typedef.
9749
9750 2020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2read.c (read_call_site_scope)
9753 (handle_data_member_location, dwarf2_add_member_fn)
9754 (mark_common_block_symbol_computed, read_common_block)
9755 (attr_to_dynamic_prop, partial_die_info::read)
9756 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9757 (dwarf2_symbol_mark_computed, set_die_type): Update.
9758 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9759 method.
9760 (attr_form_is_block): Don't declare.
9761 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9762
9763 2020-02-08 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2read.c (dwarf2_find_base_address, )
9766 (read_call_site_scope, rust_containing_type)
9767 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9768 (handle_data_member_location, dwarf2_add_member_fn)
9769 (get_alignment, read_structure_type, process_structure_scope)
9770 (mark_common_block_symbol_computed, read_common_block)
9771 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9772 (partial_die_info::read, read_attribute_value, new_symbol)
9773 (lookup_die_type, dwarf2_get_ref_die_offset)
9774 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9775 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9776 (dwarf2_symbol_mark_computed): Update.
9777 * dwarf2/attribute.h (struct attribute) <value_as_address,
9778 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9779 methods.
9780 (value_as_address, attr_form_is_section_offset)
9781 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9782 * dwarf2/attribute.c (attribute::value_as_address)
9783 (attribute::form_is_section_offset, attribute::form_is_constant)
9784 (attribute::form_is_ref): Now methods.
9785
9786 2020-02-08 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2read.c (struct attribute, DW_STRING)
9789 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9790 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9791 (attr_form_is_block, attr_form_is_section_offset)
9792 (attr_form_is_constant, attr_form_is_ref): Move.
9793 * dwarf2/attribute.h: New file.
9794 * dwarf2/attribute.c: New file, from dwarf2read.c.
9795 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9796
9797 2020-02-08 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9800 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9801 Move.
9802 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9803 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9804 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9805 abbrev.c.
9806 * dwarf2/abbrev.h: New file.
9807 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9808 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9809
9810 2020-02-08 Tom Tromey <tom@tromey.com>
9811
9812 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9813 (dwarf2_section_size, dwarf2_get_section_info)
9814 (create_signatured_type_table_from_debug_names)
9815 (create_addrmap_from_aranges, read_debug_names_from_section)
9816 (get_gdb_index_contents_from_section, read_comp_unit_head)
9817 (error_check_comp_unit_head, read_abbrev_offset)
9818 (create_debug_type_hash_table, init_cu_die_reader)
9819 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9820 (read_comp_units_from_section, create_cus_hash_table)
9821 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9822 (create_dwp_v2_section, dwarf2_rnglists_process)
9823 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9824 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9825 (read_indirect_string_from_dwz, read_addr_index_1)
9826 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9827 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9828 (fill_in_loclist_baton): Update.
9829 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9830 get_containing_section, get_bfd_owner, get_bfd_section,
9831 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9832 (dwarf2_read_section, get_section_name, get_section_file_name)
9833 (get_containing_section, get_section_bfd_owner)
9834 (get_section_bfd_section, get_section_name, get_section_file_name)
9835 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9836 declare.
9837 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9838 (dwarf2_section_info::get_bfd_owner)
9839 (dwarf2_section_info::get_bfd_section)
9840 (dwarf2_section_info::get_name)
9841 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9842 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9843 (dwarf2_section_info::read): Now methods.
9844 * dwarf-index-write.c (class debug_names): Update.
9845
9846 2020-02-08 Tom Tromey <tom@tromey.com>
9847
9848 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9849 Move to dwarf2/section.h.
9850 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9851 (get_section_bfd_section, get_section_name)
9852 (get_section_file_name, get_section_id, get_section_flags)
9853 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9854 dwarf2/section.c.
9855 * dwarf2/section.h: New file.
9856 * dwarf2/section.c: New file, from dwarf2read.c.
9857 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9858
9859 2020-02-08 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9862 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9863 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9864 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9865 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9866 * dwarf2/leb.h: New file, from dwarf2read.c.
9867 * dwarf2/leb.c: New file, from dwarf2read.c.
9868 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9869 Remove.
9870 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9871 (COMMON_SFILES): Add dwarf2/leb.c.
9872
9873 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9874
9875 GDB 9.1 released.
9876
9877 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9878
9879 PR gdb/25190:
9880 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9881 * gdb/remote.c (remote_console_output): Update.
9882 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9883 (ui_file_puts): ...this.
9884 * gdb/ui-file.h (ui_file_puts): Add declaration.
9885 * gdb/utils.c (emit_style_escape): Update.
9886 (flush_wrap_buffer): Update.
9887 (fputs_maybe_filtered): Update.
9888 (fputs_unfiltered): Add function.
9889
9890 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9891
9892 * gdb/event-loop.c (gdb_wait_for_event): Update.
9893 * gdb/printcmd.c (printf_command): Update.
9894 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9895 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9896 (gdb_os_flush_stderr): Update.
9897 * gdb/remote.c (remote_console_output): Update.
9898 * gdb/ui-file.c (gdb_flush): Rename to...
9899 (ui_file_flush): ...this.
9900 (stderr_file::write): Update.
9901 (stderr_file::puts): Update.
9902 * gdb/ui-file.h (gdb_flush): Rename to...
9903 (ui_file_flush): ...this.
9904 * gdb/utils.c (gdb_flush): Add function.
9905 * gdb/utils.h (gdb_flush): Add declaration.
9906
9907 2020-02-07 Tom Tromey <tromey@adacore.com>
9908
9909 PR breakpoints/24915:
9910 * source.c (find_and_open_source): Do not check basenames_may_differ.
9911
9912 2020-02-07 Tom Tromey <tom@tromey.com>
9913
9914 * README: Update gdbserver documentation.
9915 * gdbserver: Move to top level.
9916 * configure.tgt (build_gdbserver): Remove.
9917 * configure.ac: Remove --enable-gdbserver.
9918 * configure: Rebuild.
9919 * Makefile.in (distclean): Don't mention gdbserver.
9920
9921 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9922
9923 * source-cache.c (source_cache::ensure): Surround
9924 get_plain_source_lines with a try/catch.
9925 (source_cache::get_line_charpos): Get rid of try/catch
9926 and only check for the return value of "ensure".
9927 * tui/tui-source.c (tui_source_window::set_contents):
9928 Simplify "nlines" calculation.
9929
9930 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9931
9932 * MAINTAINERS (Write After Approval): Add myself.
9933
9934 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9935
9936 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9937 function call.
9938
9939 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9940
9941 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9942
9943 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9944
9945 * nat/riscv-linux-tdesc.h: New file.
9946 * nat/riscv-linux-tdesc.c: New file, taking code from...
9947 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9948 ... here.
9949 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9950 NATDEPFILES.
9951
9952 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9955 we don't set the fake simulator ptid to the null_ptid.
9956
9957 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9960 * gdbthread.h (class thread_info) <resumed>: Likewise.
9961 * infrun.c (resume_1): Likewise.
9962 (proceed): Likewise.
9963 (infrun_thread_stop_requested): Likewise.
9964 (stop_all_threads): Likewise.
9965 (handle_inferior_event): Likewise.
9966 (restart_threads): Likewise.
9967 (finish_step_over): Likewise.
9968 (keep_going_stepped_thread): Likewise.
9969 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9970 (linux_handle_extended_wait): Likewise.
9971 * record-btrace.c (get_thread_current_frame_id): Likewise.
9972 * record-full.c (record_full_wait_1): Likewise.
9973 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9974 * target.c (target_resume): Likewise.
9975 * thread.c (set_running_thread): Likewise.
9976
9977 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9978
9979 * f-valprint.c (f77_print_array_1): Changed datatype of index
9980 variable to LONGEST from int to enable it to contain bound
9981 values correctly.
9982
9983 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9984
9985 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9986 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9987 offsets according to FLEN determined.
9988 (riscv_linux_nat_target::read_description): Determine FLEN
9989 dynamically.
9990 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9991 according to FLEN determined.
9992 (riscv_linux_nat_target::store_registers): Likewise.
9993
9994 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9995
9996 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9997 when reg->group is empty and reggroup is not.
9998
9999 2020-01-31 Tom Tromey <tromey@adacore.com>
10000
10001 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10002 Call beneath target's mourn_inferior after unpushing.
10003
10004 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10005
10006 PR tui/9765
10007 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10008 have enough lines to fill the screen, still return the lowest
10009 address we found.
10010
10011 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10014 '-', '<', and '>' commands.
10015
10016 2020-01-29 Pedro Alves <palves@redhat.com>
10017 Sergio Durigan Junior <sergiodj@redhat.com>
10018
10019 * infcmd.c (construct_inferior_arguments): Assert that
10020 'argc' is greater than 0.
10021
10022 2020-01-29 Luis Machado <luis.machado@linaro.org>
10023
10024 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10025 (BRK_INSN_MASK): Define to 0xd4200000.
10026 (aarch64_program_breakpoint_here_p): New function.
10027 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10028 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10029 breakpoint.c.
10030 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10031 breakpoint.h
10032 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10033 call gdbarch_program_breakpoint_here_p.
10034 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10035 default_program_breakpoint_here_p, changed return type to bool and
10036 simplified.
10037 * breakpoint.h (program_breakpoint_here): Moved prototype to
10038 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10039 return type to bool.
10040 * gdbarch.c: Regenerate.
10041 * gdbarch.h: Regenerate.
10042 * gdbarch.sh (program_breakpoint_here_p): New method.
10043 * infrun.c (handle_signal_stop): Call
10044 gdbarch_program_breakpoint_here_p.
10045
10046 2020-01-26 Tom Tromey <tom@tromey.com>
10047
10048 * ctfread.c (struct ctf_fp_info): Reindent.
10049 (_initialize_ctfread): Remove.
10050
10051 2020-01-26 Tom Tromey <tom@tromey.com>
10052
10053 * psymtab.c (partial_map_expand_apply)
10054 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10055 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10056 (psym_print_stats, psym_expand_symtabs_for_function)
10057 (psym_map_symbol_filenames, psym_map_matching_symbols)
10058 (psym_expand_symtabs_matching)
10059 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10060 (maintenance_check_psymtabs): Use new methods.
10061 * psympriv.h (struct partial_symtab) <readin_p,
10062 get_compunit_symtab>: New methods.
10063 <readin, compunit_symtab>: Remove members.
10064 (struct standard_psymtab): New.
10065 (struct legacy_psymtab): Derive from standard_psymtab.
10066 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10067 standard_psymtab.
10068 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10069
10070 2020-01-26 Tom Tromey <tom@tromey.com>
10071
10072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10073 read_dependencies. Add assert.
10074 * psymtab.c (partial_symtab::read_dependencies): New method.
10075 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10076 method.
10077 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10078 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10079 read_dependencies.
10080 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10081 Add assert.
10082
10083 2020-01-26 Tom Tromey <tom@tromey.com>
10084
10085 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10086 Call expand_psymtab.
10087 (xcoff_read_symtab): Call expand_psymtab.
10088 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10089 legacy_expand_psymtab.
10090 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10091 method.
10092 (struct legacy_psymtab) <expand_psymtab>: Implement.
10093 <legacy_expand_psymtab>: New member.
10094 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10095 (parse_partial_symbols): Set legacy_expand_psymtab.
10096 (psymtab_to_symtab_1): Change argument order. Call
10097 expand_psymtab.
10098 (new_psymtab): Set legacy_expand_psymtab.
10099 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10100 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10101 expand_psymtab.
10102 (dwarf2_psymtab::expand_psymtab): Rename from
10103 psymtab_to_symtab_1. Call expand_psymtab.
10104 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10105 (dbx_end_psymtab): Likewise.
10106 (dbx_psymtab_to_symtab_1): Change argument order. Call
10107 expand_psymtab.
10108 (dbx_read_symtab): Call expand_psymtab.
10109 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10110 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10111 (ctf_psymtab::read_symtab): Call expand_psymtab.
10112
10113 2020-01-26 Tom Tromey <tom@tromey.com>
10114
10115 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10116 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10117 messages.
10118 * mdebugread.c (mdebug_read_symtab): Remove prints.
10119 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10120 assert.
10121 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10122
10123 2020-01-26 Tom Tromey <tom@tromey.com>
10124
10125 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10126 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10127 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10128 legacy_symtab.
10129 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10130 * psymtab.c (psymtab_to_symtab): Call method.
10131 (dump_psymtab): Update.
10132 * psympriv.h (struct partial_symtab): Add virtual destructor.
10133 <read_symtab>: New method.
10134 (struct legacy_symtab): New.
10135 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10136 (struct pst_map) <pst>: Now a legacy_psymtab.
10137 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10138 (new_psymtab): Use legacy_psymtab.
10139 * dwarf2read.h (struct dwarf2_psymtab): New.
10140 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10141 * dwarf2read.c (dwarf2_create_include_psymtab)
10142 (dwarf2_build_include_psymtabs, create_type_unit_group)
10143 (create_partial_symtab, process_psymtab_comp_unit_reader)
10144 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10145 (set_partial_user): Use dwarf2_psymtab.
10146 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10147 (psymtab_to_symtab_1, process_full_comp_unit)
10148 (process_full_type_unit, dwarf2_ranges_read)
10149 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10150 (dwarf_decode_lines): Use dwarf2_psymtab.
10151 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10152 (add_address_entry_worker, write_one_signatured_type)
10153 (recursively_count_psymbols, recursively_write_psymbols)
10154 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10155 (write_debug_names): Likewise.
10156 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10157 <pst>: Now a legacy_psymtab.
10158 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10159 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10160 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10161 * ctfread.c (struct ctf_psymtab): New.
10162 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10163 ctf_psymtab.
10164 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10165 (create_partial_symtab): Return a ctf_psymtab.
10166 (scan_partial_symbols): Update.
10167
10168 2020-01-26 Tom Tromey <tom@tromey.com>
10169
10170 * xcoffread.c (xcoff_start_psymtab): Use new.
10171 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10172 renamed from start_psymtab_common.
10173 * psympriv.h (struct partial_symtab): Add new constructor.
10174 (start_psymtab_common): Don't declare.
10175 * mdebugread.c (parse_partial_symbols): Use new.
10176 * dwarf2read.c (create_partial_symtab): Use new.
10177 * dbxread.c (start_psymtab): Use new.
10178 * ctfread.c (create_partial_symtab): Use new.
10179
10180 2020-01-26 Tom Tromey <tom@tromey.com>
10181
10182 * xcoffread.c (xcoff_end_psymtab): Use new.
10183 * psymtab.c (start_psymtab_common): Use new.
10184 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10185 Update.
10186 * psympriv.h (struct partial_symtab): Add parameters to
10187 constructor. Don't inline.
10188 (allocate_psymtab): Don't declare.
10189 * mdebugread.c (new_psymtab): Use new.
10190 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10191 * dbxread.c (dbx_end_psymtab): Use new.
10192
10193 2020-01-26 Tom Tromey <tom@tromey.com>
10194
10195 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10196 allocate_psymtab. Update documentation.
10197 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10198 allocate_psymtab. Do not use new.
10199 (allocate_psymtab): Use new. Update.
10200
10201 2020-01-26 Tom Tromey <tom@tromey.com>
10202
10203 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10204 * psymtab.c (psym_print_stats): Update.
10205 * psympriv.h (struct partial_symtab) <readin,
10206 psymtabs_addrmap_supported, anonymous>: Now bool.
10207 * mdebugread.c (psymtab_to_symtab_1): Update.
10208 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10209 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10210 (process_full_comp_unit, process_full_type_unit): Update.
10211 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10212 * ctfread.c (psymtab_to_symtab): Update.
10213
10214 2020-01-26 Tom Tromey <tom@tromey.com>
10215
10216 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10217 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10218 * psymtab.c (psymtab_storage): Delete psymtabs.
10219 (psymtab_storage::allocate_psymtab): Use new.
10220 (psymtab_storage::discard_psymtab): Use delete.
10221 * psympriv.h (struct partial_symtab): Add constructor and
10222 initializers.
10223
10224 2020-01-26 Tom Tromey <tom@tromey.com>
10225
10226 * machoread.c: Do not include psympriv.h.
10227
10228 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10229
10230 * NEWS: Mention the new option and the set/show commands.
10231
10232 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10233
10234 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10235 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10236 (validate_exec_file): New variables, enums, functions.
10237 (exec_file_locate_attach, print_section_info): Style the filenames.
10238 (_initialize_exec): Install show_exec_file_mismatch_command and
10239 set_exec_file_mismatch_command.
10240 * gdbcore.h (validate_exec_file): Declare.
10241 * infcmd.c (attach_command): Call validate_exec_file.
10242 * remote.c ( remote_target::remote_add_inferior): Likewise.
10243
10244 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * frame.c (find_frame_sal): Move call to get_next_frame into more
10247 inner scope.
10248 * inline-frame.c (inilne_state) <inline_state>: Update argument
10249 types.
10250 (inilne_state) <skipped_symbol>: Rename to...
10251 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10252 (skip_inline_frames): Build vector of skipped symbols and use this
10253 to reate the inline_state.
10254 (inline_skipped_symbol): Add a comment and some assertions, fetch
10255 skipped symbol from the list.
10256
10257 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * buildsym.c (lte_is_less_than): Delete.
10260 (buildsym_compunit::end_symtab_with_blockvector): Create local
10261 lambda function to sort line table entries, and use
10262 std::stable_sort instead of std::sort.
10263 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10264 markers when looking for a previous line.
10265
10266 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10267
10268 * dwarf2read.c (lnp_state_machine::record_line): Include
10269 end_sequence parameter in debug print out. Record the line if we
10270 are at an end_sequence marker even if it's not the start of a
10271 statement.
10272 * symmisc.c (maintenance_print_one_line_table): Print end of
10273 sequence markers with 'END' not '0'.
10274
10275 2020-01-24 Pedro Alves <palves@redhat.com>
10276
10277 PR gdb/25410
10278 * thread.c (scoped_restore_current_thread::restore): Use
10279 switch_to_inferior_no_thread.
10280 * exec.c: Include "progspace-and-thread.h".
10281 (add_target_sections, remove_target_sections):
10282 scoped_restore_current_pspace_and_thread instead of
10283 scoped_restore_current_thread.
10284 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10285 and aspace to the inferior before calling clone_program_space.
10286 Remove stale comment.
10287
10288 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10289
10290 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10291 (arm_netbsd_nat_target::fetch_registers): ...this.
10292 (arm_nbsd_nat_target::store_registers): Rename to...
10293 (arm_netbsd_nat_target::store_registers): ...this.
10294
10295 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10296
10297 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10298 register_t.
10299
10300 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10301
10302 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10303 Update comment.
10304 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10305 Likewise.
10306 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10307 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10308 the correct replacement (iterate_over_regset_sections).
10309 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10310 Update comment.
10311
10312 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10313
10314 PR gdb/23718
10315 * gdb/python/python.c (execute_gdb_command): Call
10316 async_enable_stdin in catch block.
10317
10318 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10321 SWITCH_THRU_ALL_UIS.
10322
10323 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 PR tui/9765
10326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10327 comment, add extra parameter, and update to store previous symbol
10328 when appropriate.
10329 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10330 add extra parameter.
10331 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10332 remove unneeded parameter, add try/catch around gdb_print_insn,
10333 rewrite to add items to asm_lines vector.
10334 (tui_find_backward_disassembly_start_address): New function.
10335 (tui_find_disassembly_address): Updated throughout.
10336 (tui_disasm_window::set_contents): Update for changes to
10337 tui_disassemble.
10338 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10339 number of lines to scroll.
10340
10341 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10342
10343 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10344 (SECT_OFF_DATA): Likewise.
10345 (SECT_OFF_RODATA): Likewise.
10346 (SECT_OFF_TEXT): Likewise.
10347 (SECT_OFF_BSS): Likewise.
10348 (struct objfile) <text_section_offset, data_section_offset>: New
10349 methods.
10350 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10351 objfile::text_section_offset.
10352 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10353 * coffread.c (coff_symtab_read): Likewise.
10354 (enter_linenos): Likewise.
10355 (process_coff_symbol): Likewise.
10356 * ctfread.c (get_objfile_text_range): Likewise.
10357 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10358 Use objfile::data_section_offset.
10359 * dwarf2-frame.c (execute_cfa_program): Use
10360 objfile::text_section_offset.
10361 (dwarf2_frame_find_fde): Likewise.
10362 * dwarf2read.c (create_addrmap_from_index): Likewise.
10363 (create_addrmap_from_aranges): Likewise.
10364 (dw2_find_pc_sect_compunit_symtab): Likewise.
10365 (process_psymtab_comp_unit_reader): Likewise.
10366 (add_partial_symbol): Likewise.
10367 (add_partial_subprogram): Likewise.
10368 (process_full_comp_unit): Likewise.
10369 (read_file_scope): Likewise.
10370 (read_func_scope): Likewise.
10371 (read_lexical_block_scope): Likewise.
10372 (read_call_site_scope): Likewise.
10373 (dwarf2_rnglists_process): Likewise.
10374 (dwarf2_ranges_process): Likewise.
10375 (dwarf2_ranges_read): Likewise.
10376 (dwarf_decode_lines_1): Likewise.
10377 (new_symbol): Likewise.
10378 (dwarf2_fetch_die_loc_sect_off): Likewise.
10379 (dwarf2_per_cu_text_offset): Likewise.
10380 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10381 * hppa-tdep.c (read_unwind_info): Likewise.
10382 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10383 * psympriv.h (struct partial_symtab): Likewise.
10384 * psymtab.c (find_pc_sect_psymtab): Likewise.
10385 * solib-svr4.c (enable_break): Likewise.
10386 * stap-probe.c (relocate_address): Use
10387 objfile::data_section_offset.
10388 * xcoffread.c (enter_line_range): Use
10389 objfile::text_section_offset.
10390 (read_xcoff_symtab): Likewise.
10391
10392 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10395 declaration to narrower scopes.
10396
10397 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10398
10399 * darwin-nat.h (struct darwin_exception_msg, enum
10400 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10401 Move up.
10402 (class darwin_nat_target) <wait_1, check_new_threads,
10403 decode_exception_message, decode_message, stop_inferior,
10404 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10405 * darwin-nat.c (darwin_check_new_threads): Rename to...
10406 (darwin_nat_target::check_new_threads): ... this.
10407 (darwin_suspend_inferior_it): Remove.
10408 (darwin_decode_exception_message): Rename to...
10409 (darwin_nat_target::decode_exception_message): ... this.
10410 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10411 (darwin_decode_message): Rename to...
10412 (darwin_nat_target::decode_message): ... this.
10413 (cancel_breakpoint): Rename to...
10414 (darwin_nat_target::cancel_breakpoint): ... this.
10415 (darwin_wait): Rename to...
10416 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10417 instead of iterate_over_inferiors.
10418 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10419 (darwin_stop_inferior): Rename to...
10420 (darwin_nat_target::stop_inferior): ... this.
10421 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10422 (darwin_init_thread_list): Rename to...
10423 (darwin_nat_target::init_thread_list): ... this.
10424 (darwin_ptrace_him): Rename to...
10425 (darwin_nat_target::ptrace_him): ... this.
10426 (darwin_nat_target::create_inferior): Pass lambda function to
10427 fork_inferior.
10428 (darwin_nat_target::detach): Call stop_inferior instead of
10429 darwin_stop_inferior.
10430 * fork-inferior.h (fork_inferior): Change init_trace_fun
10431 parameter to gdb::function_view.
10432 * fork-inferior.c (fork_inferior): Likewise.
10433
10434 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10435
10436 * i386-cygwin-tdep.c (core_process_module_section): Update.
10437 * windows-nat.c (struct lm_info_windows): Add text_offset.
10438 (windows_xfer_shared_libraries): Update.
10439 * windows-tdep.c (windows_xfer_shared_library):
10440 Add text_offset_cached argument.
10441 * windows-tdep.h (windows_xfer_shared_library): Update.
10442
10443 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10446
10447 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10448
10449 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10450 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10451 replace with range-based for.
10452 (gdbsim_interrupt_inferior): Remove.
10453 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10454 with a range-based for. Inline code from
10455 gdbsim_interrupt_inferior.
10456
10457 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10458
10459 * infrun.c (proceed): Fix indentation.
10460
10461 2020-01-21 Tom Tromey <tromey@adacore.com>
10462
10463 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10464 * python/python.c (python_extension_ops): Update.
10465 (gdbpy_colorize): New function.
10466 * python/lib/gdb/__init__.py (colorize): New function.
10467 * extension.h (ext_lang_colorize): Declare.
10468 * extension.c (ext_lang_colorize): New function.
10469 * extension-priv.h (struct extension_language_ops) <colorize>: New
10470 member.
10471 * cli/cli-style.c (_initialize_cli_style): Update help text.
10472
10473 2020-01-21 Luis Machado <luis.machado@linaro.org>
10474
10475 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10476 <cond>: Change type to bool.
10477 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10478 (aarch64_displaced_step_cb): Likewise.
10479 (aarch64_displaced_step_tb): Likewise.
10480
10481 2020-01-21 Luis Machado <luis.machado@linaro.org>
10482
10483 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10484 output.
10485
10486 2020-01-21 Luis Machado <luis.machado@linaro.org>
10487
10488 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10489 <pc_adjust>: Adjust the documentation.
10490 (aarch64_displaced_step_fixup): Check if PC really moved before
10491 adjusting it.
10492
10493 2020-01-19 Tom Tromey <tom@tromey.com>
10494
10495 * disasm.c (~gdb_disassembler): New destructor.
10496 (gdb_buffered_insn_length): Call disassemble_free_target.
10497 * disasm.h (class gdb_disassembler): Declare destructor. Use
10498 DISABLE_COPY_AND_ASSIGN.
10499
10500 2020-01-19 Tom Tromey <tom@tromey.com>
10501
10502 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10503 (die_reader_func_ftype): Remove.
10504 (cutu_reader): New class.
10505 (dw2_get_file_names_reader): Remove "data" parameter.
10506 (dw2_get_file_names): Use cutu_reader.
10507 (create_debug_type_hash_table): Update.
10508 (read_cutu_die_from_dwo): Update comment.
10509 (lookup_dwo_unit): Add dwo_name parameter.
10510 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10511 die_reader_func_ftype and data parameters.
10512 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10513 Remove die_reader_func_ftype and data parameters.
10514 (~cutu_reader): New; from init_cutu_and_read_dies.
10515 (cutu_reader::cutu_reader): Rename from
10516 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10517 and data parameters.
10518 (init_cutu_and_read_dies_simple): Remove.
10519 (struct process_psymtab_comp_unit_data): Remove.
10520 (process_psymtab_comp_unit_reader): Remove data parameter; add
10521 want_partial_unit and pretend_language parameters.
10522 (process_psymtab_comp_unit): Use cutu_reader.
10523 (build_type_psymtabs_reader): Remove data parameter.
10524 (build_type_psymtabs_1): Use cutu_reader.
10525 (process_skeletonless_type_unit): Likewise.
10526 (load_partial_comp_unit_reader): Remove.
10527 (load_partial_comp_unit): Use cutu_reader.
10528 (load_full_comp_unit_reader): Remove.
10529 (load_full_comp_unit): Use cutu_reader.
10530 (struct create_dwo_cu_data): Remove.
10531 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10532 dwo_unit parameters.
10533 (create_cus_hash_table): Use cutu_reader.
10534 (struct dwarf2_read_addr_index_data): Remove.
10535 (dwarf2_read_addr_index_reader): Remove.
10536 (dwarf2_read_addr_index): Use cutu_reader.
10537 (read_signatured_type_reader): Remove.
10538 (read_signatured_type): Use cutu_reader.
10539
10540 2020-01-19 Tom Tromey <tom@tromey.com>
10541
10542 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10543 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10544 (tui_wrefresh): Declare.
10545 * tui/tui-wingeneral.c (suppress_output): New global.
10546 (tui_suppress_output, ~tui_suppress_output): New constructor and
10547 destructor.
10548 (tui_wrefresh): New function.
10549 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10550 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10551 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10552 method.
10553 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10554 tui_wrefresh.
10555 (tui_data_window::no_refresh): New method.
10556 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10557 (tui_reg_command): Use tui_suppress_output
10558 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10559 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10560 method.
10561 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10562
10563 2020-01-19 Tom Tromey <tom@tromey.com>
10564
10565 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10566 Handle case where symtab is null.
10567
10568 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * linux-fork.c (one_fork_p): Simplify.
10571
10572 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * top.c (struct qt_args): Remove.
10575 (kill_or_detach): Change return type to void, replace `void *`
10576 parameter with a proper one.
10577 (print_inferior_quit_action): Likewise.
10578 (quit_confirm): Use range-based for loop to iterate over inferiors.
10579 (quit_force): Likewise.
10580
10581 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10584 `void *` parameter with proper parameters.
10585 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10586 (print_one_inferior): Change return type to void, replace `void *`
10587 parameter with proper parameters.
10588 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10589 inferiors.
10590 (get_other_inferior): Remove.
10591 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10592 inferiors.
10593
10594 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * mi/mi-interp.c (report_initial_inferior): Remove.
10597 (mi_interp::init): Use range-based for to iterate over inferiors.
10598
10599 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * python/py-inferior.c (build_inferior_list): Remove.
10602 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10603
10604 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10605
10606 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10607 (btrace_stitch_trace): Likewise.
10608 * charset.c (intermediate_encoding): Likewise (vaild).
10609 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10610 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10611 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10612
10613 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10614
10615 * windows-tdep.c (windows_get_tlb_type):
10616 Add rtl_user_process_parameters type.
10617
10618 2020-01-16 Pedro Alves <palves@redhat.com>
10619 Norbert Lange <nolange79@gmail.com>
10620
10621 PR build/24805
10622 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10623 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10624 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10625 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10626 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10627 (ps_plog): Redeclare exported functions with default visibility.
10628
10629 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10630
10631 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10632 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10633
10634 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * infcmd.c (post_create_inferior): Use get_thread_regcache
10637 instead of get_current_regcache.
10638
10639 2020-01-14 Tom Tromey <tom@tromey.com>
10640
10641 PR symtab/12535:
10642 * python/python.c (gdbpy_decode_line): Treat empty string the same
10643 as no argument.
10644
10645 2020-01-14 Tom Tromey <tom@tromey.com>
10646
10647 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10648
10649 2020-01-14 Tom Tromey <tom@tromey.com>
10650
10651 * nat/linux-btrace.c: Don't include <config.h>.
10652 * nat/linux-ptrace.c: Don't include <config.h>.
10653 * nat/x86-linux-dregs.c: Don't include <config.h>.
10654
10655 2020-01-14 Tom Tromey <tom@tromey.com>
10656
10657 * configure: Rebuild.
10658 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10659
10660 2020-01-14 Tom Tromey <tom@tromey.com>
10661
10662 * nat/x86-linux-dregs.c: Include configh.h.
10663 * nat/linux-ptrace.c: Include configh.h.
10664 * nat/linux-btrace.c: Include configh.h.
10665 * defs.h: Include config.h, bfd.h.
10666 * configure.ac: Don't source common.host.
10667 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10668 * configure: Rebuild.
10669 * acinclude.m4: Update path.
10670 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10671 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10672 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10673 (CLIBS): Add LIBSUPPORT.
10674 (CDEPS): Likewise.
10675 (COMMON_SFILES): Remove gdbsupport files.
10676 (HFILES_NO_SRCDIR): Likewise.
10677 (stamp-version): Update path to create-version.sh.
10678 (ALLDEPFILES): Remove gdbsupport files.
10679
10680 2020-01-14 Tom Tromey <tom@tromey.com>
10681
10682 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10683 USE_WIN32API when needed.
10684 * configure.ac (USE_WIN32API): Don't define.
10685 (WIN32LIBS): Use WIN32APILIBS.
10686 * configure: Rebuild.
10687
10688 2020-01-14 Tom Tromey <tom@tromey.com>
10689
10690 * configure: Rebuild.
10691 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10692
10693 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10694
10695 * skip.c (skip_function_command): Make skip w/o arguments use the
10696 name of the inlined function if pc is inside any inlined function.
10697
10698 2020-01-14 Luis Machado <luis.machado@linaro.org>
10699
10700 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10701 * infrun.c (resume_1): Likewise.
10702 (handle_inferior_event): Remove stale comment.
10703 * linux-nat.c (linux_nat_target::resume): Update comments.
10704 (save_stop_reason): Likewise.
10705 (linux_nat_filter_event): Likewise.
10706 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10707
10708 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * elfread.c (record_minimal_symbol): Set section index to 0 for
10711 non-allocatable sections.
10712
10713
10714 2020-01-13 Ali Tamur <tamur@google.com>
10715
10716 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10717 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10718 to gdb::optional. Update comments.
10719 (dwo_file): Update comments.
10720 (read_attribute): Update API to take an additional out parameter,
10721 need_reprocess. This is used to mark attributes that need other
10722 attributes (e.g. str_offsets_base) for correct computation which may not
10723 have been read yet.
10724 (read_attribute_reprocess): New function declaration.
10725 (read_addr_index): Likewise.
10726 (read_dwo_str_index): Likewise.
10727 (read_stub_str_index): Likewise.
10728 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10729 (lookup_addr_base): New function definition.
10730 (lookup_ranges_base): Likewise.
10731 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10732 lookup_ranges_base.
10733 (init_cutu_and_read_dies): Update comments.
10734 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10735 unit. This is used to inherit parent's str_offsets_base and addr_base.
10736 Update comments.
10737 (init_cutu_and_read_dies_simple): Reflect API changes.
10738 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10739 (create_cus_hash_table): Change API to take parent compile unit.
10740 Reflect API changes.
10741 (open_and_init_dwo_file): Reflect API changes.
10742 (dwarf2_get_pc_bounds): Update comments.
10743 (dwarf2_record_block_ranges): Likewise.
10744 (read_full_die_1): Change implementation to reprocess attributes that
10745 need str_offsets_base and addr_base.
10746 (partial_die_info::read): Likewise.
10747 (read_attribute_reprocess): New function definition.
10748 (read_attribute_value): Change API to take an additional out parameter,
10749 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10750 when a non-dwo compile unit has index based attributes.
10751 (read_attribute): Reflect API changes.
10752 (read_addr_index_1): Reflect API changes. Update comments.
10753 (dwarf2_read_addr_index_data): Reflect API changes.
10754 (dwarf2_read_addr_index): Likewise.
10755 (read_str_index): Change API and implementation. This becomes a helper
10756 to be used by the new string index related methods. Update error
10757 message and comments.
10758 (read_dwo_str_index): New function definition.
10759 (read_stub_str_index): Likewise.
10760 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10761 * symfile.h (dwarf2_debug_sections): Likewise.
10762 * xcoffread.c (dwarf2_debug_sections): Likewise.
10763
10764 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10765
10766 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10767 core_reg_sect type to gdb_byte *.
10768 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10769 * cris-tdep.c (fetch_core_registers): Likewise.
10770 * corelow.c (core_target::get_core_register_section): Change
10771 type of `contents` to gdb::byte_vector.
10772
10773 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * tui/tui-wingeneral.c (box_win): Position the title in the center
10776 of the border.
10777
10778 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10779
10780 * corelow.c (core_target::get_core_register_section): Use
10781 std::vector instead of alloca.
10782
10783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10784
10785 * warning.m4: Add -Wmissing-declarations to build_warnings.
10786 * configure: Re-generate.
10787
10788 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * python/python.c (init__gdb_module): Add declaration.
10791
10792 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10793
10794 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10795 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10796 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10797 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10798 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10799 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10800 * ada-exp.y (_initialize_ada_exp): Add declaration.
10801 * ada-lang.c (_initialize_ada_language): Add declaration.
10802 * ada-tasks.c (_initialize_tasks): Add declaration.
10803 * agent.c (_initialize_agent): Add declaration.
10804 * aix-thread.c (_initialize_aix_thread): Add declaration.
10805 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10806 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10807 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10808 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10809 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10810 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10811 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10812 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10813 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10814 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10815 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10816 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10817 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10818 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10819 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10820 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10821 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10822 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10823 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10824 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10825 * annotate.c (_initialize_annotate): Add declaration.
10826 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10827 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10828 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10829 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10830 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10831 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10832 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10833 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10834 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10835 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10836 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10837 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10838 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10839 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10840 * auto-load.c (_initialize_auto_load): Add declaration.
10841 * auxv.c (_initialize_auxv): Add declaration.
10842 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10843 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10844 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10845 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10846 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10847 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10848 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10849 * breakpoint.c (_initialize_breakpoint): Add declaration.
10850 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10851 * btrace.c (_initialize_btrace): Add declaration.
10852 * charset.c (_initialize_charset): Add declaration.
10853 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10854 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10855 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10856 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10857 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10858 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10859 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10860 * coffread.c (_initialize_coffread): Add declaration.
10861 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10862 * compile/compile.c (_initialize_compile): Add declaration.
10863 * complaints.c (_initialize_complaints): Add declaration.
10864 * completer.c (_initialize_completer): Add declaration.
10865 * copying.c (_initialize_copying): Add declaration.
10866 * corefile.c (_initialize_core): Add declaration.
10867 * corelow.c (_initialize_corelow): Add declaration.
10868 * cp-abi.c (_initialize_cp_abi): Add declaration.
10869 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10870 * cp-support.c (_initialize_cp_support): Add declaration.
10871 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10872 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10873 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10874 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10875 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10876 * ctfread.c (_initialize_ctfread): Add declaration.
10877 * d-lang.c (_initialize_d_language): Add declaration.
10878 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10879 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10880 * dbxread.c (_initialize_dbxread): Add declaration.
10881 * dcache.c (_initialize_dcache): Add declaration.
10882 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10883 * disasm.c (_initialize_disasm): Add declaration.
10884 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10885 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10886 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10887 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10888 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10889 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10890 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10891 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10892 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10893 * elfread.c (_initialize_elfread): Add declaration.
10894 * exec.c (_initialize_exec): Add declaration.
10895 * extension.c (_initialize_extension): Add declaration.
10896 * f-lang.c (_initialize_f_language): Add declaration.
10897 * f-valprint.c (_initialize_f_valprint): Add declaration.
10898 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10899 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10900 * filesystem.c (_initialize_filesystem): Add declaration.
10901 * findcmd.c (_initialize_mem_search): Add declaration.
10902 * findvar.c (_initialize_findvar): Add declaration.
10903 * fork-child.c (_initialize_fork_child): Add declaration.
10904 * frame-base.c (_initialize_frame_base): Add declaration.
10905 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10906 * frame.c (_initialize_frame): Add declaration.
10907 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10908 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10909 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10910 * gcore.c (_initialize_gcore): Add declaration.
10911 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10912 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10913 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10914 * gdbarch.c (_initialize_gdbarch): Add declaration.
10915 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10916 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10917 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10918 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10919 * go-lang.c (_initialize_go_language): Add declaration.
10920 * go32-nat.c (_initialize_go32_nat): Add declaration.
10921 * guile/guile.c (_initialize_guile): Add declaration.
10922 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10923 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10924 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10925 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10926 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10927 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10928 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10929 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10930 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10931 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10932 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10933 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10934 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10935 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10936 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10937 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10938 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10939 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10940 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10941 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10942 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10943 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10944 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10945 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10946 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10947 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10948 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10949 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10950 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10951 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10952 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10953 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10954 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10955 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10956 * infcall.c (_initialize_infcall): Add declaration.
10957 * infcmd.c (_initialize_infcmd): Add declaration.
10958 * inflow.c (_initialize_inflow): Add declaration.
10959 * infrun.c (_initialize_infrun): Add declaration.
10960 * interps.c (_initialize_interpreter): Add declaration.
10961 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10962 * jit.c (_initialize_jit): Add declaration.
10963 * language.c (_initialize_language): Add declaration.
10964 * linux-fork.c (_initialize_linux_fork): Add declaration.
10965 * linux-nat.c (_initialize_linux_nat): Add declaration.
10966 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10967 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10968 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10969 * m2-lang.c (_initialize_m2_language): Add declaration.
10970 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10971 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10972 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10973 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10974 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10975 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10976 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10977 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10978 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10979 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10980 * machoread.c (_initialize_machoread): Add declaration.
10981 * macrocmd.c (_initialize_macrocmd): Add declaration.
10982 * macroscope.c (_initialize_macroscope): Add declaration.
10983 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10984 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10985 * maint.c (_initialize_maint_cmds): Add declaration.
10986 * mdebugread.c (_initialize_mdebugread): Add declaration.
10987 * memattr.c (_initialize_mem): Add declaration.
10988 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10989 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10990 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10991 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10992 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10993 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10994 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10995 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10996 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10997 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10998 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10999 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11000 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11001 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11002 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11003 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11004 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11005 * mipsread.c (_initialize_mipsread): Add declaration.
11006 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11007 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11008 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11009 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11010 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11011 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11012 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11013 * nto-procfs.c (_initialize_procfs): Add declaration.
11014 * objc-lang.c (_initialize_objc_language): Add declaration.
11015 * observable.c (_initialize_observer): Add declaration.
11016 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11017 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11018 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11019 * osabi.c (_initialize_gdb_osabi): Add declaration.
11020 * osdata.c (_initialize_osdata): Add declaration.
11021 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11022 * parse.c (_initialize_parse): Add declaration.
11023 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11024 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11025 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11026 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11027 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11028 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11029 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11030 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11031 * printcmd.c (_initialize_printcmd): Add declaration.
11032 * probe.c (_initialize_probe): Add declaration.
11033 * proc-api.c (_initialize_proc_api): Add declaration.
11034 * proc-events.c (_initialize_proc_events): Add declaration.
11035 * proc-service.c (_initialize_proc_service): Add declaration.
11036 * procfs.c (_initialize_procfs): Add declaration.
11037 * producer.c (_initialize_producer): Add declaration.
11038 * psymtab.c (_initialize_psymtab): Add declaration.
11039 * python/python.c (_initialize_python): Add declaration.
11040 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11041 * record-btrace.c (_initialize_record_btrace): Add declaration.
11042 * record-full.c (_initialize_record_full): Add declaration.
11043 * record.c (_initialize_record): Add declaration.
11044 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11045 * regcache.c (_initialize_regcache): Add declaration.
11046 * reggroups.c (_initialize_reggroup): Add declaration.
11047 * remote-notif.c (_initialize_notif): Add declaration.
11048 * remote-sim.c (_initialize_remote_sim): Add declaration.
11049 * remote.c (_initialize_remote): Add declaration.
11050 * reverse.c (_initialize_reverse): Add declaration.
11051 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11052 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11053 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11054 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11055 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11056 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11057 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11058 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11059 Add declaration.
11060 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11061 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11062 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11063 * rust-exp.y (_initialize_rust_exp): Add declaration.
11064 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11065 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11066 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11067 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11068 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11069 * score-tdep.c (_initialize_score_tdep): Add declaration.
11070 * ser-go32.c (_initialize_ser_dos): Add declaration.
11071 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11072 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11073 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11074 * ser-uds.c (_initialize_ser_socket): Add declaration.
11075 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11076 * serial.c (_initialize_serial): Add declaration.
11077 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11078 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11079 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11080 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11081 * skip.c (_initialize_step_skip): Add declaration.
11082 * sol-thread.c (_initialize_sol_thread): Add declaration.
11083 * solib-aix.c (_initialize_solib_aix): Add declaration.
11084 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11085 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11086 * solib-frv.c (_initialize_frv_solib): Add declaration.
11087 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11088 * solib-target.c (_initialize_solib_target): Add declaration.
11089 * solib.c (_initialize_solib): Add declaration.
11090 * source-cache.c (_initialize_source_cache): Add declaration.
11091 * source.c (_initialize_source): Add declaration.
11092 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11093 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11094 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11095 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11096 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11097 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11098 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11099 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11100 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11101 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11102 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11103 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11104 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11105 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11106 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11107 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11108 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11109 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11110 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11111 * stabsread.c (_initialize_stabsread): Add declaration.
11112 * stack.c (_initialize_stack): Add declaration.
11113 * stap-probe.c (_initialize_stap_probe): Add declaration.
11114 * std-regs.c (_initialize_frame_reg): Add declaration.
11115 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11116 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11117 * symfile.c (_initialize_symfile): Add declaration.
11118 * symmisc.c (_initialize_symmisc): Add declaration.
11119 * symtab.c (_initialize_symtab): Add declaration.
11120 * target.c (_initialize_target): Add declaration.
11121 * target-connection.c (_initialize_target_connection): Add
11122 declaration.
11123 * target-dcache.c (_initialize_target_dcache): Add declaration.
11124 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11125 * thread.c (_initialize_thread): Add declaration.
11126 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11127 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11128 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11129 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11130 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11131 * tracectf.c (_initialize_ctf): Add declaration.
11132 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11133 * tracefile.c (_initialize_tracefile): Add declaration.
11134 * tracepoint.c (_initialize_tracepoint): Add declaration.
11135 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11136 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11137 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11138 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11139 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11140 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11141 * tui/tui.c (_initialize_tui): Add declaration.
11142 * typeprint.c (_initialize_typeprint): Add declaration.
11143 * ui-style.c (_initialize_ui_style): Add declaration.
11144 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11145 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11146 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11147 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11148 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11149 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11150 * unittests/filtered_iterator-selftests.c
11151 (_initialize_filtered_iterator_selftests): Add declaration.
11152 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11153 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11154 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11155 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11156 * unittests/main-thread-selftests.c
11157 (_initialize_main_thread_selftests): Add declaration.
11158 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11159 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11160 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11161 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11162 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11163 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11164 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11165 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11166 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11167 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11168 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11169 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11170 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11171 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11172 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11173 declaration.
11174 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11175 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11176 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11177 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11178 * user-regs.c (_initialize_user_regs): Add declaration.
11179 * utils.c (_initialize_utils): Add declaration.
11180 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11181 * valops.c (_initialize_valops): Add declaration.
11182 * valprint.c (_initialize_valprint): Add declaration.
11183 * value.c (_initialize_values): Add declaration.
11184 * varobj.c (_initialize_varobj): Add declaration.
11185 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11186 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11187 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11188 * windows-nat.c (_initialize_windows_nat): Add declaration.
11189 (_initialize_check_for_gdb_ini): Add declaration.
11190 (_initialize_loadable): Add declaration.
11191 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11192 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11193 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11194 * xcoffread.c (_initialize_xcoffread): Add declaration.
11195 * xml-support.c (_initialize_xml_support): Add declaration.
11196 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11197 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11198 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11199 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11200
11201 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11202
11203 * regformats/regdat.sh: Generate declaration for init function.
11204
11205 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11206
11207 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11208 up.
11209 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11210 close_one_inferior>: New methods.
11211 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11212 pass down target to find_inferior_pid.
11213 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11214 Pass down target to find_inferior_ptid.
11215 (gdbsim_target::create_inferior): Pass down target to
11216 add_thread_silent.
11217 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11218 target down to find_inferior_ptid and switch_to_thread.
11219 (gdbsim_target::close): Update to call close_one_inferior.
11220 (struct resume_data): Remove.
11221 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11222 directly, rather than through a void pointer.
11223 (gdbsim_target::resume): Update to call resume_one_inferior.
11224
11225 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11226
11227 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11228
11229 2020-01-12 Pedro Alves <palves@redhat.com>
11230
11231 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11232 directly for the current inferior instead of
11233 discard_all_inferiors.
11234 (discard_all_inferiors): Delete.
11235
11236 2020-01-11 Tom Tromey <tom@tromey.com>
11237
11238 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11239 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11240 deprecated_safe_get_selected_frame.
11241
11242 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11243
11244 * inferior.c (print_inferior): Switch inferior before printing it.
11245
11246 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11247 Pedro Alves <palves@redhat.com>
11248
11249 * progspace-and-thread.c (switch_to_program_space_and_thread):
11250 Assert there's an inferior for PSPACE. Use
11251 switch_to_inferior_no_thread to switch the inferior too.
11252 * progspace.c (program_space::~program_space): Call
11253 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11254 (program_space::free_all_objfiles): Don't call clear_symtab_users
11255 here.
11256 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11257
11258 2020-01-10 Pedro Alves <palves@redhat.com>
11259
11260 * NEWS: Mention multi-target debugging, "info connections", and
11261 "add-inferior -no-connection".
11262
11263 2020-01-10 Pedro Alves <palves@redhat.com>
11264
11265 * infrun.c: Include "target-connection.h".
11266 (check_multi_target_resumption): New.
11267 (proceed): Call it.
11268 * target-connection.c (make_target_connection_string): Make
11269 extern.
11270 * target-connection.h (make_target_connection_string): Declare.
11271
11272 2020-01-10 Pedro Alves <palves@redhat.com>
11273
11274 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11275 * inferior.c (uiout_field_connection): New function.
11276 (print_inferior): Add new "connection-id" column.
11277 (add_inferior_command): Show connection number/string of added
11278 inferior.
11279 * process-stratum-target.h
11280 (process_stratum_target::connection_string): New virtual method.
11281 (process_stratum_target::connection_number): New field.
11282 * remote.c (remote_target::connection_string): New override.
11283 * target-connection.c: New file.
11284 * target-connection.h: New file.
11285 * target.c (decref_target): Remove process_stratum targets from
11286 the connection list.
11287 (target_stack::push): Add process_stratum targets to the
11288 connection list.
11289
11290 2020-01-10 Pedro Alves <palves@redhat.com>
11291
11292 Revert:
11293 2016-04-12 Pedro Alves <palves@redhat.com>
11294 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11295 Remove references to name.
11296 * serial.h (struct serial) <name>: Delete.
11297
11298 2020-01-10 Pedro Alves <palves@redhat.com>
11299
11300 * gdbarch-selftests.c (register_to_value_test): Remove "target
11301 already pushed" check.
11302
11303 2020-01-10 Pedro Alves <palves@redhat.com>
11304 John Baldwin <jhb@FreeBSD.org>
11305
11306 * aarch64-linux-nat.c
11307 (aarch64_linux_nat_target::thread_architecture): Adjust.
11308 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11309 (task_command_1): Likewise.
11310 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11311 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11312 (aix_thread_target::store_registers)
11313 (aix_thread_target::thread_alive): Adjust.
11314 * amd64-fbsd-tdep.c: Include "inferior.h".
11315 (amd64fbsd_get_thread_local_address): Pass down target.
11316 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11317 thread's gdbarch instead of target_gdbarch.
11318 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11319 get_last_target_status.
11320 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11321 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11322 inferiors.
11323 (update_inserted_breakpoint_locations): Skip if inferiors with no
11324 execution.
11325 (update_global_location_list): When handling moribund locations,
11326 find representative inferior for location's pspace, and use thread
11327 count of its process_stratum target.
11328 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11329 * bsd-uthread.c (bsd_uthread_target::wait): Use
11330 as_process_stratum_target and adjust thread_change_ptid and
11331 add_thread calls.
11332 (bsd_uthread_target::update_thread_list): Use
11333 as_process_stratum_target and adjust find_thread_ptid,
11334 thread_change_ptid and add_thread calls.
11335 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11336 find_thread_ptid call.
11337 * corelow.c (add_to_thread_list): Adjust add_thread call.
11338 (core_target_open): Adjust add_thread_silent and thread_count
11339 calls.
11340 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11341 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11342 * event-top.c (async_disconnect): Pop targets from all inferiors.
11343 * exec.c (add_target_sections): Push exec target on all inferiors
11344 sharing the program space.
11345 (remove_target_sections): Remove the exec target from all
11346 inferiors sharing the program space.
11347 (exec_on_vfork): New.
11348 * exec.h (exec_on_vfork): Declare.
11349 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11350 Pass it down.
11351 (fbsd_nat_target::update_thread_list): Adjust.
11352 (fbsd_nat_target::resume): Adjust.
11353 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11354 down.
11355 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11356 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11357 get_thread_arch_regcache call.
11358 * fork-child.c (gdb_startup_inferior): Pass target down to
11359 startup_inferior and set_executing.
11360 * gdbthread.h (struct process_stratum_target): Forward declare.
11361 (add_thread, add_thread_silent, add_thread_with_info)
11362 (in_thread_list): Add process_stratum_target parameter.
11363 (find_thread_ptid(inferior*, ptid_t)): New overload.
11364 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11365 parameter.
11366 (all_threads()): Delete overload.
11367 (all_threads, all_non_exited_threads): Add process_stratum_target
11368 parameter.
11369 (all_threads_safe): Use brace initialization.
11370 (thread_count): Add process_stratum_target parameter.
11371 (set_resumed, set_running, set_stop_requested, set_executing)
11372 (threads_are_executing, finish_thread_state): Add
11373 process_stratum_target parameter.
11374 (switch_to_thread): Use is_current_thread.
11375 * i386-fbsd-tdep.c: Include "inferior.h".
11376 (i386fbsd_get_thread_local_address): Pass down target.
11377 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11378 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11379 have_inferiors check.
11380 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11381 (inf_ptrace_target::attach): Adjust.
11382 * infcall.c (run_inferior_call): Adjust.
11383 * infcmd.c (run_command_1): Pass target to
11384 scoped_finish_thread_state.
11385 (proceed_thread_callback): Skip inferiors with no execution.
11386 (continue_command): Rename 'all_threads' local to avoid hiding
11387 'all_threads' function. Adjust get_last_target_status call.
11388 (prepare_one_step): Adjust set_running call.
11389 (signal_command): Use user_visible_resume_target. Compare thread
11390 pointers instead of inferior_ptid.
11391 (info_program_command): Adjust to pass down target.
11392 (attach_command): Mark target's 'thread_executing' flag.
11393 (stop_current_target_threads_ns): New, factored out from ...
11394 (interrupt_target_1): ... this. Switch inferior before making
11395 target calls.
11396 * inferior-iter.h
11397 (struct all_inferiors_iterator, struct all_inferiors_range)
11398 (struct all_inferiors_safe_range)
11399 (struct all_non_exited_inferiors_range): Filter on
11400 process_stratum_target too. Remove explicit.
11401 * inferior.c (inferior::inferior): Push dummy target on target
11402 stack.
11403 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11404 Add process_stratum_target parameter, and pass it down.
11405 (have_live_inferiors): Adjust.
11406 (switch_to_inferior_and_push_target): New.
11407 (add_inferior_command, clone_inferior_command): Handle
11408 "-no-connection" parameter. Use
11409 switch_to_inferior_and_push_target.
11410 (_initialize_inferior): Mention "-no-connection" option in
11411 the help of "add-inferior" and "clone-inferior" commands.
11412 * inferior.h: Include "process-stratum-target.h".
11413 (interrupt_target_1): Use bool.
11414 (struct inferior) <push_target, unpush_target, target_is_pushed,
11415 find_target_beneath, top_target, process_target, target_at,
11416 m_stack>: New.
11417 (discard_all_inferiors): Delete.
11418 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11419 (all_inferiors, all_non_exited_inferiors): Add
11420 process_stratum_target parameter.
11421 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11422 (target_last_proc_target): New global.
11423 (follow_fork_inferior): Push target on new inferior. Pass target
11424 to add_thread_silent. Call exec_on_vfork. Handle target's
11425 reference count.
11426 (follow_fork): Adjust get_last_target_status call. Also consider
11427 target.
11428 (follow_exec): Push target on new inferior.
11429 (struct execution_control_state) <target>: New field.
11430 (user_visible_resume_target): New.
11431 (do_target_resume): Call target_async.
11432 (resume_1): Set target's threads_executing flag. Consider resume
11433 target.
11434 (commit_resume_all_targets): New.
11435 (proceed): Also consider resume target. Skip threads of inferiors
11436 with no execution. Commit resumtion in all targets.
11437 (start_remote): Pass current inferior to wait_for_inferior.
11438 (infrun_thread_stop_requested): Consider target as well. Pass
11439 thread_info pointer to clear_inline_frame_state instead of ptid.
11440 (infrun_thread_thread_exit): Consider target as well.
11441 (random_pending_event_thread): New inferior parameter. Use it.
11442 (do_target_wait): Rename to ...
11443 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11444 down.
11445 (threads_are_resumed_pending_p, do_target_wait): New.
11446 (prepare_for_detach): Adjust calls.
11447 (wait_for_inferior): New inferior parameter. Handle it. Use
11448 do_target_wait_1 instead of do_target_wait.
11449 (fetch_inferior_event): Adjust. Switch to representative
11450 inferior. Pass target down.
11451 (set_last_target_status): Add process_stratum_target parameter.
11452 Save target in global.
11453 (get_last_target_status): Add process_stratum_target parameter and
11454 handle it.
11455 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11456 (context_switch): Check inferior_ptid == null_ptid before calling
11457 inferior_thread().
11458 (get_inferior_stop_soon): Pass down target.
11459 (wait_one): Rename to ...
11460 (poll_one_curr_target): ... this.
11461 (struct wait_one_event): New.
11462 (wait_one): New.
11463 (stop_all_threads): Adjust.
11464 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11465 event's target.
11466 (switch_back_to_stepped_thread): Also consider target.
11467 (print_stop_event): Update.
11468 (normal_stop): Update. Also consider the resume target.
11469 * infrun.h (wait_for_inferior): Remove declaration.
11470 (user_visible_resume_target): New declaration.
11471 (get_last_target_status, set_last_target_status): New
11472 process_stratum_target parameter.
11473 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11474 process_stratum_target parameter, and use it.
11475 (clear_inline_frame_state (thread_info*)): New.
11476 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11477 process_stratum_target parameter.
11478 (clear_inline_frame_state (thread_info*)): Declare.
11479 * linux-fork.c (delete_checkpoint_command): Pass target down to
11480 find_thread_ptid.
11481 (checkpoint_command): Adjust.
11482 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11483 instead of just tweaking inferior_ptid.
11484 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11485 (exit_lwp): Pass target down to find_thread_ptid.
11486 (attach_proc_task_lwp_callback): Pass target down to
11487 add_thread/set_running/set_executing.
11488 (linux_nat_target::attach): Pass target down to
11489 thread_change_ptid.
11490 (get_detach_signal): Pass target down to find_thread_ptid.
11491 Consider last target status's target.
11492 (linux_resume_one_lwp_throw, resume_lwp)
11493 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11494 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11495 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11496 (linux_nat_target::async_wait_fd): New.
11497 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11498 target down.
11499 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11500 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11501 * linux-thread-db.c (struct thread_db_info::process_target): New
11502 field.
11503 (add_thread_db_info): Save target.
11504 (get_thread_db_info): New process_stratum_target parameter. Also
11505 match target.
11506 (delete_thread_db_info): New process_stratum_target parameter.
11507 Also match target.
11508 (thread_from_lwp): Adjust to pass down target.
11509 (thread_db_notice_clone): Pass down target.
11510 (check_thread_db_callback): Pass down target.
11511 (try_thread_db_load_1): Always push the thread_db target.
11512 (try_thread_db_load, record_thread): Pass target down.
11513 (thread_db_target::detach): Pass target down. Always unpush the
11514 thread_db target.
11515 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11516 target down. Always unpush the thread_db target.
11517 (find_new_threads_callback, thread_db_find_new_threads_2)
11518 (thread_db_target::update_thread_list): Pass target down.
11519 (thread_db_target::pid_to_str): Pass current inferior down.
11520 (thread_db_target::get_thread_local_address): Pass target down.
11521 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11522 target down.
11523 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11524 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11525 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11526 (procfs_init_inferior): Rename to ...
11527 (procfs_target::procfs_init_inferior): ... this and adjust.
11528 (procfs_target::create_inferior, procfs_notice_thread)
11529 (procfs_do_thread_registers): Adjust.
11530 * ppc-fbsd-tdep.c: Include "inferior.h".
11531 (ppcfbsd_get_thread_local_address): Pass down target.
11532 * proc-service.c (ps_xfer_memory): Switch current inferior and
11533 program space as well.
11534 (get_ps_regcache): Pass target down.
11535 * process-stratum-target.c
11536 (process_stratum_target::thread_address_space)
11537 (process_stratum_target::thread_architecture): Pass target down.
11538 * process-stratum-target.h
11539 (process_stratum_target::threads_executing): New field.
11540 (as_process_stratum_target): New.
11541 * ravenscar-thread.c
11542 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11543 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11544 down.
11545 * record-btrace.c (record_btrace_target::info_record): Adjust.
11546 (record_btrace_target::record_method)
11547 (record_btrace_target::record_is_replaying)
11548 (record_btrace_target::fetch_registers)
11549 (get_thread_current_frame_id, record_btrace_target::resume)
11550 (record_btrace_target::wait, record_btrace_target::stop): Pass
11551 target down.
11552 * record-full.c (record_full_wait_1): Switch to event thread.
11553 Pass target down.
11554 * regcache.c (regcache::regcache)
11555 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11556 process_stratum_target parameter and handle it.
11557 (current_thread_target): New global.
11558 (get_thread_regcache): Add process_stratum_target parameter and
11559 handle it. Switch inferior before calling target method.
11560 (get_thread_regcache): Pass target down.
11561 (get_thread_regcache_for_ptid): Pass target down.
11562 (registers_changed_ptid): Add process_stratum_target parameter and
11563 handle it.
11564 (registers_changed_thread, registers_changed): Pass target down.
11565 (test_get_thread_arch_aspace_regcache): New.
11566 (current_regcache_test): Define a couple local test_target_ops
11567 instances and use them for testing.
11568 (readwrite_regcache): Pass process_stratum_target parameter.
11569 (cooked_read_test, cooked_write_test): Pass mock_target down.
11570 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11571 (get_thread_arch_aspace_regcache): Add process_stratum_target
11572 parameter.
11573 (regcache::target): New method.
11574 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11575 (regcache::registers_changed_ptid): Add process_stratum_target
11576 parameter.
11577 (regcache::m_target): New field.
11578 (registers_changed_ptid): Add process_stratum_target parameter.
11579 * remote.c (remote_state::supports_vCont_probed): New field.
11580 (remote_target::async_wait_fd): New method.
11581 (remote_unpush_and_throw): Add remote_target parameter.
11582 (get_current_remote_target): Adjust.
11583 (remote_target::remote_add_inferior): Push target.
11584 (remote_target::remote_add_thread)
11585 (remote_target::remote_notice_new_inferior)
11586 (get_remote_thread_info): Pass target down.
11587 (remote_target::update_thread_list): Skip threads of inferiors
11588 bound to other targets. (remote_target::close): Don't discard
11589 inferiors. (remote_target::add_current_inferior_and_thread)
11590 (remote_target::process_initial_stop_replies)
11591 (remote_target::start_remote)
11592 (remote_target::remote_serial_quit_handler): Pass down target.
11593 (remote_target::remote_unpush_target): New remote_target
11594 parameter. Unpush the target from all inferiors.
11595 (remote_target::remote_unpush_and_throw): New remote_target
11596 parameter. Pass it down.
11597 (remote_target::open_1): Check whether the current inferior has
11598 execution instead of checking whether any inferior is live. Pass
11599 target down.
11600 (remote_target::remote_detach_1): Pass down target. Use
11601 remote_unpush_target.
11602 (extended_remote_target::attach): Pass down target.
11603 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11604 (remote_target::append_resumption): Pass down target.
11605 (remote_target::append_pending_thread_resumptions)
11606 (remote_target::remote_resume_with_hc, remote_target::resume)
11607 (remote_target::commit_resume): Pass down target.
11608 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11609 (remote_target::interrupt_query)
11610 (remote_target::remove_new_fork_children)
11611 (remote_target::check_pending_events_prevent_wildcard_vcont)
11612 (remote_target::remote_parse_stop_reply)
11613 (remote_target::process_stop_reply): Pass down target.
11614 (first_remote_resumed_thread): New remote_target parameter. Pass
11615 it down.
11616 (remote_target::wait_as): Pass down target.
11617 (unpush_and_perror): New remote_target parameter. Pass it down.
11618 (remote_target::readchar, remote_target::remote_serial_write)
11619 (remote_target::getpkt_or_notif_sane_1)
11620 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11621 down target.
11622 (remote_target::mourn_inferior): Pass down target. Use
11623 remote_unpush_target.
11624 (remote_target::core_of_thread)
11625 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11626 (remote_target::pid_to_exec_file)
11627 (remote_target::thread_handle_to_thread_info): Pass down target.
11628 (remote_target::async_wait_fd): New.
11629 * riscv-fbsd-tdep.c: Include "inferior.h".
11630 (riscv_fbsd_get_thread_local_address): Pass down target.
11631 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11632 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11633 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11634 Adjust.
11635 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11636 * solib-svr4.c (enable_break): Pass down target.
11637 * spu-multiarch.c (parse_spufs_run): Pass down target.
11638 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11639 * target-delegates.c: Regenerate.
11640 * target.c (g_target_stack): Delete.
11641 (current_top_target): Return the current inferior's top target.
11642 (target_has_execution_1): Refer to the passed-in inferior's top
11643 target.
11644 (target_supports_terminal_ours): Check whether the initial
11645 inferior was already created.
11646 (decref_target): New.
11647 (target_stack::push): Incref/decref the target.
11648 (push_target, push_target, unpush_target): Adjust.
11649 (target_stack::unpush): Defref target.
11650 (target_is_pushed): Return bool. Adjust to refer to the current
11651 inferior's target stack.
11652 (dispose_inferior): Delete, and inline parts ...
11653 (target_preopen): ... here. Only dispose of the current inferior.
11654 (target_detach): Hold strong target reference while detaching.
11655 Pass target down.
11656 (target_thread_name): Add assertion.
11657 (target_resume): Pass down target.
11658 (target_ops::beneath, find_target_at): Adjust to refer to the
11659 current inferior's target stack.
11660 (get_dummy_target): New.
11661 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11662 has a thread running.
11663 (initialize_targets): Rename to ...
11664 (_initialize_target): ... this.
11665 * target.h: Include "gdbsupport/refcounted-object.h".
11666 (struct target_ops): Inherit refcounted_object.
11667 (target_ops::shortname, target_ops::longname): Make const.
11668 (target_ops::async_wait_fd): New method.
11669 (decref_target): Declare.
11670 (struct target_ops_ref_policy): New.
11671 (target_ops_ref): New typedef.
11672 (get_dummy_target): Declare function.
11673 (target_is_pushed): Return bool.
11674 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11675 (all_matching_threads_iterator::all_matching_threads_iterator):
11676 Handle filter target.
11677 * thread-iter.h (struct all_matching_threads_iterator, struct
11678 all_matching_threads_range, class all_non_exited_threads_range):
11679 Filter by target too. Remove explicit.
11680 * thread.c (threads_executing): Delete.
11681 (inferior_thread): Pass down current inferior.
11682 (clear_thread_inferior_resources): Pass down thread pointer
11683 instead of ptid_t.
11684 (add_thread_silent, add_thread_with_info, add_thread): Add
11685 process_stratum_target parameter. Use it for thread and inferior
11686 searches.
11687 (is_current_thread): New.
11688 (thread_info::deletable): Use it.
11689 (find_thread_ptid, thread_count, in_thread_list)
11690 (thread_change_ptid, set_resumed, set_running): New
11691 process_stratum_target parameter. Pass it down.
11692 (set_executing): New process_stratum_target parameter. Pass it
11693 down. Adjust reference to 'threads_executing'.
11694 (threads_are_executing): New process_stratum_target parameter.
11695 Adjust reference to 'threads_executing'.
11696 (set_stop_requested, finish_thread_state): New
11697 process_stratum_target parameter. Pass it down.
11698 (switch_to_thread): Also match inferior.
11699 (switch_to_thread): New process_stratum_target parameter. Pass it
11700 down.
11701 (update_threads_executing): Reimplement.
11702 * top.c (quit_force): Pop targets from all inferior.
11703 (gdb_init): Don't call initialize_targets.
11704 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11705 Declare.
11706 (windows_add_thread, windows_delete_thread): Adjust.
11707 (get_windows_debug_event): Rename to ...
11708 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11709 * tracefile-tfile.c (tfile_target_open): Pass down target.
11710 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11711 Forward declare.
11712 (switch_to_thread): Add process_stratum_target parameter.
11713 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11714 parameter. Use it.
11715 (mi_on_resume): Pass target down.
11716 * nat/fork-inferior.c (startup_inferior): Add
11717 process_stratum_target parameter. Pass it down.
11718 * nat/fork-inferior.h (startup_inferior): Add
11719 process_stratum_target parameter.
11720 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11721
11722 2020-01-10 Pedro Alves <palves@redhat.com>
11723
11724 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11725 directly. Instead find the first thread in the thread list and
11726 use switch_to_thread.
11727
11728 2020-01-10 Pedro Alves <palves@redhat.com>
11729
11730 * remote.c (remote_target::remote_add_inferior): Don't bind a
11731 process to the current inferior if the current inferior is already
11732 bound to a process.
11733
11734 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11735 Pedro Alves <palves@redhat.com>
11736
11737 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11738 If no process is specified, return null_ptid instead of
11739 inferior_ptid.
11740 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11741 TARGET_WAITKIND_SIGNALLED with no pid.
11742
11743 2020-01-10 Pedro Alves <palves@redhat.com>
11744
11745 * remote.c (first_remote_resumed_thread): New.
11746 (remote_target::wait_as): Use it as default event_ptid instead of
11747 inferior_ptid.
11748
11749 2020-01-10 Pedro Alves <palves@redhat.com>
11750
11751 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11752
11753 2020-01-10 Pedro Alves <palves@redhat.com>
11754
11755 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11756 not -1.
11757
11758 2020-01-10 Pedro Alves <palves@redhat.com>
11759
11760 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11761 ptid to get_last_target_status.
11762 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11763 ptid to get_last_target_status.
11764 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11765 get_last_target_status.
11766 (info_program_command): Don't pass a target_waitstatus to
11767 get_last_target_status.
11768 * infrun.c (init_wait_for_inferior): Use
11769 nullify_last_target_wait_ptid.
11770 (get_last_target_status): Handle nullptr arguments.
11771 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11772 (print_stop_event): Don't pass a ptid to get_last_target_status.
11773 (normal_stop): Don't pass a ptid to get_last_target_status.
11774 * infrun.h (get_last_target_status, set_last_target_status): Move
11775 comments here and update.
11776 (nullify_last_target_wait_ptid): Declare.
11777 * linux-fork.c (fork_load_infrun_state): Remove local extern
11778 declaration of nullify_last_target_wait_ptid.
11779 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11780 to get_last_target_status.
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * gdbthread.h (scoped_restore_current_thread)
11785 <dont_restore, restore, m_dont_restore>: Declare.
11786 * thread.c (thread_alive): Add assertion. Return bool.
11787 (switch_to_thread_if_alive): New.
11788 (prune_threads): Switch inferior/thread.
11789 (print_thread_info_1): Switch thread before calling target methods.
11790 (scoped_restore_current_thread::restore): New, factored out from
11791 ...
11792 (scoped_restore_current_thread::~scoped_restore_current_thread):
11793 ... this.
11794 (scoped_restore_current_thread::scoped_restore_current_thread):
11795 Add assertion.
11796 (thread_apply_all_command, thread_select): Use
11797 switch_to_thread_if_alive.
11798 * infrun.c (proceed, restart_threads, handle_signal_stop)
11799 (switch_back_to_stepped_thread): Switch current thread before
11800 calling target methods.
11801
11802 2020-01-10 Pedro Alves <palves@redhat.com>
11803
11804 * inferior.c (switch_to_inferior_no_thread): New function,
11805 factored out from ...
11806 (inferior_command): ... here.
11807 * inferior.h (switch_to_inferior_no_thread): Declare.
11808 * mi/mi-main.c (run_one_inferior): Use
11809 switch_to_inferior_no_thread.
11810
11811 2020-01-10 Pedro Alves <palves@redhat.com>
11812
11813 * infcmd.c (kill_command): Remove dead code.
11814
11815 2020-01-10 Pedro Alves <palves@redhat.com>
11816
11817 * remote.c (remote_target::mourn_inferior): No longer check
11818 whether the target is running.
11819
11820 2020-01-10 Pedro Alves <palves@redhat.com>
11821
11822 * corelow.c (core_target::has_execution): Change parameter type to
11823 inferior pointer.
11824 * inferior.c (number_of_live_inferiors): Use
11825 inferior::has_execution instead of target_has_execution_1.
11826 * inferior.h (inferior::has_execution): New.
11827 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11828 inferior::has_execution instead of target_has_execution_1.
11829 * process-stratum-target.c
11830 (process_stratum_target::has_execution): Change parameter type to
11831 inferior pointer. Check the inferior's PID instead of
11832 inferior_ptid.
11833 * process-stratum-target.h
11834 (process_stratum_target::has_execution): Change parameter type to
11835 inferior pointer.
11836 * record-full.c (record_full_core_target::has_execution): Change
11837 parameter type to inferior pointer.
11838 * target.c (target_has_execution_1): Change parameter type to
11839 inferior pointer.
11840 (target_has_execution_current): Adjust.
11841 * target.h (target_ops::has_execution): Change parameter type to
11842 inferior pointer.
11843 (target_has_execution_1): Change parameter type to inferior
11844 pointer. Change return type to bool.
11845 * tracefile.h (tracefile_target::has_execution): Change parameter
11846 type to inferior pointer.
11847
11848 2020-01-10 Pedro Alves <palves@redhat.com>
11849
11850 * exceptions.c (print_flush): Remove current_top_target() check.
11851
11852 2020-01-10 Pedro Alves <palves@redhat.com>
11853
11854 * remote.c (show_remote_exec_file): Show the current inferior's
11855 exec-file instead of the command variable's value.
11856
11857 2020-01-10 Pedro Alves <palves@redhat.com>
11858
11859 * record-full.c (record_full_resume_ptid): New global.
11860 (record_full_target::resume): Set it.
11861 (record_full_wait_1): Use record_full_resume_ptid instead of
11862 inferior_ptid.
11863
11864 2020-01-10 Pedro Alves <palves@redhat.com>
11865
11866 * gdbthread.h (scoped_restore_current_thread)
11867 <dont_restore, restore, m_dont_restore>: Declare.
11868 * thread.c (thread_alive): Add assertion. Return bool.
11869 (switch_to_thread_if_alive): New.
11870 (prune_threads): Switch inferior/thread.
11871 (print_thread_info_1): Switch thread before calling target methods.
11872 (scoped_restore_current_thread::restore): New, factored out from
11873 ...
11874 (scoped_restore_current_thread::~scoped_restore_current_thread):
11875 ... this.
11876 (scoped_restore_current_thread::scoped_restore_current_thread):
11877 Add assertion.
11878 (thread_apply_all_command, thread_select): Use
11879 switch_to_thread_if_alive.
11880
11881 2020-01-10 George Barrett <bob@bob131.so>
11882
11883 * stap-probe.c (stap_modify_semaphore): Don't check for null
11884 semaphores.
11885 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11886 for null semaphores.
11887
11888 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11889
11890 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11891 all source windows, and maintain horizontal scroll status while
11892 doing so.
11893
11894 2020-01-09 Tom Tromey <tom@tromey.com>
11895
11896 PR tui/18932:
11897 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11898 update_source_window, not print_source_lines.
11899
11900 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11901
11902 * tui/tui.c (tui_enable): Register tui hooks after calling
11903 tui_display_main.
11904
11905 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11906
11907 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11908
11909 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11910
11911 * thread.c (print_thread_info_1): Fix indentation.
11912
11913 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11914
11915 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11916 unique_xmalloc_ptr outside the if to always free the demangled name.
11917
11918 2020-01-08 Tom Tromey <tromey@adacore.com>
11919
11920 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11921 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11922 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11923 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11924 Remove.
11925 (section_offsets): New typedef.
11926 * symtab.c (fixup_section, get_msymbol_address): Update.
11927 * symmisc.c (dump_msymbols): Update.
11928 * symfile.h (relative_addr_info_to_section_offsets)
11929 (symfile_map_offsets_to_segments): Update.
11930 * symfile.c (build_section_addr_info_from_objfile)
11931 (init_objfile_sect_indices): Update.
11932 (struct place_section_arg): Change type of "offsets".
11933 (place_section): Update.
11934 (relative_addr_info_to_section_offsets): Change type of
11935 "section_offsets". Remove "num_sections" parameter.
11936 (default_symfile_offsets, syms_from_objfile_1)
11937 (set_objfile_default_section_offset): Update.
11938 (reread_symbols): No need to preserve section offsets by hand.
11939 (symfile_map_offsets_to_segments): Change type of "offsets".
11940 * stap-probe.c (relocate_address): Update.
11941 * stabsread.h (process_one_symbol): Update.
11942 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11943 (solib_target_relocate_section_addresses): Update.
11944 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11945 Update.
11946 * solib-frv.c (frv_relocate_main_executable): Update.
11947 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11948 * solib-aix.c (solib_aix_get_section_offsets): Change return
11949 type.
11950 (solib_aix_solib_create_inferior_hook): Update.
11951 * remote.c (remote_target::get_offsets): Update.
11952 * psymtab.c (find_pc_sect_psymtab): Update.
11953 * psympriv.h (struct partial_symbol) <address, text_low,
11954 text_high>: Update.
11955 * objfiles.h (obj_section_offset): Update.
11956 (struct objfile) <section_offsets>: Change type.
11957 <num_sections>: Remove.
11958 (objfile_relocate): Update.
11959 * objfiles.c (entry_point_address_query): Update
11960 (relocate_one_symbol): Change type of "section_offsets".
11961 (objfile_relocate1, objfile_relocate1): Change type of
11962 "new_offsets".
11963 (objfile_rebase1): Update.
11964 * mipsread.c (mipscoff_symfile_read): Update.
11965 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11966 parameter.
11967 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11968 (parse_external, psymtab_to_symtab_1): Update.
11969 * machoread.c (macho_symfile_offsets): Update.
11970 * ia64-tdep.c (ia64_find_unwind_table): Update.
11971 * hppa-tdep.c (read_unwind_info): Update.
11972 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11973 * dwarf2read.c (create_addrmap_from_index)
11974 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11975 (process_psymtab_comp_unit_reader, add_partial_symbol)
11976 (add_partial_subprogram, process_full_comp_unit)
11977 (read_file_scope, read_func_scope, read_lexical_block_scope)
11978 (read_call_site_scope, dwarf2_rnglists_process)
11979 (dwarf2_ranges_process, dwarf2_ranges_read)
11980 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11981 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11982 Update.
11983 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11984 Update.
11985 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11986 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11987 (process_one_symbol): Change type of "section_offsets".
11988 * ctfread.c (get_objfile_text_range): Update.
11989 * coffread.c (coff_symtab_read, enter_linenos)
11990 (process_coff_symbol): Update.
11991 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11992 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11993
11994 2020-01-08 Tom Tromey <tromey@adacore.com>
11995
11996 * dwarf2read.c (parse_macro_definition): Use std::string.
11997 (parse_macro_definition): Likewise.
11998
11999 2020-01-08 Tom Tromey <tromey@adacore.com>
12000
12001 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12002 (ATTR_ALLOC_CHUNK): Remove.
12003
12004 2020-01-08 Tom Tromey <tromey@adacore.com>
12005
12006 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12007
12008 2020-01-08 Tom Tromey <tromey@adacore.com>
12009
12010 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12011 (dwarf2_compute_name, open_dwo_file): Likewise.
12012 (process_enumeration_scope): Use std::vector.
12013 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12014 (partial_die_info::fixup, dwarf2_start_subfile)
12015 (guess_full_die_structure_name, dwarf2_name): Likewise.
12016 (determine_prefix): Update.
12017 (guess_full_die_structure_name): Make return type const.
12018 (partial_die_full_name): Return unique_xmalloc_ptr.
12019 (DW_FIELD_ALLOC_CHUNK): Remove.
12020
12021 2020-01-07 Tom Tromey <tromey@adacore.com>
12022
12023 PR build/24937:
12024 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12025
12026 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12027
12028 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12029
12030 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12031
12032 * stack.c (print_frame_info): Move disassemble_next_line code
12033 inside source_print block.
12034
12035 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12036
12037 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12038 gdb/signals.h, as we are now using native signal symbols.
12039
12040 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12041
12042 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12043 overflow by an early check of content vs threshold.
12044 * tui/tui-source.c (tui_source_window::line_is_displayed):
12045 Likewise.
12046
12047 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12048
12049 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12050
12051 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12052
12053 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12054 export table if no section contains it's RVA.
12055
12056 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12057
12058 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12059
12060 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12061
12062 * source.c (print_source_lines_base): Set last_line_listed.
12063
12064 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12065
12066 * tui/tui-disasm.c: Remove trailing spaces.
12067
12068 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12069 Pedro Alves <palves@redhat.com>
12070
12071 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12072 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12073 (windows_gdb_signal_to_target): New function, uses the above
12074 enumeration to convert GDB internal signal codes to equivalent
12075 Windows codes.
12076 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12077 * windows-nat.c: Include "gdb_wait.h".
12078 (get_windows_debug_event): Extract the fatal exception from the
12079 exit status and convert to the equivalent Posix signal number.
12080 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12081 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12082 * gdbsupport/gdb_wait.c: New file, implements
12083 windows_status_to_termsig.
12084 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12085 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12086
12087 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12088
12089 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12090 show_layout.
12091
12092 2020-01-05 Luis Machado <luis.machado@linaro.org>
12093
12094 * aarch64-linux-nat.c
12095 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12096 and bfd_mach_aarch64.
12097
12098 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12099
12100 * ui-file.c (stdio_file::can_emit_style_escape)
12101 (tee_file::can_emit_style_escape): Ensure style is used also on
12102 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12103 to gdb_stdout.
12104 * main.c (set_gdb_data_directory): Use file style to output the
12105 warning that the given pathname is not a directory.
12106 * top.c (show_history_filename, gdb_safe_append_history)
12107 (show_gdb_datadir): Use file style.
12108
12109 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12110
12111 * solib-target.c (struct lm_info_target):
12112 Change offsets to be a unique_xmalloc_ptr.
12113 (solib_target_relocate_section_addresses): Update.
12114
12115 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12116
12117 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12118
12119 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12120
12121 * MAINTAINERS (Write After Approval): Add myself.
12122
12123 2020-01-02 Luis Machado <luis.machado@linaro.org>
12124
12125 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12126 Cell BE architecture.
12127 * target.h (struct target_ops) <thread_architecture>: Likewise.
12128
12129 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12130
12131 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12132
12133 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12134
12135 * MAINTAINERS (Write After Approval): Add myself.
12136
12137 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12138
12139 * gdbarch.sh: Update copyright year range of generated files.
12140
12141 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12142
12143 Update copyright year range in all GDB files.
12144
12145 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12146
12147 * copyright.py: Convert to Python 3.
12148
12149 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12150
12151 * copyright.py: Adapt after move of gnulib directory from gdb
12152 directory to toplevel directory.
12153
12154 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12155
12156 * copyright.py (main): Exit if run from the wrong directory.
12157
12158 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12159
12160 * top.c (print_gdb_version): Change copyright year to 2020.
12161
12162 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12163
12164 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12165
12166 For older changes see ChangeLog-2019.
12167 \f
12168 Local Variables:
12169 mode: change-log
12170 left-margin: 8
12171 fill-column: 74
12172 version-control: never
12173 coding: utf-8
12174 End: